Re: OOP Language for OS Development

From: Christopher Browne (cbbrowne_at_acm.org)
Date: 04/26/04


Date: 26 Apr 2004 04:17:16 GMT

Oops! Berend de Boer <berend@xsol.com> was seen spray-painting on a wall:
>>>>>> "Brian" == Brian Heilig <heilig@iname.com> writes:
>
> Brian> is probably the show stopper. I'm pretty sure it is
> Brian> impossible to write an entire OS completely in
> Brian> Eiffel.
>
> You can't do it in C either. You always need a bit of assember to
> access the hardware.

The challenge in any language is that you need to build several things
that require "stepping outside the language."

- As you say, there's a need to get at assembler procedures in order
  to access hardware.

- There's a need to manage context switching, to manage processes;
  that likely mandates some assembler. The fact that some languages
  support threading is unhelpful, because that normally requires
  some "outside context."

- Ditto for memory management; the more the language integrates that,
  the more difficult it is likely to be to use the language to
  implement memory management.

C is pretty good for the purpose since its primitives _aren't_ much
more than a sort of "high level assembly language."

Languages that assume a garbage-collected memory management scheme are
likely to be particularly challenging ways to do this...

-- 
let name="cbbrowne" and tld="cbbrowne.com" in String.concat "@" [name;tld];;
http://cbbrowne.com/info/advocacy.html
"Those who doubt the importance  of  a convenient notation should  try
writing a LISP interpreter in COBOL  or doing long division with Roman
numerals." -- Hal Fulton


Relevant Pages

  • Re: OOP Language for OS Development
    ... > Brian> is probably the show stopper. ... The challenge in any language is that you need to build several things ... that likely mandates some assembler. ... - Ditto for memory management; the more the language integrates that, ...
    (comp.object)
  • Re: OOP Language for OS Development
    ... > Brian> is probably the show stopper. ... The challenge in any language is that you need to build several things ... that likely mandates some assembler. ... - Ditto for memory management; the more the language integrates that, ...
    (comp.lang.ada)
  • Re: Comparing languages
    ... Brian> with each language is a pair of numerical parameters. ... Brian> but for each isotope the atomic weight is a constant. ... atom is "more beautiful"? ...
    (sci.lang)
  • Re: How close is Vietnamese to Mandarin or Cantonese?
    ... > Brian M. Scott wrote: ... >> Cambridge History of the English Language: ... >> even for those whose form still coincides with ... > not the basis of meaning. ...
    (sci.lang)
  • Re: Evolution
    ... > inline assembler and larger parts by linking to an assembler ... in the HLL. ... language, particularly in smaller projects. ... > or two instructions if you ...
    (alt.lang.asm)