How to Build Software From Source - Andrew Kelley - Software You Can Love Vancouver 2023

Sdílet
Vložit
  • čas přidán 9. 06. 2024
  • Official website: softwareyoucan.love
    Vancouver Conference Website: softwareyoucanlove.ca
    Abstract:
    Did you know you can just compile software yourself instead of getting it from someone else? It's not that hard. Just kidding. Actually it is because something always goes wrong, doesn't it? Why? Why is it always going wrong? It's because you're doing it wrong. Everybody overcomplicates and overthinks it when they build things from source, and it creates unnecessary issues. If you just take the time to learn some basic concepts about building software from source, it actually goes pretty dang smoothly. And when it doesn't, it's somebody else's fault, and you can yell at them!
    This talk will teach you some real world skills of building software from source, and then I'll take things in a completely different direction, by showing you how to rip apart a project's build system and replace it with the zig build system. This will make building things from source work effortlessly for more people and more platforms, as well as annoy a lot of boomers. It's going to be super fun and spicy!
  • Věda a technologie

Komentáře • 22

  • @10e999
    @10e999 Před 10 měsíci +37

    I wish Andrew had more time. The details are always the best part of technical talks IMO.

  • @michaelscofield4524
    @michaelscofield4524 Před 10 měsíci +33

    I don't think I've clicked a video faster in my life, thx Loris!

  • @krumbergify
    @krumbergify Před 10 měsíci +8

    Great as always Andrew! Wish you had all the time in the world :)

  • @lifelover69
    @lifelover69 Před 10 měsíci +9

    Thanks for the talk, I learned a lot from this. Makes me excited to try out zig and its build system! Hope to see the demo soon.

  • @l2ubio
    @l2ubio Před 10 měsíci +5

    cool talk!
    36:00 one sad reality of gentoo is that they sometimes distribute patches through urls and not portage. And those urls lifespan is often short. Not really related to zig build system. But something to take caution I guess.

  • @sinamobasheri
    @sinamobasheri Před 10 měsíci +2

    Beautiful talk, Beautiful! I like andrew kalley more than zig!

  • @electrosssnake1036
    @electrosssnake1036 Před 10 měsíci

    good talk.

  • @enzocalzone5298
    @enzocalzone5298 Před 10 měsíci +2

    nice talk

  • @BorisByk
    @BorisByk Před 5 měsíci

    When you use sudo and install to a dir that needs sudo, it makes sure that sudo is also needed to change your app. That might be important to you if you feel like security is important when you run the app. For example if your app is a password manager.

  • @flyLeonardofly
    @flyLeonardofly Před 10 měsíci

    How did the room vote on the question how to install on windows at 16:00

  • @sekaibelle
    @sekaibelle Před 10 měsíci +1

    watching this as I'm updating and fixing errors from a x11 old program.

  • @10e999
    @10e999 Před 10 měsíci +1

    @31:02 what blog post is he talking about?

    • @anon404
      @anon404 Před 10 měsíci +3

      The link is on the slide that's shown starting at 23:36. 🙂

  • @AloisMahdal
    @AloisMahdal Před 9 měsíci

    Nice talk. I'm not sure your advice regarding PREFIX is accurate: in my understanding it's DESTDIR that really controls where your software is installed. (the default is / so you could set it to some directory under your $HOME or something). PREFIX, on the other hand is only useful for controlling this ancient convention of installing binaries under /usr vs. /usr/local (see `man hier` for that) --- but won't do anything for paths like /etc. DESTDIR should affect every single path in the installation process.
    (I read this in some GNU doc years ago but have implemented and have been using their convention in my own make-based build system called `mkit`)

    • @WHYUNODYLAN
      @WHYUNODYLAN Před 9 měsíci

      I think the install location will be "$(DESTDIR)/$(PREFIX)". I don't think thst most software installs will touch /etc, or /var or /opt or whatever else for that matter, so just setting PREFIX will almost always be fine to avoid using sudo.

  • @gittawat6986
    @gittawat6986 Před 10 měsíci +7

    CMAKE ... All my homie hate CMAKE

  • @default-writer
    @default-writer Před 10 měsíci

    Hi, can you help me to get visa for Canada and permanent work at Zig for 15 grind per month?

  • @AnthonyBullard
    @AnthonyBullard Před 24 dny

    All these months and not one “why is there code?” Reference? For shame…

  • @chmod0644
    @chmod0644 Před 10 měsíci +1

    effing software...how does it build?

  • @edgeeffect
    @edgeeffect Před měsícem

    Don't worry Andrew, just cut the Q&A out entirely. They MIGHT (... MIGHT!!) be useful to the speaker and/OR the questioner... but for most of us the Q&A is utterly worthless.

  • @aftalavera
    @aftalavera Před 9 měsíci

    We don’t need any more languages specially another Rust in disguise!

    • @bjorn2625
      @bjorn2625 Před měsícem

      How are you feeling now, given you've been forced to use zig for the last 7 months?