Skip to content
⌘K

coost

A tasteful, minimal C++ base library.

health 59contrib 434.2k

Overview & architecture

C++ standard
–
Build systems
–
Languages
C++
Last release
v4.0.1 · Sep 28, 2026

Repository activity

snapshot Nov 23, 2026
GitHub stars
latest
4.2k▲ 14
Merged PRs (30d)
latest
1▲ 1
Contributors (90d)
latest
2▲ 1
Issue first response p50
latest
25h
1 open issues0 open PRs5 commits (30d)0 good first issues0 help wanted

Recent notable activity

  • Discussion
    Designing a Lightweight Closure for coost: Performance, Generality, and a Few Clever Tricks

    In coost, you can create coroutines using go in a way similar to Golang. The go function could initially be designed as: cpp void go(void (*f)()); void go(void (*f)(void*), void* param); However, this design only accepts two fixed function types and cannot support class member…

    by New-Bet1597
  • Release
    coost v4.0.1

    Minor bug fixes Memory usage improvements Security enhancements Some minor improvements

    idealvinv4.0.1
  • Release
    coost v4.0.0

    简体中文 ================================================== coost v4.0.0 发布 coost v4.0.0 是一次较大的版本更新:编译器要求提升至 C++17,移除了若干维护成本较高的模块,新增 Windows ARM64 与 FreeBSD 平台支持,并对核心组件进行了性能优化与 API 整理。升级前请先阅读下方的破坏性变更。 1. 破坏性变更 编译器要求 C++17 旧版本中的流式日志写法: cpp LOG << "hello " << 23; 在本版本中被替换为更安全、更直观的函数式写法: cpp log::info("hello ", 23);…

    idealvinv4.0.0
  • Release
    coost v3.0.2

    Changes Fix initialization of static variables, see #345. Support non-ascii path in file APIs on Windows, see #347. Add fs::mv. Fix a bug in co::vector, see #349. Fix return value of _vm_reserve in memory allocator. Fix c_str() of fastring, fastream.

    idealvinv3.0.2
  • Release
    coost v3.0.1

    New features Benchmark framework. cpp #include "co/benchmark.h" #include "co/mem.h" BM_group(malloc) { void* p; BM_add(::malloc)( p = ::malloc(32); ); BM_use(p); BM_add(co::alloc)( p = co::alloc(32); ); BM_use(p); } int main(int argc, char argv) { flag::parse(argc, argv); bm::run_benchmarks(); return 0; } bm.png gen…

    idealvinv3.0.1
  • Release
    coost v3.0.0

    New features & improvement Improve cmake scripts and support Conan. Improve export of symbols in shared library. Thanks to SpaceIm. A better JSON library. Support precision control for float point numbers in Json. cpp // {"a":23,"b":false,"s":"xx","v":[1,2,3],"o":{"xx":0}} Json x = { { "a", 23 }, { "b", false }, {…

    idealvinv3.0.0
  • Release
    coost v2.0.3

    New features Add str::cat(...), fastream::cat(...), fastring::cat(...) sh fastring s("hello"); s.cat(' ', 23, "xx", false); // s -> "hello 23xxfalse" s = str::cat("hello", ' ', 23, true); // s -> "hello 23true" Support writing logs to customed destinations by setting a writing callback in co/log. Support daily…

    idealvinv2.0.3
  • Release
    coost v2.0.2

    New features Support mingw on windows. sh xmake f -p mingw xmake -v Support shared library on windows. sh xmake f -k shared xmake -v Support syslog header for co/log. sh xmake b log xmake r log -syslog -cout Add god mode. When you feel uneasy about writing a function of several hundred lines, you may call the…

    idealvinv2.0.2
  • Release
    coost v2.0.1

    Documents English: github gitee 中文: github gitee New features xrepo sh xrepo install -f "openssl=true,libcurl=true" co vcpkg sh vcpkg install co:x64-windows http & ssl support vcpkg install co[libcurl,openssl]:x64-windows defer (similar to defer in golang) cpp #include "co/defer.h" Timer t; defer(LOG ch; go(ch { ch >…

    idealvinv2.0.1
  • Release
    coost v2.0.0

    Detailed reference documents First of all, it is particularly emphasized that more detailed documents are provided this time: 中文 English New features SSL Co 2.0 finally supports SSL. Users need to install openssl 1.1 or above. It has been tested on openssl and other SSL libraries have not been tested yet. It is…

    idealvinv2.0.0
  • Release
    coost v1.2.0

    English Changes Bug fix fix #77 fix #83 Fix bug due to Coroutine in Copool not cleared inside the coroutine library. Fix assert bug in disconnect() of tcp::Client. coroutine Refactor coroutine library to simplify internal logic. Add unit test unitest/co for testing internal logic of coroutine schedulers. support http…

    idealvinv1.2.0

Stories

DiscussionFor you

Designing a Lightweight Closure for coost: Performance, Generality, and a Few Clever Tricks

In coost, you can create coroutines using go in a way similar to Golang. The go function could initially be designed as: cpp void go(void (*f)()); void go(void (*f)(void*), void* param); However, this design only accepts two fixed function types and cannot support class member…

Why it matters: Mentions tracked project coost. coost is in Concurrency & Runtime (one of your focus areas).

ReleaseFor you

coost v4.0.1 released

Minor bug fixes Memory usage improvements Security enhancements Some minor improvements

Why it matters: coost is in Concurrency & Runtime (one of your focus areas).

ReleaseFor you

coost v4.0.0 released

