Electronicdesign 6413 91351promo

Learn Ada At The Online University

Sept. 25, 2013
The AdaCore University is a great way to learn Ada and its free. That includes the GPS IDE and Ada compiler.

Open source training has been getting a lot of publicity lately with organizations like theMIT OpenCourseWareandKhan Academyleading the charge. I have even set up aKA-Litesite at a local school that replicates the Khan Academy videos and lessons on the local server. This is because many of these platforms deliver video content and having a dozen or more students streaming video can bring an Internet link to its knees compared to a gigabit Ethernet link within the school.

MIT and others address some programming languages but Ada tends to be one that gets left out. I have written and recommended Ada in the past(seeC Programmers, Time To Try Ada)because I think that it is a great platform for embedded development. It is better than C and even C++ in many ways except that most schools teach C and C++ or even Java although Java is getting more of a push in the embedded space again(seeNew Java ME Targets IoT Embedded Devices).

So what do you do if you want to learn Ada? Well check out the freeAdaCore University, supported byAdaCoreof course. It is free, and, like most of the open source training sites, it is covered by theCreative Commonslicense.

Like most video-based training platforms there is the player(Fig. 1). The PowerPoint slides are available as a download too. I find the slides to useful for paging back and forth while watching and listening to the presentation.

Figure 1. The AdaCore University training sessions are video based.

At the end of each session is an interactive quiz(Fig. 2). There is a description of the problem or issue and then the user selects an area where the problem occurs. The approach uses a simple interface but it works.

Figure 2. The interactive quiz asks you to find issue within sample Ada source code.

The training sessions address Ada but they are designed for testing on a real system. The sessions utilize the GNAT Programmable Studio (GPS) IDE(Fig. 3). GPS can be downloaded for free fromAdacore Libresite. This has a number of other free and commercial downloads including an Eclipse IDE plug-in.

Figure 3. The GPS IDE is simpler than using Eclipse with the GNAT plug-in. Both are free downloads.

包括培训和样本应用程序ude the usual data manipulation but graphics do come into play. The bouncing ball application(Fig. 4)is only one of a growing number of graphical examples. The source code is available for modification and enhancement. Functionally there will be no surprises for those familiar with graphics primitives.

Figure 4. The bouncing ball application provides visual feedback highlighting Ada's ability to handle visual embedded chores.

At this point, the overview winds up with 10 bouncing balls. The training sessions address the basics from types, arrays to subprograms and packages. More will be added in the future but this is a good starting point. I am hoping that Ada's contract support(seeAda 2012: The Joy of Contracts)will be one of the next items added. Starting with good programming practices is the best way to learn a language.

I suspect that SPARK will be a future addition as well. SPARK is to Ada as MISRA C is to C, sort of. SPARK is much more. It is a subset of Ada that can be used for system proofs. That tends to be rather important when one is designing flight systems or powerplant control systems. Another is the Ravenscar profile.

Until then, the Technical Papers section contains these papers that I recommend.

You may not wind up using Ada in a production environment. Switching an organization from C to any language let alone Ada is not easy although the long term benefits can be significant.

So if making robust, reliable and safe programs is something you need to do then check out the courses at AdaCore University.

From Our Partners

M12 Connector Coding for Automation and Industry 4.0 Compliance

Sponsored by. M12 Connector Coding for Automation and Industry 4.0 Compliance | 1. Connectors are critical in the ongoing operation of any kind of elec…

Welcome to The Edge

Photo/imagery credits (in order of display). pinkeyes - stock.adobe.com, Monopoly919 - stock.adobe.com, proindustrial2 - stock.adobe.com. Join us in ou…

The advantages of a well-made electrical enclosure

The advantages of a well-made electrical enclosure By: Murray Slovick. Figure 1: The GEOS line of harsh environment outdoor industrial enclosures. Sou…

DIY PMICs: User-Programmable PMICs

In the DIY PMICs: user-programmable PMIC training, we will introduce the concept of DIY PMICs, then user-programmable PMICs. One section focuses on h…

Comparison of GaN- and Silicon FET-Based Active Clamp Flyback Converters

Reproduced from 2018 Texas Instruments Power Supply Design Seminar. SEM2300, Topic 3. TI Literature Number: SLUP380. © 2018 Texas Instruments Incorporat…

Voice your opinion!

This site requires you to register or login to post a comment.
No comments have been added yet. Want to start the conversation?

From Our Partners

M12 Connector Coding for Automation and Industry 4.0 Compliance

Sponsored by. M12 Connector Coding for Automation and Industry 4.0 Compliance | 1. Connectors are critical in the ongoing operation of any kind of elec…

Welcome to The Edge

Photo/imagery credits (in order of display). pinkeyes - stock.adobe.com, Monopoly919 - stock.adobe.com, proindustrial2 - stock.adobe.com. Join us in ou…

The advantages of a well-made electrical enclosure

The advantages of a well-made electrical enclosure By: Murray Slovick. Figure 1: The GEOS line of harsh environment outdoor industrial enclosures. Sou…

DIY PMICs: User-Programmable PMICs

In the DIY PMICs: user-programmable PMIC training, we will introduce the concept of DIY PMICs, then user-programmable PMICs. One section focuses on h…
Design FAQs

Design FAQ: Improving 3D-Printed Parts Using Secondary Operations

Aug. 11, 2017
There are several key things to consider when ordering a 3D-printed part, including both functionality and aesthetics. Download this FAQ from Proto Labs to learn more.
beplay 5倍流水

Static Analysis? We Don’t Need No Stinkin’ Static Analysis

April 27, 2017
Why are so few using static analysis tools when security and reliability are so important these days? Find out what Technology Editor Bill Wong thinks.
Baidu