HackerTrans
TopNewTrendsCommentsPastAskShowJobs

FabienC

no profile record

Submissions

Ada Bindings for Raylib

blog.adacore.com
3 points·by FabienC·hace 2 años·0 comments

Show HN: Software design for my open-source pocket synthesizer (in Ada)

weenoisemakers.com
2 points·by FabienC·hace 2 años·0 comments

Let me tell you about me Gear Fabrication Syndrome

weenoisemaker.com
166 points·by FabienC·hace 3 años·174 comments

Show HN: Understanding Braids (digital audio synthesis 101)

weenoisemaker.com
7 points·by FabienC·hace 4 años·0 comments

comments

FabienC
·hace 4 años·discuss
Now there's an app for that https://www.adacore.com/qgen :)
FabienC
·hace 5 años·discuss
The focus of Ada is not on safe arithmetic only, it's on functional safety at large: the code does what it is specified to do and nothing else.

Ada shines in its specification power, how developers can express what the code is supposed to do (strong typing, ranges, contracts, invariants, generics, etc.). And then you can either check your code at "compile time" with SPARK [1], that provides a mathematical proof that you code follows the specification. SPARK also proves that you don't have buffer overflows or division by zero for instance. Or you can have checks inserted in the run-time code which greatly improves the benefits of testing as every deviation from specifications will be detected, not only the ones you decided to check in your tests.

In terms of memory safety, Ada always had an edge on C/C++ because of the lower usage of pointers (see parameter modes [2]) and the emphasis on stack allocation. Now with the introduction of ownership in SPARK it's getting on par with Rust on that topic.

[1] https://learn.adacore.com/courses/intro-to-spark/chapters/05... [2] https://learn.adacore.com/courses/intro-to-ada/chapters/subp...