sfba.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance for the San Francisco Bay Area. Come on in and join us!

Server stats:

2.3K
active users

#wasm

13 posts12 participants2 posts today

I've created my first GUI in Rust. I made a wrapper for #paperage, which is an application for saving encrypted secrets on paper.
I had to tweak paper-age a bit, but now you can use it in the browser using #WASM.
It's still a bit messy, but it should work. And of course, there's #nix support.

You can find it on GitHub here: github.com/renesat/paper-age-g

P.S. Thanks for the idea, @iuvi. You can start testing :computer_explorer:

#rust#iced#age

🦾 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

🤔 hmm, now what does this remind me of:

"By standardizing APIs for #WebAssembly, #WASI provides a way to compose software written in different languages—without costly and clunky interface systems like HTTP-based microservices." (wasi.dev)

Oh yeah, here it is:

"The Infinite Improbability Drive was a wonderful new method of crossing interstellar distances in a mere nothingth of a second, without tedious mucking about in hyperspace"...

and:

..."The Bistromathic Drive is a wonderful new method of crossing vast interstellar distances without all the dangerous mucking about with Improbability Factors."

(and you thought I was gonna mention #Java and Jini!)

(h/t to Douglas Adams for his enduring insight into human behavior, and the #wasm / #wasi folks for doing god's work!)

wasi.devIntroduction · WASI.devThe WebAssembly System Interface (WASI) is a group of standards-track API specifications for software compiled to the W3C WebAssembly (Wasm) standard. WASI is designed to provide a secure standard interface for applications that can be compiled to Wasm from any language, and that may run anywhere—from browsers to clouds to embedded devices.
Continued thread

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

📰 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.