First. I love F#. But it didn't take off in the market, so I'm learning Rust. What I tend to see is that Rust does have a higher learning curve, because you have to change your brain's way of approaching problems. The 'functional' way of viewing things. (plenty of past flame wars on functional programming, so not trying to start that here) Once you do learn Rust (or functional), it is safer, better, faster. But if yo…
Tell HN: Rust is the superglue
31–38 of 38 posts
Re: Tell HN: Rust is the superglue
#32Rust is awesome and could replace both JS and PY at exactly what they’re supposedly good at. The main issue is compatibility and library availability.
Not a professional, just wrote some Python. I definitely find Rust difficult to learn. Mutability, variable borrowing, variable lifecycles etc, do I really need this? Personally I only want to learn another language rather than Python for performance issues, and C++ is far easier and a lot more intuitive.
Re: Tell HN: Rust is the superglue
#33First. I love F#. But it didn't take off in the market, so I'm learning Rust. What I tend to see is that Rust does have a higher learning curve, because you have to change your brain's way of approaching problems. The 'functional' way of viewing things. (plenty of past flame wars on functional programming, so not trying to start that here) Once you do learn Rust (or functional), it is safer, better, faster. But if yo…
Rust isn't really a functional language at all? It's pretty much just an imperative language with some type level features.
Like Haskell [1], writing in a higher level style can give the compiler enough information to get you non-trivial performance gains [2].
It's not just an imperative language. It's multi-paradigm and can be written in a more functional style.
You can just look at the ML family of languages and see which features Rust has that C/Java/Python don't.
[0] https://doc.rust-lang.org/book/ch13-00-functional-features.h...
[1] https://stackoverflow.com/questions/35027952/why-is-haskell-...
[2] https://ipthomas.com/blog/2023/07/n-times-faster-than-c-wher...
Re: Tell HN: Rust is the superglue
#34Just FYI, the market for C++ is excellent and has been for years, but I've yet to receive any well paid Rust project offer. My impression is that most people working with Rust are idealists (and not businesspeople) and the salaries reflect that.
Re: Tell HN: Rust is the superglue
#35Re: Tell HN: Rust is the superglue
#36Rust seems monumentally unsuited as a glue language like Perl or Bash. It is statically typed, compiled, makes strong assumption about the code, is relatively hard to write/learn and somewhat verbose. Rusts reason for existence and main goal is replacing C++. >For machine learning, we have the Py ecosystem A very bad state of affairs to be sure and also not really true as python is just a thin layer ontop of the actu…
>python is just a thin layer ontop of the actual code running the networks, which are written in C++ or loaded of to GPUs. Or Rust which is under libraries such as Polars. In other words: python is the glue in the data science world.
Rust is not the glue. It is a building block.
Re: Tell HN: Rust is the superglue
#37Just FYI, the market for C++ is excellent and has been for years, but I've yet to receive any well paid Rust project offer. My impression is that most people working with Rust are idealists (and not businesspeople) and the salaries reflect that.
Rust is pretty popular among crypto trading firms and those tend to pay very well.
Re: Tell HN: Rust is the superglue
#38Rust is great in the sense that it is very suitable for being embedded into other software as it doesn't have a runtime system (like e.g. Golang) and can be compiled for almost any architecture. Rust's usability for "regular" programmers and technical users is horrible in my opinion. I e.g. worked with scientists a lot (and was one myself) and in my lab everyone could wrap their head around Python in a couple of days and become productive very fast, whereas most people would throw in the towel when they had to write low-level code in C/C++. In terms of learning curve and complexity I would put Rust somewhere in the same ballpark with C++. There are many differences and Rust has a much better developer experience as it has a modern package manager and the toolchain is much nicer, but it's still a low-level language with many intricacies.