A toy javascript runtime that mimics nodejs behaviorπ¦
- V8 engine: To compile and execute javascript code
- LibUv: To initiate event loop, threads etc
- C++: A C++ written layer to utilize above libraries and to introduce some custom functions like print, timeout etc
- Check v8 docs to setup v8 on your machine.
- Check LibUv docs to setup LibUv on your machine
- C++ compiler
To run JS code you need to first start the environment. To start run on your terminal
./start.sh
This will start the environment in watch mode. Write your JS code in example.js
file.
β In Vixen console.log is replace with display and setTimeout & setTimeInterval are replaced with a generic function timeout.
- Vixen is just a toy runtime and it does not contains the full features of the nodejs or any other runtime
- The setup may be tiresome for a few because v8 and LibUv does not support all kind of CPU architectures.
ππ»ββοΈ Yo! It's Meer, a senior year CS undergrad. Let's get connected