Live data from Hacker News

Ask HN: Is it worth investing in learning Rust?

news.ycombinator.com

51–60 of 82 posts

Re: Ask HN: Is it worth investing in learning Rust?

#51
post #37

I have written non-trivial code in Rust and Go. The thing about Rust is that it needs a bit of perseverance and experience of writing a bit of non-trivial code in Rust to really appreciate it. Writing tutorial like code won't cut it. Life-cycle of a Rust developer: https://imgur.com/kNkV7jm Good, bad and the ugly: https://imgur.com/udNcZXa With Go, in my head it is best explained in terms of the scene in the movie: P…

What does "error management story" refer to in the second pic?

Re: Ask HN: Is it worth investing in learning Rust?

#52

Earlier quoted context omitted.

Maybe I can try to chime in: Go is not an OOP language, you get the dot notation on structs and that's pretty much it. Rust is all about advanced OOP and very fussy static type checking. That said, IMHO, Go to me feels more like a replacement for Node more than a replacement for C.

> That said, IMHO, Go to me feels more like a replacement for Node more than a replacement for C. Except the first release of node was May 2009 and the first announcement of golang November 2009. Node was also first showcased in November 2009. So for me golang cannot be seen as a replacement for node just from chronological order. Also their design goals at the time seems very different.

I don't mean to imply that it was designed with that goal in mind (for all I know, the date you are quoting still leave ample opportunities for "cross-impollination"), but for day-to-day usage, every service that I would have written in Node in the past, I'm now writing in Go.

That, at least for me, feels not as much the "obvious" choice for C programs.

Re: Ask HN: Is it worth investing in learning Rust?

#53
post #51
post #37

I have written non-trivial code in Rust and Go. The thing about Rust is that it needs a bit of perseverance and experience of writing a bit of non-trivial code in Rust to really appreciate it. Writing tutorial like code won't cut it. Life-cycle of a Rust developer: https://imgur.com/kNkV7jm Good, bad and the ugly: https://imgur.com/udNcZXa With Go, in my head it is best explained in terms of the scene in the movie: P…

What does "error management story" refer to in the second pic?

For some time the dominant error handling way was 'error-chain' crate and the comment was made in that context.

Now there is a failure crate https://github.com/withoutboats/failure. It is an improvement, but it still feels that one has to type a lot for something basic. Now, this is a matter of taste and many people will be ok with this.

Re: Ask HN: Is it worth investing in learning Rust?

#54
post #37

I have written non-trivial code in Rust and Go. The thing about Rust is that it needs a bit of perseverance and experience of writing a bit of non-trivial code in Rust to really appreciate it. Writing tutorial like code won't cut it. Life-cycle of a Rust developer: https://imgur.com/kNkV7jm Good, bad and the ugly: https://imgur.com/udNcZXa With Go, in my head it is best explained in terms of the scene in the movie: P…

I recently started using Go for a bunch of small services a new product needed. I was amazed at how easy and fast it is to get up to a point of high productivity in Go. The language is really straight-forward to begin working in. Probably the most fun I've had learning a new tool in many years.

[deleted]

Re: Ask HN: Is it worth investing in learning Rust?

#56
Is it that big of an "investment" that you need to agonize over it? Flip a coin, learn whichever one. Then assuming you're not currently dying of cancer and don't get hit by a bus etc., learn the other one next. You've got plenty of time.

Your thoughts as revealed by the question fall into a pattern I recognize from when I was younger, where I used to think (for example) 6 months was like this eternity, and (for another example) what I was gonna major in was super important because it would define my life for 40 years. Ha ha, I should've been so lucky! Or rather, unlucky, because reality is much more interesting. The reality is, in 10 years you'll be learning something else entirely, and when you've been at this game a while, you start to lose count of the languages and paradigms you've learned. You get so you can pick up a language in a couple of weeks, or a weekend. Each one of them is worth it, for the things you learn along the way, and the ways it teaches you to think. Any rock is sufficient for sharpening your knife.

Re: Ask HN: Is it worth investing in learning Rust?

#58

Think of Go as a better Python and Rust as a better C. Which type of programming do you do more? Rust is harder to learn but solves some harder problems and arguably you'll learn more valuable concepts as a result.

I think that anyone using even intermediate Python features is going to find moving to Go a bitter pill to swallow.

In what sense is Go a "better Python"? My impression of Go is that it (by design) is extremely minimalistic, leading to simple, verbose code, that is understandable by the lowest common denominator, allowing large scale collaboration. And also it has good concurrency.

Re: Ask HN: Is it worth investing in learning Rust?

#59
This looks like a Perl vs Python question from late 90s.

Back then Perl had a huge traction, mostly from sysadmins. Python got traction from web backend, and systems (redhat used to have a good python conde for starting-up servers).

I think both Rust and Go will coexist un different industries/use cases.

IMHO the killer app/use for GO are lambdas/cloud functions because they are cheaper to execute than python.

For Rust, I expect to see someday a unikernel that boots an app into a VM/light container.

Re: Ask HN: Is it worth investing in learning Rust?

#60
I really think it is about the kind of dev you want to be. Judging from your question you're early in your carreer / a student: so in order to choose between these two (I'd recommend both, by the way, or as many languages as you can, but do become an expert in one), you need to choose where you want to head. Rust is often (not exclusively) used for more low level stuff, down to firmware, where Go is generally used for higher level stuff, among others networking, web and such.

I think if you find what level of programming interests you, the tools will follow from that.

Post reply on HN