Re:Using aligned word vectors for instant translations with ...
by ibraheemdev on Thursday June 10, 2021 @11:45PM
(#27469065)
Funny, I often say the opposite. Don't feel compelled to split up your lib.rs. It's really refreshing to see a nice, compact library in one or two files. Much easier to follow, especially over "type per file". Of course, there are limits, but for a small lib like this, I personally would keep it in a single, or maybe two files.
Re:Using aligned word vectors for instant translations with ...
by dochtman on Friday June 11, 2021 @12:50AM
(#27469412)
I have a fair bit of experience writing Rust code and the current status is totally deliberate. I find module file sizes of about 400-800 lines of code optimal in terms of my ability to find things vs the unnecessary complexity of having to skip around files when changing something that touches an API boundary.
cargo check and format time might also slightly improve!