Au

Auto-scaling worker pool library, using Go 1.18 generics

Hacker News

Auto-scaling worker pool library, using Go 1.18 generics

I recently published a new worker pool library that uses generics. Generics allowed me to design a different API from other libraries. Instead of submitting a function for each task (as other libraries do), you submit values. This enabled me to make the pools connectable into pipelines, which can be useful if you want to separate IO-intensive from CPU-intensive tasks, or tasks of different parallelizability. It also supports auto-scaling (resizable number of workers), which currently works well for my needs, but has a lot of room for improvement, especially in the case of pipelines with bottleneck. Type Pool[I, O, C any] has three type parameters, but if you don't need all of them, I offer constructors that hide some of those types (by assigning them to empty struct). I would appreciate your feedback.

Share card

Actual performance

1points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
TrustMRRFits verified-revenue profile · Strong signals: para · Missing: mobile apps, ios, personal
64%64% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: supports, para · Missing: reddit linkedin, podcasting, created
54%54% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Product HuntOn track for Day 1 leaderboard · Strong signals: new, tasks, using · Missing: mac, agents, macos
52%52% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
32%32% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: ide, pipe, io · Missing: https docs, excited, just released
27%27% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
15%15% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
1%1% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Th
The first Go 1.18 generics cache library54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

The first Go 1.18 generics cache library

Hacker News1
A
A dependency injection library based on Go 1.18 Generics32%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A dependency injection library based on Go 1.18 Generics

Hacker News2
Fenerbahçe LyonMaciCanliIzle
Fenerbahçe LyonMaciCanliIzle5%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

[[Canlı-Yayın!]Fenerbahçe - Lyon Maci Canli Izle 18 Ağustos

Indie Hackers
Th
Thread Pool implementation in C++45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Thread Pool implementation in C++

Hacker News2
Fi
Finger Pool29%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Finger Pool

Hacker News1
Fi
Finger Pool29%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Finger Pool

Hacker News1
Wo
Worker Pool for Erlang53%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Worker Pool for Erlang

Hacker News8
El
Elasticsearch for the GPG keyserver pool51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Elasticsearch for the GPG keyserver pool

Hacker News6
Houston Pool Renovations
Houston Pool Renovations20%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Pool remodeling, resurfacing

Product Hunt+6
Fr
Free BitTorrent Library Using WebTorrent34%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Free BitTorrent Library Using WebTorrent

Hacker News1