You probably can compile C to WebAssembly, but:
a. That would require the browser to support WebAssembly
b. It would require me to install a NPM ( :blobcathissing: ) package of the compiler

@vaporeon_ i know of at least one somewhat popular npm library, a markdown parser, implemented in WASM compiled from C

@vaporeon_ the other day i found a video of a dude compiling bash to wasm to directly run bash scripts in the web browser

@aescling That's cursed, but also kind of funny

Imagine writing a website front-end in COBOL (transpiled into C by GNU COBOL, and then the C compiled into WebAssembly)

Follow

@vaporeon_ it was an apurril fool's joke except apparently it does just actually work.

@vaporeon_ the funny bit of it is that somehow the way he was building bash allowed him to write bash in the script tags. like

<script type="[i furget what he would put here exactly]">
echo hi mom
</script>
Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.