C++ in the kernel
Bakul Shah
bakul at bitblocks.com
Sun Oct 28 00:43:11 PDT 2007
> scripting languages, will never be in the kernel. The old vmkernel.el
> joke will never happen either (although there's been rumors of an
> in-kernel compiled-lisp interprater floating around). C++ support,
> driven by people's experience with OS X, will continue to be a highly
> desired feature.
Are you thinking of Bill Bland's Schemix for linux?
$ echo '(+ 1 2 3)' > /dev/schemix
$ cat /dev/schemix
6
$ echo '(define foo (kernel-lambda (char*) printk))' > /dev/schemix
$ echo '(foo blah blah blah)' >/dev/schemix
$ dmesg |tail -1
blah blah blah
Speaking of vmkernel.el do you know about Movitz (Commom
Lisp on bare metal)?
Of course, this has nothing to do with why people want C++ in kernel!
> However, having C++ support would allow the extreme
> FreeBSD users to suffer or benefit from C++ in their kernels without
> having to reinvent the base wheel. I think the arguments are strong
> enough for this, but not so strong as to accept it into the base at
> this time without some compelling proof that it can be done, in
> FreeBSD, without extreme pain.
It will be the proverbial camel's nose in the tent. A subset
of C++ is attractive for kernel work but it will be hard to
hold the line at that. How long before people clamor for
things like
TailQ<Mount> mount_list;
TailQ<Mount>::iterator mp;
for(mp = mount_list.begin(); mp != mount_list.end(); mp+) {
...
}
More information about the freebsd-arch
mailing list