Live data from Hacker News

Spin 2.0 – open-source tool for building and running WASM apps

fermyon.com

31–38 of 38 posts

Re: Spin 2.0 – open-source tool for building and running WASM apps

#31
post #9

Earlier quoted context omitted.

Congrats on the release! Question how did you come up with your the languages you support. Obviously how well the language compiles to Wasi is a factor, but how did you end up picking C# for instance? Additionally how does Javascript support work? Are you embedding QuickJS?

Thank you! To your point, the primary consideration for choosing the languages is their support for WebAssembly, and WASI in particular. Due to Spin's heavy use of WASI and the component model, languages that have first party support in the WIT bindings generator ( https://github.com/bytecodealliance/wit-bindgen ) are the easiest to implement, followed by languages that can be built on top of the support for those wi…

Why you guys keep using this old non-maintained fork of TeaVM, while there's WASI support in main TeaVM (https://github.com/konsoletyper/teavm)?

Re: Spin 2.0 – open-source tool for building and running WASM apps

#32

I still have to try wasm, but I see the main focus seems to be on cloud and edge deployments. What I'd really like would be to program a game in C (or classic Turbo Pascal) and have a way to run it "hosted" in a iOS, Android or native app. Is that possible nowadays?

https://wasm4.org/

Re: Spin 2.0 – open-source tool for building and running WASM apps

#33

I still have to try wasm, but I see the main focus seems to be on cloud and edge deployments. What I'd really like would be to program a game in C (or classic Turbo Pascal) and have a way to run it "hosted" in a iOS, Android or native app. Is that possible nowadays?

I ported Neverball, a game written in C, to WASM (https://play.neverball.org/). It requires a browser to run, meaning it runs on any device that has a browser. That is superior to native in my eyes.

Re: Spin 2.0 – open-source tool for building and running WASM apps

#34

Earlier quoted context omitted.

Thank you! To your point, the primary consideration for choosing the languages is their support for WebAssembly, and WASI in particular. Due to Spin's heavy use of WASI and the component model, languages that have first party support in the WIT bindings generator ( https://github.com/bytecodealliance/wit-bindgen ) are the easiest to implement, followed by languages that can be built on top of the support for those wi…

Why you guys keep using this old non-maintained fork of TeaVM, while there's WASI support in main TeaVM ( https://github.com/konsoletyper/teavm )?

Joel from our team worked on the initial prototype for WASI support in TeaVM (https://github.com/konsoletyper/teavm/pull/610), and we temporarily forked before the WASI support made it to the official repo.

Good reminder to deprecate that now, and thanks for the amazing work on the project!

Re: Spin 2.0 – open-source tool for building and running WASM apps

#35

I still have to try wasm, but I see the main focus seems to be on cloud and edge deployments. What I'd really like would be to program a game in C (or classic Turbo Pascal) and have a way to run it "hosted" in a iOS, Android or native app. Is that possible nowadays?

you may want to take a look at https://github.com/extism/extism

Re: Spin 2.0 – open-source tool for building and running WASM apps

#36

Hi, everyone, I'm one of the Spin maintainers. We're really excited about the new release, happy to answer questions about it!

Hi Matei_Radu, Is it possible for spin to support actor-model pattern for eg. can it run long running process to execute trading strategies which will accept tick data every second

you can check out https://github.com/lunatic-solutions/lunatic for that

Re: Spin 2.0 – open-source tool for building and running WASM apps

#37

Hi, everyone, I'm one of the Spin maintainers. We're really excited about the new release, happy to answer questions about it!

While you advertise it as portable in the introduction the install guide only mentions "Linux (amd64 and arm64), macOS (Intel and Apple Silicon), and Windows (amd64)".

What are your plans on supporting more operating systems and architectures?

Re: Spin 2.0 – open-source tool for building and running WASM apps

#38
post #37

Hi, everyone, I'm one of the Spin maintainers. We're really excited about the new release, happy to answer questions about it!

While you advertise it as portable in the introduction the install guide only mentions "Linux (amd64 and arm64), macOS (Intel and Apple Silicon), and Windows (amd64)". What are your plans on supporting more operating systems and architectures?

Thanks for the question!

Spin could definitely run in more places than what we have pre-built binaries for. Specifically, we could run on all platforms Wasmtime supports today (https://github.com/bytecodealliance/wasmtime/releases/tag/v1...), including RISC and S390X, for example.

And while we have been experimenting a bit with running Spin on RISC, we haven't really had the bandwidth or requirement to build a production build for those yet.

Are you interested in a specific operating system or CPU architecture? Would love to understand your scenario.

Post reply on HN