Live data from Hacker News

Ask HN: Why do you use Rust, when D is available?

news.ycombinator.com

61–70 of 262 posts

Re: Ask HN: Why do you use Rust, when D is available?

#61
post #55
post #28

Personally, at some point Rust was just clearly better and after a while - I lost interest in D. I don't have time to keep track of D catching up, when I'm so happy with Rust, and ecosystem is growing so fast. Maybe D got much better in last few years... but I kind of don't care anymore. It's hard enough to introduce a raising star like Rust to your coworkers and D just don't have traction anymore. I've been followin…

> Normal people don't want to touch C++ anymore. Only people that think that CVEs are "just fault of bad developers" (LOL) can still be considering C++ a good language to start new projects in. Deliberately inflammatory, and also false. 1. Rust has limited abstraction features to make it more approachable and implementable, but make it unable to express libraries that are easy in C++. This will not change soon, altho…

> 3. C++ and Rust will coexist for decades.

Nah, I mean maybe in the way that Fortran coexist with C/C++ for decades, but it's not equal coexistence.

I would rather say that new languages arise, replaces old ones for most scenarios and in the cases where they can't, due to various reasons, they push the old language into zombie state like cobol.

Re: Ask HN: Why do you use Rust, when D is available?

#62
post #52

A mix of misteps by D, and some unique advantages of rust. * Releasing D under a closed source license was a non-starter. This has killed every language that has tried in the past 30 years. * Garbage collection was really the only memory management until recently. Manual memory management has always felt clunky and tacked on. Ownership and borrowing came really late to the game in comparison with rust. * Rust embrace…

Java, C#, Visual Basic and JavaScript all are less than 30 years old and all started off with proprietary main implementations. The phenomenon is probably real, but it's more recent than you suggest.

I can't remember one that's more recent than 20. All these languages were introduced before open source became the clear winner it is now.

Re: Ask HN: Why do you use Rust, when D is available?

#63
post #14

Earlier quoted context omitted.

That's a dangerously general statement, and it does not apply to me (an engineer) for example. I learned a lot of languages because of the language itself, e.g. their type system.

It may be dangerous to blindly trust that a language is good based on a company's success with that language, but a large company deciding to heavily invest resources and take a risk on a language is also evidence that the language has the designs to succeed.

That's based on the company, tech...yes, insurance..probably no ;)

Re: Ask HN: Why do you use Rust, when D is available?

#64
post #25

Phobos/Tango. GC, then optional-GC. Compiler support for various platforms was wonky, never sure if I was using the right one. D as of now is a worthy competitor to Rust, it wasn't always the case, it was more like Go, with the GC. I hit some snags and moved on and didn't go back. I am sticking with Rust. I think a question with closer alignment is, "Why use Go when D is available" ? D feels like a 5x better Go, not…

The biggest reason I started switching everything to Go is because of the IO / threading model.

Re: Ask HN: Why do you use Rust, when D is available?

#65
post #28

Personally, at some point Rust was just clearly better and after a while - I lost interest in D. I don't have time to keep track of D catching up, when I'm so happy with Rust, and ecosystem is growing so fast. Maybe D got much better in last few years... but I kind of don't care anymore. It's hard enough to introduce a raising star like Rust to your coworkers and D just don't have traction anymore. I've been followin…

I’m currently trying to get into robotics. But why does everyone want c++? Surely robots can be programmed in other languages.

Probably the same reason Python is big in scientific computing. A lot of stuff has already been written for it. If scientists needed to bootstrap scientific computing from scratch, Python wouldn’t be any more established than Rust, Java, PHP, or VB6.

Re: Ask HN: Why do you use Rust, when D is available?

#66
post #47

Earlier quoted context omitted.

I've never heard of a commercial success built off the back of Racket or J but happily went through a book on Racket and would love to do the same for J.

And yet almost nobody uses Racket and J. I think they were talking about more wide-spread use.

Uhh, that is quite wrong, lots of company's use racket, Haskell and even start new projects with Ocaml

Re: Ask HN: Why do you use Rust, when D is available?

#68
post #28

Personally, at some point Rust was just clearly better and after a while - I lost interest in D. I don't have time to keep track of D catching up, when I'm so happy with Rust, and ecosystem is growing so fast. Maybe D got much better in last few years... but I kind of don't care anymore. It's hard enough to introduce a raising star like Rust to your coworkers and D just don't have traction anymore. I've been followin…

I’m currently trying to get into robotics. But why does everyone want c++? Surely robots can be programmed in other languages.

Check out https://www.ros.org - it allows you to program in either C++ or Python (with some other languages being supported by the community)

Re: Ask HN: Why do you use Rust, when D is available?

#69

I remember how about 5 years ago I researched what new language to take on. I was in an unusual position to not consider job availability since I planned for a long game and was primary interested in growing my basic coding skills. It narrowed down to D, Go, Nim and Rust. Rust won on paper based on C-like performance without GC and being not OOP-oriented in a Java way (I tried Java earlier and wondered who in his rig…

>Go [...] there was not much I saw the language could teach me

Interesting that you mention this; one of the reasons I really enjoy Rust is because of how it forces me to think through things more clearly, and how a number of the higher-quality crates teach more advanced approaches in a straightforward way.

Re: Ask HN: Why do you use Rust, when D is available?

#70

Because Rust is new and shiny. People 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…

>People who use Rust aren't using it to solve real world problems

Like a browser? Or google's fuchsia?

Have some fun: https://www.rust-lang.org/production/users

You know what WASM is?

Post reply on HN