2 ms·
> is notoriously verbose. A 500KLOC codebase in Java would usually be half that size in Rust Lol, no way. Especially that rust is pretty verbose all things tog
by gf000 10d ago
> is notoriously verbose. A 500KLOC codebase in Java would usually be half that size in Rust
Lol, no way. Especially that rust is pretty verbose all things together (which makes sense, given it's a low level language - ergo you have to literally express more things about the code)
- dwaite 10d ago> it's a low level language - ergo you have to literally express more things about the code That isn't really a comparison of the languages as much as the standard runtimes and ecosystems. It is important to consider that each have comparable components. So you aren't comparing a no_std rust project against a comparable JavaCard, but say Diesel vs Hybernate code examples around ORM.
- gf000 10d agoComparable components, but almost every line of Rust code expresses information about the lifetime of objects - either implicitly (quite often), or explicitly. Meanwhile in java it's a constant "Arc<JavaType>", and scopes don't mark "drop points"