HNHacker News
TopNewBestAskShowJobs

etrez

101 karma · joined May 12, 2024

submissionscomments
etrez··on Show HN: A Modern GUI Library for Ada: CSS Styling, XML UI, SDL3
The absence of {$IFDEF} is one of the best features of Ada (from a long time Pascal (and its multitude of dialects) programmer.
etrez··on Make ZIP files smaller with ZIP Shrinker
Cool project! Now, Zip-Ada's ReZip does much better, even if you stick with the Deflate compression scheme. For Zip archives, you have more compression schemes available (BZip2, LZMA, ...) and even much better results.
etrez··on A comparison of Ada and Rust, using solutions to the Advent of Code
You have Alire crates for generating Excel and PDF streams/files. Of course you want everything else ;-).
etrez··on Writing a competitive BZip2 encoder in Ada from scratch in a few days – part 3
The "Ada" topic is (only) for the last part. It precisely because with such a good tool, you focus on the important things: the algorithms.

Precisely, there is no such a thing as the BZip2 algorithm: there are multiple ways of programming it, and more importantly, there is a near infinity of possible encodings of the same inputs in the BZip2 format. The compression ratio depends on the choices made in that area. That point is addressed in part 3.

etrez··on What has caused this spike in the usage of Ada over the last five years?
It is a combination of different things:

- the Alire crate system

- Nvidia's own usage of Ada

- lots of sleeping military projects that were awaken in recent years

- the success of Python which is strongly inspired by Ada

etrez··on What has caused this spike in the usage of Ada over the last five years?
Unfortunately the author of the TIOBE index has obeyed too quickly to what Mr Herrera told him. The hits about that "Ada Lovelace architecture" are a negligible part of the hits you get with: +"Ada programming" +"nvidia". The lions' share is about Nvidia's own usage of the Ada language. Those hits should be counted of course.
etrez··on Writing a competitive BZip2 encoder in Ada from scratch in a few days – part 2
Thx, corrected.
etrez··on Writing a competitive BZip2 encoder in Ada from scratch in a few days (2024)
Thanks for the feedback. Multiple posts are planned on that topic. For parts 1 and 2 (so far the only ones existing) I preferred explaining the context and the remarkable simplicity of the BZip2 format. In part #4, I will try to show why the customisable types in Ada fit so well compression software. Be patient: writing articles about writing software takes much more time than writing the software itself! In the meantime, there is a short preview of that in recent presentations - notably FOSDEM 2025: https://fosdem.org/2025/schedule/event/fosdem-2025-5148-adve... , last slide.
etrez··on Writing a competitive BZip2 encoder in Ada from scratch in a few days (2024)
The data in question cannot be compressed to zero, or close to zero, by far.
etrez··on A farewell to Ada with null (1992)
Interesting letter! His concerns were legitimate regarding complexity, but most of the items in his list of features are indispensable. Basically Ada 83 was a pre-version lacking key features for practical use, although it had already cool features (exceptions, modularity, generics, tasks, ...).
etrez··on A farewell to Ada with null (1992)
There is also an Ada 2022 standard.
etrez··on The state of Rust trying to catch up with Ada [video]
* Splitting large enumerated types into smaller ones

* Using the same range for arrays indexes, "for" loops parameters which index those arrays. In those cases a good compiler removes the useless run-time checks!

Ada range types can have bounds that are known only at run-time. It was not possible with Pascal.

To see subtypes in action: another FOSDEM presentation:

https://fosdem.org/2025/schedule/event/fosdem-2025-5148-adve...