fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

9.9K
active users

#WASM

17 posts13 participants0 posts today

WebAssembly голыми руками

WebAssembly являясь (относительно) молодой технологией уже довольно распространён в индустрии . Тем не менее, почти все материалы в сети по теме рассматривают WASM как цель для компиляции других более высокоуровневых языков. Информации же по работе с самим WebAssembly и написанию кода непосредственно на нем в сети крайне мало, а в рунете и подавно, что я и попробую исправить под катом.

habr.com/ru/articles/901976/

ХабрWebAssembly голыми рукамиWebAssembly являясь (относительно) молодой технологией уже довольно распространён в индустрии . Тем не менее, почти все материалы в сети по теме рассматривают WASM как цель для компиляции других более...
Continued thread

Oh, there is even an article about implementing bitmask on ARM: community.arm.com/arm-communit

Looks like a jumper through a bunch of hoops since it is not natively supported. I wonder if I can work around it somehow… My use case is to ctz right after getting the bitmask, and the full vector is just a bunch of booleans... maybe I should pack the vector differently somehow.

community.arm.comImplementing WebAssembly bitmask operations on AArch64We discuss some of the challenges that we face when we are trying to implement the WebAssembly SIMD bitmask operations on the 64-bit Arm architecture.

I spent so much time trying different permutations and chains of wasm SIMD ops to speed up the performance of the parser only to find out that there are no significant gains on my ARM64 laptop, but there are on Intel.

🤦

I guess either ARM64 is pretty fast at non-vectorized path, or V8 is just not emitting the best instructions for it.

🦾 wgpu: A cross-platform, safe, pure-Rust graphics API.

「 wgpu is a cross-platform, safe, pure-rust graphics API. It runs natively on Vulkan, Metal, D3D12, and OpenGL; and on top of WebGL2 and WebGPU on wasm.

The API is based on the WebGPU standard. It serves as the core of the WebGPU integration in Firefox, Servo, and Deno 」

github.com/gfx-rs/wgpu

A cross-platform, safe, pure-Rust graphics API. Contribute to gfx-rs/wgpu development by creating an account on GitHub.
GitHubGitHub - gfx-rs/wgpu: A cross-platform, safe, pure-Rust graphics API.A cross-platform, safe, pure-Rust graphics API. Contribute to gfx-rs/wgpu development by creating an account on GitHub.
#wgpu#rust#webgl2
Replied in thread

@tuban_muzuru An alternative to egui would be a frontend framework like Yew or Dioxus, which would let you interact with the DOM.

However, as long as you don't want accessibility support, I think egui is pretty stable and a good option for more app-based websites.

Edit: Yew is dead so try another one here: github.com/flosse/rust-web-fra

A comparison of some web frameworks and libs written in Rust - flosse/rust-web-framework-comparison
GitHubGitHub - flosse/rust-web-framework-comparison: A comparison of some web frameworks and libs written in RustA comparison of some web frameworks and libs written in Rust - flosse/rust-web-framework-comparison
#egui#rust#rustlang

Some notes for followers: The bot has been switched to run on the #Wasm platform and is still written in Rust. It's licensed under AGPL v3 (code link in profile). You can now see alt texts on images generated by the Google Gemini AI API. Since the Google API costs money, I might switch to something cheaper or even use my own LLM. @seungjin

Some notes for followers: The bot has been switched to run on the #Wasm platform and is still written in Rust. It's licensed under AGPL v3 (code link in profile). You can now see alt texts on images generated by the Google Gemini AI API. Since the Google API costs money, I might switch to something cheaper or even use my own LLM. @seungjin