Gork@lemm.ee to Programmer Humor@lemmy.ml · 9 months agoFortune Tellerfiles.catbox.moeimagemessage-square53fedilinkarrow-up1802arrow-down114
arrow-up1788arrow-down1imageFortune Tellerfiles.catbox.moeGork@lemm.ee to Programmer Humor@lemmy.ml · 9 months agomessage-square53fedilink
minus-squaresimple@lemm.eelinkfedilinkarrow-up26arrow-down2·9 months ago> Decide to create a very basic GUI app in Rust, as everyone is saying it’s a great language for it > First compilation takes over 15 minutes to download and compile 100 libraries > Debug files take up 2GB of storage > Output binary file comes out massive for no reason > “Yeah you’re supposed to write a few lines to optimize for size in your release profile” > Compiling now takes 30 minutes instead
minus-square30p87@feddit.delinkfedilinkarrow-up17arrow-down2·9 months ago Reimplements in C Compiles in 5 Minutes (you accidentally did it on the RPi Zero W, on a PC it’s done in 30 secs)
minus-squarebeeb@lemm.eelinkfedilinkarrow-up38arrow-down1·9 months ago Reimplements in C Segmentation fault (core dumped)
minus-squaresnowfalldreamland@lemmy.mllinkfedilinkarrow-up25arrow-down1·9 months ago Reimplements in C Segmentation fault (core dumped) change code so it no longer segfaults still is UB, has arbitrary code execution vulnerability everybody dies
minus-squareQuazarOmega@lemy.lollinkfedilinkarrow-up13·9 months agoBut you died faster, that’s not to be underestimated
minus-square🔻Sleepless One🔻@lemmygrad.mllinkfedilinkEnglisharrow-up3·9 months agoI write rust on a meh computer alot and have never had compile times be that bad (at least not for debug). The target dir is massive though.
> Decide to create a very basic GUI app in Rust, as everyone is saying it’s a great language for it
> First compilation takes over 15 minutes to download and compile 100 libraries
> Debug files take up 2GB of storage
> Output binary file comes out massive for no reason
> “Yeah you’re supposed to write a few lines to optimize for size in your release profile”
> Compiling now takes 30 minutes instead
But you died faster, that’s not to be underestimated
I write rust on a meh computer alot and have never had compile times be that bad (at least not for debug). The target dir is massive though.