4 ms·
Why not assembly? Not enough compile time checks, only runtime errors. Why not go? Slower than rust. Type system is lacking. Why not c? Not memory safe. Why
by yert3 9mo ago
Why not assembly? Not enough compile time checks, only runtime errors.
Why not go? Slower than rust. Type system is lacking.
Why not c? Not memory safe.
Why not c++? Also not memory safe.
Why not zig? Not memory safe.
Why rust? Fast, memory safe, type safe. Compiler pushes back on LLM hallucinations and errors.
Over time, security-critical and performance-critical projects will autonomously be rewritten in rust.
- jimbob45 9mo agoRust isn’t versatile enough to be used in high-level contexts. You simply have to jump through too many hoops. It’s great for low-level apps but if I just want a simple UI and CRUD functionality, I’m reaching for C#/Kotlin. That’s not a bad thing though. It’s okay to aim for your thing and be good at just that. No need to try to please everyone.
- esafak 9mo agoAnd Rust compilation is slow.
- noosphr 9mo agoI don't know why you are being downvoted. Rust in the Linux kernel is basically all unsafe which is what I expected to happen the first time I heard about it.
- ChadNauseam 9mo agoThat’s not my experience. I use rust in my web application. It’s compiled to WASM and runs in the browser. About as high level as it gets. And I almost never feel I have to jump through hoops. The only time I do is when I’m implementing something that’s plain impossible in javascript, like zero-copy deserialization. On the other hand, I constantly have to jump through hoops in javascript. You literally cannot compare two objects for structural equality in JS without jumping through hoops. It’s unbelievable. Yet no one says javascript is not versatile enough to be used in high level contexts. It is fair to say that the way Rust deals with closures requires too much hoop-jumping to make a truly ergonomic reach equivalent
- tharmas 9mo agoLeptos? Dioxus?
- ChadNauseam 9mo agoMeant to say "react equivalent". And no, I don't use either. IMO they're not quite mature enough for me to match my productivity in javascript with them. They're getting there though. I just use rust for the actually difficult logic and have javascript as a thin layer for the UI.
- globalnode 9mo agoassembly is fun, python is fun, both get the job done.
- gritspants 9mo agoSo, I am then interested in non trivial software written with LLM assistance and in Rust. Off the top of my head I'm aware of Turso (supposed sqlite successor), marketing approach aise, I find it interesting to see how that works out. Any others?
- r-johnv 9mo agouv is a good example of this.
- ChadNauseam 9mo agoI’ve been working on this since approximately when claude code was first released: https://github.com/yaptown/yap https://github.com/yaptown/yap As hobby projects go it’s “in production” with maybe 50 active users, so nothing crazy. Definitely less ambitious than a sqlite successor. But it’s not trivial. (The repo history is truncated to save money on github LFS storage.)