frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Why Rust solves a Problem we no longer have – use AI and Formal Proofs instead

https://rochuskeller.substack.com/p/why-rust-solves-a-problem-we-no-longer
3•Rochus•1h ago

Comments

Jtsummers•1h ago
> You write a `TrafficLight` struct. You use an `enum` for state. You might use a Mutex. The compiler ensures you don’t access the memory of a deleted light. But does it ensure NS and EW aren’t green simultaneously? No. That’s a logic error, not a memory error. Rust saves you from a segfault, but it happily compiles a crash.

But Rust's type system still lets you build a system that covers that logic error. Don't do the naive thing (two lights as enums with states of Red or Green which permits four states, one of which is invalid). Create a four state enum: RG, GR, RR->GR, RR->RG (the third and fourth look superficially the same but indicate which light will become green in the next state transition). You could also do three states (RG, GR, RR) but then you need to track additional state to know which light was green and which will become green, which is neatly encapsulated in the four state machine. There, logic error removed from the program and within Rust's type system.

If you don't want both lights to be red at the same time, then you just do it with two states: RG, GR. Now it's impossible to get into the state where both lights are green because that state doesn't exist and you don't need a guard to prevent it, it literally cannot happen in the code.

Rochus•1h ago
That was deliberately just a simple example to give people an impression how the "code" looks which the LLM generates. There is no doubt that you can implement a traffic light with a "traditional" programming approach. The question is rather, why an LLM should produce something which was mostly invented to overcome human weakness, instead of using the much higher potential of this technology. As a programming language author myself I'm interested in the role of programming languages in the age of LLMs; the article represents my conclusions so far.
Jtsummers•47m ago
I picked out that example because it weakened your article. It comes across as a claim that Rust can't help with logic errors, which is false (whether your intent or not that's how it reads). Using bad examples that are easily countered weakens your overall thesis.

Your thesis is interesting, and something I've applied in work (formal methods, or informal-formal methods without the full rigor, to code). But you spend a large amount of the article bashing Rust and its community instead of building up an interesting discussion. I mean, your conclusion section is literally titled "Conclusion: The End of the Cult". Your intent is clear there, to bash a community and language. That's not productive.

