News for hackers. Stuff that matters.
Re:Candle: Torch Replacement in Rust by synergy20 on Tuesday August 08, 2023 @11:52AM (#37050918)
A similar situation here for me. Rust might be a modern Ada for a particular use case(system programming), I was puzzled why stackoverflow ranked it as 'the most loved' language for years. For each language related post at HN, you will always see rust lover's posts there saying "I wish it's in rust", or "there is a rust version", or "rust is even better". The reality does not match up with the enthusiasm for me though, what am I missing?

After each try with Rust, I ended up going back to c++ myself, it's just more productive in practice.

Re:Candle: Torch Replacement in Rust by synergy20 on Tuesday August 08, 2023 @12:21PM (#37051428)
Talking about my personal experience, getting downvoted heavily which was expected and not a surprise, in fact the insanity is another big reason I will not use rust, no other language has such patterns as far as I can tell.
Re:Candle: Torch Replacement in Rust by tracker1 on Tuesday August 08, 2023 @12:54PM (#37052026)
Those who are enthusiastic are very much so. I would say it's less contentious compared to when Node.js started to become popular. It's still one of my favorite tools/languages, though I'd prefer to use Deno more these days.

As to falling back to any given language, that's not uncommon. Learning a new language is difficult, especially if the paradigms don't align well to what we already know, or have experience in. This may come down to experience, or it may come down to how you now think through problems. That said, I don't think that C++ is inherently more productive than Rust, I think saying your experience makes you more productive in C++ is a far more likely truth.

Re:Candle: Torch Replacement in Rust by mkehrt on Tuesday August 08, 2023 @04:23PM (#37054971)
I write rust professionally and I really, really enjoy it. It’s lots of fun, and has found a good (and novel!) point in the space of safety vs. speed. That said, I think in the 80-90% case, a language with a garbage collector is probably more appropriate for the task at hand.
Re:Candle: Torch Replacement in Rust by geertj on Tuesday August 08, 2023 @05:21PM (#37055628)
> After each try with Rust, I ended up going back to c++ myself, it's just more productive in practice.

That has been my experience as well. Rust and the borrow checker get too much in my way. If I want a high level language I will use Python but if I want control all the way down to the hardware C++ is where I go. Plus, it /feels/ that ISO C++ has significantly picked up on momentum and is seeing more investments than Rust.