Skip to content
Proyek

Tentang

⌒ JavaScript on the BEAM

Bahasa pemrograman dan runtime

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
+2
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

arc ⌒

JavaScript on the BEAM

js

Arc is a JavaScript engine and runtime written in Gleam. It implements the ECMAScript spec. On its own it has no effects, timers or I/O. The program that embeds Arc provides those, and Arc's embedding API makes that easy.

There's also Spark, a Node.js compatibility layer for Arc. Spark does provide I/O and timers, such as fs.readFile and setTimeout. You can think of Arc as the equivalent of JSC or V8, and Spark as the equivalent of Bun or Node.js.

Arc's API can change from one commit to the next, which is true of many engines. We recommend pinning to a commit SHA and upgrading on a regular schedule.

By default Arc interprets JavaScript, but it can also compile JavaScript to Erlang ahead of time (AOT). AOT has tradeoffs, and we don't recommend it for dynamic code, such as code generated at runtime. Arc runs on Erlang/OTP, and in the browser on our own fork of AtomVM compiled to WebAssembly. We forked AtomVM to make it faster in the browser.

Arc is tested against test262 on every commit:

test262 conformance chart



Arc uses the Mozilla Public License, Version 2.0.

Jelajahi proyek terkait

Memuat…