From d12e26cb9e574fcf68ff4326329507ac96d79d3d Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Thu, 31 Jul 2025 20:26:27 +0800 Subject: [PATCH 1/9] docs: add more use cases --- README.md | 16 +++++++++++++++- README_ZH.md | 17 +++++++++++++++-- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 826a55e..dabe2bf 100644 --- a/README.md +++ b/README.md @@ -147,7 +147,7 @@ The source code in `ants` is available under the [MIT License](/LICENSE). ## 🖥 Use cases -### business corporations +### business corporations & open-source organizations Trusted by the following corporations/organizations. @@ -258,7 +258,19 @@ Trusted by the following corporations/organizations. + + + + + + + + + + + + @@ -273,6 +285,8 @@ The open-source projects below do concurrent programming with the help of `ants` - [nps](https://github.com/ehang-io/nps): A lightweight, high-performance, powerful intranet penetration proxy server, with a powerful web management terminal. - [TDengine](https://github.com/taosdata/TDengine): TDengine is an open source, high-performance, cloud native time-series database optimized for Internet of Things (IoT), Connected Cars, and Industrial IoT. - [siyuan](https://github.com/siyuan-note/siyuan): SiYuan is a local-first personal knowledge management system that supports complete offline use, as well as end-to-end encrypted synchronization. +- [BillionMail](https://github.com/aaPanel/BillionMail): A future open-source Mail server, Email marketing platform designed to help businesses and individuals manage their email campaigns with ease. +- [coze-loop](https://github.com/coze-dev/coze-loop): A developer-oriented, platform-level solution focused on the development and operation of AI agents. - [osmedeus](https://github.com/j3ssie/osmedeus): A Workflow Engine for Offensive Security. - [jitsu](https://github.com/jitsucom/jitsu/tree/master): An open-source Segment alternative. Fully-scriptable data ingestion engine for modern data teams. Set-up a real-time data pipeline in minutes, not days. - [triangula](https://github.com/RH12503/triangula): Generate high-quality triangulated and polygonal art from images. diff --git a/README_ZH.md b/README_ZH.md index 793c02c..a9244b6 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -148,7 +148,7 @@ pool.Reboot() ## 🖥 用户案例 -### 商业公司 +### 商业公司和开源组织 以下公司/组织在生产环境上使用了 `ants`。 @@ -258,10 +258,21 @@ pool.Reboot() + + + + + + + + + + + + - 如果你也正在生产环境上使用 `ants`,欢迎提 PR 来丰富这份列表。 ### 开源软件 @@ -273,6 +284,8 @@ pool.Reboot() - [nps](https://github.com/ehang-io/nps): 一款轻量级、高性能、功能强大的内网穿透代理服务器。 - [TDengine](https://github.com/taosdata/TDengine): TDengine 是一款开源、高性能、云原生的时序数据库 (Time-Series Database, TSDB)。TDengine 能被广泛运用于物联网、工业互联网、车联网、IT 运维、金融等领域。 - [siyuan](https://github.com/siyuan-note/siyuan): 思源笔记是一款本地优先的个人知识管理系统,支持完全离线使用,同时也支持端到端加密同步。 +- [BillionMail](https://github.com/aaPanel/BillionMail): BillionMail 是一个未来的开源邮件服务器和电子邮件营销平台,旨在帮助企业和个人轻松管理他们的电子邮件营销活动。 +- [coze-loop](https://github.com/coze-dev/coze-loop): Coze Loop 是一个面向开发者,专注于 AI Agent 开发与运维的平台级解决方案。 - [osmedeus](https://github.com/j3ssie/osmedeus): A Workflow Engine for Offensive Security. - [jitsu](https://github.com/jitsucom/jitsu/tree/master): An open-source Segment alternative. Fully-scriptable data ingestion engine for modern data teams. Set-up a real-time data pipeline in minutes, not days. - [triangula](https://github.com/RH12503/triangula): Generate high-quality triangulated and polygonal art from images. From 49d5ce65675d8fa69e0e9339f71e8f9a7a63b78a Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Fri, 8 Aug 2025 22:38:10 +0800 Subject: [PATCH 2/9] chore: update READMEs --- README.md | 36 +++++++++++++++++++++--------------- README_ZH.md | 36 +++++++++++++++++++++--------------- 2 files changed, 42 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index dabe2bf..b7ace0b 100644 --- a/README.md +++ b/README.md @@ -318,25 +318,31 @@ If you have `ants` integrated into projects, feel free to open a pull request re JetBrains logo. -## 💰 Backers - -Support us with a monthly donation and help us continue our activities. - - - -## 💎 Sponsors - -Become a bronze sponsor with a monthly donation of $10 and get your logo on our README on GitHub. - - - ## ☕️ Buy me a coffee > Please be sure to leave your name, GitHub account, or other social media accounts when you donate by the following means so that I can add it to the list of donors as a token of my appreciation. -   -   -   + + + + + + + + +
+ + By me coffee + + + + Patreon + + + + OpenCollective + +
## 🔋 Sponsorship diff --git a/README_ZH.md b/README_ZH.md index a9244b6..fba4074 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -317,25 +317,31 @@ pool.Reboot() JetBrains logo. -## 💰 支持 - -如果有意向,可以通过每个月定量的少许捐赠来支持这个项目。 - - - -## 💎 赞助 - -每月定量捐赠 10 刀即可成为本项目的赞助者,届时您的 logo 或者 link 可以展示在本项目的 README 上。 - - - ## ☕️ 打赏 > 当您通过以下方式进行捐赠时,请务必留下姓名、GitHub 账号或其他社交媒体账号,以便我将其添加到捐赠者名单中,以表谢意。 -   -   -   + + + + + + + + +
+ + By me coffee + + + + Patreon + + + + OpenCollective + +
## 🔋 赞助商 From a0e137a51c4159d9a48fbeaf858377a5386df8f6 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sat, 27 Sep 2025 16:40:56 +0800 Subject: [PATCH 3/9] chore: add a new use case --- README.md | 1 + README_ZH.md | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index b7ace0b..0efa394 100644 --- a/README.md +++ b/README.md @@ -286,6 +286,7 @@ The open-source projects below do concurrent programming with the help of `ants` - [TDengine](https://github.com/taosdata/TDengine): TDengine is an open source, high-performance, cloud native time-series database optimized for Internet of Things (IoT), Connected Cars, and Industrial IoT. - [siyuan](https://github.com/siyuan-note/siyuan): SiYuan is a local-first personal knowledge management system that supports complete offline use, as well as end-to-end encrypted synchronization. - [BillionMail](https://github.com/aaPanel/BillionMail): A future open-source Mail server, Email marketing platform designed to help businesses and individuals manage their email campaigns with ease. +- [WeKnora](https://github.com/Tencent/WeKnora): An LLM-powered framework designed for deep document understanding and semantic retrieval, especially for handling complex, heterogeneous documents. - [coze-loop](https://github.com/coze-dev/coze-loop): A developer-oriented, platform-level solution focused on the development and operation of AI agents. - [osmedeus](https://github.com/j3ssie/osmedeus): A Workflow Engine for Offensive Security. - [jitsu](https://github.com/jitsucom/jitsu/tree/master): An open-source Segment alternative. Fully-scriptable data ingestion engine for modern data teams. Set-up a real-time data pipeline in minutes, not days. diff --git a/README_ZH.md b/README_ZH.md index fba4074..95c8e55 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -285,6 +285,7 @@ pool.Reboot() - [TDengine](https://github.com/taosdata/TDengine): TDengine 是一款开源、高性能、云原生的时序数据库 (Time-Series Database, TSDB)。TDengine 能被广泛运用于物联网、工业互联网、车联网、IT 运维、金融等领域。 - [siyuan](https://github.com/siyuan-note/siyuan): 思源笔记是一款本地优先的个人知识管理系统,支持完全离线使用,同时也支持端到端加密同步。 - [BillionMail](https://github.com/aaPanel/BillionMail): BillionMail 是一个未来的开源邮件服务器和电子邮件营销平台,旨在帮助企业和个人轻松管理他们的电子邮件营销活动。 +- [WeKnora](https://github.com/Tencent/WeKnora): 一款基于大语言模型(LLM)的文档理解与语义检索框架,专为结构复杂、内容异构的文档场景而打造。 - [coze-loop](https://github.com/coze-dev/coze-loop): Coze Loop 是一个面向开发者,专注于 AI Agent 开发与运维的平台级解决方案。 - [osmedeus](https://github.com/j3ssie/osmedeus): A Workflow Engine for Offensive Security. - [jitsu](https://github.com/jitsucom/jitsu/tree/master): An open-source Segment alternative. Fully-scriptable data ingestion engine for modern data teams. Set-up a real-time data pipeline in minutes, not days. From e954908c15133d999a0c1f396ca296e1c0a5b4a9 Mon Sep 17 00:00:00 2001 From: Fufu Date: Sat, 27 Dec 2025 11:59:21 +0800 Subject: [PATCH 4/9] bug: hold the lock when spawning a new worker (#376) Fixes #374 --- ants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ants.go b/ants.go index eae6a14..50ef08e 100644 --- a/ants.go +++ b/ants.go @@ -472,9 +472,9 @@ retry: // If the worker queue is empty, and we don't run out of the pool capacity, // then just spawn a new worker goroutine. if capacity := p.Cap(); capacity == -1 || capacity > p.Running() { - p.lock.Unlock() w = p.workerCache.Get().(worker) w.run() + p.lock.Unlock() return } From 2ef50b8852e56743cd3ae85e605224dda94f8330 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sat, 27 Dec 2025 12:16:03 +0800 Subject: [PATCH 5/9] Fix the typo: by -> buy Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- README_ZH.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README_ZH.md b/README_ZH.md index 95c8e55..0998dc1 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -327,7 +327,7 @@ pool.Reboot() - By me coffee + Buy me coffee From c0d923bfa69de45e4adf7e7cbbefbdad3e37dc52 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sat, 27 Dec 2025 12:16:22 +0800 Subject: [PATCH 6/9] Update README.md to fix indents Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0efa394..81695bb 100644 --- a/README.md +++ b/README.md @@ -264,7 +264,7 @@ Trusted by the following corporations/organizations. - + From d9918315a1926a3aa2a706a1f71ae2f7d6ff57bb Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sat, 27 Dec 2025 12:16:44 +0800 Subject: [PATCH 7/9] Update README_ZH.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- README_ZH.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README_ZH.md b/README_ZH.md index 0998dc1..69e8736 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -264,13 +264,13 @@ pool.Reboot() - + - + 如果你也正在生产环境上使用 `ants`,欢迎提 PR 来丰富这份列表。 From 4e490859adfc5d53af9415e11a644abc00793559 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sat, 27 Dec 2025 12:21:18 +0800 Subject: [PATCH 8/9] Update README.md to fix typos: by -> buy Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 81695bb..933e632 100644 --- a/README.md +++ b/README.md @@ -328,7 +328,7 @@ If you have `ants` integrated into projects, feel free to open a pull request re - By me coffee + Buy me a coffee From 76ddb18c0cf4fdad7d496521ae9eb9cd52f87666 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sat, 27 Dec 2025 12:21:50 +0800 Subject: [PATCH 9/9] Update README.md to fix indents with spaces Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 933e632..3baa602 100644 --- a/README.md +++ b/README.md @@ -270,7 +270,7 @@ Trusted by the following corporations/organizations. - +