• simple@lemm.ee
    cake
    link
    fedilink
    arrow-up
    23
    arrow-down
    2
    ·
    5 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

    • 30p87@feddit.de
      link
      fedilink
      arrow-up
      14
      arrow-down
      2
      ·
      5 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)

      • beeb@lemm.ee
        link
        fedilink
        arrow-up
        37
        arrow-down
        1
        ·
        5 months ago

        Reimplements in C

        Segmentation fault (core dumped)

        • snowfalldreamland@lemmy.ml
          link
          fedilink
          arrow-up
          24
          arrow-down
          1
          ·
          5 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

    • CannotSleep420
      link
      fedilink
      English
      arrow-up
      3
      ·
      5 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.