Rochus•39m ago
As a senior engineer, I am quite alienated by the hype and the completely exaggerated promises that are being made to people. It is precisely such exaggerations that inevitably lead to equally exaggerated counter-movements (such as today's anti-OOP, for example). As long as the community is unable to view technologies objectively, a lot of money and time will be wasted on false expectations. If we don't take a clear stand against this, nothing will improve. I have presented my argument. It consists of more than just a keyword.

NewPipe 0.28.1 released bringing tons of fixes and improvements

https://newpipe.net/blog/pinned/announcement/newpipe-0.28.1-released/
1•cyb0rg0•2m ago•1 comments

A Chrome extension plugin featuring a magical particle mouse cursor effect

https://chromewebstore.google.com/detail/crazy-cursor-magical-part/eejfljdgkaanachdckmpmfgjhncihfmd
1•spacedogs•3m ago•0 comments

The Killing Fields of Tehran

https://www.thefp.com/p/the-killing-fields-of-tehran
2•mhb•3m ago•0 comments

Logitech caused its mice to freak out by not renewing a certificate

https://www.theverge.com/news/857377/logitech-macos-logi-options-mouse-certification-fix
1•abdelhousni•7m ago•0 comments

AVX-512: First Impressions on Performance and Programmability

https://shihab-shahriar.github.io//blog/2026/AVX-512-First-Impressions-on-Performance-and-Program...
1•shihab•9m ago•0 comments

StackChan is a cute, community-build, open-source AI desktop robot(Crowdfunding)

https://www.cnx-software.com/2026/01/13/m5stack-stackchan-is-a-cute-open-source-ai-desktop-robot/
2•meganetaaan•9m ago•0 comments

Contrary to popular belief, EV sales growth continued to accelerate in 2025

https://electrek.co/2026/01/13/contrary-to-popular-belief-ev-sales-growth-continued-to-accelerate...
3•breve•10m ago•0 comments

CoreWeave Overhyped AI Computing Capacity After IPO, Suit Says

https://news.bloomberglaw.com/securities-law/coreweave-overhyped-ai-computing-capacity-after-ipo-...
1•zerosizedweasle•16m ago•0 comments

We may know what a healthy gut microbiome looks like

https://www.newscientist.com/article/2508109-we-may-finally-know-what-a-healthy-gut-microbiome-lo...
1•herbertl•19m ago•0 comments

Show HN: Vibe scrape with AI Web Agents, prompt => get data [video]

https://www.youtube.com/watch?v=ggLDvZKuBlU
4•arjunchint•21m ago•1 comments

Smaller houses can lead to happier lives

https://www.washingtonpost.com/climate-environment/2026/01/06/smaller-houses-happier-lives/
3•bigwheels•25m ago•2 comments

A quick blog template built using NextJS and SleekCMS

https://github.com/sleekcms/sleekcms-next-blog
1•yusufnb•28m ago•0 comments

Are You Dead?: The viral Chinese app for young people living alone

https://www.bbc.com/news/articles/c3381r5nnn6o
2•bookofjoe•29m ago•1 comments

China's green power in Angola: When clean energy comes with heavy debt

https://globalvoices.org/2025/12/17/chinas-green-power-in-angola-when-clean-energy-comes-with-hea...
2•PaulHoule•30m ago•0 comments

My Productivity went up by 40%, I started talking to my docs instead of reading

https://www.yanna.pro/
2•adamazak•32m ago•0 comments

Germany Bashes Lunatic RFK Jr for Lying About Their Healthcare

https://www.youtube.com/watch?v=lE6saiibGkg
4•doener•32m ago•0 comments

Hello/Goodbye to Milo

https://joinmilo.substack.com/p/hellogoodbye
2•JacobAldridge•34m ago•0 comments

The $LANG Programming Language

25•dang•35m ago•4 comments

I guess that I am the one who has changed (2001)

https://everything2.com/user/psicotec/writeups/I%20guess%20that%20I%20am%20the%20one%20who%20has%...
1•davidja•36m ago•0 comments

Trump urges Tehran to show protesters humanity amid reports of rising death toll

https://apnews.com/article/iran-protests-trump-80f937dfbb3e04e5322dae30db3ad4b3
5•mhb•40m ago•1 comments

Google releases MedGemma 1.5 4B with medical image interpretation

https://research.google/blog/next-generation-medical-image-interpretation-with-medgemma-15-and-me...
2•MysticOracle•43m ago•0 comments

Show HN: Free Personal Password Manager

https://hypervault.com/insights/lets-make-it-personal-we-said
3•glennhv•48m ago•0 comments

Magnolia1234/bypass-paywalls-Firefox-clean

https://gitflic.ru/project/magnolia1234/bypass-paywalls-firefox-clean
2•OutOfHere•49m ago•2 comments

Generative AI – Human Interface Guidelines

https://developer.apple.com/design/human-interface-guidelines/generative-ai
2•Austin_Conlon•50m ago•0 comments

C64M: Commodore 64 Markup Language

https://www.youtube.com/watch?v=mZ2AzBbbrGw
1•bane•53m ago•0 comments

Supercharging S3 Intelligent Tiering with Content Crush

https://tech.scribd.com/blog/2026/content-crush.html
1•jaredwiener•56m ago•0 comments

Consumers Can Fight the Credit Card Industry

https://theprogressiveinvestor.org/how-consumers-can-fight-the-credit-card-industry/
1•chuckepstein•59m ago•2 comments

Ask HN: How are you preventing LLM hallucinations in production systems?

1•kundan_s__r•59m ago•2 comments

Never-before-seen Linux malware is "more advanced than typical"

https://arstechnica.com/security/2026/01/never-before-seen-linux-malware-is-far-more-advanced-tha...
3•jnord•1h ago•0 comments

America's biggest power grid operator has an AI problem – too many data centers

https://www.msn.com/en-us/money/companies/america-s-biggest-power-grid-operator-has-an-ai-problem...
2•jnord•1h ago•0 comments