caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] OCaml in the kernel (again)
@ 2002-01-23 11:32 Art Yerkes
  0 siblings, 0 replies; 2+ messages in thread
From: Art Yerkes @ 2002-01-23 11:32 UTC (permalink / raw)
  To: caml-list; +Cc: ak, jyerkes, ksherinian, mugwumpj

I found the idea of ocaml code in the kernel intriguing enough to do
some digging. It turns out that ocamlopt can compile a viable kernel
if one hacks hard enough, and this allows the C parts of the kernel to
give ocaml code a shot at initialization, including allowing ocaml code
to register callbacks, etc that will be called when the kernel is
running.  The following page describes what's there, which while not
perfectly complete is enough to work with reasonably.  This may be a 
nice opportunity to do a project like foxnet, but to get everything
except the ethernet physical-layer driver into a nicer language.  One
might consider that code thus written would be less exploitable by a
malicious hacker than equivalent C code.

Here is the page with instructions + files.
http://64.81.145.152/~arty/caml.html

Art

-- 
#define ENOTSUP      48      /* Operation not supported                */
#define ENOTKANSTOTO 49      /* Not in kansas anymore, Toto            */
#define EBADE        50      /* Invalid exchange                       */



-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Caml-list] ocaml in the kernel (again)
@ 2002-01-23 12:19 art
  0 siblings, 0 replies; 2+ messages in thread
From: art @ 2002-01-23 12:19 UTC (permalink / raw)
  To: caml-list

I found the idea of ocaml code in the kernel intriguing enough to do
some digging.
It turns out that ocamlopt can compile a viable kernel if you try hard
enough, and
this allows the C parts of the kernel to give caml code a shot at
initialization,
including allowing ocaml code to register callbacks, etc that will be
called when
the kernel is running.  The following page describes what's there, which
while not
perfectly complete is enough to work with reasonably.  This may be a
nice
opportunity to do a project like foxnet, but to get everything except
the ethernet
physical-layer driver into a nicer language.  One might consider that
code thus
written would be less exploitable by a malicious hacker than equivalent
C code.

http://64.81.145.152/~arty/caml.html

Art
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-01-24 15:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-23 11:32 [Caml-list] OCaml in the kernel (again) Art Yerkes
2002-01-23 12:19 [Caml-list] ocaml " art

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).