Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

lambda knights

Name: Anonymous 2010-02-19 1:59

Name: Anonymous 2010-02-19 3:55

Name: Anonymous 2010-02-19 4:10

>>8
Seems to be part of this code walker:
http://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/lisp/code/codewalk/walk/new_walk.cl
Code walkers are pretty useful things to use/write.

Name: >>9 2010-02-19 4:15

Which is part of PCL (one of the main and most efficient CLOS implementations). You tend to find modified PCL's in modern implementations of CLOS part of SBCL and other CL implementations, albeit they're quite changed compared to the original PCL codebase. That said, PCL is pretty old, even though still in active use: recent versions are from '92, but I guess modified versions part of modern CL implementations are much more newer, though not portable anymore.

Name: Anonymous 2010-02-19 4:16

And by PCL, I mean PortableCommonLoops.

Name: Anonymous 2010-02-19 12:21

>>11
Does it do MOP?

Name: Anonymous 2010-02-19 12:31

>>13
Of course, if Closette is the simplified reference implementation for MOP, PCL is the implementation of full CLOS+MOP. Both were made by Kiczales and friends. It's also probably the closest to the real MOP (See: Closer to MOP for SBCL barely has no fixes, while other implementations do).

Name: >>14 2010-02-19 12:33

Name: Anonymous 2010-02-19 13:51

Holy shit, proper introspection for the cee-los. I've been wanting to stay on CCL as long as I can but I'm thinking of switching to SBCL for the out-of-the-box asdf-install.

Name: Anonymous 2010-02-19 13:55

Can any of the CLers recommend a tutorial/book for a Schemer who wants to know more about CLOS?

Name: Anonymous 2010-02-19 14:03

>>16
CCL has its advantages too, especially on some platforms like Win32(compared to SBCL, whose support is stable, but not nearly as featureful as on *nix). That said, SBCL probably does MOP most correctly as its CLOS is a variant of PCL, and Closer-to-MOP ( http://common-lisp.net/project/closer/ ) confirms this behaviour. CCL's support isn't that shabby either: http://common-lisp.net/project/closer/repos/closer-mop/closer-mcl.lisp http://common-lisp.net/project/closer/repos/closer-mop/features.txt
>>17
How about TinyCLOS?  Kiczales did that one too (functional CLOS port to Scheme, less fancy macros than in CL, but in some places the author considers the MOP slightly better than in CL with regards to optimization possibilities), albeit his programming style may be more CLish than you'd prefer, YMMV.

http://community.schemewiki.org/?Tiny-CLOS

Name: >>18 2010-02-19 14:09

>>17
Unless I misunderstood your question, and you just want to learn CLOS in CL, then there's a few good books/tutorials:
Practical Common Lisp has some good chapters on general-purpose CLOS usage, and practical examples.
Keene 's Object-Oriented Programming in Common Lisp is another book which is mostly composed of practical examples of CLOS usage.
The Hyperspec talks about the more advanced features such custom method combinations which I haven't found discussed, however here's a simple tutorial: http://www.cawtech.demon.co.uk/clos/define-method-combination.html

As for the MOP and actually understanding CLOS inside out, there is no other book than the AMOP. I've found reading AMOP to be quite a nice read, the author shows implementing CLOS within CLOS and then he shows how to bootstrap the system. It also shows how the meta-object protocol is derived naturally while implementing it. The sample code is quite easy to read and understand if you follow the book.

Name: Anonymous 2010-02-19 14:29

>>18,19
thanks, I was looking into learning CLOS in CL mostly because it is standardized. I didn't want get confused when I see how each of the different schemes branched from the evolutionary path with tiny-clos, as they are wont to do.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List