you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 insightful - 3 fun4 insightful - 2 fun5 insightful - 3 fun -  (3 children)

I hope you will try Rust then. I'm not really doing Rust myself. But I heard a lot of good things about it from students and colleagues.

Maybe I'll even visit a lecture about it next summer.

I started with Java about 15 years ago and then took off to Haskell and Erlang mostly. These are my homes, so to say.

That is why I can remember these kind of problems only very dimly. But i can relate to them. Being the reason me searching for alternatives in the first place.

[–]zyxzevn 4 insightful - 2 fun4 insightful - 1 fun5 insightful - 2 fun -  (2 children)

Rust is good in very specific plain programming, but it restricts the use of data far more than necessary.
If you work with complex data structures, it becomes much much harder than it needs to be.

With C or C++ you can just deal with the complex data in simple steps.
In Rust the complex data-structure (like recursive graphs) is impossible by definition, so you need to create something to replace it.
And this replacement adds another layer of complexity.

The excuse Rust-programmers use, is that complex data structures are wrong. But they never programmed any complex system to begin with.
So you see that Rust is only used for simple things that have no such structures. High end programs, like triple-A games or graphical tools are not rust-friendly.

If you want to replace C or C++, I would currently advice Nim.
And for very complex systems, Elixir.

[–][deleted] 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (1 child)

After reading this, I will definitely give it a try. I am torturing myself a lot with Merkle trees recently. Since I've been hitting some dead ends recently anyway, why shouldn't I start from scratch ?

[–]zyxzevn 4 insightful - 2 fun4 insightful - 1 fun5 insightful - 2 fun -  (0 children)

Just don't do any complex data structures. And follow the guidelines.
As long you stay within the rust-box it works ok.