News for hackers. Stuff that matters.
Re:RustGPT: A pure-Rust transformer LLM built from scratch by ramon156 on Monday September 15, 2025 @07:19AM (#45248373)
Cool stuff! I can see some GPT comments that can be removed

// Increased for better learning

this doesn't tell me anything

// Use the constants from lib.rs

const MAX_SEQ_LEN: usize = 80;

const EMBEDDING_DIM: usize = 128;

const HIDDEN_DIM: usize = 256;

these are already defined in lib.rs, why not use them (as the comment suggests)

Re:RustGPT: A pure-Rust transformer LLM built from scratch by tialaramex on Monday September 15, 2025 @09:36AM (#45249589)
For the constants is it possible the author didn't know how? I remember in my first week of Rust I didn't understand how to name things properly, basically I was overthinking it.
Re:RustGPT: A pure-Rust transformer LLM built from scratch by vlovich123 on Monday September 15, 2025 @09:58AM (#45249834)
Lots of signs this is an LLM-generated project. All the emojis in the README are a hint as well.
Re:RustGPT: A pure-Rust transformer LLM built from scratch by tayo42 on Monday September 15, 2025 @10:10AM (#45249967)
Re:RustGPT: A pure-Rust transformer LLM built from scratch by ericdotlee on Monday September 15, 2025 @10:09AM (#45249956)
Do you think vibe coded rust will rot the quality of language code generally?
Re:RustGPT: A pure-Rust transformer LLM built from scratch by 6r17 on Monday September 15, 2025 @12:07PM (#45251392)
For AI you definitely need to clean up and I think even targeted learning on some practices would be beneficiary ; for users ; it depends on the people, and I'd argue that vibe-coded rust can be better than just "written-rust" IF the important details and mind of the user are actually focused on what is important ; Eg ; I could vibe-code a lock-free well architect-ed s3 - focus on all the important details that would actually make it high perf - or write some stuff myself 10x slower - which means I will have 10 x less time to work on the important stuff.

However what you asked is wether the vibe coded rust will rot the quality of language ; this is a more difficult to answer to, but I don't think that people who are uninterested in the technics are going to go for rust anyway - from the signals I feedback people are actually not really liking it - they find it too difficult for some reason and prefer to blanket with stuff like C# or python.

Can't explain why.

Re:RustGPT: A pure-Rust transformer LLM built from scratch by miki123211 on Monday September 15, 2025 @05:16PM (#45255015)
> I'd argue that vibe-coded rust can be better than just "written-rust

I never thought about it this way, but it actually makes sense. It's just like how Rust / Go / Java / C# can sometimes be orders of magnitude faster than C, only because they're more expressive languages. If you have a limited amount of time, it may be possible to write an efficient, optimal and concurrent algorithm in Java, while in C, all you can do is the simplest possible solution. Linked list versus slices (which are much more cache-friendly) is the perfect example here.

Re:RustGPT: A pure-Rust transformer LLM built from scratch by adastra22 on Monday September 15, 2025 @10:47AM (#45250350)
These things will be corrected over time.
Re:RustGPT: A pure-Rust transformer LLM built from scratch by yahoozoo on Monday September 15, 2025 @11:09AM (#45250603)
How do you mean?
Re:RustGPT: A pure-Rust transformer LLM built from scratch by ramon156 on Tuesday September 16, 2025 @04:26AM (#45259566)
Vibe coded is fine, but keep the comments useful. GPT's are so quick with putting a comment on everything that it kind of enriches your codebase with slop. I wouldn't call it rotting, but definitely redundant
Re:RustGPT: A pure-Rust transformer LLM built from scratch by tmaly on Monday September 15, 2025 @11:25AM (#45250796)
did you add these as a PR ?
Re:RustGPT: A pure-Rust transformer LLM built from scratch by leoh on Monday September 15, 2025 @12:43PM (#45251881)
They should stay, because they are indicative of the fact that this wasn't built with actual understanding.
Re:RustGPT: A pure-Rust transformer LLM built from scratch by mitchitized on Monday September 15, 2025 @03:37PM (#45253995)
You're absolutely correct!