Remix.run Logo
echelon 3 days ago

Are all of these proc macros worth it? The compile times for proc macros explode.

I'd rather hand-roll errors than deal with more proc macros. Or better yet, have code gen pay the cost once and never deal with it again.

alfiedotwtf 3 days ago | parent | next [-]

Cognitive load is more expensive than compilation time.

echelon 3 days ago | parent [-]

Compilation time turns into cognitive load via frustration. Death by a thousand cuts.

adastra22 3 days ago | parent | next [-]

How long are your compiles? The longest I’ve ever seen is a massive Bevy project with 700 dependencies, and it still compiled in <5min from an empty cache, and then 2-3 second incremental builds (mostly link time).

dijksterhuis 3 days ago | parent | prev [-]

https://xkcd.com/303/

(compilation time is good for brain switch off time - i.e. reducing cognitive load).

echelon 3 days ago | parent [-]

I find it's great for letting ADHD take over steering the ship and losing total focus on what needs to be done.

Which is more or less what this XKCD encapsulates.

duped 3 days ago | parent | prev [-]

Frankly, std::io:Error::other is good enough most of the time.