Re: In CLOS, instance remorphing considered useless in practice?

2020-12-08 Thread Jean-Claude Beaudoin
On Tue, Dec 8, 2020 at 8:02 PM Pascal Costanza wrote: > > The implementation of ContextL relies heavily on the CLOS MOP, and among > other things on runtime class redefinition and corresponding updates of > class instances. You can find the details how the class redefinition > machinery is used i

Re: In CLOS, instance remorphing considered useless in practice?

2020-12-08 Thread Jean-Claude Beaudoin
On Tue, Dec 8, 2020 at 3:21 PM d...@refined-audiometrics.com < d...@refined-audiometrics.com> wrote: > I am interested to hear arguments in both directions. But you haven’t > outlined the alternative, other than to state that they exist. What are > these alternatives? > The main purpose of my or

Re: In CLOS, instance remorphing considered useless in practice?

2020-12-08 Thread Jean-Claude Beaudoin
On Tue, Dec 8, 2020 at 4:17 PM Svante Carl v. Erichsen < svante.v.erich...@web.de> wrote: > Hi! > > It is used all the time while working on a live system (image). > > If you want raw performance, you can often substitute structs, if you > can live with the downsides: all objects from a class must

Re: In CLOS, instance remorphing considered useless in practice?

2020-12-08 Thread Pascal Costanza
> On 7 Dec 2020, at 05:52, Jean-Claude Beaudoin > wrote: > > > Hello Pros of Common Lisp, > > Here is my attempt at starting a significant (and hopefully useful) debate on > a subject squarely about Common Lisp and its internals. > > My main stance here is to state that I have yet to see,

Re: In CLOS, instance remorphing considered useless in practice?

2020-12-08 Thread Zach Beane
I see it and use it a lot. Maybe that's not significant to you, but it's significant to me. Zach On Tue, Dec 8, 2020 at 2:51 PM Jean-Claude Beaudoin < jean.claude.beaud...@gmail.com> wrote: > > Hello Pros of Common Lisp, > > Here is my attempt at starting a significant (and hopefully useful) deb

Re: In CLOS, instance remorphing considered useless in practice?

2020-12-08 Thread Svante Carl v. Erichsen
Hi! It is used all the time while working on a live system (image). If you want raw performance, you can often substitute structs, if you can live with the downsides: all objects from a class must be thrown away on redefinition (which might be OK if you want to treat e. g. a production system as

Re: In CLOS, instance remorphing considered useless in practice?

2020-12-08 Thread Faré
I once used update-instance-for-redefined-class in ASDF, when I was trying to make a smooth upgrade from ASDF 1 to ASDF 2. The problem I found is that proper support for class redefinition requires the cooperation not only of the underlying object system, but also of all the parts of the implementa

Re: In CLOS, instance remorphing considered useless in practice?

2020-12-08 Thread d...@refined-audiometrics.com
I am interested to hear arguments in both directions. But you haven’t outlined the alternative, other than to state that they exist. What are these alternatives? I use these MOP functions indirectly whenever I perform a CHANGE-CLASS on objects, mimicking something akin to Smalltalk BECOME. And

Re: In CLOS, instance remorphing considered useless in practice?

2020-12-08 Thread Robert Goldman
Updating instances when classes are redefined is critical to interactive development with the REPL. If you want to see why it's so critical, try working with Python and modifying a class definition. You have to shut down the interpreter and start over, which is a huge pain if your system has

Re: Call for Interest: Clojure (or Lisp?) Code Camp with BLM focus

2020-12-08 Thread Kevin Layer
Pascal Costanza wrote: >> >> >> > Parallel GC is no problem and implemented. >> >> >> Which CL implementations have a parallel GC? I'm a little late to the conversation, but we have been experimenting with a multi-threaded garbage collector that runs mostly in parallel with the lisp applicati

In CLOS, instance remorphing considered useless in practice?

2020-12-08 Thread Jean-Claude Beaudoin
Hello Pros of Common Lisp, Here is my attempt at starting a significant (and hopefully useful) debate on a subject squarely about Common Lisp and its internals. My main stance here is to state that I have yet to see, in a significant application, any use of functions #'cl:make-instance-obsolete a