Articles Tagged “Ada”
17 articles tagged “Ada”, newest first.
-
Can Your Ada and SPARK Tests Notice Changes to the Code? ── Introducing AdaMutant
AdaMutant is a mutation testing tool for Ada and SPARK. It makes small changes to the source and checks whether your tests or GNATprove proofs notice them. T...
-
Separating Pixels and Millimeters with Types — Preventing Unit Mix-ups in Dimensional Inspection with Ada
How to catch pixel/millimeter mix-ups in image-based dimensional inspection at compile time with Ada derived types, operators removed with abstract, generic ...
-
Calling Ada Inspection Logic from a C# Inspection App — Passing Image Buffers Without Copying and Guarding the Boundary
How to keep a WPF inspection app as it is and move only the pass/fail logic into an Ada DLL, explained by actually calling it from C and .NET console apps. T...
-
Frame Acquisition Without Drops Using Ada Tasks — A Protected-Object Ring Buffer and Priorities
I build camera frame acquisition from an Ada periodic task, a ring buffer made of protected objects, and priorities. I measure dropped frames and waiting tim...
-
Receiving GigE Vision Packets with Ada Types — Pitfalls of Representation Clauses and a SPARK-Proved Parser
How to map the GVSP headers that carry GigE Vision images onto Ada types with representation clauses and Scalar_Storage_Order, and where that goes wrong. I w...
-
Proving Image Processing Free of Out-of-Bounds Access with SPARK — Binarization, Smoothing, Labeling and a Speed Comparison with C
Proving with SPARK's GNATprove that image-processing code never reads or writes outside the image, using binarization, 3×3 smoothing and labeling: how to wri...
-
Memory Management in Ada — When to Use Access Types, Controlled Types, and Storage Pools
Ada does not rely on GC: values go on the stack first, and when the heap is needed, access types put lifetime rules into types. Deallocation risks, cleanup w...
-
Starting an Ada Project with Alire — Creating a Project, Adding Dependencies, Build Profiles, and GNATprove
Using Alire, the Ada package manager, to create a project, fetch GNAT automatically, add crates, switch build profiles, and prove code with GNATprove, with r...
-
How Ada and Rust Think About Safety — Comparing Types, Overflow, Ownership, Data Races, and Formal Verification by Running Them
Ada and Rust both put safety first, but they stop errors in different places. We compare value ranges, overflow, memory, data races, unchecked escapes, and f...
-
What's New in Ada 2022 — What Works in GNAT and the Parallel Syntax You Can't Write Yet
Declare expressions, delta aggregates, 'Image for all types, 'Reduce, Big_Integers and the Jorvik profile, run on GNAT 13.3 and 15.3. GNAT rejected parallel ...
-
Connecting Ada with C and C# — Building a DLL and Calling It
How to build a shared library in Ada and call it from C and C#, verified by running it: Interfaces.C, Convention => C, gprbuild, elaboration, string ownershi...
-
Proving AI-Written Code with SPARK ── Humans Write the Contracts, GNATprove Checks Them
We add preconditions and postconditions to Ada functions written by AI and prove them with GNATprove, using real output: how to read failures, proofs that pa...
-
Generic Programming in Ada — Contracts, Types, and Zero-Cost Reuse
A systematic introduction to generic programming in Ada. Covers generic subprograms, generic packages, formal subprogram parameters, type categories, formal ...
-
Real-Time Systems Programming in Ada — Priorities, Periodic Execution, and CPU Time Control in Practice
A practical deep dive into Ada's Annex D real-time features — task priorities, the Ceiling_Locking protocol, drift-free periodic execution with delay until, ...
-
Safe Concurrency with Ada — A Practical Guide to Tasks and Protected Objects
How Ada builds concurrency into the language: tasks, rendezvous (entry/accept), and protected objects, shown through eight compilable code examples.
-
Introduction to Formal Verification with SPARK — From Ada Contracts to Mathematical Proof
A practical introduction to formal verification using the SPARK subset of Ada. Covers how to step up from contracts (Pre/Post) to proofs, using GNATprove, lo...
-
The Appeal of the Ada Language — Expressing Design Through Types and Powering Software That Runs for Decades
An introduction to the appeal of the Ada language: strong typing, range constraints, separation of specification and implementation via packages, design by c...