MurphyA/hacker-news huggingface dataset:
by skeeter2020 | 2025-05-26 14:21:43+00:00
since you mention JS specifically, I think it's important to seperate that from the framework ecosystem. I'd suspect that most LLMs don't which is part of the problem. I had a similar experience with Python lately, where the LLM-generated code (once I could get it to run) resulted in code that I would generously evaluate as "Excel VBA Macro quality". It does the task - for now - but I didn't learn much about what production-grade python would look like.
by simonw | 2025-05-26 14:23:03+00:00
The more time passes the more I care about my notes living in Markdown:

- I can transform it to other formats should I need to

- The GitHub variant of it (GFM) has feature like syntax highlighting for different languages which is incredibly useful to me based on the kinds of notes I take

- Diffing clearly genuinely is a benefit, sometimes I want to know exactly what I changed!

- I can parse it with regular expressions, so useful information doesn't end up locked in some weird binary format

- LLMs are great at reading and writing it

These things may not matter to people who are not nerds. I'm a nerd!
by encom | 2025-05-26 14:23:08+00:00
Robot technician/builder and I'm working on finding another job, because I just got laid off. Shame. I liked this job (mostly), because I could combine craftsmanship (I'm an electrician) with nerdy electrical and hardware/software/mechanical debugging and occasionally development. And I learned so much. Onwards to new things I guess, but I loathe the job application process.
by mtndew4brkfst | 2025-05-26 14:23:20+00:00
My anecdotal experience is that I indirectly need/benefit from rerere much less often because I'm not usually resolving the same specific conflict more than once. I fix it the one time and then jj is rebasing a whole lineage for me, starting from the early commits, not from the single-branch leaves. That way I don't get "I rebased one branch and fixed this one already, but now I have to do it again for a second branch that shared the same conflicted commit as the first."

By contrast, git rebase --update-refs does not handle sibling branches but detaches them instead, and git replay hasn't had much TLC for UX yet. Plus, the last time I tried replay it was still obliterating commit signatures.

https://git.github.io/htmldocs/git-replay.html
Ask HN: Building LLM apps? How are you handling user context?
by marcospassos | 2025-05-26 14:23:27+00:00
I've been building stuff with LLMs, and every time I need user context, I end up manually wiring up a context pipeline.

Sure, the model can reason and answer questions well, but it has zero idea who the user is, where they came from, or what they've been doing in the app. Without that, I either have to make the model ask awkward initial questions to figure it out or let it guess, which is usually wrong.

So I keep rebuilding the same setup: tracking events, enriching sessions, summarizing behavior, and injecting that into prompts.

It makes the app way more helpful, but it's a pain.

What I wish existed is a simple way to grab a session summary or user context I could just drop into a prompt. Something like:

const context = await getContext();

const response = await generateText({ system: `Here's the user context: ${context}`, messages: [...] });

Some examples of how I use this:

- For support, I pass in the docs they viewed or the error page they landed on.

- For marketing, I summarize their journey, like 'ad clicked' → 'blog post read' → 'pricing page'.

- For sales, I highlight behavior that suggests whether they're a startup or an enterprise.

- For product, I classify the session as 'confused', 'exploring plans', or 'ready to buy'.

- For recommendations, I generate embeddings from recent activity and use that to match content or products more accurately.

In all of these cases, I usually inject things like recent activity, timezone, currency, traffic source, and any signals I can gather that help guide the experience.

Has anyone else run into this same issue? Found a better way?

I'm considering building something around this initially to solve my problem. I'd love to hear how others are handling it or if this sounds useful to you.
by kordlessagain | 2025-05-26 14:24:01+00:00
I'm using Claude Desktop to develop an agentic crawler system. My workflow is VSCode next to Claude Desktop. The tooling for Claude uses a bunch of MCP servers I wrote for Evolve: https://github.com/kordless/gnosis-evolve

Core Development Capabilities:

- File Discovery & Navigation: file_explorer with pattern matching and recursive search

