logoalt Hacker News

CUI – Native UI components for C

39 points • by hilti • today at 7:35 PM • 7 comments • view on HN

Comments

piker • today at 8:17 PM

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

➕ show 1 reply
wg0 • today at 8:10 PM

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

EDIT: It's immediate mode.

skydhash • today at 8:22 PM

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 • today at 7:38 PM

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 • today at 8:10 PM

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

cincinnatus • today at 8:23 PM

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.