CEO #htmx Foundation
Putting C back in CDeezNutz Inc.
Master of CompSci
Hobby 3D Animator
Competitive shooter
Occasional DnDer
Wool is king, thanks Grandma
@IroncladDev Unless the preference is unaligned indentation, anyone who prefers aligned indentation either prefers 1 space indentation or tabs.
The rest are posers.
In some ways, if you want to build a house, you need a stable foundation.
And I suppose the only one (thus far) is C.
We are seeing strong contenders with Odin, Jai, C3, and a few extra features could see a C renaissance.
But even Google can't make a competitor really.
To all the people who are defending C, I would recommend reading the following article which talks about the damage it has done to modern systems. It's sheer luck it's still this embedded in modern programming.
https://t.co/DPTOaGyVRs
@RuskiZoomer If you think about it, that article is in some way damning nearly every other language for being unable to remove the diabetes of syntactic sugar they need to be able to function.
Even C++ can't implement it's own standard library without compiler extensions.
But C is stable.
@nicbarkeragain If you like the document or guarantees by compiler, this is technically not feasable.
The simple allocators of which are not object-aware are technically UB. Storage =/= objects in C++.
The Object Model shafts us :(
@caballerobrah C/C++ has this in standard library, but if you embrace the CFI life, this sentence has no bearing.
struct block
{
void * p;
size_t sizebytes;
(optional size_t alignment;)
}
trade in blocks.
@raysan5 One could probably use code posted in Discussions page to filter out potential PR people, and essentially "hire" them (let them become contributors) and only allow PRs from "past contributors".
So the pipeline would be:
Discussion with code example
Initial PR
Contributions allow
@OlexGameDev I would probably go for either of these: https://t.co/atkRvuiFyX
(I hate this wannabe static pattern, not good for dll/multiprocessor).
But yes, especially for C++ you have constructors, destructors and all that jazz that makes this a mess. Object Model is pain.
@__phantomderp@lettuce_isgood It's adaptability in payment for the debt of the tech loan that allowed fast iteration in eons past.
We know that swappage on a major overhaul will be 10-20+ years (Python3), but with a sane 3-step (Semver?) system, I think C can be majorly improved given you get a monarch.
@__phantomderp@lettuce_isgood Trading one villain for another with your optional, expected and variants.
I think you are mistaken in that this is simply legacy and archaic design which we won't solve until we accept some backwards compatibility breakage, and not a "C slamdunk".
C allows better API too.
The tragedy of array decay to pointer is possibly due to the decay of type, and not just value.
Having to typedef your arrays to take pointers to them (thereby preserving size) is unfortunate.
foo(int * (arr[10])) would have been a good thing for C.
Interesting approach to pass an array as parameter without decaying to a pointer in C++. And the function also gets to know the size of it at compile time.
@pskocik@_silgen_name I may be a "fuck your namespace" person. The language ergonomics are worth a million lines of codes breaking, the compiler tells you where anyway. It's like loaning suffering from the future to avoid it now
__attribute__ is a gnu specific thing, and yacc sounds like 1980s called
@pskocik@_silgen_name If anything, [[]] is better than the C style _Xthingsowedontcollide.
Record feature will be pretty neat to self-declare compatible types.
Defer is an anti-pattern.
lambdas / compound literal functions will be amazing.
@PanzerJo De fleste dro jo fra Norge.
Disse selskapene er i stor grad Stat (skatt) finansiert.
Du kan sjekke market cap på wikipedia for en kjapp oversikt over hvor kapital har flyttet seg, og Forsvar er ikke særlig bra. Alt under 10% er suboptimalt.