magmalake / threads.mojo
Minimal pthreads for Mojo — spawn/join/pin, parallel_for, atomic flags — extracted from flare's runtime
Over time
2026-08-30 to 2026-11-05; peak 3,918 lines
2026-08-30 to 2026-11-05; 39 commits, counted up by commit date
- Opened 30
- Closed or merged 29
2026-09-03 to 2026-11-21; 30 issues and pull requests opened (1 issues, 29 pull requests), from GitHub by mojo_issues
Dependencies
Depends on magmalake/lint.mojo.
Used by labelrefinery/LabelControl, magmalake/flare_mlake, magmalake/iceberg.mojo, magmalake/k8s.mojo, magmalake/parquet.mojo, magmalake/restate.mojo, magmalake/threads.example, morca-dev/census, morca-dev/dista, morca-dev/morca.
Through those (second degree): labelrefinery/Refinery, magmalake/taxibench.example, morca-dev/hindcast.
Declared in its manifests at HEAD (toolchain left out): lint-mojo.
Similar repos
| Repo | Description | Similarity |
|---|---|---|
| magmalake/threads.example | Companion code for the magmalake post on writing multithreaded code in Mojo 1.0 — one file, built against threads-mojo from mojoshelf | 84% |
| magmalake/thrift.mojo | Pure-Mojo Apache Thrift compact/binary protocol runtime — the codec Parquet metadata needs | 82% |
| magmalake/bench.mojo | A small self-hosted benchmark harness for Mojo — discovery, calibration, repetitions, JSON. | 82% |
| ParaGroup/MoStream | MoStream: Enabling Stream Parallelism in Mojo | 82% |
| thatstoasty/stump | A Structured Logger for Mojo! Inspired by charmbracelet's `log` package and the Python `structlog` package. | 81% |
By the cosine of the embeddings of each repo's name, description and topics: bge-small-en-v1.5 at bbddccb7, from snapshot 3454761910736014829 of mojo.repo_embeddings, which mojo_embed writes.
Stars per month
- stars
- forks
0 stars over the months of GH Archive loaded so far (47; months in between aren't loaded yet), counted from its events.
Contributors per month
- contributors
- new
2 people authored or co-authored its commits (every commit reachable from HEAD, Co-authored-by trailers included, bots left out), counted by email.
Releases and tags
No published release in the GH Archive days loaded, and no git tag in the clone.
Issues and pull requests
1 open and 0 closed issues; 0 open, 29 merged and 0 closed pull requests, from GitHub by mojo_issues.
Open issues
| # | Title | Updated | Labels | Comments |
|---|---|---|---|---|
| 20 | A typed spawn over an owned value, like TypedPool | 2026-11-04 | – | 0 |
Pull requests
| # | Title | Opened | State | Comments |
|---|---|---|---|---|
| 30 | CI: customs v0.5.0 | 2026-11-21 | merged | 0 |
| 29 | Release threads-mojo 0.7.0 | 2026-11-20 | merged | 0 |
| 28 | Move to the Mojo 1.3 nightly (1.3.0.dev2026111805) | 2026-11-19 | merged | 0 |
| 27 | customs v0.4.0: no unused imports | 2026-11-18 | merged | 0 |
| 26 | ci: customs from magmalake/[email protected] | 2026-11-16 | merged | 0 |
| 25 | ci: customs from magmalake/[email protected] | 2026-11-15 | merged | 0 |
| 24 | CI: check imports with customs | 2026-11-15 | merged | 0 |
| 23 | CI: macOS only nightly | 2026-11-05 | merged | 0 |
| 22 | CI: release PRs skip the test legs too | 2026-11-05 | merged | 0 |
| 21 | CI: a short path for release PRs | 2026-11-05 | merged | 0 |
Migrations
| Date | What | From | To | Commit |
|---|---|---|---|---|
| 2026-08-30 | mojo_version | – | 1.1.0.dev2026083005 | 0969c473dd |
| 2026-08-30 | tooling | none | pixi | 0969c473dd |
| 2026-09-08 | mojo_version | 1.1.0.dev2026083005 | 1.1.0.dev2026090705 | 6b312e15df |
| 2026-09-20 | mojo_version | 1.1.0.dev2026090705 | 1.2.0.dev2026092005 | e8790abf92 |
| 2026-10-19 | mojo_version | 1.2.0.dev2026092005 | 1.2.0.dev2026101905 | ddb3694ab6 |
| 2026-10-23 | mojo_version | 1.2.0.dev2026101905 | 1.3.0.dev2026102305 | 32a7ef8746 |
Commits
Commit types: Feature 10% · Fix 5% · Mojo version 13% · Migration 5% · Refactor 3% · Docs 23% · Build and chores 23% · Merge 15% · Other 3%
| Date | Commit | Type | Subject | Lines of Mojo | Tooling | Mojo version |
|---|---|---|---|---|---|---|
| 2026-11-05 | f8a4037d0e | Merge | Merge pull request #23 from magmalake/ci/mac-nightly | 3,906 | pixi | 1.3.0.dev2026102305 |
| 2026-11-05 | 9893a7f414 | Merge | Merge pull request #22 from magmalake/ci/release-skip-test-legs | 3,906 | pixi | 1.3.0.dev2026102305 |
| 2026-11-05 | 3933a7a22a | Merge | Merge pull request #21 from magmalake/ci-release-check | 3,906 | pixi | 1.3.0.dev2026102305 |
| 2026-10-24 | c8c658dfa6 | Docs | Changelog: date the 0.6.1 release (#19) | 3,906 | pixi | 1.3.0.dev2026102305 |
| 2026-10-24 | f45e780a8d | Build and chores | Release 0.6.1 (#18) | 3,906 | pixi | 1.3.0.dev2026102305 |
| 2026-10-23 | 32a7ef8746 | Mojo version | Mojo 1.2.0 (#17) | 3,906 | pixi | 1.3.0.dev2026102305 |
| 2026-10-19 | ddb3694ab6 | Mojo version | Nightly floor to 26.7.0.dev2026101905 (Mojo 1.2.0.dev2026101905) (#16) | 3,906 | pixi | 1.2.0.dev2026101905 |
| 2026-09-27 | 8090bdcdae | Docs | Say Mojo 1.1.0 where the docs describe today's toolchain; drop test counts (#15) | 3,906 | pixi | 1.2.0.dev2026092005 |
| 2026-09-20 | e8790abf92 | Mojo version | Build on Mojo 1.1.0; collapse compat/ to one directory; 0.6.0 (#14) | 3,906 | pixi | 1.2.0.dev2026092005 |
| 2026-09-17 | 2914cd2c2d | Build and chores +docs | Release 0.5.2 | 3,918 | pixi | 1.1.0.dev2026090705 |
| 2026-09-09 | aaf2c1c9b5 | Feature | Add pin_current_to_cpu: pin the calling thread | 3,918 | pixi | 1.1.0.dev2026090705 |
| 2026-09-08 | 267a0d0d85 | Build and chores | Release 0.5.1 (#13) | 3,892 | pixi | 1.1.0.dev2026090705 |
| 2026-09-08 | 4fc1973f5d | Docs | Changelog entry for 0.5.1 (#12) | 3,892 | pixi | 1.1.0.dev2026090705 |
| 2026-09-08 | 02fe084f9f | Other | Say why std.atomic stays, now the regression is fixed (#11) | 3,892 | pixi | 1.1.0.dev2026090705 |
| 2026-09-08 | 96c874a79a | Build and chores | Release 0.5.0 (#10) | 3,883 | pixi | 1.1.0.dev2026090705 |
| 2026-09-08 | c06e53d5a8 | Docs | Roll the changelog for 0.5.0 (#9) | 3,883 | pixi | 1.1.0.dev2026090705 |
| 2026-09-08 | 6b312e15df | Mojo version +docs | Move threads.atomic onto std.atomic, behind a one-line toolchain shim (#8) | 3,883 | pixi | 1.1.0.dev2026090705 |
| 2026-09-05 | b80ef39338 | Docs | Name the tins that depend on this, and retire a claim (#7) | 3,805 | pixi | 1.1.0.dev2026083005 |
| 2026-09-04 | 7bc97c90f9 | Feature +tests | Add a sanitizer stress harness and a zero-tolerance CI gate | 3,805 | pixi | 1.1.0.dev2026083005 |
| 2026-09-04 | 9b05c296aa | Migration | Pin lint-mojo 0.1.2 (portable mojolint binary) | 3,357 | pixi | 1.1.0.dev2026083005 |
| 2026-09-04 | dc8308ab93 | Build and chores | CI: lint with mojolint | 3,357 | pixi | 1.1.0.dev2026083005 |
| 2026-09-03 | 772dd842d4 | Merge +tests +docs | Merge pull request #4 from magmalake/typed-worker-pool | 3,357 | pixi | 1.1.0.dev2026083005 |
| 2026-09-03 | eb0506b5f8 | Merge | Merge pull request #2 from magmalake/ci-pixi-0.78 | 2,892 | pixi | 1.1.0.dev2026083005 |
| 2026-09-03 | 1133606d6d | Merge +tests +docs | Merge pull request #1 from magmalake/typed-parallel-for | 2,892 | pixi | 1.1.0.dev2026083005 |
| 2026-09-03 | afa64b0e9e | Build and chores | Package docstring: the last warning in a consumer's build | 2,755 | pixi | 1.1.0.dev2026083005 |
| 2026-09-03 | d1898ae508 | Build and chores | shelf.toml: 0.2.1 | 2,755 | pixi | 1.1.0.dev2026083005 |
| 2026-09-03 | 99b66f3c67 | Migration +tests | Compile without deprecation warnings on 1.0.0 and nightly | 2,755 | pixi | 1.1.0.dev2026083005 |
| 2026-09-02 | 98404fa31a | Fix | Fix format-check | 2,740 | pixi | 1.1.0.dev2026083005 |
| 2026-09-01 | 29937bc55f | Build and chores | pixi: upgrade to 0.78.0 and the .mojoc-producing build backend | 2,740 | pixi | 1.1.0.dev2026083005 |
| 2026-09-01 | d05cbff21e | Refactor | `__deinit__`, not `__del__` | 2,740 | pixi | 1.1.0.dev2026083005 |
| 2026-09-01 | 99c4e43f74 | Fix +tests +docs | WorkerPool: long-lived workers that run until stopped; 0.2.0 | 2,740 | pixi | 1.1.0.dev2026083005 |
| 2026-09-01 | ec4ca66c8d | Docs | README: point agents at the mojoshelf skill | 2,236 | pixi | 1.1.0.dev2026083005 |
| 2026-09-01 | 3cc3dcf561 | Docs | README: say how to actually install this | 2,236 | pixi | 1.1.0.dev2026083005 |
| 2026-08-31 | 3b5f515ef1 | Docs | Link README to magmalake.org | 2,236 | pixi | 1.1.0.dev2026083005 |
| 2026-08-30 | f455f0ae3c | Docs | README, and mojo format over the sources | 2,236 | pixi | 1.1.0.dev2026083005 |
| 2026-08-30 | 2ac22781c3 | Build and chores | CI: nightly and stable on ubuntu and macos | 2,238 | pixi | 1.1.0.dev2026083005 |
| 2026-08-30 | fdea453c25 | Feature | Add the threads-mojo demo CLI | 2,238 | pixi | 1.1.0.dev2026083005 |
| 2026-08-30 | 9d2c0334e3 | Feature | Add the test suite: 26 tests, races included | 1,985 | pixi | 1.1.0.dev2026083005 |
| 2026-08-30 | 0969c473dd | Mojo version | Add pthread FFI core: threads, atomics, mutex, parallel_for | 1,394 | pixi | 1.1.0.dev2026083005 |