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
Building LightOS with React Native. The Light Phone 2 is a minimalist cellphone that was named one of Time Magazine’s best inventions of...
New
First poster: bot
Announcing TypeScript 4.1 | TypeScript. Today we’re proud to release TypeScript 4.1! If you’re unfamiliar with TypeScript, it’s a langua...
New
First poster: OvermindDL1
**Run any code on any client.**With WebAssembly and Wasmer. It’s been almost 6-months since we released Wasmer 1.0, and the community ...
New
First poster: bot
I had an “oh, duh, of course” moment a few weeks ago that I wanted to share: is WebAssembly the next Kubernetes?
New
CommunityNews
pzuraq | Four Eras of JavaScript Frameworks. A blog about (mostly) computery things
New
First poster: bot
Building a JavaScript Bundler. Learn the basics of building a JavaScript bundler.
/js
New
First poster: bot
The importance of designing accessibility in software from the ground up has only been emphasized by the pandemic, and as a consequence F...
New
First poster: bot
TypeScript Typelevel Tic-Tac-Toe: Overkill edition!. A fully functioning, dynamically sized, Tic Tac Toe Game with a UI, all on the type...
New
First poster: bot
Introducing Ezno. Introducing Ezno and the current state of the project.
New
CommunityNews
165+ JavaScript terms you need to know. Keep this JavaScript glossary bookmarked to reference variables, methods, strings, and more.
/js
New

Other popular topics Top

AstonJ
SpaceVim seems to be gaining in features and popularity and I just wondered how it compares with SpaceMacs in 2020 - anyone have any thou...
New
New
AstonJ
Inspired by this post from @Carter, which languages, frameworks or other tech or tools do you think is killing it right now? :upside_down...
New
PragmaticBookshelf
“A Mystical Experience” Hero’s Journey with Paolo Perrotta @nusco Ever wonder how authoring books compares to writing articles?...
New
New
Maartz
Hi folks, I don’t know if I saw this here but, here’s a new programming language, called Roc Reminds me a bit of Elm and thus Haskell. ...
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
First poster: bot
The overengineered Solution to my Pigeon Problem. TL;DR: I built a wifi-equipped water gun to shoot the pigeons on my balcony, controlle...
New
husaindevelop
Inside our android webview app, we are trying to paste the copied content from another app eg (notes) using navigator.clipboard.readtext ...
New
AstonJ
If you’re getting errors like this: psql: error: connection to server on socket “/tmp/.s.PGSQL.5432” failed: No such file or directory ...
New
OSZAR »