I love Rust. Rust can be frustrating for those who didn't do enough c/c++ but once your brain and eyes get used to it, it becomes a joy to develop with. I never felt so excited writing code unless with Rust nowadays and back when I learned C++ for the first time more than 10 years ago when I was still a teenager. Rust is the closest thing to a perfect language ever existed imho. EDIT: for some reason I get mass downv…
Would you still use rust for your CRUD apps? I think of it as a specialized, safe, performant system language. I wouldn’t think of turning to it for the random rest services we constantly churn out.
From Python to Go to Rust: an opinionated journey (2018)
11–20 of 78 posts
Re: From Python to Go to Rust: an opinionated journey (2018)
#12> I compiled the code and … no error message. Everything went fine. But?! I just added a field to a struct, the compiler should say that my code is not good anymore because I’m not initializing the value where it should be! This is your big hangup with Go? You added a new field, didn’t use that field anywhere, and the compiler didn’t complain? I’ve heard a lot of valid criticisms of the language but this is a new one…
Re: From Python to Go to Rust: an opinionated journey (2018)
#13> I compiled the code and … no error message. Everything went fine. But?! I just added a field to a struct, the compiler should say that my code is not good anymore because I’m not initializing the value where it should be! This is your big hangup with Go? You added a new field, didn’t use that field anywhere, and the compiler didn’t complain? I’ve heard a lot of valid criticisms of the language but this is a new one…
It's a pretty big annoyance with Go though. I hate that all struct fields are optional.
Re: From Python to Go to Rust: an opinionated journey (2018)
#14Re: From Python to Go to Rust: an opinionated journey (2018)
#15Earlier quoted context omitted.
It's a pretty big annoyance with Go though. I hate that all struct fields are optional.
there are times when a nil struct field is useful, like for trees and json. very easy to require struct fields by using a constructor
Re: From Python to Go to Rust: an opinionated journey (2018)
#16That's not how engineering works.
> I realized that I couldn’t rely on the compiler to get my back when I was doing mistakes
That's not how engineers work.
> a compiler that should not rely on the fact that I know how to code
I don't even know what to say anymore.
Re: From Python to Go to Rust: an opinionated journey (2018)
#17I love Rust. Rust can be frustrating for those who didn't do enough c/c++ but once your brain and eyes get used to it, it becomes a joy to develop with. I never felt so excited writing code unless with Rust nowadays and back when I learned C++ for the first time more than 10 years ago when I was still a teenager. Rust is the closest thing to a perfect language ever existed imho. EDIT: for some reason I get mass downv…
Would you still use rust for your CRUD apps? I think of it as a specialized, safe, performant system language. I wouldn’t think of turning to it for the random rest services we constantly churn out.
With that said, I definitely wouldn't throw Rust at the Python/Go devs in my shop expecting them to be better/faster at it. It can have significant spin up time and, most importantly, if you're used to doing things unsafely by using bad patterns Rust will be hell for you.
I commented recently that I think Rust can be far more simple than people give it credit for. Namely, that you can write Rust in the same manner as Go, pretending Rust was Go. However going far beyond that too quickly is a world of hurt, from personal experience at least.
Re: From Python to Go to Rust: an opinionated journey (2018)
#18I went from python to go to nim. Actually I still like go - but nim is an easy transition from python. I think nim is the best thing out there for building tiny CLI utilities. It’s a fun language to code in.
I wonder if there's any performance difference between Cython and Nim.
Re: From Python to Go to Rust: an opinionated journey (2018)
#19Re: From Python to Go to Rust: an opinionated journey (2018)
#20I love Rust. Rust can be frustrating for those who didn't do enough c/c++ but once your brain and eyes get used to it, it becomes a joy to develop with. I never felt so excited writing code unless with Rust nowadays and back when I learned C++ for the first time more than 10 years ago when I was still a teenager. Rust is the closest thing to a perfect language ever existed imho. EDIT: for some reason I get mass downv…