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

Поділитися
Вставка
  • Опубліковано 10 лип 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!
  • Наука та технологія

КОМЕНТАРІ • 23

  • @10e999
    @10e999 Рік тому +37

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

  • @michaelscofield4524
    @michaelscofield4524 Рік тому +33

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

  • @krumbergify
    @krumbergify Рік тому +8

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

  • @lifelover69
    @lifelover69 Рік тому +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 Рік тому +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 11 місяців тому +2

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

  • @konstantinrebrov675
    @konstantinrebrov675 29 днів тому

    Tsoding implemented a similar build system in pure C.

  • @electrosssnake1036
    @electrosssnake1036 11 місяців тому

    good talk.

  • @BorisByk
    @BorisByk 6 місяців тому

    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.

  • @enzocalzone5298
    @enzocalzone5298 Рік тому +2

    nice talk

  • @flyLeonardofly
    @flyLeonardofly 11 місяців тому

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

  • @sekaibelle
    @sekaibelle Рік тому +1

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

  • @AloisMahdal
    @AloisMahdal 10 місяців тому

    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 10 місяців тому

      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 11 місяців тому +7

    CMAKE ... All my homie hate CMAKE

  • @10e999
    @10e999 Рік тому +1

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

    • @anon404
      @anon404 Рік тому +3

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

  • @AnthonyBullard
    @AnthonyBullard Місяць тому

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

  • @default-writer
    @default-writer 11 місяців тому

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

  • @chmod0644
    @chmod0644 Рік тому +1

    effing software...how does it build?

  • @edgeeffect
    @edgeeffect 2 місяці тому

    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 10 місяців тому

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

    • @bjorn2625
      @bjorn2625 2 місяці тому

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