logoalt Hacker News

nicoburnsyesterday at 5:16 PM1 replyview on HN

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)


Replies

ovenpastayesterday at 5:34 PM

Hi! Interesting! Your frameworks seems to be a kind of web browser, with dynamic content. Adi2 takes a different approach. Your entire app is static code. Every widget, every style is built at compile time. No interpreters or parsers at runtime.

-- Why Ada, well and why Rust? I guess it depends on your taste...

You can know more about Ada here: https://learn.adacore.com/courses/intro-to-ada/chapters/intr...

It is a language with a long history, completely defined both the language and it's runtime library, it is an ISO standard, it is readable, it is modern, it has many features both for embedded and general purpose use, it has 1st class support on GCC as a frontend. Maybe it does not have a borrow checker as of today, but if you need to harden you can use the Ada/SPARK subset, a very interesting language, that can prove program correctness at compile time.

show 1 reply