Earlier quoted context omitted.
Obviously not fast enough for Google since they literally invented a new programming language (Go) to address the compile time and runtime limitations of Java.
Of all the criticisms I’ve heard hurled at Java, compile time isn’t one of them. Have you actually used any of these things you comment on?
Why Rust?
171–180 of 294 posts
Re: Why Rust?
#172How does Rust do at random number generation? Is there (for example) a crate for seeding random number generators?
I'm not sure if I understand your wording: "a crate for seeding random number generators"? Do you mean, "is there a RNG that you can seed in Rust"? There's a `rand` crate[0] which I believe was written by folks in the Rust project, though it's not part of std. You can seed the RNG[1]. [0] https://crates.io/crates/rand , https://github.com/rust-random/rand [1] https://docs.rs/rand/latest/rand/rngs/struct.StdRng.html#m…
Re: Why Rust?
#173Earlier quoted context omitted.
Except that cryptomoney isn't adding insane amounts of value in any niche, outside of extortion and evading government controls.
Evading government controls sounds like a valuable attribute.
(in case it isn't obvious, yes, I fully agree that evading government control/taxation is a hugely lucrative market).
Re: Why Rust?
#174Earlier quoted context omitted.
It's a bubble, 99/100 crypto companies are going to crash and burn, or already have. If you manage to land on the 1/100 that actually does something useful and survives, well, better odds than the lottery I suppose.
> It's a bubble, 99/100 crypto companies are going to crash and burn, or already have. I'm sure this is the 990th time that I have heard this. The fact is, it isn't going away and it seems even more crypto companies have taken interest in using Rust and that is good. Even some (crypto) companies are sponsoring the Rust Foundation as silver members. Nothing wrong with that. [0] [0] https://foundation.rust-lang.org/mem…
Re: Why Rust?
#175This must be how people felt about C++ in the beginning ...
(Does C++ have its warts? Absolutely. But it's a huge productivity boost over C.)
Re: Why Rust?
#176> Rust's enums and exhaustive match statement are just amazing, and now that I'm using them daily I can barely imagine how I could live without them for so long. I feel this! I absolutely love rust's fancy enums - i.e. not just a set of constants, but where each variant can be a full fledged type of its own, and how you have to handle every case whenever you're matching on it. It dovetails absolutely wonderfully with…
Scala, Kotlin, Haxe, Swift, and several others. The search term you want is "Algebraic Data Types" Erlang has the superpowered version of this - binary pattern matching, that lets you pattern match on a bitstream directly.
Re: Why Rust?
#177As someone who's not the biggest fan of Rust because of its complexity. There is a big reason to use it today. If you need to use something that has safety guarantees where it's possible to achieve acceptable performance in certain classes of programs where languages like golang, nim or crystal have trouble achieving then I just don't see any other options out there certainly not one with as many libraries available…
Yeah even if I'm a big fan of ML family lang, complexity to solve memory safety is too much to the point Zig is more appealing in way that helps you do it yourself more easily.
As far as memory safety do you think it would be a good idea to write something like say a http server or client in Zig?
Re: Why Rust?
#178I don't understand why everyone seems to ignore Ada? Granted I am completely new to it, but from what I see it is years ahead of Rust in terms of safety (it can prove correctness!! Rust is only heading into that direction). Yes syntax is verbose, but I dare to believe there must be another blocker than just syntax?
I've written in Ada95 back in college and it was great but I'm like a duck in water with Rust.
Re: Why Rust?
#179Earlier quoted context omitted.
> Too bad most of the Rust jobs right now seem to be in crypto. What is the problem with that?
It's a bubble, 99/100 crypto companies are going to crash and burn, or already have. If you manage to land on the 1/100 that actually does something useful and survives, well, better odds than the lottery I suppose.
Is their work pointless? Sure. But aren't Googlers' jobs not pointless too? That's the sad state of the 21th century: most people have a bullshit job but they need it to pay their mortgage.
Re: Why Rust?
#180> Rust's enums and exhaustive match statement are just amazing ADTs + pattern matching are the killer feature set that makes the more popular functional languages so damn pleasant to use, and they're starting to spread to more and more languages. I suspect that, 50 years from now, we'll look back and see them as the key paradigm shift of this era.
ADTs is last missing piece that would make me fully content with Go :)
EDIT: ah, it's algebraic data types, my bad, apologies.