Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jun 2001 21:10:03 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        des@ofug.org (Dag-Erling Smorgrav)
Cc:        jcm@FreeBSD-uk.eu.org (j mckitrick), freebsd-chat@FreeBSD.ORG
Subject:   Re: most complex code in BSD?
Message-ID:  <200106222110.OAA28427@usr06.primenet.com>
In-Reply-To: <xzp7ky5e4ua.fsf@flood.ping.uio.no> from "Dag-Erling Smorgrav" at Jun 22, 2001 02:27:41 AM

next in thread | previous in thread | raw e-mail | index | archive | help
> > In everyone's opinion, what is the most complex code in the BSD codebase?
> > Not including asm (unless there is an especialy exemplary example of
> > obfuscated code, but it seems compilers are better at that  ;-) what code is
> > most likely to turn a newbie's brain to tapioca?
> 
> Most likely NFS, though it's not as bad as it used to be.  The VFS
> system is probably a close second (namei() anyone?).

The NFS is pretty clean, as long as you take the macros at face
value when reading the code.

The VFS code is trivial, if you just understand call-by-descriptor,
which OpenSSL, libXt, libXaw, libXm, etc., all use.  It's a common
technique.

The linker set code is odd.

The build process for device modules is pretty opaque, especially
when moving drivers between 4.x and 5.x.

Anything with "perl" code in it: it's a write-only programming
language, useful only for throw-away code.


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-chat" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106222110.OAA28427>