Readit News logoReadit News
M4Luc commented on Rewriting Rust   josephg.com/blog/rewritin... · Posted by u/yett
lifthrasiir · a year ago
Isn't that trivial? Just use Rust but reject any occurrence of `async` or `await` in your code or dependencies. Rust doesn't even force the use of async code for certain features in its standard library.
M4Luc · a year ago
And use which first class libs? IO related libs are almost all based on Tokio. I mean I'm happy that at least there's some consent regarding the runtime. But you can't undo the decisions for going async (instead of green threads) that easily.

Dead Comment

M4Luc commented on Rewriting Rust   josephg.com/blog/rewritin... · Posted by u/yett
dist1ll · a year ago
I think the dependency situation is pretty rough, and very few folks want to admit it. An example I recently stumbled upon: the cargo-watch[0] crate.

At its core its a pretty simple app. I watches for file changes, and re-runs the compiler. The implementation is less than 1000 lines of code. But what happens if I vendor the dependencies? It turns out, the deps add up to almost 4 million lines of Rust code, spread across 8000+ files. For a simple file-watcher.

[0] https://crates.io/crates/cargo-watch

M4Luc · a year ago
Another example is Axum. Using Go, C#, Deno or Node you don't even need any third party provided more or less secure and maintained lib. It all comes from the core teams.
M4Luc commented on Rewriting Rust   josephg.com/blog/rewritin... · Posted by u/yett
olalonde · a year ago
Why do you care how many lines of code the dependencies are? Compile time? Lack of disk space?
M4Luc · a year ago
Security and maintenance. That's what's so compelling about Go. The std lib is not a pleasure to use. Or esp. fast and featureful. But you can rely on it. You don't depend on 1000 strangers on the internet that might have abandoned their Rust crate for 3 years and nobody noticed.
M4Luc commented on Rewriting Rust   josephg.com/blog/rewritin... · Posted by u/yett
iforgotpassword · a year ago
Maybe they can learn from the Javascript folks, I heard they're very good at this.
M4Luc · a year ago
The Javascript folks are at least aware and self critical of this. In the Rust community it's sold as a great idea.

u/M4Luc

KarmaCake day4September 26, 2024View Original