[Chicken-users] Coops generic procedures profiling

2015-04-22 Thread Kooda
Hi! I’ve been playing with coops for the last few days and I wanted to profile my code to find the hot spots, but was surprised to find that none of the generic procedures defined with coops define-generic was showing up in the profile. Is this a known limitation of the egg? Is there any way to

[Chicken-users] Coops print-object, error handling and flaming koalas

2011-09-22 Thread Stephen Eilert
Today I hit a problem with some trivial code I wrote using Coops that I just couldn't figure out. The relevant code is here: http://paste.call-cc.org/paste?id=d09b2c1438a7f063c07cd089fb3e74c68d0b2804 Yeah, I forgot to add the port argument. In any case, Coops' error message is misleading: #no

Re: [Chicken-users] coops / override initialize-instance

2011-03-09 Thread Felix
From: John J Foerch jjfoe...@earthlink.net Subject: [Chicken-users] coops / override initialize-instance Date: Tue, 08 Mar 2011 16:30:32 -0500 Hello, What is the recommended way to perform complex initialization of object instances in coops? Say I need to initialize a certain slot based

Re: [Chicken-users] coops

2011-02-03 Thread Felix
From: Stephen Eilert spedr...@gmail.com Subject: Re: [Chicken-users] coops Date: Wed, 2 Feb 2011 18:50:32 -0300 On Wed, Feb 2, 2011 at 5:29 PM, Felix fe...@call-with-current-continuation.org wrote: From: Stephen Eilert spedr...@gmail.com Subject: Re: [Chicken-users] coops Date: Wed, 2 Feb

Re: [Chicken-users] coops

2011-02-02 Thread schugk
So you example above should basically work, but note that the method for `pair' will always override the one for `list', since the latter is a supertype of the former. That is the problem i am talking about. I know the reason. The new version (1.4) does not fix that. I can not call a

Re: [Chicken-users] coops

2011-02-02 Thread schugk
Sometimes the simplest solution are the hardest to see. I do not have to use coops-primitive-objects, I can define my own hierarchie of primitive objects. Sandro ___ Chicken-users mailing list Chicken-users@nongnu.org

Re: [Chicken-users] coops

2011-02-02 Thread Stephen Eilert
On Wed, Feb 2, 2011 at 2:24 PM, sch...@uni-potsdam.de wrote: Sometimes the simplest solution are the hardest to see. I do not have to use coops-primitive-objects, I can define my own hierarchie of primitive objects. That is my experience as well. Every time I import coops-primitive-objects, I

Re: [Chicken-users] coops

2011-02-02 Thread Felix
From: Stephen Eilert spedr...@gmail.com Subject: Re: [Chicken-users] coops Date: Wed, 2 Feb 2011 15:32:33 -0300 On Wed, Feb 2, 2011 at 2:24 PM, sch...@uni-potsdam.de wrote: Sometimes the simplest solution are the hardest to see. I do not have to use coops-primitive-objects, I can define my

Re: [Chicken-users] coops

2011-02-02 Thread Stephen Eilert
On Wed, Feb 2, 2011 at 5:29 PM, Felix fe...@call-with-current-continuation.org wrote: From: Stephen Eilert spedr...@gmail.com Subject: Re: [Chicken-users] coops Date: Wed, 2 Feb 2011 15:32:33 -0300 On Wed, Feb 2, 2011 at 2:24 PM,  sch...@uni-potsdam.de wrote: Sometimes the simplest solution

Re: [Chicken-users] coops

