WebAssembly and its platform targets
snarky.ca
snarky.ca
[1] https://discuss.python.org/t/make-wasm-a-1st-class-platform-...
It should be easier than this.
Did you try wasm-pack?
I know that cargo compiles C, but it really should not be that hard to compile C code to WASI and provide a libc that works with WASI. The emscripten backend worked well except for this one minor issue, but when I asked online, I got a response that made it seem like I was being ridiculous for using emscripten in 2022. Meanwhile the WASI backend is clearly not mature yet either.
clang --target=wasm32
That's it, you target WASMPeople somewhere decided that it was too easy and went ahead to bloat everything with Emscripten, WASI and the like
Here is all you need to know to target WASM: https://schellcode.github.io/webassembly-without-emscripten
The only target for WASM is the browser, everything else is just bloat and a waste of energy
In software development, a platform target triple (also known as a "target triple") is a string that specifies the target platform for which a piece of software is built.
And then he writes the definition below that:
This platform target triple specifies the CPU, vendor, and platform/OS that you're targeting.
Why quote ChatGPT? Just delete that sentence, and the article is better.
Meta: Did HN change the karma requirements to flag articles?