Nov. 29th, 2012

izard: (Default)
I promised to post about safety.

IEC61131-3 (Dialect of Pascal heavily used for programming industrial PLCs/robots) is evolving standard. Object Oriented extensions were added not too long ago (exactly when OO fashion faded and was replaced by functional programming fashion).

For organization behind this language standard developing correct programs in this language is big thing. Some parts of applications are related to safety features that must be very robust.

So how do you change Pascal to facilitate development of safety applications? The decided to add new data types:
In addition to plain old BOOL they add SAFEBOOL. INT and SAFEINT!! etc.

This will definitely make programmers write less buggy code :) (trollface)

Actually I think this might work. As Pascal is strongly typed, using SAFE types for any safety related operation will make it easier to reason about application correctness, taking into account only the subset of it where SAFExxx types are used.

Profile

izard: (Default)
izard

September 2025

S M T W T F S
 1 23456
78910111213
14151617181920
21222324252627
282930    

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 11th, 2025 06:38 pm
Powered by Dreamwidth Studios