Re: Propose for LINUX kernel and PERL

From: Theodore Ts'o
Date: Sun Jan 05 2014 - 18:43:15 EST

On Sun, Jan 05, 2014 at 03:12:17AM -0500, bulk88 wrote:
> I agree, Linux kernel is hacks on hacks with no top to bottom
> architecture. Linux had the BKL longer than its competitors. Linux
> was never whiteboarded before the project began. FreeBSD is more
> organized and uniform. There is also NT Kernel whose API was speced
> out before the kernel was written.

For the record, Linux had the BKL longer because it has had SMP longer
than its competitors. Linux got rid of the last of the BKL in
mid-2012. As of 2013, FreeBSD, NetBSD, and OpenBSD still has the
giant lock (BSD's equivalent of the BKL) in some of their subsystems.
And of course, in general Linux has had much better scalability than
the *BSD's for much of the past couple of years, with SGI using Linux
on systems with hundreds of processors, and with people using Linux on
32 and 64 processors systems for the past decade. In contrast,
FreeBSD was boasting in 2013 of improving its 16 processor

> Since Perl is Turing complete you can run the Linux kernel inside
> Perl. Although Perl doesn't run in kernel mode ATM, I don't see why
> I can't be ported to be a LKM, maybe with RPC to glibc. You could
> also have Perl running as user mode driver or some kind daemon with
> calls from a kernel driver to the user space daemon Perl. You can
> use Perl version 5 or 6.

My favorite suggestion, going back several decades to the early 90's,
was those who suggested porting BSD 4.3 to Emacs LISP, so that you
could run your entire system under GNU Emacs. :-)

- Ted
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at