grace/lilac
An Experimental C Library using modern features
git clone https://git.gae.moe/grace/lilac
f3dea09
main
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
1= lilac.h 2 3My 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. 4 5== Features 6- `i32` ,`u16` , and similar int types 7- `defer` statement 8- non null pointers 9- `nodiscard()` and`ignore` for requiring grabbing ownership 10 11=== Future Features 12- Rust like result type 13- Arena Allocators (and other allocators maybe) 14- Dynamic arrays, hashmap, other collections using a nice api 15- something like borrow checking 16 17== Requirements 18 19- Clang 22 20- # link ( "https://just.systems" )[ just] 21- for building 22- This could probably be a makefile but I know justfiles 23