I 'm following various posting in "comp.lang. ada, comp.lang.c++ ,
comp.realtime, comp.software-eng" groups regarding selection of a
programming language of C, C++ or Ada for safety critical real-time
applications. The majority of expert/people recommend Ada for safety
critical real-time applications. I've many years of experience in C/C++ (and
Delphi) but no Ada knowledge.
May I ask if it is too difficult to move from C/C++ to Ada?
What is the best way of learning Ada for a C/C++ programmer?
Jul 23 '05
822 29439
>It's kind of like driving. You can get into a lot of trouble if you do not follow the traffic laws (you just have to obey the physicla ones ;-), but so long as you do driving is a fairly safe practice.
Yet modern cars have many 'assist' features that try to prevent
dangerous behaviour of the driver. I know I have to brake
'oscillating' (forgive my language - feel free to try Dutch), but I am
glad my brake system will do it for me in the split second that I see
that car in front of me standing still.
Wouter van Ooijen
-- ------------------------------------ http://www.voti.nl
Webshop for PICs and other electronics http://www.voti.nl/hvu
Teacher electronics and informatics
>> Although I attempt to drive safely, I also rely on seat belts and air bags.
I hope we all do. What i meant to say was that using a seat belt isn't an excuse to drive on the wrong side of the road.
It think what you say translates to 'driving on the right side of the
road is a propper excuse for not using the seat belt'?
Wouter van Ooijen
-- ------------------------------------ http://www.voti.nl
Webshop for PICs and other electronics http://www.voti.nl/hvu
Teacher electronics and informatics
Wouter van Ooijen ( www.voti.nl) wrote: Ada can teach C++ how to do templates properly.
I am definitely an Ada fan, but C++ templates are much much more powerfull. AFAIK C++ is the only language in which you can create a 'unit' based type system that is almost fully compile-time checked.
There is are various ways of doing this in Ada just now but they are not
zero-cost. A new way nearly made it into the Ada2005 standard, but was
going to take too long to 'get right' so it was dropped. Might be looked
at again for the 5-year ISO 'mini' revision. I hope so anyway.
Cheers
-- Martin
"Wouter van Ooijen (www.voti.nl)" <wo****@voti.nl > skrev i en meddelelse
news:42******** *********@news. xs4all.nl... My conclusion is that there are some nice ideas out there, but that they mainly protect against the "sloppy" programmer.
You are absolutely right.
The point that you are probably missing is that *everyone* is a sloppy programmer every once in a while. The frequency of this sloppiness of course varies, but it is never zero. So every sloppy mistake caught by the compiler is a good thing.
Wouter van Ooijen
-- ------------------------------------ http://www.voti.nl Webshop for PICs and other electronics http://www.voti.nl/hvu Teacher electronics and informatics
Which is why other means are needed for quality software. Rigorous testing
and code reviews come to mind.
/Peter
Frank J. Lhota wrote: "Ioannis Vranos" <iv*@remove.thi s.grad.com> wrote in message news:1110055473 .613245@athnrd0 2...
You can also express constraints in templates. An important thing is this. Are Ada's generics run-time or compile time?
Compile time with every Ada compiler I've used.
What do you both of you mean by compile-time?
Any compliant Ada-83 or Ada-95 compiler can have generics
nested inside of subprograms whose parameters vary according
to run-time parameters or computed values from a higher scope.
--
Wes Groleau
People would have more leisure time if it weren't
for all the leisure-time activities that use it up.
-- Peg Bracken
Peter Koch Larsen wrote: I hope we all do. What i meant to say was that using a seat belt isn't an excuse to drive on the wrong side of the road.
<sarcasm type="parody>
But who the #$%^& would want to live anywhere
where somebody else tells you what side of the
road you HAVE to drive on?
And only an incompetent driver would buy a car
that was unable to drive on the wrong side of the road!
</sarcasm>
--
Wes Groleau
Free Genealogical Lookups: http://groleau.freeshell.org/ref/lookups.shtml
Peter Koch Larsen wrote: "Wouter van Ooijen (www.voti.nl)" <wo****@voti.nl > skrev i en
meddelelse news:42******** *********@news. xs4all.nl...My conclusion is that there are some nice ideas out there, but
that theymainly protect against the "sloppy" programmer. You are absolutely right.
The point that you are probably missing is that *everyone* is a
sloppy programmer every once in a while. The frequency of this sloppiness
of course varies, but it is never zero. So every sloppy mistake caught
by the compiler is a good thing.
[snip] Which is why other means are needed for quality software. Rigorous
testing and code reviews come to mind.
Ada does not replace rigorous testing or code reviews. It supplements
them. Code reviews are extremely helpful. They also consume a lot of
time for the development team when they are done well. It is best to
remove as many silly errors from the code through automatic analysis
before exposing the code to developers for review.
I have never worked in an organization where code was judged ready for
review if it had not already produced a clean compile, with no warnings
or errors. When doing C code this meant also passing lint with no
errors or warnings.
The Ada compiler effectively combines the error messages common to a
good C compiler with the error and warning messages common to a good
lint tool. When you get a clean compile from an Ada compiler you are
ready to expose your code to others for a code review.
Jim Rogers
Martin Krischik wrote: But as I said, not impossible. I have a regex generic which can be instanciated for character and wide character strings and basicly any other descreed type you want to run regular expressing over.
Is that for sale or open-source or not available?
--
Wes Groleau
----
The man who reads nothing at all is better educated
than the man who reads nothing but newspapers.
-- Thomas Jefferson
Peter Koch Larsen wrote: "Wouter van Ooijen (www.voti.nl)" <wo****@voti.nl > skrev i en meddelelse news:42******** *********@news. xs4all.nl... >My conclusion is that there are some nice ideas out there, but that they mainly protect against the "sloppy" programmer. You are absolutely right.
The point that you are probably missing is that *everyone* is a sloppy programmer every once in a while. The frequency of this sloppiness of course varies, but it is never zero. So every sloppy mistake caught by the compiler is a good thing.
Even I admit to having my sloppy moments. Fortunately they don't last too
long and reviews and/or testing catch those moments before they progress
very far.
Which is why other means are needed for quality software. Rigorous testing and code reviews come to mind.
Something that some people here seem not able to accept because they
believe in the absolute protectiveness of their compiler.
--
*************** *************** *************** *************** ********
Paul E. Bennett ............... .....<email://pe*@amleth.demo n.co.uk>
Forth based HIDECS Consultancy .....<http://www.amleth.demo n.co.uk/>
Mob: +44 (0)7811-639972
Tel: +44 (0)1235-811095
Going Forth Safely ....EBA. http://www.electric-boat-association.org.uk/
*************** *************** *************** *************** ******** ji************* *@worldnet.att. net wrote: Ada does not replace rigorous testing or code reviews. It supplements them. Code reviews are extremely helpful. They also consume a lot of time for the development team when they are done well. It is best to remove as many silly errors from the code through automatic analysis before exposing the code to developers for review.
Thanks for that Jim. At least you seem to have been the first (assumed)
Ada user that has admitted that the compiler is not the final arbiter.
I have never worked in an organization where code was judged ready for review if it had not already produced a clean compile, with no warnings or errors. When doing C code this meant also passing lint with no errors or warnings.
The Ada compiler effectively combines the error messages common to a good C compiler with the error and warning messages common to a good lint tool. When you get a clean compile from an Ada compiler you are ready to expose your code to others for a code review.
At least code which passes such a hurdle is in a more reasonable state than
code which has not passed this threshold. I would also hope that you are
not waiting for all the code to pass this hurdle but are compiling,
reviewing and testing on a fairly continuous basis, submitting the code
that passes compile, review and unit testing into the stock for integration
and system testing.
--
*************** *************** *************** *************** ********
Paul E. Bennett ............... .....<email://pe*@amleth.demo n.co.uk>
Forth based HIDECS Consultancy .....<http://www.amleth.demo n.co.uk/>
Mob: +44 (0)7811-639972
Tel: +44 (0)1235-811095
Going Forth Safely ....EBA. http://www.electric-boat-association.org.uk/
*************** *************** *************** *************** ******** This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mediocre Person |
last post by:
Well, after years of teaching grade 12 students c++, I've decided to
make a switch to Python.
Why?
* interactive mode for learning
* less fussing with edit - compile - link - run - debug - edit -
compile - link - run -.....
* lots of modules
* I was getting tired of teaching c++! Bored teacher = bad instruction.
|
by: Gabriel Zachmann |
last post by:
This post is not strictly Python-specific, still
I would like to learn other university teachers' opinion.
Currently, I'm teaching "introduction to OO programming" at the undergrad
level. My syllabus this semester consists of a bit of Python (as an example
of a scripting language) and C++ (as an example of a compiled language).
With C++, I go all the way up to meta-programming.
My question now is: do you think I should switch over to...
|
by: andy_irl |
last post by:
Hi there
I have been asked to teach HTML to a group in our local village
community. It is nothing too serious, just a community development
grant aided scheme. It will be a 10 week course of two hours per week
and will mainly consist of mature students. I may or may not include
GUI's depending if I can fit it all in to the time allocated.
I was wondering if anyone could point me to any useful teaching
resources for HTML on the web ie...
|
by: Pierre Senellart |
last post by:
I am going to teach a basic Web design course (fundamentals of HTML/CSS,
plus some basic client-side (JavaScript) and server-side (PHP, perhaps
XSLT) scripting). Most of the students do not have any previous knowledge
of all of this.
I am strongly considering teaching XHTML 1.0 Strict instead of HTML 4.01
strict, for the following reasons:
- XML syntax is far more simple to teach than HTML/SGML, simply because
there are not as many...
|
by: msnews.microsoft.com |
last post by:
I am teaching C# to my 11 year old child. One challenge is that all the C#
books I own and that I have seen in bookstores are full of language that is
not easily comprehended by a student at that age. Can anyone recommend
books (or perhaps websites) tuned for younger audiences?
BTW, its amazing how fast a student can absorb this kind of information at
that age. Lucky them!
Thanks, Bruce
| |
by: Richard Aubin |
last post by:
I'm really new to vb.net programming and programming in general.
I would like to teach myself on how to program effectively and I have the
financial and time resources to do so.
Can I anyone recommend and point me in the right direction where I should
start?
--
Richard Aubin
|
by: e.expelliarmus |
last post by:
check this out buddies. kool website for:
* hacking and anti hacking tricks
* anti hackng tricks.
* registry tweaks
* orkut tricks
* small virus
* computer tricks
and loads of different tricks...
www.realm-of-tricks.blogspot.com
www.registrydecoded.blogspot.com
|
by: JosAH |
last post by:
Greetings,
Introduction
This week's tip describes a few old tricks that are almost forgotten by most
people around here. Sometimes there's no need for these tricks anymore because
processors nowadays are so fast and memory comes in abundance. But still, if
we implement an algorithm that is better, or more efficient, than another one,
those faster processors run the first algorithm faster than the other one. If
an algorithm takes less...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |