Wednesday, July 6, 2022
Show HN: C3 – A C alternative that looks like C https://ift.tt/RyWZuqw
Show HN: C3 – A C alternative that looks like C Compiler link: https://ift.tt/2qGgwUE Docs: http://www.c3-lang.org This is my follow-up "Show HN" from roughly a year ago ( https://ift.tt/mOAuRh3 ). 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/52B4RbT - The parts in C3 which breaks C semantics or syntax: https://ift.tt/0672qRY - 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/PWfhxNq - There is a blog with assorted articles I've written during the development: https://ift.tt/aowUAvJ July 7, 2022 at 01:01AM
Subscribe to:
Post Comments (Atom)
Show HN: val – An arbitrary precision calculator language https://ift.tt/1JxjPhf
Show HN: val – An arbitrary precision calculator language Wrote this to learn more about the `chumsky` parser combinator library, rustyline,...
-
Show HN: High school robotics code/CAD/design binder release Hello HN! My name is Patrick, and I am a junior at my High School’s FRC robotic...
-
Show HN: D&D meets Siri – Interactive voice adventure Hey HN! I've been building tooling for voice-driven apps over the past few mon...
-
Show HN: I Made an AI Social Media Manager to Automate Content Creation Hey HN, I am a Solopreneur, and I love building apps to automate bor...
No comments:
Post a Comment