←back to thread

269 points amazonhut | 3 comments | | HN request time: 0.001s | source
Show context
ramon156 ◴[] No.45248373[source]
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)

replies(5): >>45248872 #>>45249589 #>>45249956 #>>45250796 #>>45251881 #
1. tialaramex ◴[] No.45249589[source]
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.
replies(2): >>45249834 #>>45249967 #
2. vlovich123 ◴[] No.45249834[source]
Lots of signs this is an LLM-generated project. All the emojis in the README are a hint as well.
3. tayo42 ◴[] No.45249967[source]
From his reddit post

https://old.reddit.com/r/rust/comments/1nguv1a/i_built_an_ll...