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

TTI Transportation Resource Center

April 8, 2024
From sensors to vehicle electrification, from design to production, on-board and off-board a TTI Transportation Specialist will help you keep moving into the future. TTI has been...

Cornell Dubilier: Push EV Charging to Higher Productivity and Lower Recharge Times

April 8, 2024
Optimized for high efficiency power inverter/converter level 3 EV charging systems, CDE capacitors offer high capacitance values, low inductance (< 5 nH), high ripple current ...

TTI Hybrid & Electric Vehicles Line Card

April 8, 2024
Components for Infrastructure, Connectivity and On-board Systems TTI stocks the premier electrical components that hybrid and electric vehicle manufacturers and suppliers need...

Bourns: Automotive-Grade Components for the Rough Road Ahead

April 8, 2024
The electronics needed for transportation today is getting increasingly more demanding and sophisticated, requiring not only high quality components but those that interface well...

Comments

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