C3 0.8.6 centers on making libraries easier to package and obtain. A new source-library target bundles C3 code into a distributable .c3l archive, while the new fetch command can search repositories, inspect versions and checksums, and download selected releases. Repositories need only serve a small set of JSON and download endpoints, so static hosting is sufficient; the default repository uses GitHub. Downloads are checked against SHA-256 hashes, and projects can pin versions or exact checksums. Dependencies can identify repository libraries, and a project command reports or fetches missing ones. This replaces the older vendor-only fetching mechanism and removes its single-source and versioning limitations.
The release also reduces safe-mode executable sizes by 30% or more by reusing panic-handling code rather than generating separate reporting logic for every check. Custom panic handlers must adopt a revised function signature, and panic configuration now behaves more consistently. A review of type conversions fixes compiler defects and makes several conversions require explicit casts, including signed-to-unsigned conversions and conversions between bfloat and float16; out-of-range constant conversions now fail at compile time. Else-if branches must use braces, and repeated designated initializers are rejected. Other improvements identify which generic instantiation caused an error, add detailed compilation statistics, allow project targets to declare build order, and support environment-variable substitution in project files.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.