tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Using qsort(3) in the kernel



On Sun, Nov 16, 2008 at 09:40:45PM +0000, David Laight wrote:
> On Sun, Nov 16, 2008 at 08:22:06PM +0000, David Holland wrote:
> > On Sun, Nov 16, 2008 at 03:19:41PM -0500, Martin S. Weber wrote:
> >  > Yes that's obvious. Given my background in functional languages I'm
> >  > just intrigued by the statement 'recursive is bad, imperative
> >  > for/while loops are good'.
> > 
> > Loops are generally easier for both the programmer and compiler to
> > deal with. :-p
> 
> And the VM system

Uhm... in functional languages, you DO write loops as tail recursions.
At no load on the VM system, given the usual compilers.

However, I'm afraid we won't rewrite NetBSD in OCamL soon.

        -is


Home | Main Index | Thread Index | Old Index