comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: Re: Ada Microkernel?
Date: Mon, 11 Jun 2001 14:53:16 GMT
Date: 2001-06-11T14:53:16+00:00	[thread overview]
Message-ID: <wX4V6.3876$pb1.143050@www.newsranger.com> (raw)
In-Reply-To: YSzU6.96$6d5.30076@news2-win.server.ntlworld.com

In article <YSzU6.96$6d5.30076@news2-win.server.ntlworld.com>, Chris Campbell
says...
>
>it much.  I also object to people getting lazy and using classes that have kinda
>what they need but not quite and adding functionality to the class that's
>completely inappropriate.  Like reusing a soldier class for kangaroos! -- don't
>know if that story was true but it was funny!

The funny part was true. The "OO" part was not. It was just a simple mapping
(most likely done entirely in C or Fortran). The long story is: There are 3
basic kinds of simulators. There's the "Virtual" which is stereotypically a box
sitting on a 6-dof platform with a really expensive visual system and an exact
reproduction of the cockpit. There's the "Live", which I believe is typically
some kind of electronics hooked up to a real-live tank, jet, or rifle. Finally
there's the "Constructive", which is like a kind of wargame run entirely on
(usually) a single desktop-type computer, with the computer generating and
controlling most of the forces itself. 

It is quite typical for owners of virtual sims to want to hook them up to an
existing constructive sim that they already own, so that they can have loads of
computer-generated models running around on their pretty visuals for their
pilots to fly over, fight against, fight with, etc. Its also quite common for
their lists of entities to not quite match up between the two systems. The easy
solution for this problem is to just modify the virtual sim's mapping of the
constructive sim's entities. For example, when the constructive sim says that
the USS Arliegh Burke is steaming around, the virtual sim might instead display
the USS Grace Hopper. Obviously the more alike the two objects are, the better
this will work. :-)

There was one incident on a sim I worked on where a bug caused a heliocoper to
be displayed as a square-ish pile of rubble. To debug it, we had the maintinance
techs fly the two heliocopters in close formation for half an hour while we
monitored the DIS PDU traffic. The techs amused themselves during this time by
pretending it was a borg cube (in this case, with a heavy chicano acccent).
You'd be suprised how tough it is to adequately debug things while you're
laughing.

>That brings up an interenting point about Ada compilers and OO, specifically
>GNAT which is what most use i think.  I see very little in the Ada 95 language
>design that would need tied to an OS, but how much is there in practise?  There
>is no point saying use OO in the kernel if the compiler uses some system
>specifics to achieve it.  The only solution would be to modify GNAT which would

We've succesfully ported our entire (heavily-OO) flight trainer codebase from
vxWorks (GreenHills) to NT (Gnat). The only code that had to change was
system-specific stuff like setting the real-time clock frequency. I think at the
time that amounted to stubbing out 3 calls, and invoking the compiler. :-)

Of course NT isn't real-time, so its not very usable there. But it worked great
for occasional offline testing.

---
T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html
          home email - mailto:dennison@telepath.com



  parent reply	other threads:[~2001-06-11 14:53 UTC|newest]

Thread overview: 73+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-02  1:09 Ada Microkernel? B. Douglas Hilton
2001-06-02  2:11 ` DuckE
2001-06-02  2:25 ` Gerhard Häring
2001-06-02  2:41 ` Ted Dennison
2001-06-02  5:09   ` Dale Stanbrough
2001-06-02 21:31   ` B. Douglas Hilton
2001-06-02 23:21     ` chris.danx
2001-06-02 11:07 ` chris.danx
2001-06-02 20:30   ` McDoobie
2001-06-02 21:20     ` B. Douglas Hilton
2001-06-02 21:41       ` B. Douglas Hilton
2001-06-03  1:09         ` James Rogers
2001-06-02 23:00       ` chris.danx
2001-06-03  5:31         ` B. Douglas Hilton
2001-06-03 11:45           ` chris.danx
2001-06-03 22:54             ` Didier Utheza
2001-06-03 23:23               ` Florian Weimer
2001-06-04 14:37       ` Ted Dennison
2001-06-04 11:52     ` Chris Campbell
2001-06-09 23:54       ` McDoobie
2001-06-10  1:16         ` Chris Campbell
2001-06-10  7:13           ` Gerhard Häring
2001-06-10 12:14             ` Samuel Tardieu
2001-06-10 17:00             ` chris.danx
2001-06-11 20:54               ` chris.danx
2001-06-11 20:58                 ` chris.danx
2001-06-11 22:30                   ` tmoran
2001-06-11 22:35                     ` chris.danx
2001-06-11 23:24                   ` Robert A Duff
2001-06-12 20:57                   ` Randy Brukardt
2001-06-11 21:38                 ` Ted Dennison
2001-06-11 21:44                   ` chris.danx
2001-06-12  3:09                     ` DuckE
2001-06-12 10:39                       ` Jeff Creem
2001-06-11 23:22                 ` Robert A Duff
2001-06-12  9:58                   ` chris.danx
2001-06-12 17:27                     ` tmoran
2001-06-13 10:31                     ` Colin Paul Gloster
2001-06-23 14:58                     ` Stefan Skoglund
2001-06-24  0:22                       ` B. Douglas Hilton
2001-06-28  8:30                       ` Fr�d�ric BOYER
2001-06-28  9:50                         ` M. A. Alves
2001-06-28 14:21                           ` Ted Dennison
2001-06-28 14:39                             ` Wes Groleau
2001-06-28 15:01                             ` Marin David Condic
2001-06-28 17:45                               ` Tarjei Tj�stheim Jensen
2001-06-28 19:03                                 ` Marin David Condic
2001-06-28 19:15                                   ` Marin David Condic
2001-06-28 21:52                                     ` Ted Dennison
2001-06-29 13:16                                       ` Marin David Condic
2001-06-29 14:59                                         ` Ted Dennison
2001-06-29 15:22                                           ` Marin David Condic
2001-06-29 18:21                                             ` Ted Dennison
2001-07-02 13:50                                               ` Marin David Condic
2001-07-02 16:57                                                 ` OPERA
2001-06-29  4:37                                     ` Brian Catlin
2001-06-29 13:18                                       ` Marin David Condic
2001-06-29 15:09                                       ` Ted Dennison
2001-06-29  2:45                               ` Gerhard Häring
2001-06-29  2:32                             ` Gerhard Häring
2001-06-28 10:55                         ` chris.danx
2001-06-28 17:55                         ` Tarjei Tj�stheim Jensen
2001-06-29 10:29                           ` Fr�d�ric BOYER
2001-07-02  7:13                             ` Tarjei T. Jensen
2001-06-29 14:26                           ` Ted Dennison
2001-07-02  7:11                             ` Tarjei T. Jensen
2001-07-02 13:25                               ` Ted Dennison
2001-07-05 21:37                                 ` Tarjei Tj�stheim Jensen
2001-07-07 23:22                             ` Stefan Skoglund
2001-07-09 13:51                               ` Ted Dennison
2001-06-11 14:53           ` Ted Dennison [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-07-03 18:05 Michael Erdmann
2001-07-03 18:20 ` Ted Dennison
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox