Subject: Re: Calling All Noobs: Mini RtL Survey
From: rpw3@rpw3.org (Rob Warnock)
Date: Wed, 11 Jan 2006 00:40:13 -0600
Newsgroups: comp.lang.lisp
Message-ID: <DJqdncuoKsfQNVneRVn-gA@speakeasy.net>
GP lisper  <spambait@clouddancer.com> wrote:
+---------------
| As basically an assembly language programmer, it's scary nowdays
| to start thinking (sometimes) in CLOS.
+---------------

You want scary? I'll give you scary! Try peeking & poking hardware
registers from within CMUCL, heh-heh!  MMAP some hardware into your VM
and then do (setf (system:sap-ref-32 (system:int-sap addr) 0) new-value)
[which in C is "*((u32*)(addr)+0) = new-value"]. I have a whole toolkit
of such low-level hacks that I use to do user-mode debugging of hardware
at my current POE.

Long ago [1992] at a PPOE, I did it in Tcl, with a C bolt-on (DSO) for
the low-level stuff. Then I moved to SCM, then to MzScheme, and now
finally to CMUCL -- which turns out to be able to do the whole thing
inside the language, without the grotty C DSO add-on. [Though if you
*need* a grotty DSO add-on for something, CMUCL can handle that, too.]


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607