Get the latest tech news

A Random Walk Through Ada (2014)


⇡Introduction So the C programming language has been getting a lot of bad press recently; a really stupid bug in some C code has compromised some of the core security infrastructure on the internet. The fix is easy, but the knock-on effects are going to go on for years and will cost serious amounts of money.

...although bear in mind the pointer access rules; if AdjustCallback had been defined in an outer scope, we wouldn't be able to assign SetToZero() to it above (because of the risk of local object leakage). (But because Ada supports overloading, you can instantiate the generic several times with the same name but different types, so you can simulate polymorphic functions moderately easily.) There's all the usual container-based cool stuff here, including some generic algorithms; I won't go into the details --- interested parties can dig up the documentation.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Ada

Ada

Photo of random walk

random walk

Related news:

News photo

Ada and Zangemann: Fancy reading your kids a book about FOSS?

News photo

Show HN: Getada: rustup-like installer for Ada's toolchain/package manager

News photo

Bandai Namco mech shooter Synduality Echo of Ada gets closed beta test