164
you are viewing a single comment's thread
view the rest of the comments
[-] trem@lemmy.blahaj.zone 9 points 1 day ago

5 minutes sounds like way too much, unless you mean a fresh compile. But then you shouldn't need to wait that long between changes, since incremental compilation should kick in then.

And like sure you can break shit up into crates to speed up compilation, but to do that you already have to have a design you're happy with and that's stable.

I mean, if you have your modules structured in a tree structure and with proper visibility, then it isn't a particularly big leap to put it into a separate crate. You just move the files, maybe fix some visibility modifiers still, and then a bit of boilerplate to add it to the workspace.

It's only really when you're publishing to crates.io, that you don't particularly want to keep changing the names/scopes of the crates, as they'll stick around on there for the foreseeable future.

[-] yogthos@lemmy.ml 4 points 1 day ago

It's around 100k loc sized project, so from what I've seen that's about what you can expect with Rust.

[-] dessalines@lemmy.ml 8 points 1 day ago

5m seems about right. Lemmy's from scratch builds are ~3.5m on a fast machine, and we have ~60k lines of code, and are using some with large libraries with lots of features enabled.

But you really should only ever have to do a from scratch build either at the beginning, or when you deploy. When developing, your IDE should only ever really run check or clippy, which should take seconds at most.

[-] yogthos@lemmy.ml 4 points 1 day ago

I should really revisit this. I know I looked at it again. The compiling crops up I you actually want to run the app and test drive the changes live.

[-] trem@lemmy.blahaj.zone 3 points 1 day ago

100k lines and you don't yet have a design that's mostly settled?

[-] yogthos@lemmy.ml 2 points 1 day ago

Yes, I move things around.

this post was submitted on 17 Jul 2026
164 points (96.6% liked)

Linux

66500 readers
685 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS