grace/lilac
An Experimental C Library using modern features
git clone https://git.gae.moe/grace/lilac
f3dea09
main
files
| src/ | |
| test/ | |
| .clangd | 34 B |
| .gitignore | 28 B |
| Justfile | 2.0 KiB |
| README.typ | 840 B |
| codebook.toml | 100 B |
| notes.typ | 1.4 KiB |
lilac.h
My experiments with a C library using the weird modern c features. It is very much WIP and probably does not work with a real project. I want this to be the type of thing that works on normal operating systems and also embedded systems. This is very much in the "im just messing around with ideas rn" phase and is not big and a bit of a mess.
Features
i32,u16, and similar int typesdeferstatementnon null pointers
nodiscard()andignorefor requiring grabbing ownership
Future Features
Rust like result type
Arena Allocators (and other allocators maybe)
Dynamic arrays, hashmap, other collections using a nice api
something like borrow checking
Requirements
Clang 22
#link("https://just.systems")[just]for building
This could probably be a makefile but I know justfiles