CUI – Native UI components for C

(yappologistic.github.io)

38 points | by hilti an hour ago ago

7 comments

  • piker 8 minutes ago

    C increasingly makes sense for compile times if you can have a separate Fable pass on memory safety, etc.

    • nateb2022 a few seconds ago

      Assembly is increasingly making sense for compile times if you can have a separate Fable pass on code correctness, etc.

  • cincinnatus 2 minutes ago

    Shame to put effort into encouraging more C code. All C code needs to be torn out by the roots. I don't care how carefully crafted it is and how many Fable passes have been done, it is inherently unsafe.

  • wg0 15 minutes ago

    Looks like ShadCN. That too in C. It's really really elegant.

    EDIT: It's immediate mode.

  • skydhash 3 minutes ago

    This looks like built by someone raised exclusively on web and touch technologies, forgetting that both are the results of constraints. The web was not meant to be a UI platforms and have poor primitives, and touch devices lack precise positioning and

    Take the chips and rating as an example

    https://yappologistic.github.io/CUI/#/c/chips-and-rating

    It’s purely aesthetic as functionality (and ux) wise, chips are not different from checkbox with labels and rating is just a discrete slider.

    And as I thought, you can see the duplicate code for switch and checkbox here.

    https://github.com/yappologistic/CUI/blob/f1202e6d98cdc297f9...

    People do need to differentiate between UX primitives and something that just looks different.

  • saidnooneever an hour ago

    this looks really sweet actually. didnt dig into the backing code yet but the examples look really nice and clean to implement a UI with. well done.

  • all2 15 minutes ago

    The acronym collision is entertaining. I now want to use CUI to mark up my CUI.