Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Jython vs. CL...
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dave Bakhash  
View profile  
 More options May 5 2002, 2:28 pm
Newsgroups: comp.lang.lisp
From: ca...@alum.mit.edu (Dave Bakhash)
Date: 5 May 2002 11:28:42 -0700
Local: Sun, May 5 2002 2:28 pm
Subject: Re: Jython vs. CL...
hey,

"Frank A. Adrian" <fadr...@ancar.org> wrote in message <news:bQ%A8.4257$JG4.234907@news.uswest.net>...

> Dave Bakhash wrote:

> > Method combination is another feature that's very specific to CLOS,
> > and I would argue that 99% of programs don't use it, and of the 1%
> > that do, at least half are probably using it wrong (or just using it
> > for the sake of saying they're using a non-standard method
> > combination).

> Not really.

> One example - I was doing an optimization system.  I wanted users to
> construct optimizations simply.  One of the trickier areas was optimization
> terminations.  You can decide to terminate an optimization on many criteria
> - timeout, failure to progress, "good enough" solution found, etc., or a
> combination of these items.

I appreciate your testimony of an application of method combination.
I personally endorse using method combination in situations where you
want define a function based on all of the information about the
arguments.

Let's take a scenario where we use not only method combination, but
multi-methods.  Then you have:

(define-method-combination optimization-combination ...)
(defgeneric optimize (x y)
  (:method-combination optimization-combination)
  ...)

If it's clear that your OPTIMIZE function wants to see the complete
class graph of X and Y, and the corresponding methods defined on those
class combinations, then all the power to you; you have demonstrated a
capability that CL has for an interesting and unique situation.
Bravo! (I'm clapping for you.)

What about the situation of needing an LDAP interface?  Try
implementing a (Tight)VNC viewer in CL.  Do you know what you're up
against?

dave


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.