► Join my Discord community for free education 👉 discord.com/invite/Ac7CWREe58 ► Exclusive Lessons, Mentorship, And Videos 👉 www.patreon.com/anthonygg_ ► 60% OFF on my Golang course 👉 fulltimegodev.com github.com/anthdm/hollywood Thanks for watching
@worldwide6626 Жыл бұрын
The Georges St-Pierre of programming
@CrayonEater9845 Жыл бұрын
Very well explained. I've never considered the strategic yielding of the cpu to increase performance
@bumbam123 Жыл бұрын
It does not seem smart to rely on such mechanism. Erlang invented it all: make an output mailbox and send it by size and by timer. It's simple, reliable and does not mess with the runtime.
@douglasmakey Жыл бұрын
I don’t think it’s worth paying the cost of `gosched` for this use case, especially when there are other simple and effective ways to handle it.
@anthonygg_ Жыл бұрын
Would be nice to inspect the code and play around with what you suggest. Without loosing performance. Happy to learn
@michaelhart8928 Жыл бұрын
Another good one I’d imagine is if you have a CPU bound workload and you don’t want to starve goroutines waiting to be scheduled. You’re basically acting as your own scheduler if you want to preempt certain workloads.
@GabrielPozo Жыл бұрын
Great example and explanation!
@it-kachalka Жыл бұрын
I think Golang already rescheduling CPU intensive goroutins using preemptive scheduler (from v1.14), so will this tactic still be viable?
@anthonygg_ Жыл бұрын
Need to look into that. Thanks for the heads up
@ashtwenty12 Жыл бұрын
Would streaming the i messages with io.copy be good to deal with hight volumes?
@udhayarajan_m Жыл бұрын
tbh my TL told exact same thinng, now I'm bit clear thanks.
@samuelodhiambo8497 Жыл бұрын
Nice, can you do a video on gokang generics, say something thatuses mutext to store a clice of ints/structs or whichever in an array. Also one on memory encryption at runtime if we can actually accomplish this in golang.
@trofchik9488 Жыл бұрын
It was well explained.
@3ckortreat Жыл бұрын
i miss your videos using neovim 😭😭😭
@anthonygg_ Жыл бұрын
Ok ok, I will bring it back soon
@aamonaze Жыл бұрын
@@anthonygg_ your vscode set up very great
@MCDyma Жыл бұрын
Interesting usecase, to combine runtime.Gosched with actor model
@AminShahbaghi6 ай бұрын
❤
@vangogalon Жыл бұрын
бл русские переводы автоматические это кринге кто смотрел тот поймет)
@user-zq8bt6hv9k Жыл бұрын
you lost me when you started to talk about actors. sounds hacky and java based. saying it's faster without actual numbers is not soyentific. also when dealing with network you're blocking anyway.