Live data from Hacker News

Tiny WASI – A tiny WASI runtime written in TypeScript

github.com

1–10 of 22 posts

Re: Tiny WASI – A tiny WASI runtime written in TypeScript

#3
post #2

This has ~5 syscalls written, almost everything is "undefined", not sure why it got posted. If you want an actual complete tiny WASI runtime in TypeScript, Deno has a full one: https://deno.land/std@0.127.0/wasi/snapshot_preview1.ts

For the fun of it?

Re: Tiny WASI – A tiny WASI runtime written in TypeScript

#4
post #2

This has ~5 syscalls written, almost everything is "undefined", not sure why it got posted. If you want an actual complete tiny WASI runtime in TypeScript, Deno has a full one: https://deno.land/std@0.127.0/wasi/snapshot_preview1.ts

The aim isn't to be complete, it's to be tiny like the name says!

Real-world usage: https://github.com/qrdate/mt63_wasm/blob/master/src/MT63-tx....

Re: Tiny WASI – A tiny WASI runtime written in TypeScript

#5
post #2

This has ~5 syscalls written, almost everything is "undefined", not sure why it got posted. If you want an actual complete tiny WASI runtime in TypeScript, Deno has a full one: https://deno.land/std@0.127.0/wasi/snapshot_preview1.ts

Big downvote from me. Tiny projects are the best way to learn a system. Nobody needs a higher bar for getting started learning some tech. Do a tiny/toy version and keep improving (either in that project or your next one)!

Edit: or in this case it seems the tiny is the goal itself. That's cool too. See also: suckless.org, UNIX philosophy, etc.

Re: Tiny WASI – A tiny WASI runtime written in TypeScript

#6
post #4
post #2

This has ~5 syscalls written, almost everything is "undefined", not sure why it got posted. If you want an actual complete tiny WASI runtime in TypeScript, Deno has a full one: https://deno.land/std@0.127.0/wasi/snapshot_preview1.ts

The aim isn't to be complete, it's to be tiny like the name says! Real-world usage: https://github.com/qrdate/mt63_wasm/blob/master/src/MT63-tx....

Nice work! Do you plan to implement the rest as well or is this done?

Re: Tiny WASI – A tiny WASI runtime written in TypeScript

#7
post #4
post #2

This has ~5 syscalls written, almost everything is "undefined", not sure why it got posted. If you want an actual complete tiny WASI runtime in TypeScript, Deno has a full one: https://deno.land/std@0.127.0/wasi/snapshot_preview1.ts

The aim isn't to be complete, it's to be tiny like the name says! Real-world usage: https://github.com/qrdate/mt63_wasm/blob/master/src/MT63-tx....

Fair

Re: Tiny WASI – A tiny WASI runtime written in TypeScript

#8
post #4

Earlier quoted context omitted.

The aim isn't to be complete, it's to be tiny like the name says! Real-world usage: https://github.com/qrdate/mt63_wasm/blob/master/src/MT63-tx....

Nice work! Do you plan to implement the rest as well or is this done?

The motivation was to try to get the MT63 encoder into as small of a footprint as possible, trying to minimise the Lambda bootup time and memory usage from API requests on our end, while learning WASI at the same time. It worked well for that! Ideas are welcome though!

It's live on our site (https://qrdate.org). Press the "Sonify" button to hear the transmission.

Re: Tiny WASI – A tiny WASI runtime written in TypeScript

#9
post #2

This has ~5 syscalls written, almost everything is "undefined", not sure why it got posted. If you want an actual complete tiny WASI runtime in TypeScript, Deno has a full one: https://deno.land/std@0.127.0/wasi/snapshot_preview1.ts

Wasmer has also a Rust-compiled-to-Wasm runtime available for Deno:

https://deno.land/x/wasm@v1.0.2/README.md

Re: Tiny WASI – A tiny WASI runtime written in TypeScript

#10
post #2

This has ~5 syscalls written, almost everything is "undefined", not sure why it got posted. If you want an actual complete tiny WASI runtime in TypeScript, Deno has a full one: https://deno.land/std@0.127.0/wasi/snapshot_preview1.ts

Big downvote from me. Tiny projects are the best way to learn a system. Nobody needs a higher bar for getting started learning some tech. Do a tiny/toy version and keep improving (either in that project or your next one)! Edit: or in this case it seems the tiny is the goal itself. That's cool too. See also: suckless.org, UNIX philosophy, etc.

Are we going to post every 200-line project to HN too?

Tiny projects are fine, but they don't all need to be posted to HN.

Post reply on HN