Тёмный

Runtime polymorphism: why, how? - Alex Naskos 

Zig SHOWTIME
Подписаться 12 тыс.
Просмотров 8 тыс.
50% 1

Опубликовано:

 

7 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 21   
@MrHallajs
@MrHallajs 3 года назад
This talk helped me finally understand dynamic dispatch in Zig :D I try to avoid dynamic dispatch, but sometimes it is required so its nice to know how to implement it.
@tannerbitz7601
@tannerbitz7601 13 дней назад
Nice talk! Coming primarily from a language that has virtual functions, this provided a nice explanation of how to implement a vtable. "What's an instruction between friends" 😆
@ryantaylor6470
@ryantaylor6470 7 месяцев назад
Great talk! Being new to zig it is nice to see a bunch of options laid out in a row with pro/cons
@kode9323
@kode9323 2 года назад
Thank you very much for examples! I noticed there is a tiny typo in the first example with union. Should be: const text_area: Widget = .....; Also it would be nice to have some repo with shared code from presentation. Thank you!
@pavildon
@pavildon 2 года назад
very nice showtime, I really like zig ability to do these nice things without relaying on compiler magical f*ckery implementation (im looking at you c++) and with a really nice, simple syntax, you can always pick under the hood and tell whats happening, navigating the std library is a pleasure even without tools like a language server!. suggestion: it would useful if more context is added to your video's descriptions , things like links to code and profiles of the people participating in it.
@johnswolter
@johnswolter 17 дней назад
Aside from my sight limitations, I'd encourage everyone to check your nearby Community College for video classes that may give you background on producing videos good enough for RU-vid. I haven't done that yet but I have it on my "to do" list. Middle School students are already doing this. It's a warning to adults.
@johnswolter
@johnswolter 17 дней назад
I have sight limitations. The program image is a bright white and the characters color are light gray. I can't read the program. Please update the image to black colored characters & the background as a white. The wide use of light-gray text is a plague across the web. It appears without simple ways to switch to strong contrasting colors like black on white, otherwise it's a fail. Got to wonder about the quality of the technical presentation.
@jaimelabac
@jaimelabac 2 года назад
Very interesting. Thanks.
@dunkyl
@dunkyl 9 месяцев назад
Nice
@_slier
@_slier 3 года назад
any slide on this?
@Hoowwwww
@Hoowwwww 3 года назад
the 1st example is by far the most readable, and yet it is the one that doesn't work, why even add it to the list, it shows it needs to be implemented already xD
@kristoff-it
@kristoff-it 3 года назад
The pseudocode shown in the beginning would have to hardcode one specific implementation behind the scenes.
@Hoowwwww
@Hoowwwww 3 года назад
@@kristoff-it very true, it is hard to guess what it does behind the scene, but it still looks better on the eyes
@schizoidman9459
@schizoidman9459 6 месяцев назад
Extremely bad accent even in simple words such as variable. One can't understand too much what he's saying. Too much use of "nice". Nice is too vague and doesn't mean anything. Why it's nice? The slides are of quite poor quality, particularly the code. I don't agree with the opinions praising this talk, it's in fact very bad.
@michaelutech4786
@michaelutech4786 2 месяца назад
If I would be the guy presenting, I would appreciate the comment, because criticism is a good source for improvement. But I don't see why the criticism needs to be so aggressive. After all, the guy is spending time sharing the results of his work and that result is obviously helpful to people watching. It would have cost you nothing to make the same point and put it into a form that would be cooperative instead of demeaning, as in sharing code or ideas. Sure, this is the internet, tough shit. But then again, the internet is what we make it. Choices...
@schizoidman9459
@schizoidman9459 2 месяца назад
@@michaelutech4786 This video is actually totally useless. I doubt it's useful to anybody, and I'm sure it wasn't useful for you, otherwise you would be saying why I'm wrong in my comments instead of just saying that my comments should not be aggressive. Silence, lies and denial are far worse than aggressivity and the truth is only aggressive to snowflakes.
@michaelutech4786
@michaelutech4786 2 месяца назад
@@schizoidman9459 Judging from other comments, the video has been useful for quite a few people. It has been useful for me insofar as it shows me what level or kind of support Zig has for polymorphism. I'm about to decide for which language to take a closer look at next and this is one element relevant for me. I don't say your comments "should not be aggressive", I say that the level of aggressiveness removes much of the value your critique might have had for the author. The guy (Alex is his name?) is a guest presenter, not a professional content producer. He does not have a production studio and he is obviously not a trained presenter. He doesn't have to be, neither does he claim to be. His contribution is the technical information. Critique is valuable if it helps to improve. If it's purpose is to demean someone who is contributing for littler or no gain, the value of your critique is negative. If the purpose is to express your displeasure, that would be useless for anybody but you. Not only does nobody really care for the pleasure of a random guy, it also damages your reputation, if it is attached to your nick. The value of silence is often underrated and when it's important to speak up, people tend not to. The importance of you speaking up in this particular way is what I was and am talking about above and in my original response. Lies include intention. I don't see how any of the content would qualify as intentional falsehood. What are you talking about? Denial is probably meant as diagnosis, as far as I can see, it's not a qualified diagnosis on your part here. The truth is only relevant in context. If I iterate decimal places of Pi here, it would mean nothing. Objective truth is something that's hard if not impossible to obtain. You claiming to have a monopoly on it doesn't contribute to your credibility. I don't care for obsessive political correctness, but I learned to appreciate appropriate politeness. These are not the same. You are impolite, and that's a polite generalization of what could be said about your attitude.
@michaelutech4786
@michaelutech4786 2 месяца назад
@@schizoidman9459 Take for example your statement that the quality of the code was bad. If you had pointed out a particular problem, that could have been helpful and at the same time a valid critique. You did not provide any information about what you perceive as bad. Maybe there is a redundant space somewhere, maybe you didn't like a variable name, maybe you spotted a bug or have an idea how something could have been improved. Again, all you did is to express your displeasure but you did not expose your judgement to scrutiny, neither did you care to explain how someone using this code might suffer and could benefit from your insight. What you do is to either try to damage the reputation of the guy or try to appear more competent than him. Both is a cheap rhetorical trick that is unlikely to work and deeply malicious. You complain about the use of 'nice', which is a valid critique, but it's not really relevant, because the guy does not train to become a professional presenter. I agree with you that 'nice' doesn't add much value, but it's also not creating any damage, for the reasons you provide. Most people have communication issues, kinda, sorta, like this. I try to fix these for my kids and fail. So I can empathize with a certain amount of frustration, but this guy is not my kid. He is sharing his work and I benefit from that, so do others. It's not my place to patronize him, neither is it yours. A simple thank you would do in my case, in your case I think an apology would be in order, if you would be a decent enough person. But I guess that's beyond you. I guess you have a red hat on your head.
@michaelutech4786
@michaelutech4786 2 месяца назад
@@schizoidman9459 Just in case you're tempted to say that you didn't read the long comments I wrote and how amusing it is for you that somebody would spent the effort to write them: I am nice enough to provide what you requested. There the word nice again. But it actually has a meaning in this particular context. You will probably not understand the difference or agree.
Далее
Я ж идеальный?😂
00:32
Просмотров 120 тыс.
Why a linker author had to write a YAML parser in Zig
38:26
Advanced Hello World in Zig - Loris Cro
34:51
Просмотров 8 тыс.
2021: Year of the Linux Gaming Desktop - Andrew Kelley
42:38
How Zig is used at Uber - Motiejus Jakštys
36:56
Просмотров 23 тыс.
Zig in Depth: Interfaces
20:18
Просмотров 3,2 тыс.
Why Async/Await in Zig isn't That Easy - Loris Cro
1:08:30