[Haskell-cafe] Re: [Haskell] Top Level <-

Lennart Augustsson lennart at augustsson.net
Thu Aug 28 04:00:41 EDT 2008


I'm certain you can write a kernel in Haskell where the only use of
global variables is those that hardware interfacing forces you to use.

On Thu, Aug 28, 2008 at 3:32 AM, John Meacham <john at repetae.net> wrote:
> On Thu, Aug 28, 2008 at 12:15:10AM +0100, Lennart Augustsson wrote:
>> I didn't say NetBSD doesn't use global variables, I said the device
>> driver model doesn't use global variables.  And quite a few things
>> that used to be in global variables have been moved into allocated
>> variables and are being passed around instead.  That's simply a better
>> way to structure the code.
>
> Indeed. I have experimented with single address space operating systems where
> it is pretty much the only way to do things at the user level. But I
> still want to be able to implement my kernel in haskell. :)
>
>>
>> I don't don't think global variables should be banned, I just think
>> they should be severly discouraged.
>
> Oh, I certainly agree with that. especially among new programmers. I
> think ACIO is a particularly elegant way to provide them in haskell for
> when they are needed. Every time I can avoid resorting to C code for a
> task without sacrificing performance, aethetics, or correctness, it is a
> good day.
>
>        John
>
>
>
> --
> John Meacham - ⑆repetae.net⑆john⑈
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>


More information about the Haskell-Cafe mailing list