News for hackers. Stuff that matters.
Re:Show HN: I rewrote my Mac Electron app in Rust by Arch485 on Thursday May 29, 2025 @04:47AM (#44124179)
This is something I think a lot of people miss about Rust - outside of slow compile times and personal preference, there is no reason not to choose Rust over JavaScript/TypeScript (unless of course you're working in the browser). It does everything JavaScript can do, but it does it faster and with more stability. At the end of the day, these features pay out huge dividends.

And this isn't Rust zealotry! I think this goes for any memory-safe AoT language that has a good ecosystem (e.g. Go or C#): why use JavaScript when other languages do it better?

Re:Show HN: I rewrote my Mac Electron app in Rust by codr7 on Thursday May 29, 2025 @04:52AM (#44124210)
Rust's type system gymnastics compared to most languages goes quite a bit beyond preference. I can't see the overlap at all with dynamic scripting languages, two completely different tools for completely different problems.
Re:Show HN: I rewrote my Mac Electron app in Rust by mplanchard on Thursday May 29, 2025 @09:40AM (#44126025)
TS has one of the more gymnastics-heavy type systems, IMO, and I think many if not most JS shops use TS.
Re:Show HN: I rewrote my Mac Electron app in Rust by codr7 on Thursday May 29, 2025 @10:36AM (#44126540)
TS is gradual though, Rust is all or nothing.
Re:Show HN: I rewrote my Mac Electron app in Rust by HumanOstrich on Thursday May 29, 2025 @06:05AM (#44124547)
> there is no reason not to choose Rust

Sounds like Rust zealotry to me, followed by a mild attempt to walk it back.

Re:Show HN: I rewrote my Mac Electron app in Rust by Capricorn2481 on Thursday May 29, 2025 @04:54AM (#44124219)
A world of difference between the borrow checker and a garbage collector.