MurphyA/hacker-news huggingface dataset:
by amai | 2026-03-05 12:14:10+00:00
Now they can produce even more cars nobody wants.

BMW really needs to change its strategy to build cars for the future ( battery electric vehicles ) and stop churning out all those heavy diesel SUVs.

Because it doesn't matter how efficient you produce something, if it is the wrong thing you produce. Actually producing the wrong product highly efficiently makes matters even worse. It's like running in the wrong direction, but faster.
by jghub | 2026-03-05 12:14:46+00:00
To "manage" in this context refers to maintaining a ranked database of your directory history so you can navigate without providing full or relative paths. The difference in practice:

With built-in `cd`:

Navigation is manual and location-dependent. To reach a deeply nested project, you must provide the exact path: `cd ~/src/work/clients/acme/frontend/src/components`

With sd:

Navigation is intent-based. Once `sd` has indexed a directory, you provide a fragment of the name:
`sd comp`

How it works differently:

1. Passive Indexing: `sd` remembers all you cd actions (up to configurable limit, typically several 1000) and computes after each cd action a weighted score for each path you visit.

2. Intent Resolution: When you run `sd <string>`, it doesn't check your current working directory. It queries the database for the most "frecent" (frequent + recent) path matching that string and moves you there.

3. Ambiguity Handling: If "comp" matches multiple paths (e.g., `frontend/components` and `backend/components`), the power-law model I mentioned calculates which one is more relevant to your current "attention span" to resolve the tie.

The problem being solved is the cognitive load of remembering and typing long, nested file paths. It replaces a "search and find" task with a "recall" task.

so the core functionality is very similar to things like z/zoxide, but the ranking is using full visit history and detailed behaviour thus is different.
by dathinab | 2026-03-05 12:14:53+00:00
which means nothing

because no one believes there are legal consequences if they don't

and there are a lot of ways to doge it even if there where a reliable government in place

like especially if they do what they have been doing recently (run their own generator, build their own power planes) a lot of this cost is implicit and as such very dogeable. E.g. higher cost for gas power planes for other due to major increase of demand, higher medical cost due to more air pollution, higher fuel prices, etc. etc. (not even speaking about anything climate change).
by dmurray | 2026-03-05 12:15:25+00:00
China does it well. You can't get unemployment benefit, but if you can turn up for work sober every day and are prepared to do menial work, you are guaranteed a job.

Chinese cities are clean and tidy, not because people don't litter - they litter much worse than Americans or Europeans, from what I've seen - but because someone is paid to clean up the litter.
by JumpCrisscross | 2026-03-05 12:15:51+00:00
> it is also factually correct

No, it isn’t. Sanders’ supporters didn’t have the votes. That’s a fact.

If people believe in something, they should call their electeds and vote. The fact that a lot of people with a certain confluence of views (privacy, anti-war, et cetera) are too lazy to do either (regardless of post rationalization), but not self aware enough to not complain about it, is delusional cynicism.
by donhardman | 2026-03-05 12:16:07+00:00
Working on a large Rust codebase. The token problem is real — Claude Code will happily spend $5 of context just trying to understand how two modules relate before writing a single line. And once context compaction kicks in, it's even worse — the agent loses the thread completely and starts grepping the same files again from scratch.

Approaches I've tried:

Feeding CLAUDE.md / architecture docs manually — helps, but gets stale fast. Cursor's built-in indexing — breaks on monorepos, and I don't love proprietary code going to their servers. Basic MCP server with grep — works for exact matches, useless for semantic queries.

Eventually built something more serious: a local Tree-sitter indexer that builds a knowledge graph of file relationships and exposes it via MCP so agents query semantically instead of grepping blind. One tool call instead of 15 grep iterations. Published it here: https://github.com/Muvon/octocode

But genuinely curious what others are doing before I go deeper on it.

Three specific questions:

1. How do you handle the "ripple effect" problem — knowing that changing one file semantically affects others that aren't obviously linked?

2. Do you trust closed-source indexing with proprietary code, or have you gone local-first?

3. Has anyone gotten GraphRAG-style relationship mapping to work in practice at scale, or is it still mostly hype?
by otabdeveloper4 | 2026-03-05 12:16:22+00:00
> most people won't ever run local inference because it sucks and is a resource hog most can't afford

a) Local inference for chats sucks. Using LLMs for chatting is stupid though.

