4 ms·
Is Ada really as good as its touted to be? How good is the cross compilation, metaprogramming and FFI story?
by ArtixFox 3y ago
Is Ada really as good as its touted to be? How good is the cross compilation, metaprogramming and FFI story?
- Jtsummers 3y agoFFI is described here: http://www.ada-auth.org/standards/22rm/html/RM-B.html http://www.ada-auth.org/standards/22rm/html/RM-B.html Here with some examples using gcc and gnat: https://gcc.gnu.org/onlinedocs/gnat_ugn/Mixed-Language-Programming.html https://gcc.gnu.org/onlinedocs/gnat_ugn/Mixed-Language-Progr... And finally here with the Adacore learning site: https://learn.adacore.com/courses/intro-to-ada/chapters/interfacing_with_c.html https://learn.adacore.com/courses/intro-to-ada/chapters/inte... I have limited experience with FFI in Ada, but never had any issues. Cross compilation is about the same as you'd expect from any mature language ecosystem. Metaprogramming, it does not have macros but it has a very good generics systems. Also for some reason your comment was dead (not flagged dead) so you may want to email the HN mods (see contact at the bottom of the page) about that.