generics
By facebookarchive
go-generics-the-hard-way
A hands-on approach to getting started with Go generics. (by akutz)
generics | go-generics-the-hard-way | |
---|---|---|
2 | 14 | |
308 | 1,824 | |
- | - | |
0.0 | 0.0 | |
about 7 years ago | almost 2 years ago | |
Go | ||
- | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
generics
Posts with mentions or reviews of generics.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-07.
-
Ask HN: Was it worth it for Go to add generics
There used to be a troll repo on Facebook's GitHub org about Go generics, which is now archived, so ... maybe?
https://github.com/facebookarchive/generics
- Functional programming in Go with generics
go-generics-the-hard-way
Posts with mentions or reviews of go-generics-the-hard-way.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-07.
- 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!)
What are some alternatives?
When comparing generics and go-generics-the-hard-way you can also consider the following projects:
go - The Go programming language
proposal - Go Project Design Documents
hashmap - A Golang lock-free thread-safe HashMap optimized for fastest read access.