Has anybody used webassembly as a compiler target for pet languages? I’m struggling with the text format- it’s a very strange mix of standard linear-format assembly and block structure.
Perhaps you just need to write more imperative code ;-) or maybe it's helpful to see it as a direct encoding of the AST? See e.g. the OCaml datatype in the reference interpreter: https://github.com/WebAssembly/spec/blob/master/interpreter/syntax/ast.ml#L71 …
-
-
I'm writing the compiler in rust in an effort to write more imperative code ;-). And that is helpful. Thanks!
-
!!! you should use my abstract binding tree generator! https://github.com/willcrichton/rabbot … bob would be proud. It has many strictures, although few affordances (hasn't worked in a few years), but I'm sure that's fixable.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
cognitive psychology. PhD