Re: anyone define port types?

2016-03-30 Thread Jan Wedekind
On Wed, 30 Mar 2016, Marko Rauhamaa wrote: Panicz Maciej Godek : 2016-03-30 13:18 GMT+02:00 Jan Nieuwenhuizen : Panicz Maciej Godek writes: I also used GOOPS, which I regret to this day, and so the whole framework needs a serious rewrite What is it that you do not like about GOOPS? Mos

Re: anyone define port types?

2016-03-30 Thread Jan Wedekind
On Wed, 30 Mar 2016, Marko Rauhamaa wrote: Jan Wedekind : GOOPS supports "open" classes and multiple-dispatch. E.g. you can extend the "write" method to control how an object is displayed within the Guile REPL [1]. Another interesting approach are multi-methods in Cloj

Re: anyone define port types?

2016-03-31 Thread Jan Wedekind
On Thu, 31 Mar 2016, Marko Rauhamaa wrote: Jan Wedekind : On Wed, 30 Mar 2016, Marko Rauhamaa wrote: GOOPS' has the worst possible object model: objects are seen as mere data records. The concept of a "slot" is an anathema to OOP. Ok, I have updated the example to use acc

Re: GNU Guile 2.1.4 released [beta]

2016-09-15 Thread Jan Wedekind
Thanks a lot for the work. I am trying to run my project "aiscm" with it. I noticed that slots are now objects themselves. So instead of (car <>), one can use (slot-ref <> 'name). Please let me know if there is a better way to get the slot names of a class. (use-modules (oop goops))

Re: GNU Guile 2.1.4 released [beta]

2016-09-15 Thread Jan Wedekind
Hi, I haven't managed to isolate it properly but I observed some strange problem with "concatenate" (using my "aiscm" library). (define-method (match (i ) . args) ...) ... (apply match (concatenate (list (list 1) (list 2 2 3 4 5 6 oop/goops.scm:1336:2: oop/goops.scm:1336:2:

Re: GNU Guile 2.1.4 released [beta]

2016-09-15 Thread Jan Wedekind
On Thu, 15 Sep 2016, David Pirotte wrote: Hi Jan, Thanks a lot for the work. I am trying to run my project "aiscm" with it. I noticed that slots are now objects themselves. So instead of (car <>), one can use (slot-ref <> 'name). Please let me know if there is a better way to get the slot n

Re: GNU Guile 2.1.4 released [beta]

2016-09-15 Thread Jan Wedekind
A quick note that the workaround is not valid. Sorry if I caused confusion. Hi, I haven't managed to isolate it properly but I observed some strange problem with "concatenate" (using my "aiscm" library). (define-method (match (i ) . args) ...) ... (apply match (concatenate (list (lis

Re: GNU Guile 2.1.4 released [beta]

2016-09-16 Thread Jan Wedekind
Ok, no worries. I will rename "match". The test suite of "aiscm" fails but I didn't manage to create a small example so far. On 16. September 2016 16:49:51 GMT+00:00, David Pirotte wrote: >Jan, > >> I haven't managed to isolate it properly but I observed some strange >> problem with "concatenat

Re: GNU Guile 2.1.4 released [beta]

2016-09-16 Thread Jan Wedekind
On Fri, 16 Sep 2016, David Pirotte wrote: Jan, I haven't managed to isolate it properly but I observed some strange problem with "concatenate" (using my "aiscm" library). (define-method (match (i ) . args) ...) ... (apply match (concatenate (list (list 1) (list 2 2 3 4 5 6 )))

Re: GNU Guile 2.1.4 released [beta]

2016-09-18 Thread Jan Wedekind
Ok, thanks for testing it. Here is the item in the bug tracker [1]. [1] http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24454 On 17. September 2016 15:07:15 GMT+00:00, David Pirotte wrote: >Hello Jan, > >> (use-modules (oop goops)) >> (define-generic native-type) >> (define-method (n

Re: GNU Guile 2.2.0 released

2017-03-17 Thread Jan Wedekind
Many thanks! Just did some benchmarks and it looks like there are decent performance improvements :) Regards Jan # Guile 2.0.11 make[1]: Entering directory '/home/jan/test/aiscm/bench' LD_LIBRARY_PATH=./.libs:/usr/local/lib GC_INITIAL_HEAP_SIZE=1G GC_USE_ENTIRE_HEAP=Y /usr/bin/guile bench.sc