Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4499637
README.txt
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
README.txt
View Options
ANT - Ant sized JavaScript Runtime
===================================
A minimal embedded JavaScript engine with async/await, promises, modules,
and built-in APIs for HTTP servers, timers, crypto, and JSON.
BUILD:
meson setup build && meson compile -C build
RUN:
./build/ant script.js
EXAMPLE:
See examples/server/server.js for a good server example using Ant.serve()
with Radix3 routing, parameter handling, and various response types.
MODULES:
- Ant.serve() - HTTP server
- import() - ESM module loading
- Timers - setTimeout, setInterval, queueMicrotask
- fetch() - HTTP client
- crypto.* - Cryptography
- JSON.* - JSON parsing
- console.* - Logging
- Atomics.* - Atomic operations (add, sub, and, or, xor, etc.)
- SharedArrayBuffer - Shared memory buffers
- TypedArrays - Int8Array, Uint8Array, Int32Array, etc.
FEATURES:
- Async/await and Promises
- ES6+ syntax (arrow functions, classes, template literals)
- Number literals (binary 0b1010, octal 0o755, hex 0xFF)
- Atomic operations for concurrent programming
- Signal handlers (SIGINT, SIGTERM, etc.)
- Embedded garbage collector
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 3, 8:05 AM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
530355
Default Alt Text
README.txt (1 KB)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment