SOSatyarth Ojhainprog-bytes.hashnode.dev·Nov 25, 2023 · 7 min readMerkle Trees - IISome time ago, I added an article on what Merkle Trees are and a simple implementation in Go. You can find the article here "Merkle Trees". After all this time, I finally decided to write a follow-up article to compare how we can make the process eve...00
SOSatyarth Ojhainprog-bytes.hashnode.dev·Nov 13, 2023 · 4 min readGolang Structs Memory Allocation - III shared some of the understandings about how memory is allocated in Go within a struct and how can we make minor tweaks and attain good optimizations in our program. The link to the previous article is here (Golang Struct Memory Allocation). Talk i...00
SOSatyarth Ojhainprog-bytes.hashnode.dev·Nov 11, 2023 · 5 min readGolang Structs Memory AllocationAll values and examples have been run on Go Playground using Go 1.21 In Golang the memory allocation follows a set of rules. Before getting into those rules we need to understand what the alignment of variables is Golang unsafe package has a functio...00
SOSatyarth Ojhainprog-bytes.hashnode.dev·Jun 30, 2022 · 5 min readIntroduction to Go GenericsGo 1.18 arrived with the added support for "generics". Okay. But what are generics? So generics are a way of writing code that is not restricted with the specific types being used. But we could already use interface{} and have type casting. Yes...00
SOSatyarth Ojhainprog-bytes.hashnode.dev·Dec 5, 2021 · 8 min readMerkle TreesMost of the folks among us would have heard of the terms "encryption" , "security" , "safety" etc. and these mostly refer to the cybersecurity principles which have become the norm in today's information world where data has become a traceable entit...00