Why building Odin programs is so simple

preview_player
Показать описание
An overview of how you compile Odin programs and how libraries pull in their own binary dependencies, resulting in very little need for a big build system such as CMake or premake.

Рекомендации по теме
Комментарии
Автор

I'm currently learning Odin, and it seems like every time I delve into a topic, I'm always amazed at how cleverly things are done in Odin. The more I use Odin, the more I agree with his maxim "Odin is the alternative to C for the joy of programming".

Laurent_GameDev
Автор

Wow, I've been wondering the same thing lately. Thanks for the insight, Karl!

kipnoir
Автор

The only reason I learned Odin is to make games, I'm a beginner and this is my first programming language, hopefully it can have a good impact, the syntax is quite simple and neat.

psclip
Автор

can you make a video tutorial how to use c library that doesn't came out with the compiler? maybe simple c library like curl?

_slier
Автор

This is how it should be ! Modern software repos come with 4K image icons of megabyte size but can't include a lib worth a few KB? And instead Windows / Linux has to look for the libs up it's own ((0)). Python is the worst with this, with many packages clashing with other packages even within the same project because two libs require two different versions of Numpy or Pytorch or CUDA or sth.

satellite
Автор

Another great video! I’m curious how you added the Odin icon for .odin files in the Windows File Explorer.

captainfordo
Автор

Very smart process, but that also means that Odin heavily relies on the updates of the vendor folder when a vendor releases a new version of his library.

Laurent_GameDev
Автор

You could just use && for each step in the script and get rid of all the ifs and exits. e.g. echo foo && echo bar. It will only execute the next command if the last command succeeded and it will exit with the right exit code.

georgehelyar
Автор

Is cross-compiling a thing for Odin? I can't find good documentation anywhere. I'm working on a linux host, trying to build for Windows.

CobainSnake
Автор

I have a question, will you teach us how to use git subtree + odin? good video

razorgmyt
Автор

Heavily dependent on odin vendor libs. Anything that is pulled from third-party will still need to have some sort of build system.

binitrupakheti
Автор

How do you set the icon and resource values of your app?

MikeHart
Автор

But i kinda in doubt, what compiler flag I set to make a macOS or Linux ".exe" ?

Davi_Dash
Автор

huh? but you still need LLVM and MSVC right? 🤔

TheTwyker
Автор

This seems really fragile, and not very scalable.

TheMachina