CommunityNews

CommunityNews

Rust Is the Future of JavaScript Infrastructure

Rust Is The Future of JavaScript Infrastructure – Lee Robinson.
Why is Rust being used to replace parts of the JavaScript web ecosystem like minification (Terser), transpilation (Babel), formatting (Prettier), bundling (webpack), linting (ESLint), and more?

Read in full here:

This thread was posted by one of our members via one of our news source trackers.

Most Liked

OvermindDL1

OvermindDL1

Honestly the Rust ecosystem is way overcautious (which I think is a good trait). Like the Rust community mostly comes from haskell and C++ and compared to each of those Rust is like baby training wheels, lol, but they give those warnings because its what they are used to be giving with C++ and Haskell because, honestly, a lot of them think that programmers for more ‘simple’ languages like javascript and java and such things have a high learning curve to it, when they really don’t (especially with modern javascript and java and such things). Rust already does what are best practices in almost every language but it does them faster, safer, and with compiler errors to lead you on the right track (which are utterly outstanding compared to basically any language, yes that includes elixir).

I could give you a crash course from the perspective of X whatever language you know over IRC or Discord or so if you want, work looks like it will be slow today (considering over half the people are gone, lol).

But from my personal perspective, the reason why Rust might have a higher learning curve is not because its harder to learn (honestly I think it’s much easier to learn than ‘most’ languages), it just doesn’t let you write bad code, so what most languages would have accepted but would have just been outright wrong, Rust will not accept, it forces you to write good code, and that’s a skill you can take back to any other language.

EDIT: Remember the first line in the article after all, there’s a reason for this!

Rust is a fast, reliable, and memory-efficient programming language. It’s been voted the most loved programming language six years in a row (survey).

6 years! And Rust doesn’t even have a huge SO presence because they have such a large community already on their own forums, their discord server, their zulip server, and reddit, which makes it even more astounding.

AstonJ

AstonJ

Ah nice! I will definitely take you up on it one day!! :003:

For me Rust is most interesting for WASM, hopefully by the time I am ready to get into it things might have moved on a bit by then.

My current plan is:

  • Programming Erlang
  • Programming Phoenix
  • Create a small-ish app in Phoenix
  • See whether I need to read more Elixir/Erlang books or whether it’s time to check out Rust or Swift

Yew looks interesting - at some point it might be worth having a ‘State of WASM 2021/22’ thread :smiley:

While WASM isn’t the perfect solution yet, it can help developers create extremely fast web experiences. The Rust team is committed to a high-quality and cutting-edge WASM implementation. For developers, this means you could have the performance advantages of Rust (vs. Go) while still compiling for the web (using WASM).

Some early libraries and frameworks in this space:

jaeyson

jaeyson

alot of great things happening lately…

“So Many Snacks, So Little Time”

Where Next?

Popular Frontend topics Top

First poster: bot
Meltano is open source, self-hosted, CLI-first, debuggable, and extensible. Today is a big day for Meltano and open source data toolin...
New
First poster: bot
3 TypeScript Tricks I wish I knew when I learned TypeScript. TypeScript is a big Superset of JavaScript which has many features which mi...
New
First poster: bot
GitHub - marianoguerra/hiapl: HTML Is A Programming Language. HTML Is A Programming Language. Contribute to marianoguerra/hiapl developm...
New
First poster: bot
How Prime Video updates its app for more than 8,000 device types. The switch to WebAssembly increases stability, speed.
New
First poster: bot
Assertion Functions in TypeScript. TypeScript 3.7 implemented support for assertion functions in the type system. An assertion function ...
New
First poster: bot
The State of WebAssembly 2022. WebAssembly has gone through quite a transformation this last year, while the wasm language landscape is ...
New
First poster: bot
Pure CSS first person 3D website portfolio without any JavaScript. This is website portfolio of Gareth Heyes
New
First poster: bot
GitHub - boa-dev/boa: Boa is an embeddable and experimental Javascript engine written in Rust. Currently, it has support for some of the ...
New
First poster: bot
Understanding HTML with Large Language Models. Large language models (LLMs) have shown exceptional performance on a variety of natural ...
New
First poster: bot
The magical world of Particles with React Three Fiber and Shaders - Maxime Heckel’s Blog. An interactive introduction to Particles with ...
New

Other popular topics Top

AstonJ
What chair do you have while working… and why? Is there a ‘best’ type of chair or working position for developers?
New
ohm
Which, if any, games do you play? On what platform? I just bought (and completed) Minecraft Dungeons for my Nintendo Switch. Other than ...
New
PragmaticBookshelf
Design and develop sophisticated 2D games that are as much fun to make as they are to play. From particle effects and pathfinding to soci...
New
AstonJ
We have a thread about the keyboards we have, but what about nice keyboards we come across that we want? If you have seen any that look n...
New
Exadra37
I am asking for any distro that only has the bare-bones to be able to get a shell in the server and then just install the packages as we ...
New
mafinar
Crystal recently reached version 1. I had been following it for awhile but never got to really learn it. Most languages I picked up out o...
New
New
mafinar
This is going to be a long an frequently posted thread. While talking to a friend of mine who has taken data structure and algorithm cou...
New
AstonJ
Was just curious to see if any were around, found this one: I got 51/100: Not sure if it was meant to buy I am sure at times the b...
New
PragmaticBookshelf
Author Spotlight Rebecca Skinner @RebeccaSkinner Welcome to our latest author spotlight, where we sit down with Rebecca Skinner, auth...
New