Live data from Hacker News

Welcome to Comprehensive Rust

google.github.io

1–10 of 204 posts

Re: Welcome to Comprehensive Rust

#2
The first thing I implore everyone to do when evaluating Rust is to check out a non trivial project and start hacking on it. I have always found the compiler to be unacceptably slow in these cases, especially if you come from C rather than C++. If you work your way up from Hello World you may not ever notice this until you already invested a substantial amount of effort.

Re: Welcome to Comprehensive Rust

#3
Is this “just” a 20% project or is this more significant (like Android one day supporting Rust to develop apps)?

And I haven’t looked at everything yet, but it suggests to install Rust like this:

  sudo apt install cargo rust-src
While everyone I know uses rustup^:

  curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
^ https://rustup.rs/

Re: Welcome to Comprehensive Rust

#4
post #3

Is this “just” a 20% project or is this more significant (like Android one day supporting Rust to develop apps)? And I haven’t looked at everything yet, but it suggests to install Rust like this: sudo apt install cargo rust-src While everyone I know uses rustup^: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh ^ https://rustup.rs/

They mention rustup on the 3rd slide.

Re: Welcome to Comprehensive Rust

#5

The first thing I implore everyone to do when evaluating Rust is to check out a non trivial project and start hacking on it. I have always found the compiler to be unacceptably slow in these cases, especially if you come from C rather than C++. If you work your way up from Hello World you may not ever notice this until you already invested a substantial amount of effort.

Could you point me towards a project where this is the case? I want to try it out as I never found Rust slow to compile.

Re: Welcome to Comprehensive Rust

#6

The first thing I implore everyone to do when evaluating Rust is to check out a non trivial project and start hacking on it. I have always found the compiler to be unacceptably slow in these cases, especially if you come from C rather than C++. If you work your way up from Hello World you may not ever notice this until you already invested a substantial amount of effort.

I have never found this to be the case as long as you are using workspaces to split up the compilation units.

Re: Welcome to Comprehensive Rust

#7

The first thing I implore everyone to do when evaluating Rust is to check out a non trivial project and start hacking on it. I have always found the compiler to be unacceptably slow in these cases, especially if you come from C rather than C++. If you work your way up from Hello World you may not ever notice this until you already invested a substantial amount of effort.

> I have always found the compiler to be unacceptably slow in these cases, especially if you come from C rather than C++

I’ve found this to be highly dependent on the hardware you are using. On my 2015 MacBook Pro, Rust was slow enough to be annoying. On my new M1 Pro MacBook (which is ~9x faster), it’s fast enough for me not to notice compile times.

Re: Welcome to Comprehensive Rust

#8

The first thing I implore everyone to do when evaluating Rust is to check out a non trivial project and start hacking on it. I have always found the compiler to be unacceptably slow in these cases, especially if you come from C rather than C++. If you work your way up from Hello World you may not ever notice this until you already invested a substantial amount of effort.

Slower compile times are a small price to pay for memory safety and much higher productivity.

Re: Welcome to Comprehensive Rust

#9
post #3

Is this “just” a 20% project or is this more significant (like Android one day supporting Rust to develop apps)? And I haven’t looked at everything yet, but it suggests to install Rust like this: sudo apt install cargo rust-src While everyone I know uses rustup^: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh ^ https://rustup.rs/

They're using Rust in the android system: https://security.googleblog.com/2022/12/memory-safe-language...
Post reply on HN