I'd love to hear some reasons why so D and Rust can learn from each other.
Ask HN: Why do you use Rust, when D is available?
1–10 of 262 posts
Re: Ask HN: Why do you use Rust, when D is available?
#2This is not criticism of the D language, programming languages are like startups, success often has little to do with the product itself but more the ecosystem, funding, and luck.
Re: Ask HN: Why do you use Rust, when D is available?
#3If I want to pick a subset of features, I'd probably pick C++. Or, if I'm willing to use a GC and runtime, then there's lots of languages to choose from.
I use Rust if I want "safety" and no GC and that's all I get.
This is my impression. But I know very little of D so do not judge the language based on my impressions.
Re: Ask HN: Why do you use Rust, when D is available?
#4Granted, I'm not very familiar with D. I didn't even know it had a borrow checker.
Rust took a lot of great features from Haskell, while keeping itself reasonably approachable from a C/C++/D/Java programmer's perspective.
Rust put type names after variable/function/parameter names, which really cleans up the syntax nicely.
Rust has very nice syntax for pattern matching, monads, and a slew of other really helpful functional language features.
Even if rust didn't have a borrow checker, it would still be a wonderful systems programming language.
Re: Ask HN: Why do you use Rust, when D is available?
#5Re: Ask HN: Why do you use Rust, when D is available?
#6The syntax is nicer. Granted, I'm not very familiar with D. I didn't even know it had a borrow checker. Rust took a lot of great features from Haskell, while keeping itself reasonably approachable from a C/C++/D/Java programmer's perspective. Rust put type names after variable/function/parameter names, which really cleans up the syntax nicely. Rust has very nice syntax for pattern matching, monads, and a slew of othe…
Re: Ask HN: Why do you use Rust, when D is available?
#7Re: Ask HN: Why do you use Rust, when D is available?
#8Re: Ask HN: Why do you use Rust, when D is available?
#9The fact that Firefox uses Rust for the browser engine or that Dropbox uses Rust for the sync engine is the kind of thing that gets me interested.
Re: Ask HN: Why do you use Rust, when D is available?
#10People who use Rust aren't using it to solve real world problems, they're using it to scratch a novelty itch.
D is a tragedy in my opinion. It's an excellent language that just doesn't fit the political needs of any of the big players.
We have Swift which is a worse version of C#, we have Go, we have Java. Why don't we have a single language so that we can do cross platform development and abandon web browsers and javascript? Because politics. Every company needs to toot its own horn and suck up smart intelligent people so that they don't create a real competitor, and so we have a dozen languages that share 95% of the features and are all incompatible with one another and no one sane enough to say this is crazy, I'm going to take my FAANG money, move to a place with cheap rent and put an end to this madness.
It's only a game developer of all people, Jonathan Blow, that's doing it and his creation is a C++ replacement for games, not general purpose software. Sigh.