1. Introduction to High Performance Node.js
Hello, everyone. I'm Shivai Lamba. I'm currently TensorFlow.js special interest group member and also a working group member from India. And I'm also a mentor for TensorFlow, specifically for TensorFlow.js.
And today my lightning talk at Node.js Congress 2022, it's going to be on high performance Node.js powered by Rust and WebAssembly. Now first, let's briefly talk about the Moore's law. Everyone knows that the Moore's law stated that the number of transistors on a microchip doubles every two years. But if you sort of see from the previous past five years, the size limitation that has caused, has sort of limited the amount of transistors that can be set in a chip. And that has sort of resulted in a plating effect of the performance of a computer hardware. So that means is that in order to be able to overcome this limitation done by the hardware, we have to improve the software with the help of practices of improving software performance. And at the same time, these software improvement performances have to also be safe and secure at the same time.
So for that, we are going to be looking at a few tools that you can use with a lot of different server-side applications and languages such as NodeJS and Rust. Now, why to choose Rust? We have a lot of legacy programming languages like C++, but these are specifically error-prone. But Rust provides a safe, modern and is also equally, if not the same as C++ in terms of efficiency. And also, it is much more capable than NodeJS in terms of performance. You can really crank it up with a lot of highly demanding performance applications that can run very simply with the help of Rust.
2. Using WebAssembly for High Performance