b) Local inference is cheap if you're not selling a general-purpose chatbot.

There's lots of fun stuff you can get with a local LLM that previously wasn't economically possible.

Two big ones are gaming (for example, text adventure games or complex board games like Magic the Gathering) and office automation (word processors, excel tables).
by Departed7405 | 2026-03-05 12:16:27+00:00
I agree. What people forget is Snowden didn't intend to end up in Russia. He wanted to go from Hong Kong (where he tought he would be safe, but realised extradition still was an option) to Ecuador. But he feared US would intercept his plane if he went over US/US allies sky. So his plan was to go from HK to Russia, then to Cuba and finally Ecuador.

Russia stopped him because US had cancelled his passport.
Show HN: MCP server for KubeCon EU 2026 – AI-powered conference planning
by njoerd | 2026-03-05 12:16:38+00:00
I built an MCP server that connects AI assistants to live KubeCon + CloudNativeCon Europe 2026 data (March 23-26, Amsterdam).

It exposes 12 tools that let you search 500+ sessions, find speakers, discover evening parties, get venue/hotel/transit info, score sessions based on your role and interests, and detect scheduling conflicts. Data is pulled live from the official sched.com iCal feed and conferenceparties.com.

Install: uvx kubecon-eu-mcp

The fun part: KubeCon has a co-located "Agentics Day: MCP + Agents" event on Monday, so this is an MCP server to help plan your trip to the MCP event.

Built with Python, FastMCP (official MCP SDK), httpx, icalendar, and BeautifulSoup. No database, no config — just install and ask questions. MIT licensed.

GitHub: https://github.com/njoerd114/kubecon-eu-mcp
PyPI: https://pypi.org/project/kubecon-eu-mcp/
by jillesvangurp | 2026-03-05 12:16:40+00:00
Most manufacturing operations have a long tail of stuff that is done by people because it's just not worth buying/designing a specialized machine for. That's exactly the stuff that people do currently that humanoid robots might step in and do cheaper.

Employees cost roughly 70-120K per year. A lot of work in automotive is skilled work that pays relatively well. So, the economic case is easy to understand.

That's why there are lots of companies trying to produce humanoid robots. If they get good enough, lots of companies would buy them. A humanoid robot costing about 100K that can work around the clock (minus charging, battery swaps, servicing, etc.) doing work that otherwise would be done by a person could earn itself back in well under a year. Maybe it will cost a bit more or a bit less.

Will they be able to do anything? Not right away probably. But they'll probably be able to do useful things which means people don't need to do these things and can do more valuable things with their time.
by JumpCrisscross | 2026-03-05 12:17:08+00:00
> How much has the current administration asked the public about going to war with Iran

Here is the 2026 Senate map [1]. Do you suggest any of them will flip over Iran? (I don’t. The folks who regularly vote simply don’t show any sign that this is a priority. Folks who stay at home grumbling don’t matter.)

[1] https://en.wikipedia.org/wiki/2026_United_States_Senate_elec...
by twoodfin | 2026-03-05 12:17:55+00:00
If I read Mario Puzo’s The Godfather and then proceed to write a structurally identical novel with many of the same story beats and character types, it will not be difficult to convince a jury exposed to these facts that I’ve created a derivative work.

On the other hand, if I can prove to the jury’s satisfaction that I’ve never been exposed to Puzo’s work in any form, it’s independent creation.
by pkaral | 2026-03-05 12:18:43+00:00
Lots of good points. Just want to point out that this can quickly become another self improvement project with its own sources of stress, insecurity and so forth.

In Tibetan Buddhism, there is a lojong slogan: "Self-liberate even the antidote". It refers to exactly this -- the practices we use to get away from bad habits may themselves become bad habits. Rather than embarking on an infinitely recursive run of trying to stop self-improving, just don't be black-and-white about things.

One source (of many): https://medium.com/kaitlynschatch/lojong-practice-journal-se...
by amelung | 2026-03-05 12:19:14+00:00
Metrum Alcaicum:

dul.cet.de.co:.rest.|pro:.pa.tri.a:.mo.ri:
mor.set.fu.ga:.cem.|per.se.qui.tur.vi.rum
nec.par.ci.tin.bel.li:s.iu.ven.tae
po:pli.ti.bus.ti.mi.do:.que.ter.go

