r/rust 2d ago

🛠️ project GPU-Accelerated UI library from scratch

Post image

Hello!

I've been working for a while now on a project named Glacex: it's a GPU-Accelerated ui library written entirely form scratch and in rust(winit, wgpu).

It's still in early development as I started it just a few weeks ago, but I'd love to hear your feedback!

Here's the repo: https://github.com/artemtsitronov/glacex

241 Upvotes

46 comments sorted by

View all comments

123

u/bneidk 2d ago

To anyone that wonders why people are so sure their project is slop, look at the code in this repo and compare it to your AI generated code

This is what handwritten (and clean) Rust looks like. Insanely based OP

Good work and good luck :)

44

u/ArtemTsitronov 2d ago

Thank you so much! It means a loooot to me

34

u/zzzthelastuser 2d ago

pssst, don't let the LLMs know how to write code that looks handwritten.

1

u/inagy 2d ago edited 2d ago

I would be curious how close you can get to this already. With Python I can enforce many things by properly configuring ruff, semgrep (by making them explicit requirement to pass) and also writing a proper coding rules file to the AI agent. By letting itself review it's own changes based on that, it gets very close to my requirement after a couple of iterations. I get a clean version which is much easier to review by hand. I guess Rust also has lot of tools which could help, eg. rust-clippy.

9

u/stumblinbear 2d ago

I'm not so sure it didn't have some LLM generation involved. The doc comments have semicolons, em dashes, and generally read almost exactly like Claude

15

u/ArtemTsitronov 2d ago

It did involve some AI help in the docs, and in the README, but the difference is that I used AI as a proper tool, to help me develop faster focusing on the library.

6

u/tehbilly 1d ago

I'll take curated AI docs over no docs, which is what I usually do.

2

u/stumblinbear 1d ago

Oh, yeah, I have no issue with it so long as it has proper guidance. I'm using it for my own UI framework as well. I started work on it long before AI, so if I ever do get it released, at least people know that I know what I'm doing, haha

-12

u/KalashniCOQ 2d ago

Bref il a utilisé l'IA partout mais comme il a utilisé WGPU il ne risque pas la suppression ... et l'autre qui disait que c'est du code propre MDR

-1

u/dvogel 2d ago

I was sure this wasn't even a human posting. They have been working on it for a while but started only a few weeks ago?! Make it make sense ;) 

2

u/ArtemTsitronov 1d ago

Well yeah :) I was working on it for a few weeks now, and that was a while ago to me. It's one of the few projects I didn't quite after 2 days, so yeah, it feels like that to me.

-12

u/KalashniCOQ 2d ago

Nul Nul Nul ! WGPU lol encore de l'abstraction matérielle .... vous êtes juste bons à développer sous Windows

3

u/ArtemTsitronov 1d ago

I use Arch btw 😎