go-generics-the-hard-way
hashmap
Our great sponsors
go-generics-the-hard-way | hashmap | |
---|---|---|
14 | 8 | |
1,824 | 1,713 | |
- | - | |
0.0 | 2.9 | |
almost 2 years ago | 8 months ago | |
Go | Go | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
go-generics-the-hard-way
- Any good articles on generics and their usuages ? Found this in the earlier posts but this seems like a beginner sort of a post.
-
Ask HN: Was it worth it for Go to add generics
You don't actually have to instantiate the type for a receiver function (i.e., method). There's too much missing from your code for me to understand which direction you're going but you'll likely have to use a constraint for structs which is explained here: https://github.com/akutz/go-generics-the-hard-way/blob/main/...
- ✨ How will Go Generics in Go 1.18 change your life? 💜
-
Go 1.18 Beta 2 is out.
I captured my own thoughts on where it will be useful -- https://github.com/akutz/go-generics-the-hard-way/tree/main/07-lessons-learned. Container patterns is definitely a key situation for sure.
- Go Generics the Hard Way
-
Trying to understand sizes of binary artifacts built using generics
Thank you /u/DoomFrog666 -- I added a note the repo ahead of being able to do some more testing. I also credited you in the patch at https://github.com/akutz/go-generics-the-hard-way/commit/da1858c36162669ab8a6662283701287f671f243.
- "After spending some time playing with them, I began to appreciate how generics in Go have been designed and implemented with the same elegance and simplicity as Go itself."
- Go generics the hard way
- Go generics the hard way (PTAL and file issues/PRs, thanks!)
hashmap
-
SwissMap: A smaller, faster Golang Hash Table
I generally just use this one: https://github.com/cornelk/hashmap
Mostly in that it also gives me lock free performance, which cleans up a lot of defers.
-
Go 1.20 Released
Glad to see this make it into the core.
I've been using this library for ages now...
https://github.com/cornelk/hashmap
Always entertains me to see developers write all the lock/unlock code when they could just use that.
- Ask HN: Was it worth it for Go to add generics
- Gojq: Pure Go Implementation of Jq
-
HaxMap, a concurrent hashmap faster and more memory-efficient than golang's sync.Map
Pre-allocating would not fix https://github.com/cornelk/hashmap/issues/47 as the bug is in the linked list. This is not grow related but an issue with concurrent Add/Delete on the list.
-
A Go implementation of the concurrency control algorithm in paper <Left-Right -A Concurrency Control Technique with Wait-Free Population Oblivious Reads>
Would be interesting to compare with https://github.com/cornelk/hashmap
-
how does lock-free (or lockless) hashmap works?
I ran across this library recently - https://github.com/cornelk/hashmap
What are some alternatives?
go - The Go programming language
haxmap - Fastest and most memory efficient golang concurrent hashmap
proposal - Go Project Design Documents
go-left-right - A faster RWLock primitive in Go, 2-3 times faster than RWMutex. A Go implementation of concurrency control algorithm in paper <Left-Right - A Concurrency Control Technique with Wait-Free Population Oblivious Reads>
generics
sonic - A blazingly fast JSON serializing & deserializing library
jqr
xxHash - Pure Go implementation of xxHash (32 and 64 bits versions)
pq - Like jq, but with Python
immutable-js - Immutable persistent data collections for Javascript which increase efficiency and simplicity.
query-json - Faster, simpler and more portable implementation of `jq` in Reason