2011-01-25 Thread Felix
From: sch...@uni-potsdam.de Subject: Re: [Chicken-users] coops Date: Wed, 19 Jan 2011 03:09:22 +0100 The version you install is 1.1 Then a new version does not solve my problem. Here is some code: (define-generic (show s)) (define-method (show (s number)) (number-string s

Re: [Chicken-users] coops

2011-01-20 Thread Felix
From: Christian Kellermann ck...@pestilenz.org Subject: Re: [Chicken-users] coops Date: Wed, 19 Jan 2011 15:48:47 +0100 * sch...@uni-potsdam.de sch...@uni-potsdam.de [110119 15:35]: Hi, all pairs are subtypes of the type of lists Then all pairs are lists? What about (cons 1 2)? I thought

Re: [Chicken-users] coops

2011-01-20 Thread John Cowan
Felix scripsit: In Common Lisp and Dylan, pairs are subclasses of list, btw. That's because LISTP doesn't do what LIST? does; it simply checks its input for being either a cons or NIL, so that's the definition of class LIST in CL. If Scheme's LIST? is being used to define a class, that class

Re: [Chicken-users] coops

2011-01-19 Thread Christian Kellermann
Dear Sandro, * sch...@uni-potsdam.de sch...@uni-potsdam.de [110119 03:09]: Is there a reason why pair is a subclass of list? This reflects the way scheme sees lists, which are build of pairs: (equal? (cons 1 (cons 2 (cons 3 (cons 4 (cons 5 '()) (list 1 2 3 4 5)) = #t Does this

Re: [Chicken-users] coops

2011-01-19 Thread schugk
This reflects the way scheme sees lists, which are build of pairs: Jeha, i know. A list is a pair, but a pair is not a list. Therefore a list should be a subclass of pair. (Ok, for '() we have null). And the other point is, that i can not specialized generic procedures for pair and list.

Re: [Chicken-users] coops

2011-01-19 Thread Thomas Chust
2011/1/19 sch...@uni-potsdam.de: [...] Jeha, i know. A list is a pair, but a pair is not a list. Therefore a list should be a subclass of pair. (Ok, for '() we have null). [...] Hello, that is wrong, and you even give the reason why it's wrong yourself: A list is either a pair or the empty

Re: [Chicken-users] coops

2011-01-19 Thread schugk
Hi, all pairs are subtypes of the type of lists Then all pairs are lists? What about (cons 1 2)? I thought a list is a pair which cdr is a list (or the empty list -- exclude that case for a moment). Perhaps I have misunderstood you. I am not that firm with types and i am a little

Re: [Chicken-users] coops

2011-01-19 Thread Christian Kellermann
* sch...@uni-potsdam.de sch...@uni-potsdam.de [110119 15:35]: Hi, all pairs are subtypes of the type of lists Then all pairs are lists? What about (cons 1 2)? I thought a list is a pair which cdr is a list (or the empty list -- exclude that case for a moment). Perhaps I have misunderstood

Re: [Chicken-users] coops

2011-01-19 Thread Thomas Chust
2011/1/19 sch...@uni-potsdam.de: [...] Then all pairs are lists? What about (cons 1 2)? I thought a list is a pair which cdr is a list (or the empty list -- exclude that case for a moment). [...] Hello Sandro, you're right, I neglected the case of pairs whose cdr is not a list. So to be

Re: [Chicken-users] coops

2011-01-18 Thread schugk
The version you install is 1.1 Then a new version does not solve my problem. Here is some code: (define-generic (show s)) (define-method (show (s number)) (number-string s)) (define-method (show (s symbol)) (symbol-string s)) (define-method (show (s pair)) (string-append ( (show (car

[Chicken-users] coops

2011-01-16 Thread schugk
Hi, i am playing around with coops and have some problems with list and pair. I know that are fixed in version 1.1 but i can download 1.0 only via chicken-install. The next point is that the performance is not as good as expected. Are there any tricks? For example i have a method

Re: [Chicken-users] coops

2011-01-16 Thread Felix
From: sch...@uni-potsdam.de Subject: [Chicken-users] coops Date: Mon, 17 Jan 2011 03:39:45 +0100 Hi, i am playing around with coops and have some problems with list and pair. I know that are fixed in version 1.1 but i can download 1.0 only via chicken-install. The version you install

[Chicken-users] coops metaclasses + initform

2010-09-25 Thread Felix
Hello! That recent coops change regarding initform: and metaclasses was of course bogus. `initialize-instance' now does proper initform: handling for all class instances. Has been tagged as coops 1.0 and should be available shortly. cheers, felix

[Chicken-users] coops object system

2010-06-04 Thread Felix
Hello! This announces yet another object system, named (obvious but somewhat lame): coops Features: - the highlevel API is compatible to tinyclos - based on Dorai Sitaram's ScmObj - multimethods - multiple inheritance - before/after/around methods - implicit generic procedure definition - full