Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
__phantomderp
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
__phantomderp
9mo ago
For what it's worth, that is the primary feature of the proposal linked in the blog post. It's just not talked about in the post because that post is about... performance! https://thephd.dev/_vendor/future_cxx
2.
▲
by
__phantomderp
4y ago
I'll do my best to get ror/rol and byteswap in!
3.
▲
by
__phantomderp
4y ago
The original authors of the language also advocated for this, and Walter Bright's D compiler has a BetterC compiler that also includes a int arr[..]; syntax for such things. But, our plates are full and the proposal wasn't written
4.
▲
by
__phantomderp
4y ago
I don't think we have any proposals for language-supported tagged unions (have to do them yourself), tuples (write your own macro/struct), or pattern matching (lole). You'll have a hard time pushing for those: C will likely n
5.
▲
by
__phantomderp
4y ago
¯\_(ツ)_/¯ Someone's got to write a paper to get it in, hopefully based on some sort of existing practice.
6.
▲
by
__phantomderp
4y ago
I mentioned this in another article of mine. Robert Seacord closed the loop on "how do I print numbers the non-shit way?" in C23 with N2680: https://thephd.dev/c-the-improvements-june-september-virtual... https:&
7.
▲
by
__phantomderp
5y ago
We tend to accept anything that parses the C Standard - even only a part of it - as a viable implementation! For example, static analyzers are viable implementations of the standard, even if they don't produce code. I think getting thi
8.
▲
by
__phantomderp
5y ago
Still implementation-defined, like any other field member! If you want to reply on bit-blasting structs, you need to shake hands with your implementer / ask for attributes. Not the perfect situation but there's way too many archit
9.
▲
by
__phantomderp
5y ago
Apple made a big-huge list of their extensions and things they've done some years back, which included their Blocks extensions: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1370.pdf Apple (
10.
▲
by
__phantomderp
5y ago
Hi! Article author here. I have long, long since waxed poetic about how many bugs and problems this can solve (even just a poor man's library version): https://twitter.com/__phantomderp/status/1381314735174524