Re:Tiny WASI – A tiny WASI runtime written in TypeScript
by eatonphil on Tuesday March 15, 2022 @10:28PM
(#30694614)
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
by mushyhammer on Wednesday March 16, 2022 @12:23AM
(#30695296)
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.
Re:Tiny WASI – A tiny WASI runtime written in TypeScript
by hutzlibu on Wednesday March 16, 2022 @03:46AM
(#30696303)
"Tiny projects are fine, but they don't all need to be posted to HN."
I rather would have more tiny projects, than political discussions to dive in, to be honest.
Re:Tiny WASI – A tiny WASI runtime written in TypeScript
by eyelidlessness on Wednesday March 16, 2022 @01:29AM
(#30695632)
Lots of tiny projects get posted here and get lots of positive attention. It seems mostly to depend on the audience who looks and the time of day when it becomes widely visible. HN itself welcomes posting projects, “show” being a first class part of the site (which if I’m not mistaken this was originally a “show” post). Maybe just show your lack of interest by looking at the next thing?
Re:Tiny WASI – A tiny WASI runtime written in TypeScript
by jedisct1 on Wednesday March 16, 2022 @09:29AM
(#30698533)
Only if they are written in Rust.
Re:Tiny WASI – A tiny WASI runtime written in TypeScript
by miunau on Tuesday March 15, 2022 @10:14PM
(#30694502)
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
by eatonphil on Tuesday March 15, 2022 @10:29PM
(#30694626)
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
by miunau on Tuesday March 15, 2022 @10:50PM
(#30694779)
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
by jahewson on Tuesday March 15, 2022 @10:49PM
(#30694763)
Fair
Re:Tiny WASI – A tiny WASI runtime written in TypeScript
by syrusakbary on Tuesday March 15, 2022 @11:56PM
(#30695144)
Wasmer has also a Rust-compiled-to-Wasm runtime available for Deno:
Re:Tiny WASI – A tiny WASI runtime written in TypeScript
by williamstein on Wednesday March 16, 2022 @01:58AM
(#30695783)
And here is the more lightweight and flexible (in some ways) one from Wasmer, before they completely rewrote it in Rust:
https://github.com/sagemathinc/JSage/tree/main/packages/wasi
It took me some work to track down the old version, fix some bugs in it, and keep it going. But I personally find the old version very useful too, and if you can see from the comments that it has an interesting history.
Re:Tiny WASI – A tiny WASI runtime written in TypeScript
by krona on Wednesday March 16, 2022 @07:09AM
(#30697390)
The Deno WASI runtime doesn't run in a browser, it only runs in Demo. So this tiny mostly unimplemented API is still infinitely more useful to me than the Deno implementation.
Re:Tiny WASI – A tiny WASI runtime written in TypeScript
by felipellrocha on Tuesday March 15, 2022 @09:47PM
(#30694309)
For the fun of it?
If you want an actual complete tiny WASI runtime in TypeScript, Deno has a full one:
https://deno.land/[email protected]/wasi/snapshot_preview1.ts