News for hackers. Stuff that matters.
Re:Sustainability with Rust by aaaaaaaaaaab on Saturday February 12, 2022 @11:10AM (#30313814)
Ah yes, we'll save the planet by writing web services in Rust, which serve inefficient, bloated webapps to billions people, with browsers constantly spinning the CPU near thermal shutdown...

If you want to save energy, write small software. Small, local, self-contained software. Not everything has to be a webapp. In fact, most things shouldn't.

Re:Sustainability with Rust by sodality2 on Saturday February 12, 2022 @11:11AM (#30313824)
WASM is more efficient than JS...
Re:Sustainability with Rust by culi on Saturday February 12, 2022 @11:13AM (#30313839)
I think they were just pointing out that software architecture will usually make a much bigger impact on efficiency and energy usage than language choice

A bloated app is wasteful no matter what language its in

Re:Sustainability with Rust by sodality2 on Saturday February 12, 2022 @11:19AM (#30313880)
Ah, okay, that makes sense :D I agree
Re:Sustainability with Rust by Jcampuzano2 on Saturday February 12, 2022 @11:36AM (#30314024)
It highly depends on what the use case is.

For most use cases JS is still more performant than WASM unless you're doing a lot of very heavy number crunching which the vast majority of WebApps aren't.

Browser vendors have done a ton to make JS fast.

Re:Sustainability with Rust by habibur on Saturday February 12, 2022 @11:18AM (#30313879)
> WASM is more efficient than JS...

Last time I checked it wasn't. That's a few years back. I would be really happy if it is now.

Re:Sustainability with Rust by hu3 on Saturday February 12, 2022 @01:36PM (#30315061)
WASM does not have native access to DOM for starters.
Re:Sustainability with Rust by Abishek_Muthian on Tuesday February 15, 2022 @01:20AM (#30343403)
> Not everything has to be a webapp. In fact, most things shouldn't.

And be at the mercy of monopolies.

Re:Sustainability with Rust by singh_ on Saturday February 12, 2022 @12:09PM (#30314323)
exactly. Or consume less products.