- Intelligent Code Search: search_in_file_fuzzy with similarity thresholds for finding relevant code sections

- Advanced Code Editing: file_diff_writer with fuzzy matching that can handle code changes even after refactoring

- Backups: backup and restores of any files at any state of change.

- System Monitoring: Real-time log analysis and container management

- Hot Deployment: docker_rebuild for instant container updates (Claude can do the rebuild)

The Agentic Workflow:

- Claude searches your codebase to understand current implementation

- Uses fuzzy search to find related code patterns and dependencies

- Makes intelligent edits using fuzzy replacement (handles formatting changes)

- Monitors logs to verify changes work correctly

- Restarts containers as needed for testing

- Iterates based on log feedback

- Error handling requires analyzing logs and adjusting parsing strategies

- Performance tuning benefits from quick deploy-test-analyze cycles

I've not had any issues with Claude being able to handle changes, even doing things like refactoring overly large HTML files with inline CSS and JS. Had it move all that to a more manageable layout and helped out by deleting large blocks when necessary.

The fuzzy matching engine is the heart of the system. It uses several different strategies working in harmony. First, it tries exact matching, which is straightforward. If that fails, it normalizes whitespace by collapsing multiple spaces, removing trailing whitespace, and standardizing line breaks, then attempts to match again. This handles cases where code has been reformatted but remains functionally identical.

When dealing with multi-line code blocks, the system gets particularly clever. It breaks both the search text and the target content into individual lines, then calculates similarity scores for each line pair. If the average similarity across all lines exceeds the threshold, it considers it a match. This allows it to find code blocks even when individual lines have been slightly modified, variable names changed, or indentation adjusted.
by simonw | 2025-05-26 14:24:35+00:00
Pencil and paper is terrible because you can lose the paper. I want my notes backed up to the cloud, with backups replicated across at least two continents.

I've experimented with a bunch of tools for extracting copies of my issues and pulling them down locally, which is easy thanks to the GitHub API.

One that's particularly fun is a GitHub Actions setup that copies the full contents of each issue thread into a file in the repo itself. Then I can "git pull" to fetch my backup!

I still don't have any of them running on a cron at home but I might set that up some day.
by lyu07282 | 2025-05-26 14:25:30+00:00
I use JWT and a half dozen other standards, not by choice though, I wished I could do what you suggest it would simplify everything a ton, but I'm not going to roll my own multi-org/SSO/2FA auth platform. Needing those auth features is what made me use these standards not because my app is big, it's not it's tiny.
by icedogma | 2025-05-26 14:25:41+00:00
I worked at Amazon Robotics low level software team, as a contractor, for a few months. This article sounds about right. Crazy pace of work with no room for reflection or — especially — groundbreaking invention, is given. And that was a year ago, when AI was totally optional.

The engineers are smart and fast folks, which helps a great deal. But don’t seek true creativity and deep expertise at Amazon, unless we’re talking about legacy L6+ (or likely even L7+) level engineers who get to have the leeway needed. The picker robots I had been working with were created, originally, by a Netherlands company, not Amazon. Amazon’s job was scaling it all up for their massive warehouse operation. It was a bunch of hacks on top of hacks. Heck, not even Harel state machines (which is kind of what one would expect to have on a properly designed event-driven robot that’s not overly tied to its PLC implementation, where things can be modularized, in and out, as needed). Just a bunch of switch statements and a menagerie of globals, with only two key people intimately familiar with most of its key code structure, one of whom decided to leave the group in frustration.

In fairness, the mess didn’t originate just at Amazon, but there never was a technical push at Amazon to have the initial work done in the right way. Not the software part anyway.

I can see that the craziness not only didn’t abate but has gotten worse. The money was good but it’s not worth the stress and other frustrations IMO, unless you’re a noncontractor and at least a technical program manager or above, where you won’t be coding as much as reviewing others’ code anyway.

