{"full_name":"c3lang/c3c","owner":"c3lang","name":"c3c","shard":"1","url":"https://github.com/c3lang/c3c","description":"Compiler for the C3 language","homepage":"https://c3-lang.org","topics":["language","compiler","c3"],"tag_pages":["compiler","language"],"language":"C3","license":"MIT","avatar":"https://avatars.githubusercontent.com/u/53541653?v=4","created_at":"2019-07-31T21:24:37Z","pushed_at":"2026-11-15T14:48:37Z","metrics":{"stars":5964,"forks":412,"watchers":42,"issues":1889,"prs":1575,"releases":42,"issues_open":147,"issues_closed":1742,"prs_open":15,"prs_closed":216,"prs_merged":1344,"discussions":146},"growth":{"day":{"stars":3,"forks":0,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[5946,5951,5953,5956,5957,5961,5964],"forks":[413,412,412,412,412,412,412],"watchers":[null,42,42,42,42,42,42],"issues_open":[null,146,147,147,147,147,147],"prs_open":[null,11,13,13,15,15,15]},"boards":{},"same_owner":[],"issues":[{"number":2527,"title":"The big list of complaints","comments":52,"created_at":"2025-10-14T11:10:04Z"},{"number":2077,"title":"A decentralised package discovery and fetching for C3","comments":49,"created_at":"2025-04-06T13:25:46Z"},{"number":509,"title":"Help getting headers working","comments":38,"created_at":"2022-08-02T12:25:54Z"},{"number":829,"title":"Tagged unions?","comments":34,"created_at":"2023-07-06T21:39:07Z"},{"number":1456,"title":"The big 1.0 ","comments":27,"created_at":"2024-09-16T23:37:20Z"},{"number":1113,"title":"C headers created by c3c is not compatible for C compilers.","comments":27,"created_at":"2024-02-06T15:34:34Z"},{"number":3463,"title":"Generic Inference","comments":16,"created_at":"2026-08-22T01:02:20Z"},{"number":1251,"title":"Support shell expansion in project.json files","comments":15,"created_at":"2024-07-24T12:46:49Z"}],"discussions":[{"number":3642,"title":"Clarification about the usage of Undefined Behavior in C3","comments":2,"category":"Q&A","created_at":"2026-11-12T21:53:02Z"},{"number":3641,"title":"Is the following `compound literal`-like code output correct or not?","comments":3,"category":"Q&A","created_at":"2026-11-12T20:30:29Z"},{"number":3640,"title":"Interesting behavior with modules during parsing time","comments":2,"category":"General","created_at":"2026-11-12T15:50:35Z"},{"number":3632,"title":"C3 for MCU programming: evaluation","comments":1,"category":"General","created_at":"2026-11-10T00:36:24Z"},{"number":3444,"title":"elf-x86 target successfully running in a freestanding i686 kernel environment","comments":0,"category":"Show and tell","created_at":"2026-08-15T23:20:51Z"},{"number":3310,"title":"How to pass the pointer of element of a slice to another thread?","comments":1,"category":"Q&A","created_at":"2026-06-08T10:10:49Z"},{"number":3305,"title":"Allow extension-less files","comments":2,"category":"Show and tell","created_at":"2026-06-04T13:27:08Z"},{"number":3265,"title":"fresh editor now supports C3","comments":1,"category":"General","created_at":"2026-05-25T20:50:42Z"}],"latest_release":{"name":"Version 0.8.6","tag":"v0.8.6","published_at":"2026-11-11T21:37:05Z","body":"### Changes / improvements\r\n- `@asmname` allows defining external names like `@cname` but without normal name mangling.\r\n- Improved GfxKey mappings.\r\n- Add the `source-lib` target type (and `c3c source-lib` command) to pack the C3 sources, C sources and headers of a project into a `.c3l` library.\r\n- `.c3l` manifests without `targets` now work for all platforms, and may contain `version`, `authors` and `langrev`.\r\n- `fetch`, `vendor-fetch` and `project fetch` now unpack libraries into a `<name>.c3l` directory by default. Use `--decompress=no` to keep them compressed.\r\n- `fetch` now verifies the downloaded library against the `checksum` (`sha256:<hex>`) of the registry, and refuses a library that doesn't match.\r\n- `dependencies`, in projects and in library manifests, may name a registry library as `[<url>:]<namespace>/<name>[@<version>]`. The build only uses the name.\r\n- `fetch` adds just the library name to `dependencies`.\r\n- `project fetch` only fetches the libraries it is given: `c3c project fetch <library>...`. Without any, it lists the missing ones. Each must be a dependency of the project, or of a library that is installed. A name uses the path of the dependency, or is looked up in the registry: the `fetch-url` project property or `--fetch-url` for the project's dependencies, the default registry for those of libraries.\r\n- A version in the registry's library info may have a `url`, which `fetch` downloads the library from instead of from the registry itself.\r\n- A registry library can be locked to a checksum: `<namespace>/<name>@<version>:<sha256>`. `fetch` refuses a library that doesn't match.\r\n- An `else if` now requires `{ }` around a single statement, like `else` does. `else if (x) foo();` is an error. #3473\r\n- Add `depends-on` to project targets, allowing them to depend on other targets.\r\n- LLVM IR (`.ll`) and bitcode (`.bc`) files can be added to the compilation, just like .o files #3339\r\n- `project.json` strings (except `exec` and `type`) expand environment variables written as `${NAME}`. #3580\r\n- Add `env` and `env-override` to `project.json`, setting environment variables (`\"NAME=value\"`) for the `exec` scripts. #3580\r\n- Add `-gline-tables-only` to emit line tables debug info only.\r\n- Disallow `{ .a = 1, .a = 1 }`. #3579\r\n- Add better instantiation error output.\r\n- Implicitly converting a negative constant to a wider unsigned type, e.g. `ulong x = -1;`, is now correctly an error.\r\n- Improved the error when implicitly casting an enum to an integer, it now points to the explicit cast.\r\n- Casting a non-constant integer larger than a pointer, e.g. an `int128`, to a pointer is now an error. Cast it to `uptr` first.\r\n- Converting between signed and unsigned integers of the same size in arrays, slices and vectors, e.g. `int[3]` to `uint[3]`, requires explicit casts.\r\n- `float16` and `bfloat` no longer convert implicitly to each other, as both directions lose information.\r\n- An explicit cast of a slice to a pointer is now allowed for any pointer type, like a cast between pointers.\r\n- Selectors are now a stable 128 bit signature. The first 16 bytes are guaranteed unique.\r\n- Add `--stats=<none|summary|full|json>` for compiler statistics.\r\n- Removed `--print-large-functions`, `--stats=full` replaces it.\r\n- Compiler generated panics will now be emitted to the `std::core::runtime::panics` module.\r\n- `PanicFn` is changed to support both formatting and non-formatted messages.\r\n- `--panic-msg=no` only traps if `--show-backtrace=no` is also set, otherwise it gives the short message with file, function and line. `--show-backtrace=no` stops passing file, function and line.\r\n- `--panicfn` now names a function rather than a function pointer variable, and sets the initial value of `builtin::panic` through the new `$$PANIC_FN`, so stdlib panics and `abort` also reach it. #3443\r\n- Make panic on infinite loops opt-in with `--infinite-loop-detect=yes` – and is only added in safe mode. #3630\r\n\r\n### Fixes\r\n- Compressed `.c3l` libraries were no","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}