This talk has been presented at JSNation 2023, check out the latest edition of this JavaScript Conference.
Video: JavaScript Runtimes: Node.js, Deno, Bun
FAQ
The speaker suggests extending the V8 engine by implementing custom functions in C++ and linking them to JavaScript calls, effectively adding new functionalities like 'print' and 'setTimeout' to the V8 global context.
The speaker faced significant challenges, including the complexity of understanding and implementing the various components of Node.js, coordinating with experts, and the time-intensive nature of compiling and managing the required environments and libraries.
The speaker encourages taking pictures and mentioning the event on social media to help promote their work and extend the reach of the event, aiding in community building and recognition.
The key takeaway was the realization that Node.js extends functionalities by linking JavaScript with C++ operations, demonstrating that much of what seems complex is manageable with the right understanding and tools.
The speaker mentions an upcoming project to recreate React Native, indicating plans to explore and understand another complex framework by breaking it down into its fundamental components.
The speaker was motivated by a fear of being asked detailed questions about Node.js's inner workings at conferences and realized a gap in his knowledge. This led him to deeply explore and recreate Node.js to understand it better.
In the reconstruction of Node.js, the main components used were JavaScript for scripting, the V8 engine for JavaScript interpretation, C++ as a bridge for connecting JavaScript with the operating system, and libuv for managing event loops and asynchronous operations.
The tutorial and all related resources, including slides and links, are provided in the last slides of the presentation discussed in the talk.
Check out more articles and videos
We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career
Workshops on related topic
Level: intermediate
In this workshop you'll learn how to develop APIs with Fastify and deploy them to the Platformatic Cloud.
We will enhance a full-stack JS application (Node.JS backend + React frontend) to authenticate users with OAuth (social login) and One Time Passwords (email), including:- User authentication - Managing user interactions, returning session / refresh JWTs- Session management and validation - Storing the session for subsequent client requests, validating / refreshing sessions
At the end of the workshop, we will also touch on another approach to code authentication using frontend Descope Flows (drag-and-drop workflows), while keeping only session validation in the backend. With this, we will also show how easy it is to enable biometrics and other passwordless authentication methods.
Table of contents- A quick intro to core authentication concepts- Coding- Why passwordless matters
Prerequisites- IDE for your choice- Node 18 or higher
Comments