News for hackers. Stuff that matters.
Re:A Comparison of Ada and Rust, Using Solutions to the Adve... by jonathanstrange on Saturday October 04, 2025 @12:02PM (#45474285)
I'd love to use Ada as my primary static language if it had broader support. It's in my opinion the best compiled language with strong static typing. Although it has gained traction with Alire, it unfortunately doesn't have enough 3rd party support for my needs yet.
Re:A Comparison of Ada and Rust, Using Solutions to the Adve... by andsoitis on Saturday October 04, 2025 @12:10PM (#45474361)
What 3rd party things would you like to see?
Re:A Comparison of Ada and Rust, Using Solutions to the Adve... by jonathanstrange on Saturday October 04, 2025 @01:41PM (#45475122)
It's just everything and the kitchen sink, I'm afraid, from a NATS server and client library over cross-platform GUIs including mobile, common file format reading and writing like Excel, Word, and PDF to post-quantum cryptography. I'm unfortunately in the business of Lego-brick software development using well-maintained 3rd-party libraries whenever possible. It's the same with CommonLisp, I love it but in the end I'd have to write too many things on my own to be productive in it.

I envy people who can write foundational, self-contained software. It's so elegant.

Re:A Comparison of Ada and Rust, Using Solutions to the Adve... by etrez on Saturday October 04, 2025 @03:22PM (#45475910)
You have Alire crates for generating Excel and PDF streams/files. Of course you want everything else ;-).
Re:A Comparison of Ada and Rust, Using Solutions to the Adve... by init1 on Saturday October 04, 2025 @11:43PM (#45478686)
You can generate bindings using a gcc -c -fdump-ada-spec <header.h>. They typically work well enough without needing additional tweaks but If it's more involved you can ask Claude to make a shell script that generates bindings for whatever C library you wanted to use and it works reasonably well.

In my opinion, don't make thick bindings for your C libraries. It just makes it harder to use them.

For example I don't really like the OpenGL thick bindings for Ada because using them is so wildly different than the C examples that I can't really figure out how to do what I want to do.

Re:A Comparison of Ada and Rust, Using Solutions to the Adve... by tgv on Sunday October 05, 2025 @05:31AM (#45480213)
If you have some time to fool around, try it for Advent of Code. I did last year, and while I'm not going to seriously consider it for my day job, I found it worthwhile.