Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Windeycastle
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
Windeycastle
9mo ago
C3 is pretty much aimed at those who would use C for a task but prefer something a bit more modern. I find it more fun to program in compared to plain C, and it's definitely more simple than reaching for C++.
2.
▲
by
Windeycastle
9mo ago
I don't think it is available no, and it's the first time I heard about such an idea. Thinking on it, this would allow such cursed code (love that :D). I'll put it up for discussion in the Discord as I'm interested in he
3.
▲
by
Windeycastle
9mo ago
C3 is more targeting C instead of C++. I'm interested to see where both C3 and Carbon will be in a few years/decades.
4.
▲
by
Windeycastle
9mo ago
This actually started of by Christoffer (C3 author) contributing to C2 but not being satisfied with the development speed there, wanting to try his own things and moving forward more quickly. Apparently together with LLVM it was doable to w
5.
▲
by
Windeycastle
9mo ago
The way I reason about it is that the contracts are more soft conditions that you expect to not really reach. If something always has to be true, even on not-safe mode, you use "actual" code inside the function/macro to check
6.
▲
by
Windeycastle
1y ago
You can actually see the whole implementation of `@pool` inside the standard library (link: https://github.com/c3lang/c3c/blob/f082cac762939d9b43f7f7301... ) if you're interested. You'll have to foll
7.
▲
by
Windeycastle
1y ago
If I could take a guess, then it is for embedded applications. You could argue though that people should then really do there own memory management, but in the end you might end up just recreating the temp allocator with `@pool` anyway. It&
8.
▲
by
Windeycastle
1y ago
Nice read, although a small section on how it's implemented exactly would've been nice.
9.
▲
by
Windeycastle
1y ago
In that case I advice using actual C3 vectors. They are a built in type that will use simd (or similar) under the hood if the compilation target supports it.