Home

Awesome

Ada Promises

The promise pattern is now ubiquitous in programming languages. The Wikipedia page on promises lists a lot of implementations. But there are none for Ada yet !

This repository is a starting point to evaluate how we could implement such promises in Ada.

To compile:

gprbuild -p -Pdefault.gpr

To run:

./obj/test_promises

Start looking at the code from the test case (test_promises.adb) and then look at the specs.

Ada improvements that would be useful

This code does not require any change in the language, and works with Ada 2012 compilers. However, there are a number of improvements to the language that would make it more convenient to use this package:

Todo

Various improvement ideas for this library: