[Haskell-cafe] yi or not to yi was: IDE?

Isaac Dupree isaacdupree at charter.net
Mon Jun 18 15:51:46 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrew Coppin wrote:
> OTOH... how the heck do you write an operating system in a language that
> doesn't even support I/O? :-S

Back when I was first learning programming, with C, I had that exact
same question: how the heck can your program DO anything, when the
language consists of a bunch of functions that are executed that can
only modify meaningless variables your program defines? (C standard
defines modifications to volatile variables as side-effects, actually.)

It's because your environment knows how to call into the kernel, the
kernel knows how to make you computer do things - and that usually
involves a bit of assembly, because the C language doesn't define
non-program-logic for the compiler to translate.  Source-language
extensions to C allow inline assembly (and much more), so I'm sure
something appropriate could be done for Haskell if that was judged as
the best approach.


Isaac
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGduIWHgcxvIWYTTURAoRQAKC6vOw01VfwaPJavhcL5YV+lKlHagCdHUjB
guyrL0QcQUTfHG8PW91Wm+Q=
=2Xeu
-----END PGP SIGNATURE-----


More information about the Haskell-Cafe mailing list