Originally posted by linner
View Post
Announcement
Collapse
No announcement yet.
Grep 3.7 Released To Fix "Extreme Performance Degradation"
Collapse
X
-
Originally posted by brad0 View Post
Rust is the new Java.
At least in Java/C++ there is try catch, which allows you to catch errors with little effort. Java even has the benefit of not requiring manual memory management, but then talk about verbosity and high memory usage with garbage collector....
But Rust? It's a mess of match Ok/Err, asterisks, ampersands, muts... I remember trying Rust out once, and it made my head explode.
It feels as if JavaScript programmers (JavaScript being the worst thing ever already) teamed up with C ones and attempted to create a new language.
Rust's popularity comes 95% from its fan base who praise the language like a deity and want everything rewritten in Rust...
On the corner, Haxe
- Likes 12
Comment
-
I wonder when "grep -r" will actually work...
re ripgrep (which I first heard of yesterday, funnily enough), according to the author all of its speed win over grep comes form the fact that Rust has a built-in regex routine with per-cpu optimizations. So, it's probably a bit faster than a "typical" Linux box, and a bit slower than Clear. Nothing at all to do with "even a newbie can write MT code in Rust!" (as you'd expect, given that outside of bugs like this one you should be spending nearly all your time in iowait (though you definitely COULD get a small benefit from threading it, depending on how poor the async completion is etc).
- Likes 1
Comment
-
Originally posted by brad0 View PostRust is the new Java.
tildearrow Rust doesn't have exception handling? WTF?! Is it seriously using something braindead like compound return types (struct result { bool valid; variant_t value; }; etc, or just have a "failure/invalid" type in the variant), or what? I keep to meaning to mess around with Rust, but something that stupid that requires if()s on every call would turn me off it almost immediately.
Oh well - I guess I'll find out once I have enough free time to actually do it...
- Likes 3
Comment
-
Originally posted by arQon View Post
Bitch, please: Rust is the new Go, which was the new Ruby, which was the new Java, which was the new etc etc - and that's just the last 15 years or so!
tildearrow Rust doesn't have exception handling? WTF?! Is it seriously using something braindead like compound return types (struct result { bool valid; variant_t value; }; etc, or just have a "failure/invalid" type in the variant), or what? I keep to meaning to mess around with Rust, but something that stupid that requires if()s on every call would turn me off it almost immediately.
Oh well - I guess I'll find out once I have enough free time to actually do it...
You would have to use either a match block or ? operator.
- Likes 1
Comment
Comment