Live data from Hacker News

Viewing profile — brightprogramer

brightprogramer

HN member
Joined
Thu, May 18, 2023, 10:14 AM UTC
HN karma
80
Public activity
21 items

About brightprogramer

No profile information was provided.

Recent public activity

  1. comment
  2. 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…

  3. comment
    Comment #45315600

    I just tested this, and it works flawlessly! This is amazing! Thanks for the suggestion.

  4. 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…

  5. 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 :)

  6. 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…

  7. comment
    Comment #45194256

    It also compilers way faster than C++ code if that interests you :-)

  8. 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…

  9. 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…

  10. 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.

  11. comment
    Comment #45194119

    It's an honor to have you comment here .

  12. comment
    Comment #45189357

    Std is short for standard :-) It's pretty std.

  13. 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 …

  14. comment
    Comment #45188192

    because it's my personal standard. I use it more than I use standard C utils.

  15. 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.

  16. story
  17. story
  18. 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...

  19. comment
    Comment #42907446

    Use mermaid js : https://mermaid.js.org/syntax/stateDiagram.html

  20. comment
    Comment #42907369

    Precedence is more of a way to remove ambiguity from grammar. Grammars are just hard to figure out in one go.

  21. story