8 ms·
Writing Hello World in Web Assembly (2017)
- Willamin 7y agoIt's always nice to see a blog that doesn't have ads or even a Google tracking snippet. :)
- Wheaties466 7y agoIt is, so I sent him some BAT.
- WA9ACE 7y agoThank you, I appreciate it!
- codehalo 7y agoSame. Sent you some as well. Nice writeup.
- MuffinFlavored 7y agohttps://basicattentiontoken.org/ https://basicattentiontoken.org/ for anybody else wondering
- callahad 7y agoInteresting to compare this to the Hello World that's now possible with WASI and its fd_write function: https://github.com/CraneStation/wasmtime/blob/e530a582afe6a2b5735fd7cdf5e2e88391e58669/docs/WASI-tutorial.md#web-assembly-text-example https://github.com/CraneStation/wasmtime/blob/e530a582afe6a2...
- WA9ACE 7y agoThanks for this, I hadn't seen it before. That example is much better commented and documented than mine.
- s-macke 7y agoHere is the Hello World example for WASI in headerless C using clang. A little bit more code but also more general. https://gist.github.com/s-macke/6dd78c78be46214d418454abb667a1ba https://gist.github.com/s-macke/6dd78c78be46214d418454abb667...
- lucasmullens 7y agoSeems like Web Assembly is one of those things that's changing so fast that a 2 year old article is probably already outdated. Is this still relevant?
- s-macke 7y agoThe article describes WebAssembly at a low level and use the assembly language wast. Therefore, it is still relevant if you want to understand WebAssembly at this level. The specification has not changed in the last 2 years. However the tooling around WebAssembly changed a lot. E. g. the compilers start to fully support the wasm target.
- ashelmire 7y agoMan that is an extremely ugly language. Is this supposed to convince people to use it? Who’s designing this language?