2 ms·
one of the point people are trying to make and apparently get misundertood: 1) i need to code something quickly, easily, safely, and i don't care for perf too
by zobzu 13y ago
one of the point people are trying to make and apparently get misundertood:
1) i need to code something quickly, easily, safely, and i don't care for perf too much:
* i use python2
2) i need low level access, i want to manage object copy or the lack thereof, i want to fine tune memory allocation:
* i use C (or C++)
3) I want something like python, but faster, AOT compiles, with more control:
* i use Go but its not that fast and you can't manage everything
* I use C# but outside windows APIs sucks and AOT doesn't work, and unsafe mode is unsafe
* [...]
* I use rust but the syntax is crazy and its far harder than python or Go
So.. of course, rust may not be targeted at 3) - but instead as a real C++ replacement. Turns out many still want 3 regardless - even thus rust is closer to 3 than C++.
- megaman821 13y agoIt seems number 3 is all about have solid libraries with a nice interface. If I need an API server that can handle a fair bit of traffic, having a solid, easy-to-use HTTP lib and database lib is going to go a long way. Nothing I see in Rust precludes them from delivering these things.
- zobzu 13y agogood API is indeed a necessity - and in my opinion at least 50% of the value of a language is the API - or probably more. That said, rust is still complex IMO due to both specific idioms and weird/unusual syntax.