(Not sure about the first syllable of "poplitibus": muta cum liquida and long "o"?)

Reading it like in school (with qualitative stress marking the quantitative meter), that would be:

dulcét decórest | pró patriá morí
morsét fugácem | pérsequitúr virúm
nec párcit ínbellís iuvéntae
póplitibús timidóque térgo.

Thanks for the link!
Ask HN: How do you give AI agents real codebase context without burning tokens?
by donhardman | 2026-03-05 12:19:52+00:00
Working on a large Rust codebase. The token problem is real — Claude Code will happily spend $5 of context just trying to understand how two modules relate before writing a single line. And once context compaction kicks in, it's even worse — the agent loses the thread completely and starts grepping the same files again from scratch.

Approaches I've tried:

Feeding CLAUDE.md / architecture docs manually — helps, but gets stale fast. Cursor's built-in indexing — breaks on monorepos, and I don't love proprietary code going to their servers. Basic MCP server with grep — works for exact matches, useless for semantic queries.

Eventually built something more serious: a local Tree-sitter indexer that builds a knowledge graph of file relationships and exposes it via MCP so agents query semantically instead of grepping blind. One tool call instead of 15 grep iterations. Published it here: https://github.com/Muvon/octocode

But genuinely curious what others are doing before I go deeper on it.

Three specific questions:

1. How do you handle the "ripple effect" problem — knowing that changing one file semantically affects others that aren't obviously linked?

2. Do you trust closed-source indexing with proprietary code, or have you gone local-first?

3. Has anyone gotten GraphRAG-style relationship mapping to work in practice at scale, or is it still mostly hype?
by alanalvestech | 2026-03-05 12:20:22+00:00
I built HiTank because most Claude Code skill implementations I found were 400-600 lines of TypeScript or Python with multiple dependencies. In Ruby, the same skill is ~185 lines using only stdlib (net/http, json, openssl). No external gems.

Every line the agent reads is a token you pay for, so keeping skills small matters.

Happy to answer any questions about the approach.
by pera | 2026-03-05 12:20:28+00:00
Suchir Balaji, the OpenAI researcher who was found dead in his flat just before testifying against his employer, published an excellent article somehow related to this topic:

When does generative AI qualify for fair use?

https://suchir.net/fair_use.html

Balaji's argument is very strong and I feel we will see it tested in court as soon as LLM license-washing starts getting more popular.
by konstantinkai | 2026-03-05 12:20:29+00:00
Hey HN,

I kept building the same thing every time I shipped an API: some logging, a few SQL queries, maybe a Grafana chart — all to answer “who’s using this?” and “why are errors up?”

The fourth time I did this, I extracted it into a standalone product.

PeekAPI is a server-side middleware that captures request metadata and sends it to a real-time dashboard. The entire integration is one line:

import { peekapi } from "@peekapi/sdk-node";

app.use(peekapi({ apiKey: "pk_..." }));

Technical decisions that might interest HN:

Zero dependencies in every SDK. Node SDK uses only built-in https, crypto, fs, os. Python SDK is pure stdlib. Go, Rust, Ruby, PHP, Java — same approach. No transitive dependency tree, minimal supply chain surface.

Never stores raw credentials. Auth headers are SHA-256 hashed on the client before leaving the server. The dashboard identifies consumers by hash — it never sees API keys or tokens.

Resilient by design. Events are buffered in-memory, flushed in batches. On failure: exponential backoff (max 5 retries). After max failures or on non-retryable errors, events persist to a JSONL file on disk. Same on process shutdown (SIGTERM/SIGINT). Recovered automatically every 60s and on startup.

SSRF protection. SDKs enforce HTTPS for all non-localhost endpoints and block requests to private IP ranges.

Ingestion is decoupled from the dashboard. SDKs POST to a standalone Go ingest service (ingest.peekapi.dev) that handles geo extraction, batching, and writes to Postgres. Dashboard is a separate Next.js app that reads the same DB.

What the dashboard shows:

Real-time request stream (WebSocket via Supabase Realtime)
Per-endpoint analytics: volume, error rate, avg/p95 latency
Per-consumer breakdown: who’s calling what, how often, error patterns
Configurable alerts: error rate spikes, latency thresholds, inactivity detection
Notifications via email, Slack, Discord, Telegram, or webhook
SDKs available for:

