mcc on Nostr: Nobody asked, but having now done some work in the WAST/WAT/Wasm Textual format, ...
Nobody asked, but having now done some work in the WAST/WAT/Wasm Textual format, here's how I would change it if I got the opportunity:
- Keep the S-expression structure, but stop pretending it's "a LISP", describe it as the Wasm S-Expression Syntax or something
- Put the operator at the *end*; parenthesis are now *only* hints to the typechecker.
So (i32.const 10 (i32.const 3 i32.const 8 i32.add) i32.mul) is legal
(i32.const 10 (i32.const 3 i32.mul)) is an error because mul wants 2 i32 args
Published at
2026-10-10 02:02:34 UTCEvent JSON
{
"id": "ad350da4f4f5712ccc5ef4fbe90f6ba1efac552fe9bcf428fdb0b94f841713f0",
"pubkey": "a3162b9720f6b515ac4bd22d5ea4abf0f85f5685130dca40f46fe684fe85b255",
"created_at": 1791597754,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/mcc/statuses/117414150464767442",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub"
]
],
"content": "Nobody asked, but having now done some work in the WAST/WAT/Wasm Textual format, here's how I would change it if I got the opportunity:\n\n- Keep the S-expression structure, but stop pretending it's \"a LISP\", describe it as the Wasm S-Expression Syntax or something\n\n- Put the operator at the *end*; parenthesis are now *only* hints to the typechecker.\n\nSo (i32.const 10 (i32.const 3 i32.const 8 i32.add) i32.mul) is legal\n\n(i32.const 10 (i32.const 3 i32.mul)) is an error because mul wants 2 i32 args",
"sig": "de75342c40be2260e891979b43713451f9e96e7a1496d03c7b85003b0dbd72901d81cebf3e380a2b9a37830fd98143f7cd953b9d39b01c413a437970be5fb98c"
}