Jax-JS, array library in JavaScript targeting WebGPU
https://ss.ekzhang.com/p/jax-js-an-ml-library-for-the-web
#HackerNews #JaxJS #WebGPU #JavaScript #ArrayLibrary #MachineLearning
Jax-JS, array library in JavaScript targeting WebGPU
https://ss.ekzhang.com/p/jax-js-an-ml-library-for-the-web
#HackerNews #JaxJS #WebGPU #JavaScript #ArrayLibrary #MachineLearning
Seems there is still no way to have zero copy shared memory in #WebGPU. I feel this is showing its age a bit. Most modern GPU systems are shared memory. There’s no separate video memory. Additionally, direct access from the network or ssd is a thing for a long time now(even before DirectStorage).
So if I’m getting data over a websocket, I need to copy it into the webgpu memory with the CPU. At which point… might as well process it with the CPU. Except you need to copy into wasm too.
Finally looking into #webgpu. #WebGL is everywhere and “working”… but I guess webgpu is actually happening? Should be enabled on pretty much every current platform by the end of the year.
Was playing around with a visualization of a “large” graph layout algorithm running on the GPU on my phone. Quite impressive and readable code too. It was written two years ago it seems and at the time of writing they say it only worked on chrome with some experimental flags. So, good progress.
Finally looking into #webgpu. #WebGL is everywhere and “working”… but I guess webgpu is actually happening? Should be enabled on pretty much every current platform by the end of the year.
Was playing around with a visualization of a “large” graph layout algorithm running on the GPU on my phone. Quite impressive and readable code too. It was written two years ago it seems and at the time of writing they say it only worked on chrome with some experimental flags. So, good progress.
Seems there is still no way to have zero copy shared memory in #WebGPU. I feel this is showing its age a bit. Most modern GPU systems are shared memory. There’s no separate video memory. Additionally, direct access from the network or ssd is a thing for a long time now(even before DirectStorage).
So if I’m getting data over a websocket, I need to copy it into the webgpu memory with the CPU. At which point… might as well process it with the CPU. Except you need to copy into wasm too.
Finally looking into #webgpu. #WebGL is everywhere and “working”… but I guess webgpu is actually happening? Should be enabled on pretty much every current platform by the end of the year.
Was playing around with a visualization of a “large” graph layout algorithm running on the GPU on my phone. Quite impressive and readable code too. It was written two years ago it seems and at the time of writing they say it only worked on chrome with some experimental flags. So, good progress.
Safari 26 is here!!! Anchor Positioning, Scroll-driven animations, High Dynamic Range images, the new HTML element, the all-new Digital Credentials API, SVG icon support, WebGPU, WebKit in SwiftUI, every site can be a web app on iOS and iPadOS, and much more.
https://webkit.org/blog/17333/webkit-features-in-safari-26-0/
@jensimmons "there are now zero requirements for “installability” in Safari" - this is false statement. Still adding a web app to Home Screen on #iOS requires multiple clicks in menus and isn't intuitive. This is discriminating.
"Browser support started in November 2014, and Safari adopted in March 2018" - this summarizes how #Safari has long been lagging behind in supporting new features, e.g. #WebGPU has been supported in #Blink & #Gecko since 2023 and only now it's added to @webkit. So late!
As I’ve been building a 3D renderer with #WebGPU, once you get past the fundamentals, I noticed it becomes harder to find guidance. There's plenty of beginner tutorials, but few cover how to put all the pieces together.
So I wrote a blog where I break down the minimal architecture I created, as well as covering basic #3D terminology like Geometry and Materials.
https://whoisryosuke.com/blog/2025/structure-of-a-webgpu-renderer
Here's an example of me using the #WebGPU renderer to animate a 3D piano with MIDI keyboard input.
The piano is one of my #3D models I created in Blender and exported as OBJ. They're animated by updating the mesh's position in 3D space based on #MIDI input.
As always, this is open source on my #GitHub.
As I’ve been building a 3D renderer with #WebGPU, once you get past the fundamentals, I noticed it becomes harder to find guidance. There's plenty of beginner tutorials, but few cover how to put all the pieces together.
So I wrote a blog where I break down the minimal architecture I created, as well as covering basic #3D terminology like Geometry and Materials.
https://whoisryosuke.com/blog/2025/structure-of-a-webgpu-renderer
interesting bug while coding my OBJ parser. two objects get combined to form a new shape #WebGPU
I am incredibly proud to announce that #WebGPU on Firefox has officially gotten onto the train for stable release in Firefox 141 on Windows! More details to come when it actually releases, but...I'm so stoked, I couldn't not post about it. 😀
More platforms to come soon, my team hopes.
Hopefully we'll see #bevy / @bevy shipping to Firefox soon, eh?
I am incredibly proud to announce that #WebGPU on Firefox has officially gotten onto the train for stable release in Firefox 141 on Windows! More details to come when it actually releases, but...I'm so stoked, I couldn't not post about it. 😀
More platforms to come soon, my team hopes.
Hopefully we'll see #bevy / @bevy shipping to Firefox soon, eh?
Just a thought, from a knuckle-dragging biology scientist. TL;DR: I believe there is scope to make the hosting of a peertube instance even more lightweight in the future.
I read some time ago of people using #webAssembly to transcode video in a user's web-browser. https://blog.scottlogic.com/2020/11/23/ffmpeg-webassembly.html
Since then, I believe #WebGPU has done/is doing some clever things to improve the browser's access to the device's GPU.
I have not seen any #peertube capability that offloads video transcoding to the user in this way.
I imagine, though, that this would align well with peertube's agenda of lowering the bar to entry into web-video hosting, so I cannot help but think that this will come in time.
My own interest is seeing a #Piefed (activitypub) instance whose web-pages could #autotranslate posts into the user's own language using the user's own processing power... One day, maybe!
Thank you again for all your hard work; it is an inspiration.
#mastodon#webVideo #HLS #transcoding #video #decentralization#edgeComputing#webGL#W3C #activitypub#AI #ffmpeg #selfhosted #degoogle #mathstodon
(to answer the inevitable question from mathstodon.xyz people: I could set up a PeerTube instance linked to mathstodon, but I want to be sure about how much work it is before seriously considering that)
Just a thought, from a knuckle-dragging biology scientist. TL;DR: I believe there is scope to make the hosting of a peertube instance even more lightweight in the future.
I read some time ago of people using #webAssembly to transcode video in a user's web-browser. https://blog.scottlogic.com/2020/11/23/ffmpeg-webassembly.html
Since then, I believe #WebGPU has done/is doing some clever things to improve the browser's access to the device's GPU.
I have not seen any #peertube capability that offloads video transcoding to the user in this way.
I imagine, though, that this would align well with peertube's agenda of lowering the bar to entry into web-video hosting, so I cannot help but think that this will come in time.
My own interest is seeing a #Piefed (activitypub) instance whose web-pages could #autotranslate posts into the user's own language using the user's own processing power... One day, maybe!
Thank you again for all your hard work; it is an inspiration.
#mastodon#webVideo #HLS #transcoding #video #decentralization#edgeComputing#webGL#W3C #activitypub#AI #ffmpeg #selfhosted #degoogle #mathstodon
In the latest #WasmAssembly podcast 🎙️ episode, I host @Mendy and Sean Isom from renderlet who caught me up on the wasi-gfx proposal for #Wasm that they are championing for connecting the worlds of #WebAssembly and #WebGPU.
🍿 https://www.youtube.com/watch?v=PpYbizur5xA
🎧 https://wasmassembly.libsyn.com/webgpu-and-wasi-gfx-with-renderlet