mamot.fr is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mamot.fr est un serveur Mastodon francophone, géré par La Quadrature du Net.

Server stats:

3.2K
active users

#wasm

12 posts8 participants1 post today
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

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

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
Continued thread

🧵 And now, the part 3 or my series of articles on how to build a , in .

📰 This article is about how the sharding mechanism works.

💬 Enjoy reading it, feel free to provide me some feedback, here or directly on GitHub 😃

:fediverse: If you enjoy it, feel free to share it on other platforms!

🔗 Here is the link: jdrouet.github.io/posts/202503

jdrouet · Building a search engine from scratch, in Rust: part 3Or how we'll implement sharding and transactions for our search engine.