Node.js (Express/Fastify/Koa/Hapi/NestJS), Python (ASGI/WSGI/Django), Go (net/http/Gin/Echo/Fiber/Chi), Rust (Actix/Axum/Rocket), Ruby (Rack/Rails), PHP (PSR-15/Laravel), Java (Spring Boot/Jakarta Servlet).

SDKs are MIT licensed.

Happy to go deep on any architectural decision — and would love to hear what’s missing.
BaZi – Deterministic life-charting from the Chinese calendar
by chenzige | 2026-03-05 12:20:49+00:00
I've been fascinated by BaZi (八字), a Chinese calendrical system that maps
birth date/time to Five Element interactions. Unlike Western astrology, it's
essentially a deterministic lookup + combinatorial analysis — same inputs
always produce the same chart.

The core algorithm converts Gregorian dates to the Chinese Sexagenary cycle
(天干地支), then derives Four Pillars (year/month/day/hour), each a pair of
Heavenly Stem + Earthly Branch. From there it computes element balances,
"Ten Gods" relationships, and luck period progressions.

I built a web tool that runs this calculation and layers AI interpretation
on top for plain-English explanations:

https://xuanseal.com

Some interesting technical challenges:

- The Sexagenary cycle conversion requires handling the solar term calendar
(节气), which doesn't align with Gregorian months. I ended up using
astronomical algorithms rather than lookup tables for accuracy.

- BaZi has ~30 named element interaction patterns ("Clash," "Combine,"
"Punishment," etc.) that need to be evaluated across all four pillars
simultaneously. Getting the combinatorial logic right was the trickiest part.

- Separating deterministic calculation from AI interpretation was a deliberate
design choice — the chart itself is math, the reading is LLM-generated.
Users can verify the chart independently.

Stack: Next.js 16, React 19, TypeScript, Drizzle/PostgreSQL, Tailwind v4.
Three-locale i18n (en/zh/zh-hant) via next-intl.

