3794 / quv

QuickJS ❤️ libuv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

quv — QuickJS ❤️ libuv

This is an experiment in using libuv as the platform layer for QuickJS.

Currently the following is already implemented in the quv (formerly qjs) interpreter, using libuv:

  • TCP and UDP sockets
  • TTY handles
  • Unix sockets / named pipes
  • Timers
  • Signals
  • Basic file operations
  • Event loop
  • High-resolution time
  • Miscellaneous utility functions
  • Worker threads
  • Child processes

Other extras:

  • TextEncoder / TextDecoder APIs

See the full API.

Building

CMake is necessary. This has been mostly tested on macOS, YMLMV.

# Compile it!
make
# Run the REPL
./build/quv

About

QuickJS ❤️ libuv


Languages

Language:C 94.0%Language:JavaScript 5.5%Language:C++ 0.4%Language:CMake 0.1%Language:Makefile 0.0%