The Golang Function Nobody Talks About

  Рет қаралды 7,968

Anthony GG

Anthony GG

Күн бұрын

Пікірлер: 24
@anthonygg_
@anthonygg_ Жыл бұрын
► 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
@worldwide6626 Жыл бұрын
The Georges St-Pierre of programming
@CrayonEater9845
@CrayonEater9845 Жыл бұрын
Very well explained. I've never considered the strategic yielding of the cpu to increase performance
@bumbam123
@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
@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_
@anthonygg_ Жыл бұрын
Would be nice to inspect the code and play around with what you suggest. Without loosing performance. Happy to learn
@michaelhart8928
@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
@GabrielPozo Жыл бұрын
Great example and explanation!
@it-kachalka
@it-kachalka Жыл бұрын
I think Golang already rescheduling CPU intensive goroutins using preemptive scheduler (from v1.14), so will this tactic still be viable?
@anthonygg_
@anthonygg_ Жыл бұрын
Need to look into that. Thanks for the heads up
@ashtwenty12
@ashtwenty12 Жыл бұрын
Would streaming the i messages with io.copy be good to deal with hight volumes?
@udhayarajan_m
@udhayarajan_m Жыл бұрын
tbh my TL told exact same thinng, now I'm bit clear thanks.
@samuelodhiambo8497
@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
@trofchik9488 Жыл бұрын
It was well explained.
@3ckortreat
@3ckortreat Жыл бұрын
i miss your videos using neovim 😭😭😭
@anthonygg_
@anthonygg_ Жыл бұрын
Ok ok, I will bring it back soon
@aamonaze
@aamonaze Жыл бұрын
@@anthonygg_ your vscode set up very great
@MCDyma
@MCDyma Жыл бұрын
Interesting usecase, to combine runtime.Gosched with actor model
@AminShahbaghi
@AminShahbaghi 6 ай бұрын
@vangogalon
@vangogalon Жыл бұрын
бл русские переводы автоматические это кринге кто смотрел тот поймет)
@user-zq8bt6hv9k
@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.
@RmbarokahCatering-zc4tt
@RmbarokahCatering-zc4tt Жыл бұрын
First sir🎉
@CuongNguyen-gu9fl
@CuongNguyen-gu9fl Жыл бұрын
I'm Starting To Like This Configuration Pattern In Go
11:49
Anthony GG
Рет қаралды 18 М.
Golang Channels Or Wait Groups? Let Me Explain.
18:32
Anthony GG
Рет қаралды 26 М.
Чистка воды совком от денег
00:32
FD Vasya
Рет қаралды 3,5 МЛН
This Will Make Everyone Understand Golang Interfaces
21:03
Anthony GG
Рет қаралды 55 М.
How To Stream Large Files Over TCP In Golang
17:50
Anthony GG
Рет қаралды 36 М.
Is Functional Programming DEAD Already?
21:07
Continuous Delivery
Рет қаралды 69 М.
Go Pointers: When & How To Use Them Efficiently
14:09
Anthony GG
Рет қаралды 86 М.
Harder Than It Seems? 5 Minute Timer in C++
20:10
The Cherno
Рет қаралды 219 М.
Microservices are Technical Debt
31:59
NeetCodeIO
Рет қаралды 653 М.
why are switch statements so HECKIN fast?
11:03
Low Level
Рет қаралды 428 М.
A Practical Example How To Use Interfaces In Golang
14:42
Anthony GG
Рет қаралды 29 М.
Mastering Dependency Injection In Golang
14:29
Anthony GG
Рет қаралды 52 М.
Nokia now vs Then 💀🗿 #blowup #nokia #edit #foryou
0:31
skullmaxx
Рет қаралды 20 МЛН
СДЕЛАЙ ТАК . Пульт будет работать вечно
9:39
Мужские интересы 79
Рет қаралды 245 М.
Me Charging My Phone Before Going Out
0:18
Godfrey Twins
Рет қаралды 14 МЛН