Better HN
topnewbestaskshowjobs
Log inSign up

josh_ring

2 karma · joined Sep 7, 2024 (2y ago) · 11 submissions

Submissions

comment 2y ago · link · parent

I liked C3 a lot because it was the first C successor I looked at which I could understand easily and was relatively more C-like than the others. I have used that property to port various C libraries to C3 without much issue.

In Zig I had a really hard time getting productive. I found it really hard, but I really wanted to like it, I just couldn't.

Hare was focused on just Linux and I wanted cross platform and ideally a C-like language.

Odin looks approachable but I didn't really want a language which is quite different to C as it makes porting code from C more challenging.

comment 2y ago · link · parent

C3 – 0.6.3 Out Now!

- Website & Docs: https://c3-lang.org

- Release notes: https://c3.handmade.network/blog/p/8957-welcome_to_c3_versio...

-----------------------------

C3 Language:

-----------------------------

- Ergonomics and Safety, with Optionals, defer, slices, foreach and contracts.

- Performance by default, with SIMD, memory allocators, zero overhead errors, inline ASM and LLVM backend.

- Modules are simple, with modules that are an encapsulated namespace.

- Generic code, with polymorphic modules, interfaces and compile time reflection.

- Macros without a PhD, similar to normal functions, or do compile time code.

-----------------------------

Additional information:

-----------------------------

- C3 prioritizes C ABI compatibility so C and C3 can coexist together in a code base, all C3 special types can be used from C without any effort.

- There is a comparison with some other languages here: https://c3-lang.org/faq/compare-languages

- Changes from C: https://c3-lang.org/faq/changesfromc

- Currently the standard library is actively being built, and open to contributions. There is a `libc` module which allows accessing all of libc.

- Raylib, SDL, Vulkan, OpenGL, Treesitter and Curl libraries are available to use from C3 see: https://github.com/c3lang/vendor

comment 2y ago · link · parent

C3 is feature stable now, but still pre-1.0, that shouldn't stop you using it in production though. That said you'll want to be engaged with the community for updates, and if you encounter any issues.

What potential uses did you have in mind?

comment 2y ago · link · parent

It's a huge amount of work isn't it, the result is really impressive though! Have you used C3 in recent times, what did you think?

comment 2y ago · link · parent

C3 is an an ergonomic, safe and familiar evolution of C.

https://c3-lang.org/

6.

Interview with C3 language creator, Christoffer Lerno [video](youtube.com ↗)

5 points · by josh_ring · 2y ago · 6 comments