Otherwise, I can totally understand why people just work there for a couple years, to get their resume looking good and then leave
by elric | 2025-05-26 14:25:51+00:00
I swear CPAP wouldn't get such a bad rep if the media would stop using pictures of men with obscenely large full face masks. The most commonly used CPAP mask is probably the minimalist Resmed P10 [1]. It looks a lot less intimidating than a bulky full face mask. And in most cases, full face masks aren't needed (no sources to cite, but titrating to the correct pressure allows most people to breathe through their noses).

Looks like they buried the lede:

> possible side effects from atomoxetine such as signs that sleep isn’t as restorative while on AD109 or an increase in blood levels of C reactive protein [..] “Atomoxetine also increases heart rate and diastolic blood pressure a little bit,”

That's ... unsettling. So you're reducing events at the cost of increased blood pressure and heart rate? That's not good.

> the treated participants experienced 56% fewer instances during sleep where their breathing grew shallow or ceased

That sounds impressive at face value, but is probably pointless? So you have an AHI of 40, and now you have an AHI of 18? You're still getting crap sleep. Correctly titrated CPAP reduces events by ~99%.

> In addition, 22% of the treated patients achieved complete control of the disease, defined as fewer than five airway obstructing events per hour.

That sounds much better. Can these 22% be identified based on some criteria? So that they can be treated in this way?

> AD109 caused a “meaningful” reduction in the depth and duration of patients’ periods of low blood oxygen

"Meaningful"? If there is any significant saturation, your sleep is going to be shit. Again, correctly titrated CPAP eliminates desaturation entirely.

As far as I can tell, there's no polysomnography data to be examined anywhere. How was this tested? Are they just looking at AHI? In which case this is meaningless. Are these folks' sleep architectures restored? Or are they still having a bunch of events during REM which renders their REM sleep useless?

[1] https://www.cpaponline.com.au/wp-content/uploads/2020/05/cpa...
by ModernMech | 2025-05-26 14:25:54+00:00
But that's not really "basically an open border" though is it?

Can you quantify "almost always"? Because here are some data I found:

- 83% of nondetained immigrants with completed or pending removal cases attended all of their hearings. - 96% of nondetained immigrants represented by a lawyer attended all of their hearings. - 15% of those who were ordered deported because they did not appear in court successfully reopened their cases and had their removal orders rescinded. In some years, as many as 20% of all orders of removal for missing court were later overturned.

https://www.americanimmigrationcouncil.org/news/11-years-gov...

This would seem to indicate the opposite, that they almost always attend the court date.

So while it's not perfect, it's clearly not true that the boarder was "basically open" under Biden.
by hocuspocus | 2025-05-26 14:26:13+00:00
EU directives have forced banks to modernize at a pace that wouldn't have been possible if we just let the free market decide. There are downsides to the heavy regulatory framework, for instance the unhealthy consolidation and size of systemic banks. But we enjoy pretty advanced banking services and arguably the most flourishing fintech ecosystem by worldwide standards, mostly thanks to EU technocrats.
by john-h-k | 2025-05-26 14:27:22+00:00
> General point: it's impossible to prove anything based on an LLM's response since it's impossible to distinguish a true LLM statement from a false one.

This seems true but sort of vacuous. Obviously an arbitrary statement, much like that as a human, can only be determined "true"/"false" by rigorous first order logic.

But outside of binary T/F, wouldn't "grok says it is Claude 3.5 Sonnet yet other LLMs do not" make you update your chance that grok is actually just Claude 3.5 sonnet?

I wouldn't say I believe it with much conviction. But it seems irrational to not believe it _somewhat more_ after seeing this.
by melvinroest | 2025-05-26 14:27:28+00:00
Could you point out what you mean? It's really hard to follow you. You say it's nonsense but it is not clear why. Then I write down a response that took me quite a while to format correctly (and to look up) and you then say "I thought it was a different kind of nonsense." Then you say it still has a subtle error.

It is really hard to follow you if you don't explain yourself.

