Commit graph

21 commits

Author SHA1 Message Date
Aiden Cline
9fda73df47 fix(codemode): share memory between typed arrays and ArrayBuffer
Add ArrayBuffer, DataView and the typed array family (Int8, Uint8,
Uint8Clamped, Int16, Uint16, Int32, Uint32, Float32, Float64) on a shared
%TypedArray%. A typed array's buffer is a real ArrayBuffer, and views over
it (typed arrays, subarray, DataView, Buffer.from(arrayBuffer)) share its
memory, including across snapshots. Binary values cross extensions as
copies of their own kind and are rejected with a hint at tools and in
results.
2026-11-18 17:09:06 +00:00
Aiden Cline
db8730ebcd
fix(codemode): say why an import can't be resolved (#64587) 2026-11-17 22:45:39 -06:00
Aiden Cline
9cfff5f24d
feat(codemode): let an extension name the modules that load its globals (#64516) 2026-11-17 16:59:36 -06:00
Aiden Cline
e92fbcfba1
feat(codemode): let host functions cross back to the host and let globals be constructible (#64472) 2026-11-17 15:11:40 -06:00
James Long
b24d599d33
fix(codemode): let the runtime drop functions and await promises in host-call arguments (#64513) 2026-11-17 20:55:40 +00:00
James Long
b9029e64a0
refactor(codemode): split the language layer from Code Mode (#64487) 2026-11-17 15:21:51 -05:00
Aiden Cline
f0def1f86f
feat(codemode): let each run pick which of the runtime's extensions it gets (#64482) 2026-11-17 11:53:55 -06:00
Aiden Cline
042badd23f
feat(codemode): let a synchronous global block on an Effect (#64363) 2026-11-16 23:54:45 -06:00
James Long
a73657f3f9
refactor(codemode): flatten the VM into src and remove two-engine leftovers (#63377) 2026-11-12 13:39:15 -05:00
James Long
ffde0f7d47
feat(codemode): add a bytecode VM engine behind CodeMode.make({ engine: "vm" }) (#62357) 2026-11-06 11:37:45 -06:00
Aiden Cline
adcfc83d19
feat(codemode): let programs import globals by Node module name (#61151) 2026-11-01 21:52:57 -06:00
Aiden Cline
d9be7138b7
fix(codemode): copy extension results without trusting their own methods (#58031) 2026-10-29 21:56:25 -05:00
Aiden Cline
a882cf98a0
feat(codemode): let extension globals return Effects (#59948) 2026-10-28 13:56:18 -05:00
Aiden Cline
eb0e26b974
feat(codemode): return live iterators from keys, values, and entries (#50061) 2026-09-19 18:46:35 -05:00
Aiden Cline
cc3ce20ab4
feat(codemode): add the Headers built-in (#49280) 2026-09-19 12:35:14 -05:00
Aiden Cline
d797722187
feat(codemode): carry cause and own data across the error boundary (#49390) 2026-09-16 15:58:05 -05:00
Aiden Cline
c57733a647
refactor(codemode): before/after hooks for tool and extension calls (#49242) 2026-09-15 23:05:06 -05:00
Aiden Cline
d9dfc5c1d6
refactor(codemode): extensions are host functions only (#49196) 2026-09-15 13:42:51 -05:00
Aiden Cline
0b15abbf9a
refactor(codemode): make the host boundary JSON.stringify plus a short table (#49128) 2026-09-15 01:23:20 -05:00
Aiden Cline
9ae714d49d
feat(codemode): add Uint8Array, drop the Program prefix, and give built-ins one context (#49076) 2026-09-14 23:35:48 -05:00
Aiden Cline
3468a092c9
feat(codemode): expose host classes and functions through extensions (#48941) 2026-09-14 12:29:00 -05:00