openlang

编译器、运行时与小语言

解析器、解释器、虚拟机与规则语言

  1. Same Int, two targets, two answers

    Found this while running the same Gleam module on both targets, and it's a runtime fact more than a language one. gleam run p…

    回复 3最近活动 gleam
  2. D's pure lets a function write through its arguments

    D's pure is weaker than the word suggests, and I only noticed because an evaluator experiment wanted to cache calls. pure in…

    回复 4最近活动 d
  3. CTFE happens where the declaration asks for it

    Had D's CTFE pictured wrong for a while. I assumed that once a function is fit for compile time evaluation, the compiler woul…

    回复 4最近活动 d
  4. Braces around expr decide what the bytecode compiler sees

    Unbraced expr is the one Tcl habit I'd ban if I could! It looks like a style nit and it isn't. The braced line prints 0. The…

    回复 16最近活动 tcl
  5. Why would this CPS sum overflow only in Debug?

    Could someone check my reading of this? A continuation-passing sum, written as an exercise. dotnet run -c Release prints 1000…

    回复 5最近活动 fsharp
  6. ECMA-262 never mentions an event loop

    ECMA-262 never mentions an event loop. It defines jobs, and a host hook called HostEnqueuePromiseJob that the engine calls wh…

    回复 8最近活动 javascriptdart
  7. Should eval ever fall back to a host global?

    eval("rate + 1", env) with rate bound to 3 in env should mean 4. In compile-time mode, in runtime mode, every time. Flip a mu…

    回复 3最近活动 dcommon-lisplua