You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
eval: WASI builtins (clock_now_ms, env_*, arg_*, file_*, net_*) type-check but are unbound in the interpreter #852
bindingsABI, FFI, WASM, and cross-language interop surfacesbugSomething is broken or behaves incorrectlymeta:umbrellaParent issue aggregating child issuespriority:p2Normal - queue itscope:repoConfined to this repositorystatus:readyFully specified and ready to be picked up
The interpreter does not provide the WASI builtins. Programs that use them type-check, then fail at run time under affinescript eval. The failure is loud.
Problem: WASI builtins seeded in lib/resolve.ml / lib/typecheck.ml (clock_now_ms, env_*, arg_*, file_*, net_*) type-check but are not bound in lib/interp.ml. affinescript eval then fails at run time with Runtime error: Unbound variable: clock_now_ms. Reproduced on 161eaaf.
Expected:eval either runs these builtins, or rejects them before execution with a clear "not available in the interpreter" error. This matters because the interpreter is the reference backend (#833).
Missing: which of the two options is preferred, intended eval semantics for file_*/net_*
bindingsABI, FFI, WASM, and cross-language interop surfacesbugSomething is broken or behaves incorrectlymeta:umbrellaParent issue aggregating child issuespriority:p2Normal - queue itscope:repoConfined to this repositorystatus:readyFully specified and ready to be picked up
Activity
whatproblem-ai commentedon Dec 1, 2026
Problem: WASI builtins seeded in
lib/resolve.ml/lib/typecheck.ml(clock_now_ms,env_*,arg_*,file_*,net_*) type-check but are not bound inlib/interp.ml.affinescript evalthen fails at run time withRuntime error: Unbound variable: clock_now_ms. Reproduced on161eaaf.Expected:
evaleither runs these builtins, or rejects them before execution with a clear "not available in the interpreter" error. This matters because the interpreter is the reference backend (#833).Missing: which of the two options is preferred, intended
evalsemantics forfile_*/net_*Clarity: 91%. Clear enough to work on.
⌨️ Commands · 💬 Have feedback? Tell us · 🎯 New here? Add WhatProblem to your repo · 🔒 Privacy