Live data from Hacker News

An interactive guide to learning Rust

github.com

1–10 of 55 posts

Re: An interactive guide to learning Rust

#4

What's the relevance of learning Rust for someone into web development?

As a web developer, you can write servers that take orders of magnitude less space, memory, and CPU than a similar JS server, without having to deal with the madness that is first-time C development.

Re: An interactive guide to learning Rust

#5

What's the relevance of learning Rust for someone into web development?

rust compiles to web assembly

What kinds of things could you do with web assembly that you can’t do in native JavaScript? I know very little about web development.

Re: An interactive guide to learning Rust

#6

Earlier quoted context omitted.

rust compiles to web assembly

What kinds of things could you do with web assembly that you can’t do in native JavaScript? I know very little about web development.

You can run code written in a language you are comfortable with and run web code really, really fast. It's not an "either JS or WebAssembly", they can work together. Worth reading up on if you are interested - https://developer.mozilla.org/en-US/docs/WebAssembly

Re: An interactive guide to learning Rust

#7

Earlier quoted context omitted.

rust compiles to web assembly

What kinds of things could you do with web assembly that you can’t do in native JavaScript? I know very little about web development.

Mostly it lets you not use JavaScript, which you may or may not be excited about, depending on how much you think the problem with web development is JS.

Re: An interactive guide to learning Rust

#8

Earlier quoted context omitted.

rust compiles to web assembly

What kinds of things could you do with web assembly that you can’t do in native JavaScript? I know very little about web development.

It gets you very close to native performance while running in your browser and browser sandbox. That's mind-blowing.

You'd still use JS for UI stuff, but WASM lets you run algorithmic or CPU intensive tasks like e.g. games, video decoding, image resizing, AI, or anything else you need fast performance for client-side.

Re: An interactive guide to learning Rust

#9

Earlier quoted context omitted.

What kinds of things could you do with web assembly that you can’t do in native JavaScript? I know very little about web development.

It gets you very close to native performance while running in your browser and browser sandbox. That's mind-blowing. You'd still use JS for UI stuff, but WASM lets you run algorithmic or CPU intensive tasks like e.g. games, video decoding, image resizing, AI, or anything else you need fast performance for client-side.

There was a demo the other day of Rust outperforming JS for stuff JS usually does. Presumably this will continue to improve, so it won't even be a case of equivalent, it'll be a case of "thoroughly beats the pants off".

Re: An interactive guide to learning Rust

#10

What's the relevance of learning Rust for someone into web development?

As a web developer, you can write servers that take orders of magnitude less space, memory, and CPU than a similar JS server, without having to deal with the madness that is first-time C development.

Give me something that can run ReactDOM.renderToString() faster, and I'm all ears. Until that day (and I'm kinda hoping it comes) I'm a bit stuck.
Post reply on HN