Viewing profile — brightprogramer
brightprogramer
HN member- Joined
- Thu, May 18, 2023, 10:14 AM UTC
- HN karma
- 80
- Public activity
- 21 items
- HN profile
- View on Hacker News ↗
About brightprogramer
No profile information was provided.
Recent public activity
- comment
-
story
Show HN: Sum Type and Type Matching in C
Previous thread : https://news.ycombinator.com/item?id=45145176 Tried to implement a best effort pattern patching inspired solution in C. Destructuring not available, and nesting n…
-
comment
Comment #45315600
I just tested this, and it works flawlessly! This is amazing! Thanks for the suggestion.
-
comment
Comment #45205400
It is a bit crazy but forcing this kinda makes a habit. That way, a habitual user will tend to initialize other variable types as well. That's why I call it a standard, because the…
-
comment
Comment #45204747
That sounds like a better idea. I'll test it. Debugging with my existing macros is a PITA, but if your suggestion works then it'll work well with debuggers as well! Thanks :)
-
comment
Comment #45200475
Ok I'm saying this for the last time so I'll over-explain so everyone can follow the idea properly. Not all people can pronounce names correctly. In a language some names are easie…
-
comment
Comment #45194256
It also compilers way faster than C++ code if that interests you :-)
-
comment
Comment #45194179
I especially am in love with how my formatted printer works. It's not a completely new solution and I think people have already done that. I'll also say that it's not very mature b…
-
comment
Comment #45194149
Yea the FMT trick uses VA_OPT. I consider myself a noob with C official specification, so you're probably right about that. I do kinda like how foreach is implemented right now. Th…
-
comment
Comment #45194129
Because I just don't like it as much and I wanted to see how much farther can we go by just using macro tricks.
-
comment
Comment #45194119
It's an honor to have you comment here .
-
comment
Comment #45189357
Std is short for standard :-) It's pretty std.
-
comment
Comment #45188553
yep, glad you pointed that out. To explain a bit more : MisraStdC is 3 parts : Misra + Std + C - Misra is derived from my name. That's why I needed to specify that the repo is not …
-
comment
Comment #45188192
because it's my personal standard. I use it more than I use standard C utils.
-
comment
Comment #45145177
been working on this for some time. has some usable features. i keep adding as i feel the need. try to well document everything and maintain it.
- story
- story
-
comment
Comment #42907682
I see, I'd like to give it a try then. I'll try adding some precedence here. I don't know how, though. This calls for some reading...
-
comment
Comment #42907446
Use mermaid js : https://mermaid.js.org/syntax/stateDiagram.html
-
comment
Comment #42907369
Precedence is more of a way to remove ambiguity from grammar. Grammars are just hard to figure out in one go.
- story