C3

C3 – A C alternative that looks like C

Hacker News

C3 – A C alternative that looks like C

Compiler link: https://github.com/c3lang/c3c Docs: http://www.c3-lang.org This is my follow-up "Show HN" from roughly a year ago ( https://news.ycombinator.com/item?id=27876570 ). 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: http://www.c3-lang.org/compare/ - The parts in C3 which breaks C semantics or syntax: http://www.c3-lang.org/changesfromc/ - 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://github.com/c3lang/vendor - There is a blog with assorted articles I've written during the development: https://c3.handmade.network/blog

Share card

Actual performance

182points
136comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
79%79% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: exist, ide, io · Missing: https docs, excited, just released
74%74% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Product HuntOn track for Day 1 leaderboard · Strong signals: mac, macos, new · Missing: agents, agent, cursor
55%55% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
42%42% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
37%37% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: active · Missing: arr, mrr, revenue
11%11% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

C3
C3 – A C alternative that looks like C66%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

C3 – A C alternative that looks like C

Hacker News120
My
My website looks like it went through a photocopier61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

My website looks like it went through a photocopier

Hacker News28
Sh
Shuffled Web. What the other side of the Web looks like.67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Shuffled Web. What the other side of the Web looks like.

Hacker News3
Te
Teleport – see what the web looks like from elsewhere in the world67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Teleport – see what the web looks like from elsewhere in the world

Hacker News48
Dotient
Dotient59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Find anything by describing what it looks like, not by guessing filenames.

TrustMRR1$1/moProductivity
Do
Do you know what your Java architecture looks like?45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Do you know what your Java architecture looks like?

Hacker News2
I
I made a ChatGPT UI that looks like Slack58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I made a ChatGPT UI that looks like Slack

Hacker News10
Re
Reproducible,Unix-Like,84KB FOSS tasks alternative that respects you58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Reproducible,Unix-Like,84KB FOSS tasks alternative that respects you

Hacker News1
ge
geopeeker (see what a site looks like from abroad)63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

geopeeker (see what a site looks like from abroad)

Hacker News5
My
My New Web Page Looks Like Windows 9570%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

My New Web Page Looks Like Windows 95

Hacker News6