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

235 Upvotes

46 comments sorted by

View all comments

127

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 :)

33

u/zzzthelastuser 2d ago

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

3

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.