logoalt Hacker News

Show HN: A Modern GUI Library for Ada: CSS Styling, XML UI, SDL3

35 pointsby ovenpastayesterday at 4:30 PM14 commentsview on HN

Comments

Rochusyesterday at 9:38 PM

Cool project. Good idea to use SDL3; it brings along much more than SDL2 where you had to use a lot of other libraries to become platform independent with all features. The disadvantage might be that SDL3 itself (as SLD2) is pretty big. Ada got a bit out of fashion (unfortunately) but it's still an impressive, excellent language. Still an interesting choice. Maybe you can give more information about your choice and plans with the GUI library.

show 1 reply
nicoburnsyesterday at 5:16 PM

I'm going to ask the obvious question: why ADA?

---

My framework (Dioxus Native - https://github.com/dioxuslabs/blitz) would fit quite nicely into your comparison table:

- Compiles to self-contained OS-native app bundle

- <10 MB (compiled with Oz) or ~15MB (with O3) (can be golfed smaller)

- GPU or CPU rendering

- Windows 10+ / macOS / Linux / mobile / wasm / (+ web DOM with Dioxus Web)

- Rust

- Memory safety: borrow checked

- Styling: CSS (support matrix: https://blitz.is/status/css)

show 1 reply
tostiyesterday at 5:44 PM

There's so much repetition in there. E.g.: (adi-json.adb)

    if not W.After_Key (W.Depth) then
        -- things
    else
        W.After_Key (W.Depth) := False;
    end if;
    -- ...more things...
    W.After_Key (W.Depth) := False;
And what's the deal with those filenames? If you replace adi- with TIMMEH, you'll see what I mean.

Code should be more DRY (don't repeat yourself).

show 2 replies
switchbakyesterday at 5:03 PM

Why would anyone choose XML for a modern GUI layout in 2026? That seems like a mis-step.

show 1 reply