简体中文 ================================================== coost v4.0.0 发布 coost v4.0.0 是一次较大的版本更新:编译器要求提升至 C++17,移除了若干维护成本较高的模块,新增 Windows ARM64 与 FreeBSD 平台支持,并对核心组件进行了性能优化与 API 整理。升级前请先阅读下方的破坏性变更。 1. 破坏性变更 编译器要求 C++17 旧版本中的流式日志写法: cpp LOG << "hello " << 23; 在本版本中被替换为更安全、更直观的函数式写法: cpp…

Why it matters: First release in 34 months. coost is in Concurrency & Runtime (one of your focus areas).

Maintainers & organizations

every claim links to its source

Maintainers

No maintainers recorded yet.

Top contributors

Releases & changelog

  • coost v4.0.1

    Minor bug fixes Memory usage improvements Security enhancements Some minor improvements

  • coost v4.0.0major

    简体中文 ================================================== coost v4.0.0 发布 coost v4.0.0 是一次较大的版本更新:编译器要求提升至 C++17,移除了若干维护成本较高的模块,新增 Windows ARM64 与 FreeBSD 平台支持,并对核心组件进行了性能优化与 API 整理。升级前请先阅读下方的破坏性变更。 1. 破坏性变更 编译器要求 C++17 旧版本中的流式日志写法: cpp LOG << "hello " << 23; 在本版本中被替换为更安全、更直观的函数式写法: cpp log::info("hello ", 23);…

  • coost v3.0.2

    Changes Fix initialization of static variables, see #345. Support non-ascii path in file APIs on Windows, see #347. Add fs::mv. Fix a bug in co::vector, see #349. Fix return value of _vm_reserve in memory allocator. Fix c_str() of fastring, fastream.

  • coost v3.0.1

    New features Benchmark framework. cpp #include "co/benchmark.h" #include "co/mem.h" BM_group(malloc) { void* p; BM_add(::malloc)( p = ::malloc(32); ); BM_use(p); BM_add(co::alloc)( p = co::alloc(32); ); BM_use(p); } int main(int argc, char argv) { flag::parse(argc, argv); bm::run_benchmarks(); return 0; } bm.png gen…

  • coost v3.0.0major

    New features & improvement Improve cmake scripts and support Conan. Improve export of symbols in shared library. Thanks to SpaceIm. A better JSON library. Support precision control for float point numbers in Json. cpp // {"a":23,"b":false,"s":"xx","v":[1,2,3],"o":{"xx":0}} Json x = { { "a", 23 }, { "b", false }, {…

  • coost v2.0.3

    New features Add str::cat(...), fastream::cat(...), fastring::cat(...) sh fastring s("hello"); s.cat(' ', 23, "xx", false); // s -> "hello 23xxfalse" s = str::cat("hello", ' ', 23, true); // s -> "hello 23true" Support writing logs to customed destinations by setting a writing callback in co/log. Support daily…

  • coost v2.0.2

    New features Support mingw on windows. sh xmake f -p mingw xmake -v Support shared library on windows. sh xmake f -k shared xmake -v Support syslog header for co/log. sh xmake b log xmake r log -syslog -cout Add god mode. When you feel uneasy about writing a function of several hundred lines, you may call the…

  • coost v2.0.1

    Documents English: github gitee 中文: github gitee New features xrepo sh xrepo install -f "openssl=true,libcurl=true" co vcpkg sh vcpkg install co:x64-windows http & ssl support vcpkg install co[libcurl,openssl]:x64-windows defer (similar to defer in golang) cpp #include "co/defer.h" Timer t; defer(LOG ch; go(ch { ch >…

  • coost v2.0.0major

    Detailed reference documents First of all, it is particularly emphasized that more detailed documents are provided this time: 中文 English New features SSL Co 2.0 finally supports SSL. Users need to install openssl 1.1 or above. It has been tested on openssl and other SSL libraries have not been tested yet. It is…

  • coost v1.2.0major

    English Changes Bug fix fix #77 fix #83 Fix bug due to Coroutine in Copool not cleared inside the coroutine library. Fix assert bug in disconnect() of tcp::Client. coroutine Refactor coroutine library to simplify internal logic. Add unit test unitest/co for testing internal logic of coroutine schedulers. support http…

Contribution opportunities

0 published

No published opportunities

Cards are published only for real, open, unassigned issues with maintainer engagement.

Why this score

Health 59Contribution friendliness 43computed 19h ago
  • Activity0.33
    1 merged PRs in 30 days (full marks at 20); 5 commits in 30 days (full marks at 60) [health score: no data for backlog pressure; weights renormalized]health
  • Onboarding0.25
    has CI; missing contributing guide, mainstream build (CMake/Bazel/Meson), docs sitecontrib
  • Entry points0.00
    0 open, unassigned good-first-issue/help-wanted issues without a PR (full marks at 10)contrib
  • Maintainer responsiveness1.00
    median first maintainer response 25 h (full marks within 48 h, zero after 30 days) [health score: no data for backlog pressure; weights renormalized]healthcontrib
  • Release cadence0.87
    last release 55 days ago (full marks within 90, zero after 730); 2 releases in 365 days (full marks at 4) [health score: no data for backlog pressure; weights renormalized]health
  • Contributor breadth0.26
    2 unique contributors in 90 days (full marks at 25); top contributor has 94% of commits; stars count for at most 5% of this signal [health score: no data for backlog pressure; weights renormalized]health

Each signal is normalized to 0–1 with fixed thresholds; scores are weighted sums × 100. Stars are not an input.