SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 Generic Open-Source Projects
-
Might be interesting to make a library that competes with https://github.com/samber/lo?
-
InfluxDB
InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
-
-
golang-set
A simple, battle-tested and generic set type for the Go language. Trusted by Docker, 1Password, Ethereum and Hashicorp.
-
-
rueidis
A fast Golang Redis client that supports Client Side Caching, Auto Pipelining, Generics OM, RedisJSON, RedisBloom, RediSearch, etc.
It's important to note that it's possible to use any Redis-compatible client with Valkey. I used the go-redis client, but (at the time of writing) there is work underway to build Valkey specific client libraries. Check the Valkey GitHub org to take look at the forks of existing Redis client libraries such as valkey-go (corresponding to rueidis), iovalkey (corresponding to ioredis), Jackey (corresponding to jedis) etc. These are very early days (at the time of writing), and it will be interesting to see the progress here!
-
Project mention: Faster interpreters in Go: Catching up with C++ | news.ycombinator.com | 2025-04-05
do a type analysis on each expression you want to "compile" to a closure, and instantiate the correct closure for each type combination.
Here is a pseudocode example, adapted from https://github.com/cosmos72/gomacro/blob/2ff796e3da1057c005c...
/* return a closure that computes x + y when executed /
-
Project mention: Do: A dependency injection toolkit based on Go 1.18 Generics | news.ycombinator.com | 2024-07-24
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
pie
🍕 Enjoy a slice! A utility library for dealing with slices and maps that focuses on type safety and performance. (by elliotchance)
-
-
Not sure how I didn't find this before, but https://github.com/zyedidia/generic looks like a decent library.
Although there are some decent libraries out there for this kind of thing, my complaint mostly stems from the fact that a lot of existing code doesn't involve generics yet.
I think I remember skimming an article about for range loops on Hacker News a while back, but again, my main complaint is still that existing code exists in a way that doesn't incorporate all these new features yet.
-
-
-
-
-
go-generics-cache
A key:value store/cache library written in Go generics. LRU, LFU, FIFO, MRU, Clock support.
-
-
-
-
-
-
-
Project mention: Show HN: Convenient Containers – ergonomic generics in C | news.ycombinator.com | 2025-04-23
-
staticvec
Implements a fixed-capacity stack-allocated Vec alternative backed by an array, using const generics.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Generics discussion
Generics related posts
-
Show HN: Convenient Containers – ergonomic generics in C
-
Implementing Generic Types in C
-
Go Is a Well-Designed Language
-
1BRC Coding Challenge: Nerd Sniping the Java Community
-
Fun with Go Iterators
-
SwissTable: A High-Performance Hash Table Implementation
-
One Billion Row Challenge in Golang - From 95s to 1.96s
-
A note from our sponsor - SaaSHub
www.saashub.com | 15 May 2025
Index
What are some of the best open-source Generic projects? This list will help you:
# | Project | Stars |
---|---|---|
1 | lo | 19,362 |
2 | lancet | 5,015 |
3 | golang-set | 4,504 |
4 | mo | 2,955 |
5 | rueidis | 2,646 |
6 | gomacro | 2,233 |
7 | do | 2,090 |
8 | pie | 1,999 |
9 | gen | 1,427 |
10 | generic | 1,302 |
11 | goderive | 1,257 |
12 | Time | 1,069 |
13 | ttlcache | 1,047 |
14 | Time | 979 |
15 | go-generics-cache | 474 |
16 | generic-records | 441 |
17 | enum | 424 |
18 | Arrow Meta | 403 |
19 | Observable | 375 |
20 | awesome-go | 360 |
21 | genesis | 349 |
22 | CC | 294 |
23 | staticvec | 268 |