I'm not saying it's factual. The reason I showed that answer was simply to verify to see if it was what you thought it was (hence I asked "is it?"). It turns out that it wasn't fully.
by gentios | 2025-05-26 14:27:40+00:00
We fetch file changes from github (we fetch only, we don't store code) and based on that we build the context.

In order for the AI to be more precise you can as well fine tune from the dashboard it self such as:

- multiple models - you can set the tone - some prompt engineering

you can as well add code styling for: functions, variables etc.

Suggestions are welcomed :)
by ferguess_k | 2025-05-26 14:27:42+00:00
(Close to ML/AI) Python is heavily used in DE (Data engineering) -- Many companies are moving away from Scala/Java because the Python binding is efficient enough and they can find a lot more talents who can code in Python than in JVM languages.

Beyond that, I believe Python is also used to program backends but it is not as popular as other BE languages.
by close04 | 2025-05-26 14:28:08+00:00
> the process an LLM uses to generate code based on an input is definitely not entirely deterministic

Technically correct is the least useful kind of correct when it's wrong in practice. And in practice the process AI coding tools use to generate code is not deterministic which is what matters. To make matters worse in the comparison with a manufacturing robot, even the input is never the same. While a robot get the exact command for a specific motion and the exact same piece of sheet metal, in the same position, a coding AI is asked to work with varied inputs and on varied pieces of code.

Even stamping metal could be called "non-deterministic" since there are guaranteed variations, just within determined tolerances. Does anyone define tolerances for generated code?

That's why the comparison shows a lack of understanding of either of the systems.
by diggan | 2025-05-26 14:28:19+00:00
For curl:

--connect-timeout = Times out if the connection wasn't established within N seconds

--max-time = Times out if the entire request wasn't completed within N seconds

But then I don't remember if connect-timeout takes DNS lookups into account, or TLS handshakes. I seem to remember there is another sort of timeout that tends to be hard to get right when the connections are flaky/drops a lot of packets, so you end up having to wrap curl anyways if you want a hard limit on the timeout.
by nico | 2025-05-26 14:28:36+00:00
It really depends on the task and your preferences

I’ve had great success using LLMs for things that I haven’t done in a while or never before. They allow me to build without getting too bogged down into the details of syntax

Yes, they require constant attention, they are not fully independent or magical. And if you are building a project for the longer run, LLM-driven coding slows down a lot once the code base grows beyond just a couple of basic files (or when your files start getting to about 500-800+ lines)

I’ve tried several agentic editors and tools, including cursor, they can def be helpful, but I’d rather just manually loop between ChatGPT (o4-high-mini for the most part) and the editor. I get a very quick and tight feedback loop in which I get plenty of control

Git is essential for tracking changes, and tests are gold once you are at a certain size
by FirmwareBurner | 2025-05-26 14:28:41+00:00
>A new category of jobs will be created: retirement jobs.

Who will create these job? Especially given the push towards more Automation in the west or at least outsourcing these easy repetitive jobs to countries in with lower wages as it is the case right now. When you call tech support, does an elderly US person answer or a person from India/Asia/LatAm? Do you think they'll hold back technological development just to give meaningless work to unemployed old people in the west?

But say such jobs are created, given how many youths are unemployed(in Europe at least), why would they hire people close to retirement instead?

The west has built itself into in a pickle with needing to work longer till retirement but has fewer easy jobs left due to automation, high labor costs, and outsourcing. What are you gonna do then, go back to uni and study another Masters' degree at the ripe age of 60 so you can retrain for another specialized job?
by dbolgheroni | 2025-05-26 14:28:41+00:00
Code review is another sacred process that seems too good not to have, but many teams use it as a "we care about quality" stamp when in fact they do not. Used for just nitpicking code style (important but not the whole reason to have CR, and there are tools for this), issue comments like "LGTM" and approve whatever arrives at the pull request anyway.
by avianlyric | 2025-05-26 14:28:45+00:00
How exactly are you going to “weight” that 10%? Each segment is independent, you can’t “weight” the voltages, because that would require the ability to move power between track segments, which you can’t do, because then they wouldn’t be track segments anymore.

