Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] OCaml for system programming?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-09-12 (08:30)
From: David Mentre <David.Mentre@i...>
Subject: Re: [Caml-list] OCaml for system programming?
"emil artin" <> writes:

>  But I don't know if it is managable at all!!

OCaml is able to read and write bytes on a Unix file descriptor, it is
also able to handle bit operations and you have both Int32 and Int64
data types. So it should be doable. The only lacking C feature is C

However, I'm not sure it will be easier to do those low level
manipulations in OCaml than in C.

> It would be interesting (at least for me) to know if one can do things
> like file system implementation in OCaml?

If you are thinking of doing an OCaml linux kernel module to implement a
filesystem, clearly you can't do it (mainly due to the GC that needs the
glibc malloc() and/or sbrk() and would have to work in the kernel
address space).

Now, if you are speaking of doing a pure userland filesystem tool, it
should be doable, as said above.

If you progress in this direction, I would be personnaly interested to
have your feedback on the point.

Best regards,
 Opinions expressed here are only mine.
Bug reports:  FAQ:
To unsubscribe, mail  Archives: