Live data from Hacker News

Considering Rust [video]

youtube.com

1–10 of 46 posts

Re: Considering Rust [video]

#2
I've been getting into Rust lately and really enjoying it so far. Coming from JavaScript, It can feel a bit verbose at times and I'm still trying to get an intuitive grasp of ownership but it feels like a really small cost compared to say C/C++. A nice bonus is that it has very good support for WebAssembly/Node.js which makes it easy to start using Rust for some JavaScript modules without having to re-write the whole codebase. And finally, the community is still very noob-friendly.

Re: Considering Rust [video]

#3
> Jon Gjengset

> The Rust programming language has become a serious contender in the space of "systems" programming languages, and has recently been adopted by many of the tech giants for "serious" projects. In response to this, more companies are now considering whether they too should add Rust to their tech stack. This talk hopes to help you make that decision. We go through how the language compares to many current alternatives and what the language has to offer, but also what it's primary drawbacks are and its long-term viability prospects.

https://jon.thesquareplanet.com/slides/considering-rust/expo...

Re: Considering Rust [video]

#4
post #2

I've been getting into Rust lately and really enjoying it so far. Coming from JavaScript, It can feel a bit verbose at times and I'm still trying to get an intuitive grasp of ownership but it feels like a really small cost compared to say C/C++. A nice bonus is that it has very good support for WebAssembly/Node.js which makes it easy to start using Rust for some JavaScript modules without having to re-write the whole…

> It can feel a bit verbose at times

Certainly can, especially compared to JavaScript. The way I've come to view this (and across more languages than just Rust) is that it's a trade-off between providing more information to the compiler which it can use to catch errors, and verbosity. You can't provide the information without some input, though things like type inference can help cut down on this. IMO, it's worth it: my Rust code, once it compiles, I feel has less bugs than my equivalent Python; I'd rather fight with the compiler than with runtime exceptions.

As I've learned Rust, I also find that sometimes you can elide some parts of things. E.g., in collect() calls, you can say Vec, eliding the item in the Vec, because the iterator you're collecting it from already knows it, and it can be inferred from that.

Of course, sometimes, I think it's nice to provide the type anyways, as I find the compiler is better at inferring than I am. I've definitely spent a fair amount of time in Python looking at a variable and wondering what type IS this?

Re: Considering Rust [video]

#6
post #5

Even as a fan of Rust I've become exhausted by these posts. Surely everyone on here must at this point know what Rust is and roughly why people use it?

I guess people need to kill their time somehow while their rust code finish to compile.

Re: Considering Rust [video]

#7
I'm 20 minutes in and he's spending a lot of time talking about how Rust gets correctness right.

Are there any anecdotal stories about how Rust programs have fewer errors?

Facebook, for example, rewrote Messenger with ReasonML:

https://reasonml.github.io/blog/2017/09/08/messenger-50-reas...

And it had a lot fewer bugs:

"Messenger used to receive bugs reports on a daily basis; since the introduction of Reason, there have been a total of 10 bugs (that's during the whole year, not per week)! *"

Re: Considering Rust [video]

#8
post #5

Even as a fan of Rust I've become exhausted by these posts. Surely everyone on here must at this point know what Rust is and roughly why people use it?

I don't think Rust has reached wide acceptance yet.

Sure there are companies that use it, but I bet you'd have a hard time convincing your manager that Rust is widely accepted in industry.

Anyway, I certainly appreciate all of the posts.

Re: Considering Rust [video]

#9
post #7

I'm 20 minutes in and he's spending a lot of time talking about how Rust gets correctness right. Are there any anecdotal stories about how Rust programs have fewer errors? Facebook, for example, rewrote Messenger with ReasonML: https://reasonml.github.io/blog/2017/09/08/messenger-50-reas... And it had a lot fewer bugs: "Messenger used to receive bugs reports on a daily basis; since the introduction of Reason, there h…

firefox has tracked some stats on this that are very promising. rust and reason also share a lot of the key correctness features

Re: Considering Rust [video]

#10
post #5

Even as a fan of Rust I've become exhausted by these posts. Surely everyone on here must at this point know what Rust is and roughly why people use it?

Forget about Rust, and just think of it as a talk about why you should be considering language X. Do you still feel exhausted?

I think it would be interesting to see a breakdown of the blog posts and talks posted to HN by language.

Post reply on HN