Zig Compiler Internals - Andrew Kelley

  Рет қаралды 24,234

Zig SHOWTIME

Zig SHOWTIME

Күн бұрын

From Zig SHOWTIME #5
zig.show
0:00 Title
0:52 Talk
33:56 Interview

Пікірлер: 36
@familyshare3724
@familyshare3724 4 ай бұрын
Would love a compiler summary update "state of the art" in 2024
@KomariSpaghetti
@KomariSpaghetti 3 жыл бұрын
Recursion considered harmful. Great talk!
@tux1968
@tux1968 3 жыл бұрын
Relationship breakups considered helpful.
@Verrisin
@Verrisin 2 жыл бұрын
My question would have been, why is the IR flat. That intuitively seems harder to optimize and work with, to me. - I know Kotlin uses tree IR, and that just makes sense to me. (tree IR is quite different from AST, of course)
@hank-uh1zq
@hank-uh1zq 3 жыл бұрын
The problem with Zig is documentation. I can see that goes for the code as well...this needs to get way better. Maybe the Foundation can hire someone to write documentation?
@inkryption3386
@inkryption3386 2 жыл бұрын
Honestly, it hasn't been much trouble for me. Once you understand the syntax and are aware of the conventions (which there aren't too many anyways), the code becomes its own documentation. Which I imagine is part of the objective of Zig.
@jackmordaunt5410
@jackmordaunt5410 2 жыл бұрын
AFAIK, Documentation will be a focus post 1.0. Doesn’t make so much sense to document while things rapidly churn.
@darkfllame
@darkfllame Ай бұрын
the only doc i need is with the build system, that's all, everything else is pretty straight forward
@prateeknischal5170
@prateeknischal5170 Жыл бұрын
There was a talk from the Go team where they mentioned about supporting exotic architectures. Any one who wanted to implemented a new target GOOS, GOARCH, they could implement that translation layer GOASM -> machine code and bam! support for a new target. And according to them, the translation layer is simple.
@yvvkiRika
@yvvkiRika 8 ай бұрын
Whatever on the bottom left is, it's keeping my focus on like subway surfers. Amazing talk!
@astphaire
@astphaire 2 жыл бұрын
I heard that Zig can call functions at compile time. How is this done? Is the IR stepped through like a bytecode?
@DF-ss5ep
@DF-ss5ep Жыл бұрын
There is no need for that. If your compiler has AST nodes that it understands, it can implement their behavior as C++ functions and then modify the AST with the results
@numeritos1799
@numeritos1799 14 күн бұрын
@@DF-ss5ep essentially interpreted at compile time right?
@leffivanov3127
@leffivanov3127 3 жыл бұрын
What software are you using for this kind of streams?
@kristoff-it
@kristoff-it 3 жыл бұрын
OBS, Discord, laplace.madeby.monster/
@nathanruben3372
@nathanruben3372 Жыл бұрын
What is the licence of this language?
@y.vinitsky6452
@y.vinitsky6452 13 күн бұрын
MIT
@GK-rl5du
@GK-rl5du Ай бұрын
What is the difference between un-typed and typed Zig IR?
@darkfllame
@darkfllame Ай бұрын
duh, typing 💀the untyped zig IR does not generate errors with types
@GK-rl5du
@GK-rl5du 29 күн бұрын
@@darkfllame If I recall correctly, Andrew mentioned that first compiler converts the source code to untyped IR. Then at some later stage untyped IR is converted to typed IR. I was wondering why not directly start with typed IR as the code author already declares the variable types. As you can tell I'm a compiler noob. If this is something obvious please let me know I'll do more research
@numeritos1799
@numeritos1799 14 күн бұрын
I think Andrew was just referring to the comptime approach that they implemented. I'm not certain that what he described here still holds true today though. The video here is almost 4 years old, back when Zig was at 0.6.0.
@KalleJillheden
@KalleJillheden 7 ай бұрын
Held my curiosity for a while, but the technical issues made it unbearable to watch. All the flickering, and Andrew talking about code that's not loaded on the screen yet... quite a mess. From Andrew's other talks, I can tell that he's a great speaker, but for this video in particular, it's getting a thumbs down from me. Would love to see a re-take though.
@Stopinvadingmyhardware
@Stopinvadingmyhardware Жыл бұрын
why would I use this? I don’t see the point.
@megamaser
@megamaser 10 ай бұрын
Systems and embedded programming.
@josephlunderville3195
@josephlunderville3195 8 ай бұрын
You're probably not missing anything, it's still not all that mature. It's an interesting language and I'm playing with it, and I think it has a brighter future -- but if you want to solve an actual problem right now today, there are other languages that are good enough and which have much better library support. For systems and embedded you're probably making smaller programs and so the lack of libraries is less of a problem, but you'll still get up and running faster with existing frameworks in C/C++ or even Rust, so if you're being paid to do the work you might choose one of those.
@ranam
@ranam 3 жыл бұрын
Can you compile zig compiler to compile darknet with cuda
@lepidoptera9337
@lepidoptera9337 10 ай бұрын
You know that something is dead when it has 18 comments on KZbin in three years. ;-)
@megamaser
@megamaser 10 ай бұрын
Zig is new and just beginning to pick up steam.
@lepidoptera9337
@lepidoptera9337 10 ай бұрын
@@megamaser Dude, the video is from three years ago. I will give you attention, anyway. :-)
@megamaser
@megamaser 10 ай бұрын
Yeah and? 3 years is nothing in the lifecycle of a programming language.
@lepidoptera9337
@lepidoptera9337 10 ай бұрын
@@megamaser True. Cobol is still around. I didn't care about it, either. :-)
@josephlunderville3195
@josephlunderville3195 8 ай бұрын
Trolls be trollin
What's a Memory Allocator Anyway? - Benjamin Feng
48:30
Zig SHOWTIME
Рет қаралды 47 М.
Intro to the Zig Programming Language • Andrew Kelley • GOTO 2022
50:14
格斗裁判暴力执法!#fighting #shorts
00:15
武林之巅
Рет қаралды 82 МЛН
ISSEI funny story😂😂😂Strange World | Magic Lips💋
00:36
ISSEI / いっせい
Рет қаралды 193 МЛН
Hare Programming Language
1:39:25
Tsoding Daily
Рет қаралды 46 М.
Solving Common Pointer Conundrums - Loris Cro
54:57
Zig SHOWTIME
Рет қаралды 10 М.
Making Systems Programming Accessible by Andrew Kelley
47:47
TigerBeetle
Рет қаралды 31 М.
why do header files even exist?
10:53
Low Level Learning
Рет қаралды 348 М.
Zig with Andrew Kelley
56:26
Rustacean Station
Рет қаралды 6 М.
Vlang: The language of 2023?? | Prime React
35:53
ThePrimeTime
Рет қаралды 128 М.
Paid Zig Stream
3:20:37
Tsoding Daily
Рет қаралды 84 М.
Теперь это его телефон
0:21
Хорошие Новости
Рет қаралды 1,7 МЛН
Трагичная История Девушки 😱🔥
0:58
Смотри Под Чаёк
Рет қаралды 375 М.
ПРОБЛЕМА МЕХАНИЧЕСКИХ КЛАВИАТУР!🤬
0:59
Корнеич
Рет қаралды 3,3 МЛН
The power button can never be pressed!!
0:57
Maker Y
Рет қаралды 53 МЛН
cool watercooled mobile phone radiator #tech #cooler #ytfeed
0:14
Stark Edition
Рет қаралды 6 МЛН