4 ms·
> Rust is too hard to learn Complaints about Rust's learning curve is something I really do not get. Yes, it forces you do actually think of what you're doing
by tlamponi 6y ago
> Rust is too hard to learn
Complaints about Rust's learning curve is something I really do not get.
Yes, it forces you do actually think of what you're doing, which most devs seem to consider a Bad Thing™, but in the mid to long run it helps one enormously and it's one of the first languages of the last 30 years which actually makes lots of things better as a whole, while not being in a walled closed ecosystem.
> compiles too slow
There's definitively room for improvement here, but honestly, it's way faster than most C++ projects, and the fact that I have native support for nicely separating stuff in sub crates or workspaces, which dramatically improve iterative compiling, makes this a non-issue as long as one does not dump everything together as a pig pile.
> hard to interop with C
This is just plain wrong, it's very easy to interop with C - we're doing so with some projects, among other a library interoperating with QEMU, where the rust stuff is async (using tokio) and we can nicely integrate this into the C code of QEMU. Automatic binding generation allows you to do this quickly, albeit not very idiomatic most of the time. But manual binding generation is seldom hard, either already done on more popular stuff or one time cost, which, if one knows the code they want to bind too (they should) is rather small.
> less safe than VM-based languages
Hardly so. One is much more exposed to dynamic runtime errors in those, GC is a PITA and the VM is normally not safer than the rust std lib, as most of it is written in safe rust already and is around, battle tested for up to 5 or even 10 years.
- Const-me 6y ago> Complaints about Rust's learning curve is something I really do not get. I've been programming C++ for living since 2000, recently it's C++/17. I think I have good understanding how software works in general, including heap and ownership. Tried to use Rust a couple times for hobby project, failed for various reasons. I don't have issues picking other languages: VBScript, C#, Objective C, Python, Go had little to no learning curve. Another evidence in this thread: https://news.ycombinator.com/item?id=24878434 https://news.ycombinator.com/item?id=24878434 > while not being in a walled closed ecosystem. Wasn't always the case, but .NET is open, thanks to competition. Python always was. > it's very easy to interop with C It's equally easy and almost as efficient in C#. The issue with both, someone has to write and then support the bindings. This ain't hard but has costs, while languages like C++ or Objective-C can directly consume C libraries.