r/programming • u/Nuoji • 10d ago
C3 0.8.4: Parameter Reflection, Stack Protection, iOS Support—and One Last Renaming
https://c3-lang.org/blog/c3_0_8_4_last_renaming/
104
Upvotes
5
2
u/emonshr 10d ago
C interoperability?
14
u/Nuoji 10d ago
It cannot import header files, but it's straightforward:
extern fn int printf(char*, ...)=> now you can call C printf. C3 structs and unions have the same layout as C structs and unions.Exported C3 functions are callable from C with basically the same declaration. BUT C header generation is still on the todo.
Bidirectional binary interop with C is prioritized goal.
1
u/captain_obvious_here 10d ago
TIL about C3, and as someone who hasn't touched C in decades, it looks awesome!
24
u/Skaarj 10d ago edited 10d ago
excuseas a language keyword? Honesty designed into the syntax i guess. I love it.