Additionally you’re making the assumption that line voltages are stable and constant, and can be tweaked as needed. They’re not, they’re some of the most noisy, electrically unpleasant power systems in the world, with voltage bouncing up and down as trains accelerate and decelerate, consuming up to a MW each under peak load.

Power distribution companies hate providing power to train systems because you need so much infrastructure to handle the noise and prevent the train line from seriously degrading the local power grid. The substation that connect train lines to the power grid are constantly having their switchgear trip in and out as the huge spikes in demand cause the equipment to momentary disconnect to protect downstream equipment.

So creating headroom for extra regenerative breaking isn’t a simple thing to do. When each train can instantly consume as much power as 10 households all maxing out their power supply, electrical systems stop behaving anything like “normal”.
Show HN: Directory of 100 SaaS tools that support enterprise SSO (SAML, SCIM)
by andy89 | 2025-05-26 14:28:58+00:00
I’ve been working on enterprise SSO integrations and realized there’s no simple way to check which SaaS tools actually support SAML, SCIM, or OIDC.

So I compiled a public directory of 100+ SaaS apps grouped by category (AI, DevTools, Productivity, etc.). It’s meant to save time during vendor evaluations, especially when dealing with IdPs like Okta or Azure AD.

Happy to share it here if folks are interested. Open to suggestions if there’s a better place to maintain something like this long-term.
by noahjk | 2025-05-26 14:29:23+00:00
Are there options to see the current state of the repo? What I mean is, for example, I like that in VS Code I instantly know the current state because the git sidebar icon shows a notification of uncommitted changes. If I don't have a visual reminder, I'm more likely to not make commits when I should, and I also don't want an auto-committer firing after each change. I find the visual reminder keeps me anchored to my git status.

Heck, maybe I should just use code for notes. One plus would be web access with code server, since Obsidians only docker image that I know of uses VNC.

Anyone compared these two tools and have a decent write up? The biggest item which comes to mind would be referencing other notes and the features built on top of that?
by hn_throwaway_99 | 2025-05-26 14:29:23+00:00
Like the other commenter said, I honestly don't think you know many 70-year olds. I know plenty of people in their 70s that are active, physically fit, extremely sharp mentally, and still working. I'm not saying they have 0 decline, but oftentimes since they have more flexibility and free time, they can use that free time to take better care of themselves and get adequate rest. I'd rather have my kid ride with a healthy, well-rested 70-year-old than a frazzled, sleep-deprived, rushing-to-get-somewhere 45-year-old.

80s, on the other hand, are another story. Everyone I know that was in good shape in their 70s who is now in their 80s showed marked decline, even if they were still fairly healthy and fit. My parents had a fantastic retirement in their 70s - tons of travel, lots of hiking and RV trips to national parks, very active socially. When they hit their early 80s it was tough, because the decline was pretty fast. They're still in good health, but they move considerably slower and just finally "look old" to me.
by tomhow | 2025-05-26 14:29:25+00:00
Be kind. Don't be snarky. Converse curiously; don't cross-examine. Edit out swipes.

When disagreeing, please reply to the argument instead of calling names. "That is idiotic; 1 + 1 is 2, not 3" can be shortened to "1 + 1 is 2, not 3."

Please don't fulminate. Please don't sneer, including at the rest of the community.

https://news.ycombinator.com/newsguidelines.html
by Spooky23 | 2025-05-26 14:29:59+00:00
The banking system can move billions in seconds. Velocity is only an issue for criminals and people trying to avoid taxes.

The people who are the thinkers in this space like to quack like libertarians and look back fondly at the gold standard. For better or for worse, they are driving US policy now. It’s one of the reasons why our government is setting the financial and economic system on fire and destabilizing the dollar.

If you want to provide fan service to the idiots keeping you in office, and get really really rich in this process, what do you do? Pivot to crypto as there isn’t enough gold to capitalize the world, and outsource the new version of the fed to private interests.

This is a way to stay relevant from the banks point of view in what whatever this new world turns into. They add value because there’s inherent trust in day JPMC, UBS or Barclays versus some random crypto bro company.