Become a Golang Expert With This Hands-On Golang Course 👉 kantancoding.io
@arkantos14821 Жыл бұрын
so we start with 1- coarse Locks, and then to 2- finer locks, and then to 3- enough precise memory access patterns which doesn't require locking (since there is no sharing memory) Great Job Kantan, I really enjoy your videos in golang !!
@kantancoding Жыл бұрын
Thank you! I really appreciate your support and I’m glad that the videos are helpful 😊❤️
@krushnnabaviskar41312 күн бұрын
Thanks for doing such great help to community .
@Honest_Market Жыл бұрын
It's a request to you please don't stop posting this type of valuable content for us.
@kantancoding Жыл бұрын
Hi! Thank you for your support. New concurrency video coming soon 😊
@megadrocks Жыл бұрын
Bruh, I have a Go interview tomorrow, just finished your Master Go Programming With These Concurrency Patterns video, and watching this now. A big thank you for this content.
@kantancoding Жыл бұрын
No problem brother! Good luck with your interview 🚀
@AlfredLotsu Жыл бұрын
hey how did it go?
@sarcasticdna Жыл бұрын
how did it go?
@IkraamDev9 ай бұрын
did it go?
@metachain53458 ай бұрын
Unfortunately He's fail his interview
@haroonalbar27252 ай бұрын
really hight quality content. Thanks man.
@kantancoding2 ай бұрын
Thank you for watching brother! I appreciate the support.
@ttybitnik9 ай бұрын
Respect. Every piece of content I've watched from you is flawless. Your drawings and explanations are spot on. Thanks a lot for taking the time to share your knowledge.
@kantancoding9 ай бұрын
Thank you! It’s always reassuring to see people actually appreciate the amount of effort I put in. Sometimes I feel like people only want to see overly simplified gimmicky content 🫠
@ilariacorda8 ай бұрын
The quality of this content is amazing, well done!
@kantancoding8 ай бұрын
Much appreciated! I’m glad you enjoy it 😊
@henrmota9 ай бұрын
Excelent video. For me confinment it was easy to understand because I already knew how an array/slice is stored in memory. Never tought about this pattern, and it is really cool and an elegant solution.
@kantancoding9 ай бұрын
Thank you! I’m glad it was interesting for you as well 🙂
@b99andla10 күн бұрын
Great content, thank you!
@jubinsoni46942 ай бұрын
Nice Video and Loved your explanation. Thank you for sharing
@kantancoding2 ай бұрын
No problem! Happy to help 😊
@KevinDevops3 ай бұрын
This is one of the best golang concurrency explanation, thanks for sharing Sir Anyway is there any group of Golang community that I can join to keep improving my golang knowledge?
@sainipankaj Жыл бұрын
Nice explaintion , Commenting for better reach Got the new way to handle the Datastructure and also learnt we have to always very cautious what we are writing
@kantancoding Жыл бұрын
Commenting really helps so thank you!! ❤️
@bhaveshmuleva2352 Жыл бұрын
Hey your videos are really good ❤ Can you make one video on "learn go programming by contributing to open source" You can too suggest some best open source golang projects out there to contribute Would love to see this Thanks ✌️
@kantancoding Жыл бұрын
Hmm, I don’t really know what the video would consist of. I mean of course, the more you contribute to open source, the better you will become.. but I don’t really have anything specific to say other than, just keep contributing to open source. Also, literally any open source project is fine imo. Thank you for the suggestion! 😊 If you have additional details please let me know!
@Nenad_bZmaj9 ай бұрын
Thank you. Nice. Just a remark: there are no shared resources in you example for confinement pattern. When shared resourced do exist, the confinement pattern is more complicated and involves channels.
@kantancoding9 ай бұрын
🤔
@nanonkay5669 Жыл бұрын
Early gang lets go!!!! I get it, basically each goroutine is only going to changing a value at a particular address in memory. It has no idea about the array it is changing.
@kantancoding Жыл бұрын
Yes! I hope it helped! 😊
@lsdc18 ай бұрын
Thank you for your channel Excellent resource Gifted teacher
@kantancoding8 ай бұрын
Thank you! I’m glad it helps 😊
@Nicholascarballo Жыл бұрын
Aren’t slices, maps and channels passed by “reference” in func arguments? In that case, I believe that just passing the variable result as argument without its reference will lead to the same results.
@kantancoding Жыл бұрын
So slices are a bit confusing but let me try to explain. In Go, slices are passed by value but a slice value is a header describing a section of a backing array. So if we just pass result in instead of a pointer to result, processData will basically just receive it’s own copy of a header to the same backing array. And when we append to that slice in processData, it will only modify the slice or header in the scope of processData. Since the slice in main() is a different slice.. it won’t get modified. Therefore, in each go routine, it will have its own slice… and append the processed data to it… then once that go routine finishes.. the processed data in the slice within the scope of that go routines processData call will be removed from the stack. So the end result is that the result slice in main() will be empty since each go routine was appending to its own slice. You can actually test this behavior quite easily. Just try it the way you mentioned and print the result both inside of processData and in main and you’ll see what I mean 👍
@Nicholascarballo Жыл бұрын
@@kantancoding Indeed, under the hoods things can get overly complicated, but you managed to summarize the whole concept. I’ve just re-watched your video on mastering concurrency patterns and I few this time I had a deeper understanding about your explanations. It’s a shame we can’t give more than one thumbs up to your videos.
@kantancoding Жыл бұрын
You’ve actually inspired me to make a video explaining arrays & slices in Go so thank you! ❤️ Also, I’m happy that you were able to understand things more deeply. Thank you for your support. It really means a lot to me 😊
@Nicholascarballo Жыл бұрын
@@kantancoding Can’t wait to watch it!
@RezaAsghari-w5f5 ай бұрын
So helpful
@dennisboachie1817 Жыл бұрын
You're a never disappointing life saver!
@kantancoding Жыл бұрын
I’m glad it was helpful! 😊
@nanateinumondestanley78197 ай бұрын
God bless you for this video bro.
@kantancoding7 ай бұрын
I’m happy to help brother ❤️
@rishirajrao53376 ай бұрын
Excellent explaination. Thank you!
@kantancoding5 ай бұрын
Happy to help brother!
@pjc825 Жыл бұрын
Thank you, your videos and content are great 💯😃👍
@kantancoding Жыл бұрын
Happy to help 😊 and thank you!
@webcodeuniversity10 ай бұрын
This is cool, thanks for the explanation. as a beginner in Go, is there a limit how many goroutines we can fork? I'm talking about large scale concurrency use case and wondering if we have to limit goroutines, or it doesn't matter as goroutines once they're done they get garbage collected, any details would be appreciated please, also feel free to provide any kind of resources related to this to read/watch
@kantancoding10 ай бұрын
Hey! Thanks for watching. I’d say you are limited by the host system at the very least. The degree of such a limit would likely depend on the system or machine that it’s running on. Regarding other resources, if you are focused specifically on concurrency, this video is part of a playlist of 3 videos. I’d start with the concurrency patterns video 👍
@webcodeuniversity10 ай бұрын
Thanks@@kantancodingI watched part2 just now lol and I left one question, I'll look for part 3 for sure 😄Godo stuff
@kantancoding10 ай бұрын
@@webcodeuniversity You watches part 2/2. There is a part 1/2 in the playlist.
@deanschulze31298 ай бұрын
You've eliminated access to shared state. That's easy to do with arrays. What other data structures will this pattern work with?
@kantancoding8 ай бұрын
Think of this series as a set of tools. I’m not saying that any one tool solves ALL problems. I’m presenting an array of tools (no pun intended) but in the real world, the specific project will determine which tools are viable in a given scenario.
@aghileslounis9 ай бұрын
Excellent
@anuragkothare61814 ай бұрын
Which Fonts?
@aadazq5257Ай бұрын
What is the name of vscode theme you used?
@kantancodingАй бұрын
Most likely Dracula
@nitishagrahari9943 Жыл бұрын
Yeahh.... Thank you kantan❤❤
@kantancoding Жыл бұрын
My pleasure 😊
@milanutekal5083 Жыл бұрын
excellent content
@kantancoding Жыл бұрын
Thank you! ❤️
@bpavacic9 ай бұрын
would it work if result is []char ? Coming from the C world😊 where concurrent writes to addresses that are in the same 'word' would be unsafe
@kantancoding8 ай бұрын
Hey sorry, haven’t watched this video in a while. Would what work?
@thecodealchemist7095 Жыл бұрын
So Mutex is like Python's GIL or like Thread.lock?
@kantancoding Жыл бұрын
I’m pretty sure the GIL is a mutex but you should confirm. As for Thread.lock, I’ve actually never used it so I don’t know. Thanks for watching! 😊