Building a Runtime with QuickJS
Summary
This article documents building a minimal JavaScript runtime on QuickJS, adding console output, uptime, timers, and both sync and async I/O. It covers implementing a host-driven event loop, a small thread pool for async file reads, and integration with QuickJS to run JS code and manage promises. It also includes a benchmark comparing startup times to Node.js and notes on QuickJS's strengths for lightweight runtimes.