Better HN
topnewbestaskshowjobs
Log inSign up

FabienC

68 karma · joined Jun 3, 2021 (5y ago) · 7 submissions

Submissions

1.

Ada Bindings for Raylib(blog.adacore.com ↗)

3 points · by FabienC · 2y ago · discuss

2.

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

2 points · by FabienC · 2y ago · discuss

3.

Let me tell you about me Gear Fabrication Syndrome(weenoisemaker.com ↗)

166 points · by FabienC · 3y ago · 174 comments

4.

Show HN: Understanding Braids (digital audio synthesis 101)(weenoisemaker.com ↗)

7 points · by FabienC · 4y ago · discuss

comment 4y ago · link · parent

Now there's an app for that https://www.adacore.com/qgen :)

comment 5y ago · link · parent

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...

comment 5y ago · link · parent

> Fighter planes are coded in C++, not Ada.

https://www.adacore.com/customers/eurofighter-typhoon https://www.adacore.com/customers/amx-modernization-program https://www.adacore.com/customers/arinc-653 https://www.adacore.com/company/our-customers