this post was submitted on 30 Jan 2024
788 points (98.3% liked)

Programmer Humor

32482 readers
483 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 24 points 9 months ago (2 children)

> 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

[–] [email protected] 15 points 9 months ago (1 children)

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)

[–] [email protected] 37 points 9 months ago (1 children)

Reimplements in C

Segmentation fault (core dumped)

[–] [email protected] 24 points 9 months ago (1 children)

Reimplements in C

Segmentation fault (core dumped)

change code so it no longer segfaults

still is UB, has arbitrary code execution vulnerability

everybody dies

[–] [email protected] 13 points 9 months ago

But you died faster, that's not to be underestimated

[–] [email protected] 3 points 9 months ago

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.