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.
-
Show this thread
-
Replying to @alpha_convert
I might be able to help! Also note that you should be able to specify whether to output the .wat in S-expressions or inline format (more like x86)
1 reply 0 retweets 0 likes -
Replying to @sliminality
Are there linear-style conditionals? I wasn’t able to find any, which bugged me.
1 reply 0 retweets 0 likes -
Replying to @alpha_convert
What do you mean by that? Does `if` as described here fit the bill? https://webassembly.github.io/spec/core/text/instructions.html#control-instructions …
1 reply 0 retweets 0 likes -
Replying to @sliminality
Oops I meant inline- linear as in text, not types. Like unstructured control.
1 reply 0 retweets 0 likes
Replying to @alpha_convert @sliminality
Yes, block and loop. Still not unstructured per se, but they use go to/br.
2:29 PM - 8 Jan 2020
0 replies
0 retweets
0 likes
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