evdev-ada
notcursesada
Our great sponsors
evdev-ada | notcursesada | |
---|---|---|
1 | 1 | |
4 | 11 | |
- | - | |
0.0 | 1.5 | |
over 1 year ago | about 1 year ago | |
Ada | Ada | |
Apache License 2.0 | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
evdev-ada
notcursesada
-
Gnat 2021 GPL Community Edition Ada 202x compiler released
* Is there a way to declare data layouts to have compatibility with C, similar to #[repr(C)] in rust?
Yes, and if you have a C header file, gcc can even translate most struct definitions for you. Here's an example of a "thin" binding generated that way: https://github.com/JeremyGrosser/notcursesada/blob/master/sr...
* Is there a way to catch C++ exceptions?
Yes. https://www.adacore.com/gems/gem-114-ada-and-c-exceptions
* Is there a way to catch C longjmps()?
By default, the GNAT runtime uses setjmp/longjmp to implement exceptions. I'm not sure how you'd connect that to a C library's setjmp though.
* Is there a way to have some kind of custom control over ABI issues, e.g. define custom FFIs to langauges with a different ABI? Or anything close to this? For that matter, does any language have something like this or does it not make sense?
ABIs are selected with the Convention aspect. Conventions are implementation defined and would require patches to the compiler to add new ones. GNAT currently supports Assembler, C, CPP, COBOL, and Fortran calling conventions.
What are some alternatives?
CoTerminalApps - In December of 2022, I split these ascii puzzles & arcade games into 2 separate Apps: a) "SliderPuzzles" & b) "RetroArcade". Please get updates from there.
adaspark
gcc
pico_examples - Ada examples for the Raspberry Pi Pico
inotify-ada - An Ada 2012 library for monitoring filesystem events using Linux' inotify API
orka - The OpenGL 4.6 Rendering Kernel in Ada 2012