Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
benno128
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
benno128
3y ago
G’day, if anyone has any questions about this I’m happy to answer them here.
32.
▲
Running WASI binaries from your HTML using Web Components
(runno.dev)
165 points
by
benno128
3y ago
|
72 comments
33.
▲
by
benno128
3y ago
Thanks! If you’ve got a way to add node packages to your frontend then it is pretty straightforward. If not, using unpkg ( https://unpkg.com/ ) in a script tag should work. Happy to help you figure it out! Post in the discuss
34.
▲
by
benno128
3y ago
I have a project that does this: https://runno.dev No shared state between elements, but it’s an interesting idea. Edit: It runs other languages as well, like Python, C, Ruby.
35.
▲
by
benno128
3y ago
This is just plain wrong. Web Components work in every browser that matters. They are standard DOM elements and can be written in plain HTML server-side or via legacy front-end libraries. I'm using web components in production to help
36.
▲
by
benno128
3y ago
I think framing it this way can lead to real gripes with the interface. Web Components are a great way to build individual components that can be reused across an app, website, or shared as part of a library. They are like helper function
37.
▲
by
benno128
3y ago
I’ve been using lit in side projects (e.g. runno.dev) and really enjoyed it. Just like any framework it can be a bit confusing learning the primitives but I’ve found it as productive as React, Vue or Svelte. The thing I like most about lit
38.
▲
by
benno128
3y ago
Big fan of the sizzle. Its nice to get a real persons quick short take of the tech news, rather than having to read every long winded press release rewritten as news - or worse - drinking from the firehose on twitter.
39.
▲
by
benno128
4y ago
I don't really know much about the component model, sorry!
40.
▲
by
benno128
4y ago
Good idea! It's a bit harder, but totally doable.
41.
▲
by
benno128
4y ago
Oh awesome!! I've just added Trealla to my issues list to add it to Runno. If you go into settings you can switch stdin echo on/off. I have stdio devices set up to return their file type as "Character Device" (see: http
42.
▲
by
benno128
4y ago
It’s really cool stuff, hey! Early days but really interesting applications in serverless so far.
43.
▲
by
benno128
4y ago
Good spotto! That's an old WASI runtime from wasmerjs ( https://github.com/wasmerio/wasmer-js ). That's not the WASI runtime being used in this playground. The one in this playground is @runno/wasi-motor (
44.
▲
by
benno128
4y ago
I've also put up an article with a walkthrough of how to use the playground to run FFmpeg: https://runno.dev/articles/ffmpeg
45.
▲
by
benno128
4y ago
Yeah the documentation is rather lacking and hard to understand. The best place to start is here: https://wasi.dev/
46.
▲
by
benno128
4y ago
Yeah absolutely. Webassembly.sh was a big inspiration for my original build for Runno ( https://runno.dev ). The `prompt` issue is caused by code-rot, it used to work but then stopped working after browsers standardised a workarou
47.
▲
by
benno128
4y ago
memfs is very cool, but the WASI runner in this demo doesn't use it. I implemented my own virtual filesystem (see: https://github.com/taybenlor/runno/blob/main/packages/wasi-m... ). Will look at
48.
▲
by
benno128
4y ago
Thanks! What's super neat here is that I didn't have to build that. The WASI standard defines `fd_fdstat_get` which tells the binary the type of the file descriptor. For stdin/stdout/stderr I return that it is a "Ch
49.
▲
by
benno128
4y ago
G'day! It's a bit hard to understand what this is, because there's a lot of other stuff in the space. What I've written here is a WASI runner for the browser. I've also hooked up a terminal and virtual FS to it. WAS
50.
▲
Show HN: I built a WASI playground for running CLI binaries in the browser
(runno.dev)
115 points
by
benno128
4y ago
|
24 comments
51.
▲
I built a WASI playground and you can run FFmpeg in it, which is cool
(runno.dev)
2 points
by
benno128
4y ago
|
0 comments
52.
▲
by
benno128
5y ago
There are some vegans and vegetarians who subscribe to a "no pain" version of this which allows eating creatures like oysters who verifiably can't feel pain.
53.
▲
by
benno128
5y ago
It's part of the Atomics feature set ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... ). You have a shared chunk of memory and you say "please sleep until this memory changes&quo
54.
▲
by
benno128
5y ago
There's a version of CPython 3.6 compiled here ( https://wapm.io/package/python ) which is ~5mb gzipped.
55.
▲
by
benno128
5y ago
In WebAssembly.sh ( https://github.com/wasmerio/webassembly.sh ) they run WASM binaries in a Web Worker and then use `SharedArrayBuffer` to block the WebWorker while the main thread does some work (e.g. collect input). Y
56.
▲
by
benno128
5y ago
I'm not super familiar with webassembly.studio but it does look like you could use runno to implement something like that. You'd want to look at the Host API to start with if you wanted to build a proof of concept.
57.
▲
by
benno128
5y ago
Thanks Syrus! The stuff you're all building at Wasmer has been really useful (and is super cool).
58.
▲
by
benno128
5y ago
Yeah I love the use case of documentation! Right now Runno wouldn't be great for libraries (or web requests!) but it's definitely something I'd like to support. I guess it would depend on the browser. There's two differe
59.
▲
by
benno128
5y ago
G'day! A year or so ago I was playing around with building an online Introduction to Python course, but I got distracted by this problem that seemed like it should be solved: how can I embed runnable snippets on the web? There’s a bunc
60.
▲
Show HN: Open-source web embeddable code runner
(runno.dev)
31 points
by
benno128
5y ago
|
7 comments
More ›