sunfish, to webassembly
@sunfish@hachyderm.io avatar

New blog post: Bridging between source languages, in Wasm

https://blog.sunfishcode.online/bridging-language-divides-in-wasm/

#Wasm #WASI

kerfuffle, to Java
@kerfuffle@mastodon.online avatar

Who here knows a CDN that offers edge computing capability for the JVM / GraalVM?

AWS Lambda@Edge only supports JavaScript and Python.
Cloudflare only supports JavaScript.
Fastly supports WebAssembly.

kerfuffle,
@kerfuffle@mastodon.online avatar

Actually, it may be soon that #WebAssembly with WASI support as offered by Fastly can be targeted from #Kotlin / #Java. Nice article on the development by @sdeleuze at https://seb.deleuze.fr/introducing-kotlin-wasm/

Would be sweet if I can have a static #HTML / #CSS website that uses #HTMX for interaction with a backend written in Kotlin and compiled to #wasm running on an edge location using #wasi .

janriemer, to rust

C++ will be taken over by .

What will be the Rust-equivalent for ?

I mean is a very good first step, but it's basically the C++ for C.

So in short:
C => C++
JavaScript ≈> TypeScript
C++ =>
JavaScript => ???

I think it will be a looong way to go, but maybe, maybe we'll see more and more in the , but not quite sure yet.

#C

janriemer,

@mo8it

> I mean, you get problems if you try to launch a thread…

Which specific problems are you refering to?

As far as I understand, you can spawn threads in JS environments (e.g. in the browser) with no problems (using Web Workers and SharedArrayBuffer under the hood).

Only spawning them in non-JS environments is currently not supported, if I'm not mistaken. For this, we'll need the thread-spawn proposal implemented, right!?

https://github.com/WebAssembly/shared-everything-threads

hywan, to rust
@hywan@fosstodon.org avatar

Changes to Rust's WASI targets, https://blog.rust-lang.org/2024/04/09/updates-to-rusts-wasi-targets.html.

New wasm32-wasip2 target; and wasm32-wasi is being renamed wasm32-wasip1.

vascorsd, to rust
@vascorsd@mastodon.social avatar
smallcircles, to webassembly
@smallcircles@social.coop avatar
mhneifer, to rust
@mhneifer@mastodon.social avatar
esoterra, to random
@esoterra@hachyderm.io avatar

I think with 0.2 out, 1.0 just released, and the huge push for right now, it would be a perfect time for someone to create an ActivityPub/ActivityStreams WASI proposal and get a Mastadon server compiling to Wasm.

benwis, to rust
@benwis@hachyderm.io avatar

I compiled my Rust/C++ crate to WASI and used it to build a markdown editor with live preview! Then I wrote about it!
https://benw.is/posts/compiling-rust-to-wasi

sunfish, to random
@sunfish@hachyderm.io avatar

wit-bindgen 0.22 was just released, with two PRs to make generated C bindings easier to read: more comments and more descriptive types.

squillace, to webassembly
@squillace@hachyderm.io avatar

Warren Dujardin just put out a prototype of :usb: https://github.com/Wadu436/usb-wasm. Give it a look; there are a bunch of funky issues around this area in IoT, but I love seeing these PoCs.

maxd, to webassembly
@maxd@mastodon.social avatar

Excited to announce an important milestone for and testing on CI! More details available on Swift Forums: https://forums.swift.org/t/stdlib-and-runtime-tests-for-wasm-wasi-now-available-on-swift-ci/70385

benwis, to rust
@benwis@hachyderm.io avatar

I'm very excited about the future of webassembly and wasi preview 2.0. I compiled my Rust/C++ crate femark into a wasi component, and used it to make an editor with live preview and syntax highlighting for Leptos

A video of a side by side editor, where you type markdown and markdown code blocks on the left, and ithe right is a life preview

esoterra, to webassembly
@esoterra@hachyderm.io avatar

I am officially to continue and expand my work with .

With 0.2.0 now officially launched, now is a great time to invest in the Component Model and I can help!

I'm actively engaged in the Component-Model standards process and am giving a talk in two weeks at Wasm IO!

https://2024.wasmio.tech/sessions/claw-and-the-future-of-component-native-programming-languages/

sunfish, (edited ) to webassembly
@sunfish@hachyderm.io avatar

I made a sketch of an Embedded API in the WebAssembly Interface Types (Wit) IDL, covering GPIO, I²C, SPI, PWM, and delays, based on the embedded-hal API, to show what such a thing might look like:

https://github.com/sunfishcode/hello-embedded

sunfish, (edited ) to random
@sunfish@hachyderm.io avatar

WASI-Virt is now updated to the WASI 0.2 APIs!

https://github.com/bytecodealliance/WASI-Virt

brettcannon, to random
@brettcannon@fosstodon.org avatar

After 2 years and introducing the concept of tiered platform support to , has reached tier 2!

https://peps.python.org/pep-0011/#tier-2

I'm obviously not done w/ all of this, but at least I don't have a moving target for testing stability.

And for those that care, this is for WASI 0.1 (nee preview 1) w/ WASI SDK 20 and Wasmtime running -Spreview2=n; WASI 0.2 support is on the TODO list.

sunfish, to rust
@sunfish@hachyderm.io avatar

The Rust wasi crate, for low-level bindings to the WASI APIs, is now updated to WASI 0.2:

https://crates.io/crates/wasi

Among other fun outcomes of this, the rustdoc docs are some of the nicest HTML renderings of the WASI 0.2 APIs today:

https://docs.rs/wasi/

sunfish, to random
@sunfish@hachyderm.io avatar

Two new proposals advanced to phase1 today:

  • wasi-webgpu - WebGPU!
  • wasi-observe - Metrics and observability!
sunfish, to webgpu
@sunfish@hachyderm.io avatar

A lot of people have asked, will there be a API in ?

And there's now a prototype of this, in preparation for a phase-1 proposal vote!

@Mendy has built a prototype of a WebIDL-to-Wit translator:

https://github.com/MendyBerger/webidl-wit

and used it to build a WebGPU prototype with a host implementation:

https://github.com/MendyBerger/wasi-webgpu

squillace, to webassembly
@squillace@hachyderm.io avatar

sooooper stoked because @brettcannon has just submitted the instructions for building CPython to components 0.2.0! Hoping this will end up being Tier 2 in near future: https://github.com/python/devguide/pull/1273

sunfish, to webassembly
@sunfish@hachyderm.io avatar

My blog post about WASI 0.2, also known as WASI Preview 2, is now cross-posted on the Bytecode Alliance blog:

https://bytecodealliance.org/articles/WASI-0.2

SnoopJ, to python
@SnoopJ@hachyderm.io avatar

Managed to build the and get it running in wasmtime via the API, thanks to @brettcannon's build script and documentation 👀

SnoopJ,
@SnoopJ@hachyderm.io avatar

The magic of and is that as long as you can feed your target program to a runtime capable of understanding it, everything else just kinda works, because it's already expressed on the far side of the abstraction boundary.

I have not written a line of before, but I was able to slightly tweak one of the examples to get the CPython WASI build running for the most basic task.

brettcannon, to random
@brettcannon@fosstodon.org avatar

For anyone interested in what it takes to build for : https://github.com/python/devguide/pull/1273

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • GTA5RPClips
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • everett
  • InstantRegret
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • modclub
  • kavyap
  • Leos
  • normalnudes
  • cubers
  • osvaldo12
  • tacticalgear
  • Durango
  • khanakhh
  • ngwrru68w68
  • provamag3
  • anitta
  • tester
  • cisconetworking
  • ethstaker
  • megavids
  • lostlight
  • All magazines