> 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

🔻Sleepless One🔻
link
fedilink
English
39M

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.

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)

Reimplements in C

Segmentation fault (core dumped)

Reimplements in C

Segmentation fault (core dumped)

change code so it no longer segfaults

still is UB, has arbitrary code execution vulnerability

everybody dies

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

Create a post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 77 users / day
  • 211 users / week
  • 413 users / month
  • 2.92K users / 6 months
  • 1 subscriber
  • 1.53K Posts
  • 33.8K Comments
  • Modlog