Beebo, a wave simulator written in C

(git.sr.ht)

52 points | by anon25783 3 days ago

3 comments

  • skulk 4 hours ago
    Interesting use of macros to get a generic "result" thingy:

    https://git.sr.ht/~willowf/beebo/tree/master/item/src/result...

    I think it's cool that stuff like this works in C but my gut feeling is that this isn't going to play well with LSP tools. Are state-of-the-art C LSP servers aware of the preprocessor?

    • bertylicious 3 hours ago
      I don't see an advantage over C's usual error handling, because this type is lacking the support functions (like bind and fmap in functional languages) or syntax integration (like the try operator in rust) that would make it useful.
  • schmuckonwheels 3 hours ago
    Rest in peace, Sky King.