News for hackers. Stuff that matters.
Re:Gemini 4 Argon by LarsDu88 on Wednesday September 30, 2026 @04:46PM (#49914192)
Rust is the best language for LLMs b/c it gives by far the best debug messages. Just tons of verifiable reward signal for post-training. Even the most rudimentary LLMs can school me on idiomatic Rust
Re:Gemini 4 Argon by rafram on Wednesday September 30, 2026 @05:03PM (#49914432)
On the other hand, Rust's borrow checker is very picky, and even a frontier LLM still sometimes struggles to respond to roadblocks sensibly (refactoring so whatever it's trying to do can be done safely) rather than stupidly (introducing some horrible global arena thing so it can make the borrow checker go away). A lot depends on how good your instructions are, and how good the existing code is, since bad input begets bad output.
Re:Gemini 4 Argon by nchie on Wednesday September 30, 2026 @05:48PM (#49914927)
I've (more or less; I've read quite a bit of the code) vibecoded several houndred thousand lines of Rust and I've not seen this happen a single time. It sounds like something it'd do when you ask it to "write a linked list while satisfying the borrow checker". Are you sure you haven't (possibly unknowingly) been giving it instructions which ended up luring it into doing these things?
Re:Gemini 4 Argon by zahlman on Thursday October 01, 2026 @04:13AM (#49919076)
Couldn't it just look at what std::collections does?
Re:Gemini 4 Argon by Karrot_Kream on Wednesday September 30, 2026 @07:50PM (#49915974)
A good eval benchmark suite could really improve this then.
Re:Gemini 4 Argon by hbbio on Wednesday September 30, 2026 @08:35PM (#49916292)
Yep! In our tests, we found Zig to be a pretty good fit to translate C++ codebases.

And static analysis + agents are good enough at keeping the memory management in check. Compared to Rust, there's no magic so it's easy for devs and agents to reason about.

If you're curious: https://github.com/okcontract/oksolc

Re:Gemini 4 Argon by fireant on Thursday October 01, 2026 @01:38AM (#49918104)
TBH a "global arena thing" can be very good for performance rather than a bunch of random allocations/deallocations
Re:Gemini 4 Argon by bitexploder on Wednesday September 30, 2026 @04:58PM (#49914351)
Evidence needed. I think for certain kinds of outcomes it has very strong advantages, but these advantages are not a given as 'best for LLMs' :)
Re:Gemini 4 Argon by throwitaway222 on Wednesday September 30, 2026 @06:39PM (#49915392)
I've narrowed in on only using Go or Rust generated code (Go for APIs right now) and rust for some TUI or other thing. TS for web interfaces (w/React).
Re:Gemini 4 Argon by lossolo on Wednesday September 30, 2026 @05:54PM (#49914981)
Not always. In my experience, if you're not working on a small, trivial codebase, LLMs will sometimes just create spaghetti unreadable, inefficient code to satisfy the constraints of the type system/borrow checker.
Re:Gemini 4 Argon by iillexial on Thursday October 01, 2026 @04:01AM (#49919006)
in my experience LLMs write pretty bad Rust code. sure it works, strong typing system, etc., but it's unmaintainable and not readable.
Re:Gemini 4 Argon by konart on Thursday October 01, 2026 @05:13AM (#49919482)
I doubt these two features will be a defining quality of a product soon enough.

Many pieces of software are going to be just blackboxes worked by AI. You will be maintaining output quality and stability and that's it.

Re:Gemini 4 Argon by david-gpu on Thursday October 01, 2026 @05:15AM (#49919490)
I have the same problem with the assembly produced by compilers.

Maybe we should let them do their thing and instead focus our attention on the higher-level stuff like specifications and testing.