Show HN: C3 – A C alternative that looks like C - Klaput News
Show HN: C3 – A C alternative that looks like C
16 by lerno | 2 comments on Hacker News.
Compiler link: https://ift.tt/LH0IRlU Docs: http://www.c3-lang.org This is my follow-up "Show HN" from roughly a year ago ( https://ift.tt/1MhRwcF ). Since then the language design has evolved and the compiler has gotten much more solid. Assorted extra info: - The C3 name is a homage to the C2 language project ( http://c2lang.org ) which it was originally inspired by. - Although C3 mostly conforms to C syntax, the most obvious change is requiring `fn` in front of the functions. This is to simplify searching for definitions in editors. - There is a comparison with some other languages here: https://ift.tt/o5ZVvIE - The parts in C3 which breaks C semantics or syntax: https://ift.tt/Op4xMdr - Aside from the very C-like syntax, one the biggest difference between C3 and other "C competitors" is that C3 prioritizes C ABI compatibility, so that all C3 special types (such as slices and optionals) can be used from C without any effort. C and C3 can coexist nicely in a code base. - Currently the standard library is not even alpha quality, it's actively being built, but there is a `libc` module which allows accessing all of libc. Raylib is available to use from C3 with MacOS and Windows, see: https://ift.tt/hgVU7r3 - There is a blog with assorted articles I've written during the development: https://ift.tt/lbwp6aG
RELATED POST :
16 by lerno | 2 comments on Hacker News.
Compiler link: https://ift.tt/LH0IRlU Docs: http://www.c3-lang.org This is my follow-up "Show HN" from roughly a year ago ( https://ift.tt/1MhRwcF ). Since then the language design has evolved and the compiler has gotten much more solid. Assorted extra info: - The C3 name is a homage to the C2 language project ( http://c2lang.org ) which it was originally inspired by. - Although C3 mostly conforms to C syntax, the most obvious change is requiring `fn` in front of the functions. This is to simplify searching for definitions in editors. - There is a comparison with some other languages here: https://ift.tt/o5ZVvIE - The parts in C3 which breaks C semantics or syntax: https://ift.tt/Op4xMdr - Aside from the very C-like syntax, one the biggest difference between C3 and other "C competitors" is that C3 prioritizes C ABI compatibility, so that all C3 special types (such as slices and optionals) can be used from C without any effort. C and C3 can coexist nicely in a code base. - Currently the standard library is not even alpha quality, it's actively being built, but there is a `libc` module which allows accessing all of libc. Raylib is available to use from C3 with MacOS and Windows, see: https://ift.tt/hgVU7r3 - There is a blog with assorted articles I've written during the development: https://ift.tt/lbwp6aG
RELATED POST :
Memuat...
Comments
Post a Comment