Tsoding has motivated me. I have compiled Raylib. Learned a little Make. And can now draw a red circle. Using c, and Notepad++. It's not much, but it's a start.
i like the new style of your videos where you add a few highlights and then the X hours earlier format. Not sure how much extra effort for you it is but I appreciate it Mr. Tsoding :)
futures/promises are an abstraction for the "handlers" of asynchronous/concurrent "tasks", which can either run on a separate OS-thread or a "app"-thread (a.k.a. coroutines). goroutines are go's rebranding of coroutines. The futures themselves are not an asynchronous execution primitive/model as you seem to be explaining but rather a "high-level" synching/coordination primitive, like channels. Its the "high-level" equivalent of joining a thread and fetching the result (and in the case of js you can also conveniently chain them). In the case of go, the goroutines do not return an intrinsic future and instead you usually use a channel for returning a result to the caller or similar to indicate the task has finished
@@kiosmallwood576 nope, problem is i have to change tabs to "ssh" every time i click this green "Code" button, but i want it to be default, it seems it only defaults to ssh when i'm in repo that i own
Coroutines sometimes, but not always, imply the use of a parallel stack that allows the coroutine to be paused at any arbitrary point no matter how deep into a function call it is, and to be resumed at a later point as well. So it's something a bit less than a full thread, and a bit more than a green thread. They also can be used to implement futures, so it's true that they are somewhat related.
An unpopular truth is that strtok() from the C standard library is one of the earliest implementations of a coroutine. You can call it repeatedly and even redirect the work it does, changing the source string it operates on and even changing the delimiters it uses while still processing the same string.
Hi Tsoding. I have been writing code in C for some time now. Was looking at all the new languages that promise to be worthy successors of C. Don’t like Rust. Zig is good. But I hear you often criticizing Zig and recently you have been working with C3. I need something more mature than C3 for my projects. What would you recommend? I would like to try Jai but it is still in the weird closed beta thing for a very long time now. Would love to hear your thoughts on it.
Zig is the best imho (Jai is looking better though, but it's not public). The only problem is that it hasn't released yet, which means it has a lot of bugs and will have major breaking changes that you might or might not like.
@@sknown it's more like jai or go and it has some nice build-in features for graphics programming, e.g vectors and quaternions as default types. if you want to do game development or anything 3D or 2D related I would use Odin instead of Zig. And maybe the learning curve with Odin isn't as steep as with Zig.
"coroutine is a computer program component that allows execution to be suspended and resumed" Great, so now python generators became goroutines. I'm not even confused anymore I just gave up a long time ago.
interesting library, really. Magnificent transmission, a very interesting library! Here is an interview with the creator of Libmill, which I find very illustrative. Greetings, tsoding, and thanks for all your content! ua-cam.com/video/zUDhcN-8oQo/v-deo.html
Tsoding has motivated me. I have compiled Raylib. Learned a little Make. And can now draw a red circle. Using c, and Notepad++. It's not much, but it's a start.
That's how you start doing anything:)
Big if true
Keep it up
Journey of a thousand miles begins with one step. Godspeed soldier 🤝
Keep it up, brother 💪 You should learn Vim at some point; it saves you a lot typing 😊
i like the new style of your videos where you add a few highlights and then the X hours earlier format. Not sure how much extra effort for you it is but I appreciate it Mr. Tsoding :)
C3 influencer posted
Just to mention, the author is author of ZeroMQ
This actually explains why the library is such a banger
@@TsodingDaily you should look into libdill, his successor version of libmill
@@hughesadrian Watch the full video ;) he did check it out
Zozzin have you seen Clay (C layout library)?
YES, this. I’d love for him to talk about Clay (and Nuklear).
@CookieGod24 yo I didn't know about nuklear! Looks sick!
Go take a look for clay 🎉🎉🎉🎉🎉
mahn i'm so bummed Clay refused to work for me first time but i'm working on fixing the issues (mostly Raylib ones) to try it out
Yep, please help check out Clay
10:41 probably the best definition of coroutine I've heard by far.
futures/promises are an abstraction for the "handlers" of asynchronous/concurrent "tasks", which can either run on a separate OS-thread or a "app"-thread (a.k.a. coroutines). goroutines are go's rebranding of coroutines. The futures themselves are not an asynchronous execution primitive/model as you seem to be explaining but rather a "high-level" synching/coordination primitive, like channels. Its the "high-level" equivalent of joining a thread and fetching the result (and in the case of js you can also conveniently chain them). In the case of go, the goroutines do not return an intrinsic future and instead you usually use a channel for returning a result to the caller or similar to indicate the task has finished
Tsoding is the reason I started learning more stuff man. He motivated me to start making a rasterizer... in vanilla JS (I am sorry)
the thumbnail of this video looks really amazing
libdill is the follow-up to this, but it's also abandoned.
1:38 is so perfect I want the skill to do that lmfao
25:52 actually CLEAN.
30:17 we're betraying raysan with this one 🗣🗣🗣
sorry for offtopic, but how to make github show me ssh link by default instead of https, like it did at 4:01 ?
You have to be logged into github and give them your ssh public key in your profile.
@@kiosmallwood576 nope, problem is i have to change tabs to "ssh" every time i click this green "Code" button, but i want it to be default, it seems it only defaults to ssh when i'm in repo that i own
If you have an ssh key added and click on the SSH tab once, as long as you’re logged in that will be the default
Coroutines sometimes, but not always, imply the use of a parallel stack that allows the coroutine to be paused at any arbitrary point no matter how deep into a function call it is, and to be resumed at a later point as well. So it's something a bit less than a full thread, and a bit more than a green thread. They also can be used to implement futures, so it's true that they are somewhat related.
An unpopular truth is that strtok() from the C standard library is one of the earliest implementations of a coroutine. You can call it repeatedly and even redirect the work it does, changing the source string it operates on and even changing the delimiters it uses while still processing the same string.
It's impossible for tsoding to not code in C. I respect that
you can learn so much from this channel... its freaking entertaining... and its for free 😮.... crazy...
I see the library author's repo for a dialect of go with structural concurrency. I suppose it's a good idea to look what he means by that.
3:30 into the video, already liking it
1:07:32 oh that's a new argument I'll be using when lurking around the web
Tsoding, have you seen CLAY?
Also you can compile C to Go using a compiler called C for Go
Interesting, does Go have an unsafe library to let you manage memory?
Isn't that just cgo?
This means we can have Go in C3 also. Who needs Go anymore!
CLay library for layouts in C next!
12:49 of course they had to mess with the stack frames
43:16 ahahaahah 😂
"millf" function lol
10:16
My friends are msvc users!
That thumbnail is top notch brother
Inc files re also "header files" of fasm.
Try out Clay, it's a C layout library
!clay
TBH if something like this lands in C3 it would be great.
Can't c3 just use this library directly anyway?
@bazilm1 yep, but i'd vet it before, it's not so manteined and imho has a not so great ergonomy
GCC & clang only - That's bad thing. What about IBM xlC, or Oracle C++ compiler for Solaris? Also sh*t?
where is the future, bed, and kitchen apis
This reminds me of cilk, which is similar to this but built into the compiler. I believe older versions of gcc supported it
С первых секунд понятно, что Tsoding русский или славянин, по обилию мата.
is someone using jujutsu for vcs?
I need go. Thanks for asking.
Engaging.
Damn, I did something similar for my Master Thesis, but for embedded. Didn't know about libmill tho! Should have included that in my sources.
now im more interested to read your thesis, where can i access it
bump
Other architecture than x86 to have would be nice
Hi Tsoding. I have been writing code in C for some time now. Was looking at all the new languages that promise to be worthy successors of C. Don’t like Rust. Zig is good. But I hear you often criticizing Zig and recently you have been working with C3. I need something more mature than C3 for my projects. What would you recommend? I would like to try Jai but it is still in the weird closed beta thing for a very long time now. Would love to hear your thoughts on it.
Zig is the best imho (Jai is looking better though, but it's not public). The only problem is that it hasn't released yet, which means it has a lot of bugs and will have major breaking changes that you might or might not like.
You could consider Odin.
More importantly try not to be discouraged by internet memeing. If you want to have fun making a thing then do it.
@@thesenamesaretaken Have you tried both Zig and Odin? I have tried Zig but not Odin. What would you say are the main reasons to choose Odin over Zig?
@@sknown it's more like jai or go and it has some nice build-in features for graphics programming, e.g vectors and quaternions as default types.
if you want to do game development or anything 3D or 2D related I would use Odin instead of Zig.
And maybe the learning curve with Odin isn't as steep as with Zig.
is there will be any pinged today in the discord, im waiting the pinged everyday bruh so sad yesterday is a day off
Amazing!
Librarby
Millf
another Sustrik's libary is ZeroMQ lib, quiet popular
ts pretty cool for game dev
Cool lib !
Echo server vs raylib speed run.... Why not send the pixels over the network, and have them echoed back and displayed on your machine 😂
Hi. aren't you Russian? your voice tone reminded me...
12 out of 10 for this libraries :)
"coroutine is a computer program component that allows execution to be suspended and resumed"
Great, so now python generators became goroutines. I'm not even confused anymore I just gave up a long time ago.
You can think of the generator as the underlying mechanisms, coroutines are just more powerfu because the "yield" can dynamically move around
@@StitchesForScars But still, it's within that definition. Only proves Alexey's point that it's tough to define.
interesting library, really.
Magnificent transmission, a very interesting library! Here is an interview with the creator of Libmill, which I find very illustrative. Greetings, tsoding, and thanks for all your content!
ua-cam.com/video/zUDhcN-8oQo/v-deo.html
Tsoding first
Sorry I use Rust btw. Go is not for smart people.
🙄
lmao
smh not even haskell
Most bearable, and Least annoying rust user:
@@TheCommunistRabbitWhat's the most annoying Rust user?
Why make a video on this? Go fans and the new hyper community coming to ruin this too 🤦♂️ now.