Better HN
topnewbestaskshowjobs
Log inSign up

_roqj

1 karma · joined Mar 4, 2021 (5y ago) · 3 submissions

Submissions

comment 5y ago · link · parent

Yes it can! Wasm3 is the fastest WebAssembly interpreter. Since they recently adopted Cosmopolitan it became the most universal one too. Check out the 150kb APE binary they've got on the release page. https://github.com/wasm3/wasm3/releases/tag/v0.4.8

comment 5y ago · link · parent

Cosmopolitan binaries aren't interpreted. They're just flat x86 binaries. It needs a 12kb runtime that's written in C. All the runtime does is (a) polyfills magic numbers for the SYSCALL instruction and (b) boot-load from BIOS to long mode on metal w/ linux kernel style negative memory page tables. So basically, it's just glue that takes care of the ugly low-level system details so you can bolt on whatever high level language interpreter you want. For example, the Wasm3 engine recently adopted it.

comment 5y ago · link · parent

Check out Wasm3 which is the fastest WebAssembly interpreter, and since they recently adopted Cosmopolitan it's now the most universal one too. https://twitter.com/wasm3_engine/status/1354699030165676033 Cosmopolitan is designed to be complementary to visions like yours. If you believe bytecode is the future then Cosmopolitan can help your vision be successful by giving it the best performance and portability across PCs and servers.