Live data from Hacker News

One Year with Rust: I wrote a full featured application in rust, and so can you

vitiral.github.io

1–10 of 39 posts

Re: One Year with Rust: I wrote a full featured application in rust, and so can you

#2
I've been doing a lot of rust lately and I have to say it blows c/c++ out of the water. Sure, c/c++ has more libs, but almost every other feature in rust is fantastic, and wrapping a clib via ffi is really easy in rust. My only (minor) complaint with rust is that they aren't pushing no_std enough IMHO, but I'm biased since all my code is no_std :) so obviously I'd like to see a lot less work in the stdlib and more on stabilizing low-level stuff and creating better apis there for doing things that are currently kind of annoying like creating your own data structs, and doing bit manipualations in fast math libs, etc.

Anyway rust is awesome, especially cargo (finally sane build/package management/versioning for a systems language). I will never code in c++ again if I can help it.

Re: One Year with Rust: I wrote a full featured application in rust, and so can you

#3
post #2

I've been doing a lot of rust lately and I have to say it blows c/c++ out of the water. Sure, c/c++ has more libs, but almost every other feature in rust is fantastic, and wrapping a clib via ffi is really easy in rust. My only (minor) complaint with rust is that they aren't pushing no_std enough IMHO, but I'm biased since all my code is no_std :) so obviously I'd like to see a lot less work in the stdlib and more on…

stop the hype, please.

Re: One Year with Rust: I wrote a full featured application in rust, and so can you

#5
post #2

I've been doing a lot of rust lately and I have to say it blows c/c++ out of the water. Sure, c/c++ has more libs, but almost every other feature in rust is fantastic, and wrapping a clib via ffi is really easy in rust. My only (minor) complaint with rust is that they aren't pushing no_std enough IMHO, but I'm biased since all my code is no_std :) so obviously I'd like to see a lot less work in the stdlib and more on…

One of their (more minor admittedly) goals this year is to improve/stabilize no_std as well as make std more portable. Looking forward to another great year in rust!

Re: One Year with Rust: I wrote a full featured application in rust, and so can you

#7
post #5
post #2

I've been doing a lot of rust lately and I have to say it blows c/c++ out of the water. Sure, c/c++ has more libs, but almost every other feature in rust is fantastic, and wrapping a clib via ffi is really easy in rust. My only (minor) complaint with rust is that they aren't pushing no_std enough IMHO, but I'm biased since all my code is no_std :) so obviously I'd like to see a lot less work in the stdlib and more on…

One of their (more minor admittedly) goals this year is to improve/stabilize no_std as well as make std more portable. Looking forward to another great year in rust!

To be clear, no_std is itself stable, but when creating a binary, you need two language items, and those aren't stable. It's not 100% clear what the right path is yet for that, but we'll get there. :)

Re: One Year with Rust: I wrote a full featured application in rust, and so can you

#8
post #2

I've been doing a lot of rust lately and I have to say it blows c/c++ out of the water. Sure, c/c++ has more libs, but almost every other feature in rust is fantastic, and wrapping a clib via ffi is really easy in rust. My only (minor) complaint with rust is that they aren't pushing no_std enough IMHO, but I'm biased since all my code is no_std :) so obviously I'd like to see a lot less work in the stdlib and more on…

So glad to hear you're loving Rust!

https://github.com/rust-lang/rust-roadmap/issues/15 is the roadmap item for some things relating to this; id you want to chime in with your pain points here, that'd be very helpful!

Re: One Year with Rust: I wrote a full featured application in rust, and so can you

#9
post #5

Earlier quoted context omitted.

One of their (more minor admittedly) goals this year is to improve/stabilize no_std as well as make std more portable. Looking forward to another great year in rust!

To be clear, no_std is itself stable, but when creating a binary, you need two language items, and those aren't stable. It's not 100% clear what the right path is yet for that, but we'll get there. :)

Can you explain what you mean by "you need two language items"? I'm just getting into Rust now and planning some bare metal stuff.

Re: One Year with Rust: I wrote a full featured application in rust, and so can you

#10
Yes. Finding Rust and doing some real things with is has been mindblowing. I have mainly Ruby/Scala/Python/Clojure background and I've only written a small lisp with C before, so Rust had some new concepts I needed to tackle. Now I've made my first app using Tokio having one asynchronious thread and a couple in sync. And even with hard concurrent/parallel code, if it compiles, it usually works.

Getting there might be a challenge sometimes, especially when you're just starting. But believe me learning Rust is worth the trouble.

Post reply on HN