Discussion: Post / Link / Share Code Objects?

Wacky idea: add a code Object Type that would consist of WebAssembly modules and optional source code. The code Object would potentially have imports and exports, allowing a user to link together multiple code posts into another executable (either statically or by “dynamically” linking against the code IRI) or library.
Would really open up new avenues for experimentation and social coding taking advantage of the cool new possibilities afforded by WASM and ActivityPub.

Totally insane idea? Could be cool? Maybe even useful?

Could be interesting to have for some specific uses cases but would have to avoid being too near a botnet: “Network(s) giving the ability for a minority/single-person to execute/update code without explicit consent to a large swarm of end nodes owned by other people” (which is why automatic software updates are considered botnets by some)

I think just using rich-text and/or attachments is enough. At least until someone has a good use case.

I was imagining the code primarily for being run client-side in the browser