←back to thread

399 points TaurenHunter | 2 comments | | HN request time: 0s | source
Show context
GenericCanadian ◴[] No.42190317[source]
I wrote https://taintedcoders.com/ for anyone looking for an introduction to Rust game development with Bevy.

Bevy is still early, but the sweet spot right now is simulations. It's particularly weak in its UI, but that's the coming focus for getting the editor built.

If anyone needs ideas, making [boids](https://slsdo.github.io/steering-behaviors/) in Bevy is a great weekend project.

replies(3): >>42191274 #>>42191668 #>>42191888 #
prox ◴[] No.42191888[source]
Can I also use Rust to build UI / window / data heavy apps? I am webdeveloper mostly so looking into other avenues right now.
replies(2): >>42192068 #>>42195138 #
trissi1996 ◴[] No.42192068[source]
Sure, there's "native" UI with stuff like slint(QT-like) or iced(system76 is actually building the COSMIC linux desktop environment with this).

And you can also get an electron-like stack going, that is actually much less bloated than "normal" electron, by using tauri-webview, which uses the OS-provided webview and combining it with one of the many cool rust WASM-based reactive web-ui frameworks, like leptos or dioxus. This gets you compiled sizes of ~10s of MB compared to electrons 100s of MBs.

There's also bindings to a lot of traditional ui libs, like GTK, QT & Tk.

I'm currently going for the 2nd option (with leptos for the web part) as I'm used to the web-stack and am very productive with this approach, but native UI also seems very tempting to dig into further.

Some related links:

- https://www.arewewebyet.org/topics/frameworks/

- https://areweguiyet.com/#ecosystem

replies(2): >>42192199 #>>42192898 #
Tmpod ◴[] No.42192199[source]
I can personally vouch for Slint. The DSL is very pleasant to work with, it's still evolving (and the devs are very active and responsive), tooling is also getting better and better each release and it supports translations and accessibility already (through AccessKit). I've been (veeeery) slowly working on a Matrix client with it and I've quite enjoyed it so far.
replies(1): >>42192842 #
rubymamis ◴[] No.42192842[source]
I'm also developing a chat client (tho for LLMs) using QML. Here's a little video showcasing it: https://custom-downloads.s3.us-west-2.amazonaws.com/chat_cli...

Still, very much in its infancy.

The backend is currently C++ but I'm considering using other languages since there are so many bindings (Mojo is on my radar).

replies(1): >>42194456 #
Tmpod ◴[] No.42194456[source]
Looking really good so far, keep it up! Is the source available somewhere I could take a peek? o.o
replies(1): >>42196295 #
rubymamis ◴[] No.42196295{3}[source]
Thanks! Unfortunately not, it's been too hard for me to monetize FOSS projects, so it's going to be closed source.
replies(1): >>42204920 #
1. Tmpod ◴[] No.42204920{4}[source]
Very understandable, it is indeed quite hard :(

Best of luck! I'll keep an eye on it ;)

replies(1): >>42211523 #
2. rubymamis ◴[] No.42211523[source]
Thank you! I'll keep en eye on Eigen too! I'm curious how it will work out with Slint.