Live data from Hacker News

Spin – WebAssembly Framework

fermyon.com

1–10 of 76 posts

Re: Spin – WebAssembly Framework

#2
This looks promising. I'm amazed at the kinds of places WebAssembly has found its way into.

I myself am working on putting WebAssembly as a UI reconciliation engine.

1. You write your UI component spec (similar to React) in a language of your choice.

2. This compiles down to a WASM module, that knows how your state interplays with your UI tree.

3. A platform specific embedder can then write a tiny layer of renderer that translates commands from the WebAssmelby VM into native UI updates.

This way we can liberate UI programming from being too close to a platform and possibly could run on servers (damn fast SSR)

I'm attempting a proof of concept and I've logged my thoughts as I'm working through the project - https://github.com/joelewis/kwasm/blob/master/notes.txt

Github renders text files without line wrappings, so here's the raw link: https://raw.githubusercontent.com/joelewis/kwasm/master/note...

Re: Spin – WebAssembly Framework

#3
post #2

This looks promising. I'm amazed at the kinds of places WebAssembly has found its way into. I myself am working on putting WebAssembly as a UI reconciliation engine. 1. You write your UI component spec (similar to React) in a language of your choice. 2. This compiles down to a WASM module, that knows how your state interplays with your UI tree. 3. A platform specific embedder can then write a tiny layer of renderer t…

Those links are returning 404. Is it a private repo?

Re: Spin – WebAssembly Framework

#4
post #2

This looks promising. I'm amazed at the kinds of places WebAssembly has found its way into. I myself am working on putting WebAssembly as a UI reconciliation engine. 1. You write your UI component spec (similar to React) in a language of your choice. 2. This compiles down to a WASM module, that knows how your state interplays with your UI tree. 3. A platform specific embedder can then write a tiny layer of renderer t…

Those links are returning 404. Is it a private repo?

Public now. Thanks for pointing out.

Re: Spin – WebAssembly Framework

#5
post #2

This looks promising. I'm amazed at the kinds of places WebAssembly has found its way into. I myself am working on putting WebAssembly as a UI reconciliation engine. 1. You write your UI component spec (similar to React) in a language of your choice. 2. This compiles down to a WASM module, that knows how your state interplays with your UI tree. 3. A platform specific embedder can then write a tiny layer of renderer t…

Hi! (one of the authors of Spin here.)

As you can assume, we are just as excited about all the places where we can run WebAssembly! That's a pretty intriguing idea, looking forward to seeing it evolve!

Re: Spin – WebAssembly Framework

#7

We went full circle... microservices in web assembly.... one of the worst idea of this decade

Hi! (one of the authors of Spin here) Interesting to hear your thoughts on this, why do you think that?

We believe that the things that make WebAssembly attractive in the browser (compact binary, near-native speed, the sandbox isolation model) make it really compelling outside the browser, on the server.

Re: Spin – WebAssembly Framework

#8

We went full circle... microservices in web assembly.... one of the worst idea of this decade

How so? I think WASM has major benefits for specific applications, especially for sandboxing, and running things in a cross-platform way. As far as I can tell, it's not that different from what Java and C# do (compile to your own bytecode, run that in a VM), except that you only give it access to specific functions.

While it might be slightly slower than running native code, I think that for certain users those are benefits that they can't overlook.

Re: Spin – WebAssembly Framework

#9
I applaud their effort on this! It's great to see push from more companies of WebAssembly on the server-side (disclaimer, I work at Wasmer).

I have one nit about the article though. I think I haven't seen the claimed support for the Component Model anywhere in the code (other than naming the Wasm modules components), as its mainly based on the extent of WebAssembly Interface Types (WIT). Could anyone from the team give more info on where the Component Model proposal is actually used?

Re: Spin – WebAssembly Framework

#10
post #2

This looks promising. I'm amazed at the kinds of places WebAssembly has found its way into. I myself am working on putting WebAssembly as a UI reconciliation engine. 1. You write your UI component spec (similar to React) in a language of your choice. 2. This compiles down to a WASM module, that knows how your state interplays with your UI tree. 3. A platform specific embedder can then write a tiny layer of renderer t…

Cool project

> Github renders text files without line wrappings

Save it as .md not .txt and it should work

Post reply on HN