comp.lang.ada
 help / color / mirror / Atom feed
From: Norman Worth <nworth@comcastNOSPAM.net>
Subject: Re: Why couldn't an operating system be written in ada
Date: Sat, 9 Mar 2019 11:43:17 -0700
Date: 2019-03-09T11:43:17-07:00	[thread overview]
Message-ID: <t82dnVVyz6LVlBnBnZ2dnUU7-e_NnZ2d@giganews.com> (raw)
In-Reply-To: <q4vjmg$1n2p$1@gioia.aioe.org>

russ lyttle wrote:
> On 1/14/19 6:26 AM, George Shapovalov wrote:
>> Well, gnat is built on top of gcc, so you have implicit Ada 
>> integration with the gcc toolchain and even Posix bindings to assist 
>> is some tasks. So, strictly speaking, nothing stops someone from 
>> starting to replace Linux/BSD kernel internals one module at a time :) 
>> (you would have, of course, to operate within the no-RTL limitation). 
>> Having maintained gnat in Gentoo Linux I can attest to feasibility of 
>> at least small tweaks and general compatibility..
>> Of course you would have to prove the merit of such replacement to the 
>> larger community, presenting extra stability/maintainability or 
>> utility sufficient to overcome the resistance to the unknown new thing.
>>
>> Also, @Pascal Martin mentions some very nice points about tasking and 
>> heap management. Unix has a different tasking model, so direct 
>> substitution is not an option, but I suppose a superset and bindings 
>> could be provided. This and all others are, however, tedious and time 
>> consuming tasks. Especially the community handling aspect. But at 
>> least this way you have some "point of entry". Creating a complete new 
>> and not tied to established standards OS may be possible (even if 
>> resource hungry). But making people actually use it (to any 
>> significant extent, rather than playing with it for all of 1hr, even 
>> when provided for free) would be much more complicated..
>>
> Actually, I once wrote a small operating system in ada'83. I was just 
> about to ask here if someone had done the same thing in a more modern 
> version. Think of an Ada version of uCOS. A generic cross-compiler or 
> IDE that accepts a profile of the target hardware might be needed.
Operating systems have been written Ada; you just have never seen or 
heard of them because they have been small projects, either academic or 
for specialized uses.  Not all operating systems are Posix complaint, or 
have user interfaces, or support multiple users.  What constitutes an 
operating system may be an issue here.  At its most basic, it is just a 
program that provides certain common utility functions.  It is often 
often a good idea to write (or adapt from the many that are already out 
there) a bare bones operating system to handle IO and dispatching for 
embedded systems. (Ada tasking takes care of dispatching pretty well, 
but IO is another matter.)  Somebody had a project to write a fully 
Posix compliant, BSD-like operating system a few years ago, but I don't 
know if it was ever finished.  The Posix standard is very C oriented, so 
this might be a challenge.


  reply	other threads:[~2019-03-09 18:43 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-13  0:00 Why couldn't an operating system be written in ada Mark McKinney
1996-07-15  0:00 ` David Wheeler
1996-07-15  0:00   ` Michael Levasseur
1996-07-25  0:00     ` Greg Harvey
1996-07-26  0:00       ` Kent Mitchell
1996-07-16  0:00   ` Poutanen Olavi
1996-07-15  0:00 ` Jon S Anthony
1996-07-15  0:00   ` Mark Eichin
1996-07-15  0:00   ` Brian Rogoff
1996-07-16  0:00   ` Jon S Anthony
2019-03-02 16:07   ` Optikos
2019-03-03 22:14     ` russ lyttle
1996-07-15  0:00 ` Nasser Abbasi
1996-07-15  0:00   ` Robert Dewar
1996-07-17  0:00     ` Randy Greene
1996-07-17  0:00   ` Hannes Haug
2019-01-10 23:38 ` cenci.br
2019-01-10 23:54   ` Lucretia
2019-04-07  1:55   ` Nick Roberts
2019-04-07  4:32     ` Optikos
2019-04-07 10:35       ` Nick Roberts
2019-04-07 14:06         ` Optikos
2019-01-14 11:26 ` George Shapovalov
2019-02-25  2:25   ` russ lyttle
2019-03-09 18:43     ` Norman Worth [this message]
2019-02-25 21:56 ` Rabican
2019-02-26  8:46   ` Niklas Holsti
2019-02-26  9:30     ` Dmitry A. Kazakov
2019-02-26 23:32       ` lyttlec
2019-02-27  2:00         ` Dennis Lee Bieber
2019-02-27  6:20           ` russ lyttle
2019-02-27  8:26             ` Dmitry A. Kazakov
2019-02-27 13:54               ` russ lyttle
2019-02-27 15:55                 ` Dmitry A. Kazakov
2019-02-27 16:46                   ` russ lyttle
2019-02-27 23:52                   ` Randy Brukardt
2019-02-27  8:20         ` Dmitry A. Kazakov
2019-02-27 14:06           ` russ lyttle
2019-02-27 14:23             ` Niklas Holsti
2019-02-27 16:01             ` Dmitry A. Kazakov
2019-02-27 17:04               ` russ lyttle
2019-02-27 17:29                 ` Dmitry A. Kazakov
2019-03-09 18:46         ` Norman Worth
2019-02-26 23:13     ` lyttlec
2019-02-27 19:10       ` Shark8
2019-02-27 19:51         ` russ lyttle
2019-02-27 22:12           ` Niklas Holsti
2019-03-01 15:07             ` fabien.chouteau
2019-02-27 10:47 ` Patrick Jakubowski
2019-02-28  6:23   ` G. B.
2019-02-28  8:28     ` Simon Wright
  -- strict thread matches above, loose matches on Subject: below --
1996-07-15  0:00 Simon Johnston
1996-07-15  0:00 Robert C. Leif, Ph.D.
1996-07-17  0:00 ` wfranck
1996-07-22  0:00   ` Felicia R. Rosemond (214)-462-5371 ple1 SE
1996-07-29  0:00     ` Wallace E. Owen
1996-07-17  0:00 ` Mark McKinney
1996-07-20  0:00   ` Michael Feldman
1996-07-22  0:00     ` Theodore E. Dennison
1996-07-22  0:00       ` Larry Kilgallen
1996-07-30  0:00       ` Pascal Martin @lone
1996-08-01  0:00         ` Bob Kitzberger
1996-08-03  0:00           ` Pascal Martin @lone
1996-07-17  0:00 ` wfranck
1996-07-19  0:00 Marin David Condic, 407.796.8997, M/S 731-93
replies disabled

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