Rust keeps making JavaScript faster

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
JavaScript recently turned 28 years old and is just as important as ever but how can we make JavaScript better by getting rid of the JavaScript of course one of the biggest Trends in the JavaScript ecosystem right now is to rewrite existing JavaScript tooling and infrastructure in Rust in this video I'll detail this shift and explain how big names like Shopify saw their build times go from over an hour to Mere seconds by switching to rust based tooling and towards the end I'll explain how you can capitalize on this Great Migration to rust tooling as well right now we are in the third age of JavaScript the first age was a long fought War for web dominance starting in the late '90s JavaScript made its way into the browser to make web pages more Dynamic and interactive but it faced Fierce competition for over a decade Technologies like Adobe Flash Java applets and Microsoft silverite emerged as a huge threat to JavaScript offering Advanced interactivity and multimedia capabilities that JavaScript simply didn't have at the time however as the web evolved so did javascript's capabilities and ecosystem coupled with its widespread adoption and open web standard JavaScript ultimately became the dominant front-end language out competing and eventually eliminating these proprietary Technologies entered the Golden Age of JavaScript between 2009 and 2019 JavaScript received major improvements to the language a suet of the language was created which provided type safety and advanced language features critical for large scale applications and front-end web apps went from Modest interactive elements to fullscale Applications with the help of advanced front-end web Frameworks and tooling but the biggest and most unexpected Innovation happened in 2010 a standalone JavaScript runtime was created allowing JavaScript to escape the browser and proliferate into the backend desktop and mobile environments JavaScript a language that was literally created in 10 days a language with a type called not a number that's actually a number a language in which you can multiply a string ring and get a valid result was now rapidly taking over everything and that's pretty much where we are today JavaScript is ubiquitous and more popular than ever but it's not 2019 anymore we've entered into a new age of JavaScript the age of oxidization you see most of the tools and infrastructure built during the Golden Age of JavaScript were written in JavaScript which means it's slow and buggy but was good enough at the time that's no longer the case as JavaScript codebases continue to grow larger and more complex these tools have become a bottleneck luckily the solution is pretty simple rewrite everything in Rust and that's exactly what's happening right now in 2020 Ryan D the creator of node.js released the Next Generation JavaScript runtime written in Rust which directly addresses the shortcomings of node like the lack of built-in typescript support and a weak security model in 2022 to emerged as a rival to electron for building desktop apps using web Technologies by leveraging rust to achieve achiev Superior performance security and flexibility T has skyrocketed in popularity posing a huge threat to electron and later that year the creator of webpack introduced a new and improved bundler called turbo pack which is written in Rust and boasts to be 700 times faster than webpack the list goes on new tools are popping up every day and they are proving to have a significant impact in December 20123 a brand new JavaScript linter written in Rust was announced and the initial results are remarkable Ox lint is 50 to 100 times faster than es lint the most popular and widely adopted JavaScript linter Evan U the creator of the view framework and the front-end Bill tool Vite tweeted that he ran Ox lint on The View code base and it finished linting in just 50 milliseconds oxin is also proving to be a massive win for big tech companies like Shopify their previous linting setup took 75 minutes to run which required them to spread out the workload across 40 plus workers in continuous integration by introducing Ox lint they were able to lint the same code base on a single worker in just 10 seconds they even caught a few bugs that their old linter missed the age of oxidation is upon us new rust based tools are popping up all over the place to speed up and secure JavaScript tools and infrastructure so what does this mean for you there are two ways you can capitalize on this gray migration to rust the first way is to Simply use these tools to speed up and secure your JavaScript code bases to get started check out the awesome Js Tooling in Rust GitHub repo where you can find a comprehensive list of rust tooling and if you want me to make a video going over how to leverage these tools along with some benchmarks let me know in the comment section below the second way you can capitalize on this Great Migration is to develop the skill set to contribute to these powerful new tools which essentially means learning rust luckily the mission of this channel is to make rust education accessible to everyone and I'm here to help you every step of the way to get started on your rust Learning Journey get your free rust cheat sheet at let's ry.com sheet hope you've enjoyed the video and remember to stay Rusty
Info
Channel: Let's Get Rusty
Views: 89,375
Rating: undefined out of 5
Keywords: #rust, #javascript, #programming, #performance, #technology, #softwareengineering, #webtools, #rustlang, #javascriptecosystem, #shopify, #buildtimes, #efficiency, #programminglanguages, #systemsprogramming, #developmenttrends, #codingcommunity, #techindustry, #digitalinnovation, #codingtips, #developercommunity, #softwaredevelopment, #codeefficiency, #computerscience, #softwaredevelopmentlife-cycle, #javascriptdevelopment, #rustprogramming, #learnprogramming, #programmingworld, #devcommunity, #javascripttools, #rusttools
Id: IGxs5v26Teg
Channel Id: undefined
Length: 5min 15sec (315 seconds)
Published: Thu Feb 08 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.