C3
Languages and libraries
programming language
SHOW HN2022
How HN took it
11 positive, 12 neutral or asking, 2 mixed, 10 critical, out of 35 comments about the project. Thread score +0.08.
Design: 5 for, 4 againstIdea: 5 for, 3 againstDocs: 0 for, 3 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Modules, defer and C ABI interop are appealing
From 3 comments
This looks awesome! The main thing holding me back from switching from C++ to C is the lack of type safe generic programming. This language looks like it not only solves that,…
_gabe_ on HNHoly crap I’ve been wanting to make basically this exact language for a while now: C with modules and defer! I am wondering how strings are represented (I dislike the sentinel…
sakras on HNA big win C3 explicitly opts out of are integer types named by their size such as u8/u16/u32/.., yet explicitly sizes the types it does have. Another sore point in C: how do…
childintime on HN
Objections
The fn keyword and declaration syntax are seen as unnecessary
From 2 comments
what is it with fn()? If we are so much into being terse then int abc() should be just fine. If we need readability than function() instead of fn() would do better.
FpUser on HN> requiring `fn` in front of the functions. This is to simplify searching for definitions in editors. You don't have to do that even in C, you can use this style for function…
keikobadthebad on HN
Not ready for production use; still alpha
From 2 comments
This looks awesome! The main thing holding me back from switching from C++ to C is the lack of type safe generic programming. This language looks like it not only solves that,…
_gabe_ on HNYou shouldn't use C3 on any larger project, but it could be an option for doing gamejams (with raylib or something else with a C API). For vkDoom it's not a port to C3. What it…
lerno on HN
The name C3 is hard to justify
From 1 comment
I think we do need a language like this, and that Zig/Odin/Myrddin/etc have the issue of having a syntax too different from C (Zig being the least offending; Hare is okay but…
euclaise on HN
Requests
Package manager and a larger standard library
From 1 comment
I think we do need a language like this, and that Zig/Odin/Myrddin/etc have the issue of having a syntax too different from C (Zig being the least offending; Hare is okay but…
euclaise on HN
Classes or RAII
From 1 comment
Awesome stuff. It seems like a C+ instead of C++ to me. I wish it has class/object/ctor/dtor/RAII though, no need for exception. OOD in C using struct and function pointers are…
synergy20 on HN
Questions
How stable is the compiler and will core features change?
From 1 comment
This looks awesome! The main thing holding me back from switching from C++ to C is the lack of type safe generic programming. This language looks like it not only solves that,…
_gabe_ on HN
How strings are represented
From 2 comments
Holy crap I’ve been wanting to make basically this exact language for a while now: C with modules and defer! I am wondering how strings are represented (I dislike the sentinel…
sakras on HNAside - Documentation says: > It is possible to cast the variant type to any pointer type, which will return null if the types match, or the pointer value otherwise. That seems…
tialaramex on HN
Alternatives named
D's BetterC
From 2 comments
Should compare with DasBetterC too! https://dlang.org/spec/betterc.html
WalterBright on HN> I think Zig, D are examples of this niche but syntax wise they don't completely look like C. This is technically true, but someone that likes writing C while wanting a few…
bachmeier on HN
Zig
From 1 comment
> I'm puzzled with what the market for these kinds of languages are. There's a significant number of C programmers who want something slightly more modern and convenient but…
rwbt on HN
C++
From 1 comment
This looks awesome! The main thing holding me back from switching from C++ to C is the lack of type safe generic programming. This language looks like it not only solves that,…
_gabe_ on HN