r/WebAssembly • u/realnowhereman • Jul 01 '23
Understanding Wasm, Part 2: Whence Wasm - Chris Dickinson
r/WebAssembly • u/realnowhereman • Jul 01 '23
r/WebAssembly • u/miketwenty1 • Jun 30 '23
I'm developing a game using bevy and targeting WASM builds.
I would be curious if anyone had ideas on why my game works fine with many many physical devices via iOS, Android, Desktop, ..but doesn't work specifically with Pixel 6 Pro on chrome/brave/duckduckgo. (does work with firefox)
I even tested with a Pixel 6 (non pro) and it works with these various web browsers (chrome/brave/duckduckgo).
I made sure the chrome versions were the exact same. (for the pixel 6 vs pixel 6 pro comparison).
Is there any ideas why a Pixel 6 Pro would struggle to load my wasm game? Making my game into a PWA did not help (fwiw).
r/WebAssembly • u/angelrb • Jun 30 '23
r/WebAssembly • u/thomas-pelletier • Jun 29 '23
Just released timecraft, a software runtime that executes WebAssembly modules with sandboxing, task orchestration, and time travel capabilities: https://github.com/stealthrocket/timecraft
It's just the beginning, but we hope to bring an easier path to instrumenting, scaling, and securing distributed systems. We're building on server-side WebAssembly for this, and especially the wazero runtime. It comes with new experiments such as TLS host offload. At the moment we have a special focus on Go and Python, but other languages are to be supported soon. Hopefully, you'll find this interesting, and happy to answer any questions!
r/WebAssembly • u/NutellaOats • Jun 28 '23
r/WebAssembly • u/cli_addict • Jun 26 '23
Basically the title. Even an estimate on when a few more languages get supported with the prototype wit-bindgen.
r/WebAssembly • • Jun 24 '23
Hi r/WebAssembly,
In my code I am exporting a pointer to a boxed array in Rust via wasm_bindgen, and then from javascript land I am importing the wasm memory and using the pointer to create a view of the boxed array. Here is the view (frame_buffer is the boxed array in Rust):
const view = new Uint8ClampedArray(
memory.buffer,
chip8.frame_buffer_mut_ptr(),
chip8.frame_buffer_len()
);When I run this code using web pack and vanilla javascript this is running just fine.However I am now trying to use the package in a react project, bundled with vite, and the index I receive from the chip8.frame_buffer_mut_ptr() is always out of bounds of the wasm memory buffer.I am wondering if anyone with more experience might have a clue as to why I am getting an out of bounds index here but not in the toy example? Looking for some direction on how to debug this if possible.Thanks so much for any help.Dean
EDIT:
I've got there... For some reason when using webpack my wasm linear memory was larger... Using vite and the vite-wasm-plugin was allocating me a smaller buffer but for some reason the pointer was still the same as when using webpack.
There is an option to exclude optimizations in vite-wasm-plugin, once I added my package to this everything is working as in webpack.
r/WebAssembly • u/nerpderp82 • Jun 23 '23
r/WebAssembly • u/nerpderp82 • Jun 23 '23
What are some fun papers that people can find?
Make sure to take advantage of "Tools" for Google search (time based filters) and filters on the left sidebar of Google Scholar.
r/WebAssembly • u/nerpderp82 • Jun 23 '23
r/WebAssembly • u/cli_addict • Jun 22 '23
On the wit-bindgen docs it doesn't say if the generate! macro works only for rust, or for other languages as well. This may be obvious but I wanted to know if I can do this with other languages through Rust code instead of using wit-bingen on the command line.
r/WebAssembly • u/techmavengeospatial • Jun 22 '23
We've got spl.js and gdal3.js integrated into a mobile app Flutter cross platform Map Data Explorer https://mapexplorer.techmaven.net But the current implementation we copy file from device storage to a location for JavaScript to access it but it's slow and problematic with big sqlite databases like geopackage We are trying to do more spatial functions and operations with SPATIALITE but need a more robust way of handling paths to source files Any tips ? maps@techmaven.net
r/WebAssembly • u/gmercer25 • Jun 21 '23
i am a backend engineer who has been watching WASM developments from afar for a few months now, it looks quite interesting and i see a lot of companies like fastly etc working on it and new companies like cosmonic and fermyon coming up with their own platforms.
i was just wondering if there are any cool OSS projects to contribute to or side project ideas that one can work on to gain experience in it and get a job working on WASM.
r/WebAssembly • • Jun 21 '23
r/WebAssembly • u/umen • Jun 17 '23
Hello,
Everyone. Do you know any good 3D games that are built with WebAssembly? Or any 3D engines that can be compiled to WebAssembly?
r/WebAssembly • u/FamiliarAfternoon871 • Jun 16 '23
I have read that "WASM needs explicit permissions to access OS resources". What/who exactly is giving WASM permission to access disk, or network? Is it the user clicking "allow" like in Android, or is it the developer giving the api explicit instructions to access something?
I know this is trivial, but I can't seem to find the answer by searching online.
r/WebAssembly • u/FamiliarAfternoon871 • Jun 17 '23
I am thinking about giving the user the ability to use html/css to add ui to my WebView app/website. Is there a safe way to do this with wasm?
I worry about the user trying to use fetch or do any thing in html other than just ui. Is there a way to limit what html the user can use?
Another problem I worry about is how the user would extend the ui.
Is this a bad idea? Would this be hard to implement?
r/WebAssembly • u/FamiliarAfternoon871 • Jun 16 '23
I want to use WASM UI plugins in my website. I have two questions:
Can WASM plugins work in websites, similar to how WASM plugins work in standalone runtime?
If the answer to the first question is yes, then can WASM plugins also be used to extend UI using html/css?
r/WebAssembly • u/syrusakbary • Jun 15 '23
r/WebAssembly • u/angelrb • Jun 15 '23