logoalt Hacker News

flohofwoe • today at 12:52 PM • 1 reply • view on HN

Writing C code by hand and have it reviewed by LLMs remains an enjoyable middleground. In that scenario, the LLM is just another static analyzer tool.

Typical Rust OTH is neither a joy to read nor to write for humans, so the LLM remains the only option to create and maintain Rust codebases ;P

Also memory safety isn't the only thing that matters, iteration speed and code simplicity might too, and large C code bases build infinitely faster and are also easier to read and understand than typical Rust or C++ codebases)


Replies

rbanffy • today at 1:43 PM

So far I have only written trivial code in Rust, but I really find the puzzle it poses quite enjoyable. It forces me to understand what I'm doing much more deeply than C would. Most of the time I write Python, but I'm always aware of the ownership of shared mutable state because I learned to do multithreading a long time ago and it's not something you can unlearn.

I suspect once someone gets comfortable with Rust, their code will be better because of it (kind of what Bruce Perens says about Lisp).

➕ show 1 reply