Makewithadapromo

Make with Ada 2019

Sept. 11, 2019
The 2019 Make with Ada competition is on and Electronic Design Editor Bill Wong will be one of the judges.

>> Website Resources
.. >> Library: TechXchange
.. .. >> TechXchange: Embedded Software
.. .. .. >> Topic: Ada and SPARK

The Ada programming language has evolved over the years taking in the latest programming ideas from object oriented programming to contract-based programming. Ada 2012 introduced contracts into the language.  Contracts have been the basis for SPARK, a variant and now subset of Ada. SPARK is designed so developers can create provable applications rather than speculations highlighted in comments. 

It is now the start of Adacore’s annual Make for Ada competition. It takes in projects programmed in Ada or SPARK. The competition is managed hackster.io. The first place award is $2000 and the top ten finalist receive $600. That’s not bad for programmers just taking up Ada/SPARK or programmers that are honing their skills.

The Getting Started page highlights low cost platforms in case you want to use one of those. It includes a host of Cortex-M0, Cortex-M4 and Cortex-M7 plus RISC-V development kits. The Crazyflie drone is part of the mix. Anthony Gracio rewrote the C code into SPARK discovering and fixing some bugs along the way. You can build on that software rather than starting from scratch.

The free GNAT Community Edition supports ARM, RISC-V and x86 development. FYI, GNAT originally stood for GNU NYU Ada Translator. I have used the tools on the Cortex-M4 and the Crazyflie. The Common Code Generator (CCG) can generate C code allowing most other platforms to be supported. For example, it can be used to support the 8-bit AVR that is popular on Arduinos.

If you want an overview of SPARK and Ada you can take a look at a presentation I made at the Trenton Computer Festival. There are a number of ways to learn how to program in Ada and SPARK including the interactive learn.adacore.com site I wrote about recently. I recommend reading Learning from an Ada Neophyte for those who have no SPARK/Ada exposure.

There are many reasons to use SPARK and Ada including reducing costs and improving code quality. The Make with Ada is a good reason to start learning how to use the tools.

This year I will be helping to judge the competition along with Fabien Chouteau, Software Engineer at AdaCore. I hope to see one of your projects there.

>> Website Resources
.. >> Library: TechXchange
.. .. >> TechXchange: Embedded Software
.. .. .. >> Topic: Ada and SPARK

Sponsored Recommendations

Near- and Far-Field Measurements

April 16, 2024
In this comprehensive application note, we delve into the methods of measuring the transmission (or reception) pattern, a key determinant of antenna gain, using a vector network...

DigiKey Factory Tomorrow Season 3: Sustainable Manufacturing

April 16, 2024
Industry 4.0 is helping manufacturers develop and integrate technologies such as AI, edge computing and connectivity for the factories of tomorrow. Learn more at DigiKey today...

Connectivity – The Backbone of Sustainable Automation

April 16, 2024
Advanced interfaces for signals, data, and electrical power are essential. They help save resources and costs when networking production equipment.

Empowered by Cutting-Edge Automation Technology: The Sustainable Journey

April 16, 2024
Advanced automation is key to efficient production and is a powerful tool for optimizing infrastructure and processes in terms of sustainability.

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!