Reimplenting Linux Kernel in Python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul Rubin

    #31
    Re: Reimplenting Linux Kernel in Python

    Mike Meyer <mwm@mired.or g> writes:[color=blue]
    > Haven't operating systems been written in most of those languages? For
    > a sufficiently loose definition of OS, of course.[/color]

    I'm amazed no one has mentioned the Lisp machine.

    Comment

    • Mike Meyer

      #32
      Re: Reimplenting Linux Kernel in Python

      Grant Edwards <grante@visi.co m> writes:[color=blue]
      > On 2004-10-15, Mike Meyer <mwm@mired.or g> wrote:[color=green]
      >> Grant Edwards <grante@visi.co m> writes:[color=darkred]
      >>> Exactly. Any number of "low level", statically typed,
      >>> compiled, languages would work equally as well. Modula-2 (not
      >>> sure about M-3, the GC stuff maybe a bit iffy in a kernel),
      >>> Ada, BLISS, PL/I, Pascal, etc.[/color]
      >>
      >> Haven't operating systems been written in most of those languages?[/color]
      > VMS was mostly in BLISS, I believe. I think MacOS (and maybe
      > parts of MS-Windows way back when) were written in Pascal. I'm
      > sure IBM must have written at least one OS in PL/I (whether it
      > escaped into the wild or not, I don't know). I _think_ Intel
      > wrote iRMX in PL/M (a PL/I derivitive). I can't think of any
      > OSes written in Modula-[23] off the top of my head.[/color]

      DECWRL was heavy into both Modula and new machines/OS's. I'd be
      surprised if they didn't write at least one OS in Modula.

      <mike
      --
      Mike Meyer <mwm@mired.or g> http://www.mired.org/home/mwm/
      Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

      Comment

      • Rod Haper

        #33
        Re: Reimplenting Linux Kernel in Python

        Mike Meyer wrote:[color=blue]
        > Grant Edwards <grante@visi.co m> writes:
        >[color=green]
        >>On 2004-10-15, Mike Meyer <mwm@mired.or g> wrote:
        >>[color=darkred]
        >>>Grant Edwards <grante@visi.co m> writes:
        >>>
        >>>>Exactly. Any number of "low level", statically typed,
        >>>>compiled, languages would work equally as well. Modula-2 (not
        >>>>sure about M-3, the GC stuff maybe a bit iffy in a kernel),
        >>>>Ada, BLISS, PL/I, Pascal, etc.
        >>>
        >>>Haven't operating systems been written in most of those languages?[/color]
        >>
        >>VMS was mostly in BLISS, I believe. I think MacOS (and maybe
        >>parts of MS-Windows way back when) were written in Pascal. I'm
        >>sure IBM must have written at least one OS in PL/I (whether it
        >>escaped into the wild or not, I don't know). I _think_ Intel
        >>wrote iRMX in PL/M (a PL/I derivitive). I can't think of any
        >>OSes written in Modula-[23] off the top of my head.[/color]
        >
        >
        > DECWRL was heavy into both Modula and new machines/OS's. I'd be
        > surprised if they didn't write at least one OS in Modula.
        >
        > <mike[/color]

        Hermes was a real-time OS written in Modula-2. The Lilith workstation
        used Modula-2 as the system language but the lowlevel OS was in microcode.

        SPIN was a UNIX-like research OS written in Modula-3. There are
        probably others.

        The Oberon OS is written in Oberon the Modula successor.

        Operating systems written in the Modula family (including Oberon) tend
        to merge the OS with the application level probably due the influence of
        Wirth's ideas. They are more like operating environments.


        --
        Rod

        Comment

        • Dennis Lee Bieber

          #34
          Re: Reimplenting Linux Kernel in Python

          On Fri, 15 Oct 2004 17:13:12 -0500, Mike Meyer <mwm@mired.or g> declaimed
          the following in comp.lang.pytho n:
          [color=blue]
          > Grant Edwards <grante@visi.co m> writes:[color=green]
          > > Exactly. Any number of "low level", statically typed,
          > > compiled, languages would work equally as well. Modula-2 (not
          > > sure about M-3, the GC stuff maybe a bit iffy in a kernel),
          > > Ada, BLISS, PL/I, Pascal, etc.[/color]
          >
          > Haven't operating systems been written in most of those languages? For
          > a sufficiently loose definition of OS, of course.[/color]

          Ada was spec'd for use on embedded systems -- with no OS; so it
          is full of constructs for specifying the size of a data field, the
          address of the data field, etc. (allowing access to memory mapped I/O
          hardware, for example). Even the multi-tasking was supposed to be part
          of the language run-time library. Most current compilers (or, at least,
          GNAT) short-cut this by using OS level tasking features and I/O (via a
          wrapper of the C runtime library).

          BLISS was DEC's systems programming language. As such, it too
          offered direct hardware capability -- at least on the same level as C
          (shove a hardware address into a long int, then use it as a
          pointer)(probab ly with link options for absolute addressing rather than
          virtual).

          I've not looked at PL/I; as I recall from the short coverage in
          college, PL/I had a reputation of taking features from Algol, FORTRAN,
          COBOL, and anything else available... No doubt it too had a means of
          direct hardware access.

          Not sure if Pascal had the ability; not as originally defined
          (the teaching language, not the extended mutants that made it into
          industry).
          [color=blue]
          >
          > <mike[/color]

          --[color=blue]
          > =============== =============== =============== =============== == <
          > wlfraed@ix.netc om.com | Wulfraed Dennis Lee Bieber KD6MOG <
          > wulfraed@dm.net | Bestiaria Support Staff <
          > =============== =============== =============== =============== == <
          > Home Page: <http://www.dm.net/~wulfraed/> <
          > Overflow Page: <http://wlfraed.home.ne tcom.com/> <[/color]

          Comment

          • Bengt Richter

            #35
            Re: Reimplenting Linux Kernel in Python

            On Fri, 15 Oct 2004 02:07:52 GMT, bokr@oz.net (Bengt Richter) wrote:
            [... maybe misleading lack of mention of benefits of compatibility with existing stuff ;-) ...][color=blue]
            >
            >Anyway, CPU instructions are just bytes. As a start, it might be interesting to try to build
            >a dll extension in an mmap array and import it (be prepared for lots of crashes ;-).
            >
            >Obviously mmap etc depend on the OS, but if you had prepared a suitable bootable OS
            >with a primitive file system and mmap functionality, and a userland python VM, ... well,
            >it's involved, but you can get there. I'd bet pypy will eventually be at the center of
            >something like that, with maybe a monolithic boot image in flash, and BIOS to boot it.
            >At some point, on a suitable platform, it will be able to self-host its own development, I'd bet.
            >[/color]
            An OS in the larger sense is of course more than a kernel and some primitives, and even if it
            is feasible to re-implement all kinds of utility functions in a new language, it is not very
            practical[1] replace a lot of stuff except as a slow migration, happening in cases where someone
            would rather rebuild than remodel. So then you wind up asking how to make your bootstrapped OS
            able to run legacy binaries, or relink legacy object files with your newly-implemented primitive
            libraries, and then whose linker you want to have do that, and how to execute *that* etc. So you
            will probably either adopt a standard existing ABI or build some adaptation layer for your kernel
            that provides it. Anyway, I just wanted to mention that I think there is enormous mass and inertia
            in the way legacy tools and applications are represented in various format files, and it takes
            a long time for something new to take hold. And a kludge that works to accomplish a money-making-critical
            task today pretty much beats any vision for tomorrow, until someone has a new today thing ready
            to compete in the tomorrow. Even then, the tendency is for the new to contain a 1401 emulator or such ;-/
            [1] Of course, practicality may beat purity, but fun beats practicality ;-)

            Regards,
            Bengt Richter

            Comment

            Working...