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”

Popular General Dev 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
AstonJ
Which apps do you think are killing it right now? Either from a technical perspective or ones that you like personally or feel have been...
New
New
AstonJ
I have seen the keycaps I want - they are due for a group-buy this week but won’t be delivered until October next year!!! :rofl: The Ser...
New
Rainer
Not sure if following fits exactly this thread, or if we should have a hobby thread… For many years I’m designing and building model air...
New
AstonJ
Continuing the discussion from Thinking about learning Crystal, let’s discuss - I was wondering which languages don’t GC - maybe we can c...
New
Exadra37
I am thinking in buying one as the second monitor for my Thinkpad while I am travelling: Anyone has experience in using on...
New
First poster: bot
Using Zig to Build Native Lua Scripts. Using Zig to Cross compile a Lua script for multiple arches
New
First poster: joeb
The File System Access API with Origin Private File System. WebKit supports new API that makes it possible for web apps to create, open,...
New
First poster: bot
Raspberry Pi security alarm — the basics. In November last year — I started building a DIY security alarm system, using a Raspberry Pi a...
New

Other popular topics Top

Devtalk
Hello Devtalk World! Please let us know a little about who you are and where you’re from :nerd_face:
New
malloryerik
Any thoughts on Svelte? Svelte is a radical new approach to building user interfaces. Whereas traditional frameworks like React and Vue...
New
DevotionGeo
I know that these benchmarks might not be the exact picture of real-world scenario, but still I expect a Rust web framework performing a ...
New
Exadra37
I am thinking in building or buy a desktop computer for programing, both professionally and on my free time, and my choice of OS is Linux...
New
siddhant3030
I’m thinking of buying a monitor that I can rotate to use as a vertical monitor? Also, I want to know if someone is using it for program...
New
gagan7995
API 4 Path: /user/following/ Method: GET Description: Returns the list of all names of people whom the user follows Response [ { ...
New
First poster: joeb
The File System Access API with Origin Private File System. WebKit supports new API that makes it possible for web apps to create, open,...
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
First poster: bot
Large Language Models like ChatGPT say The Darnedest Things. The Errors They MakeWhy We Need to Document Them, and What We Have Decided ...
New
PragmaticBookshelf
Author Spotlight: Bruce Tate @redrapids Programming languages always emerge out of need, and if that’s not always true, they’re defin...
New