Happy to discuss the calendrical math or the Five Element system if anyone
is curious.
Show HN: 3D linear and nonlinear WebGL Schrödinger numerical solver
by marl0ny | 2026-03-05 12:21:00+00:00
[Higher resolution, but possibly much more computationally demanding, version](https://marl0ny.github.io/split-operator-simulations/js/3d.h...). [2D version](https://marl0ny.github.io/split-operator-simulations/js/2d.h...). This was actually posted here long ago by someone else, where the comments were basically about not being able to run it in the first place. Well recently I've increased device compatibility, but even on some devices it may not run properly. For all Android devices I have to use a JavaScript FFT fallback instead of the default GLSL implementation, so expect significantly slower performance here. But even on some lower-end Android devices, it may not even run at all, so expect a black screen. I've also heard an issue where some of the GUI controls or buttons do not work; as I haven't been able to reproduce this, I suspect this is due to conflicts with browser extensions.
by rayiner | 2026-03-05 12:21:19+00:00
> I'm also skeptical about putting the federal government in charge of establishing standards of care.

Making the government the single payer without setting national standards of care would cause costs to explode. You can’t point to other countries saving money by having single payer without reproducing their systems. Ideally, you’d have to go through some arduous bureaucracy to make a medical claim, like in the UK: https://resolution.nhs.uk/services/claims-management/advice-....
by simiones | 2026-03-05 12:21:38+00:00
> "Insider Knowledge" is not relevant for copyright law. That is more in the space of patent law then copyright law.

On the contrary. Except for discussions about punitive damages and so on, insider knowledge or lack thereof is completely irrelevant to patent law. If company A has a patent on something, they can assert said patent against company B regardless of whether any person in company B had ever seen or heard of company A and their patent. Company B could have a legal trail proving they invented their product that matches the patent from scratch with no outside knowledge, and that they had been doing this before company A had even filed their patent, and it wouldn't matter at all - company A, by virtue of filing and being granted a patent, has a legal monopoly on that invention.

In contrast, for copyright the right is intrinsically tied to the origin of a work. If you create a digital image that is entirely identical at the pixel level with a copyrighted work, and you can prove that you had never seen that original copyrighted work and you created your image completely independently, then you have not broken anyone's copyright and are free to sell copies of your own work. Even more, you have your own copyright over your own work, and can assert it over anyone that tries to copy your work without permission, despite an identical work existing and being owned by someone else.

Now, purely in principle this would remain true even if you had seen the other work. But in reality, it's impossible to convince any jury that you happened to produce, entirely out of your own creativity, an original work that is identical to a work you had seen before.

> But you very much can rewrite a project under new license even if you have in depth knowledge. IFF you don't have the old project open/look at it while doing so.

No, this is very much false. You will never be able to win a court case on this, as any significant similarity between your work and the original will be considered a copyright violation, per the preponderance of the evidence.
by AmVess | 2026-03-05 12:21:48+00:00
Yeah. I have one. People buying the Framework Desktop mainboard aren't buying it just for gaming. There are better and far cheaper options for gaming. What this does is everything, though. Good enough for 1440p gaming. 16c/32t powerful CPU, it can run LLM's. SFF main pc that can do everything in a tiny space is a win.
by brazzy | 2026-03-05 12:22:05+00:00
Do Smalltalk IDEs really not have the concept of different "views" of the code? The 4-pane hiearchical view is clearly valuable, but why would it need to be "surpassed" rather than complemented by other views that are available when needed and can be switched to or even shown alongside the traditional view?

If that kind of thing doesn't exist (and the article sure sounds like that), then yes, it appears the smalltalk ecosystem really has fallen decades behind the state of the art in the IDE area.
by pmarreck | 2026-03-05 12:23:51+00:00
> With LLMs, the probability is much higher (since in truth they are very much not a "clean room" at all).

I beg to differ. Please examine any of my recent codebases on github (same username); I have cleanroom-reimplemented par2 (par2z), bzip2 (bzip2z), rar (rarz), 7zip (z7z), so maybe I am a good test case for this (I haven't announced this anywhere until now, right here, so here we go...)

https://github.com/pmarreck?tab=repositories&type=source

I was most particular about the 7zip reimplementation since it is the most likely to be contentious. Here is my repo with the full spec that was created by the "dirty team" and then worked off of by the LLM with zero access to the original source: https://github.com/pmarreck/7z-cleanroom-spec

Not only are they rewritten in a completely different language, but to my knowledge they are also completely different semantically except where they cannot be to comply with the specification. I invite you and anyone else to compare them to the original source and find overt similarities.

With all of these, I included two-way interoperation tests with the original tooling to ensure compatibility with the spec.
Show HN: BidWix – one-shot price agreement using secret max/min
by audiosampling | 2026-03-05 12:24:29+00:00
Hi HN — I built BidWix, a small negotiation tool for agreeing on a price without haggling.

How it works:

- The buyer enters their true maximum price (kept secret from the seller).
- The seller enters their true minimum price (kept secret from the buyer).
- If there is overlap, BidWix suggests a single “fair” price using the geometric mean (so the compromise is symmetric in percentage terms, not absolute currency units).

Notes:

- No signup. Email is optional. No ads.
- BidWix stops at the price suggestion. It does not handle payment, contracts, escrow, or delivery.
- It’s meant for cases where both sides want to make a deal, but don’t want the “you go first” dance.
- I’m not a skilled negotiator myself, so I wanted a tool where negotiation skill is less of an advantage.
- It seems to work especially well for intangible goods (I’m a sound designer).

If you try it, I’d value feedback on:

- Where the flow feels confusing or too wordy.
- Whether the suggested price feels reasonable in real negotiations you’ve had.
- Any edge cases or incentive problems you see.

Optional background (rationale + math): https://bidwix.com/articles/why-geometric-mean-feels-fair

A great day to all of you!
Stéphane (the guy who built myNoise)
by vladich | 2026-03-05 12:25:19+00:00
Sure, but that's not the main issue. If you add a global cache, it will have only a marginal value. There are Postgres extensions / forks with global cache and they are not wildly more efficient. The main issue you still do not understand is for different parameters you _need_ different plans, and caching doesn't help with that. It can help with parsing, sure. Parsing is very fast though, in relation to planning. And you keep conflating "prapared" statements with plan caching. Ok.
by krasikra | 2026-03-05 12:25:24+00:00
The WebRTC + LiveKit suggestion is spot on. Full-duplex speech-to-speech at the edge is where this gets really interesting — the latency budget for conversational AI basically demands local inference. Running a 7B model on-device with sub-200ms round-trip changes what you can build compared to cloud endpoints where you are fighting network jitter on top of inference time.