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.

#cdn #java #jvm #graalvm #edgecomputing

kerfuffle,
@kerfuffle@mastodon.online avatar

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

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

janriemer, to rust

C++ will be taken over by #Rust.

What will be the Rust-equivalent for #JavaScript?

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

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

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

#WASM #ProgrammingLanguage #CPlusPlus #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

#WASM #WebAssembly #WASI

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.

#RustLang #WebAssembly #WASI

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 #wasi 0.2 out, #wasmcloud 1.0 just released, and the huge push for #federation 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
#rust #wasi #webassembly #webdev #RustLang

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.

#wasi

squillace, to webassembly
@squillace@hachyderm.io avatar

Warren Dujardin just put out a prototype of #webassembly #wasi: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

#WASI #Wasm

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

#WASI

brettcannon, to random
@brettcannon@fosstodon.org avatar

After 2 years and introducing the concept of tiered platform support to #CPython , #WASI 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/

#wasi #RustLang

sunfish, to random
@sunfish@hachyderm.io avatar

Two new #WASI 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 #WebGPU API in #WASI?

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 #webassembly components #wasi 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

#wasm #wasi

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 #WebAssembly and #WASI 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 #Rust before, but I was able to slightly tweak one of the #wasmtime examples to get the CPython WASI build running for the most basic task.

#WASM #Python

brettcannon, to random
@brettcannon@fosstodon.org avatar

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

sunfish, to random
@sunfish@hachyderm.io avatar

The hello-wasi-http demo is now updated for WASI Preview 2 and works with Wasmtime 17!

https://github.com/sunfishcode/hello-wasi-http

Note that it needs cargo-component 0.7.1.

#wasi

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