Thanks for the ideas folks!
> On Apr 30, 2021, at 08:24, Matt Wette wrote:
>
>
>> On 4/29/21 8:26 PM, Tim Meehan wrote:
>> Is there something in Guile that is similar to Python's "pdb" module?
>> For instance, sometimes I find it helpful to pause right before something
>> bad happens with:
>>
Preferably, the dispatch should be done as much as possible during compile
time such that it takes zero time during runtime.
On Fri, Apr 30, 2021 at 4:50 PM Mikael Djurfeldt
wrote:
> Generic method dispatch is *supposed* to be fast. It was fast once upon a
> time. We should fix that.
>
> On Fri,
Generic method dispatch is *supposed* to be fast. It was fast once upon a
time. We should fix that.
On Fri, Apr 30, 2021 at 2:19 PM Stefan Israelsson Tampe <
stefan.ita...@gmail.com> wrote:
> If performance is important, a goops solution can be slow in vector-ref
> and vector-set! operations due
If performance is important, a goops solution can be slow in vector-ref and
vector-set! operations due
to two reasons. (I have pounder an implementation of resizable python lists
and here is my tips),
1. slot-ref/slot-set! is slow (I try to fix this using the much more
difficult struct-ref/struct-
On 4/29/21 8:26 PM, Tim Meehan wrote:
Is there something in Guile that is similar to Python's "pdb" module?
For instance, sometimes I find it helpful to pause right before something
bad happens with:
#!/usr/bin/env python3
import pdb; pdb.set_trace()
some_function_that_is_going_to_fail_miserab
Hi Tim,
Am 30.04.2021 05:26 schrieb Tim Meehan:
Is there something in Guile that is similar to Python's "pdb" module?
For instance, sometimes I find it helpful to pause right before
something
bad happens with:
you can use the debugging features of the REPL. See:
,help debug
Example:
,break
Tim Meehan writes:
>>
>> How do I load a file from the current path that I'm in?
>> But more importantly, what is the typical workflow when using guile?
>> Do people write files to the filesystem and load them in the repl to try it
>> out?
>> Or is there a faster way to do things?
I use geiser i
On Fri, Apr 30, 2021 at 1:11 AM Damien Mattei
wrote:
> for example in the doc there is:
> (define-class () r i #:name "Complex")
>
> seems superclass is of no use
>
Well, it certainly *is* of use in the sense that methods operating on
will immediately start to also accept as an argument.
Tha
The superclass question is a matter of taste.
First note that in CLOS-like objects systems, such as GOOPS, methods are
not components of classes but it is rather the set of operations =
generics/methods around a type which define its behavior. Roughly speaking,
the only things directly tied to the
thank for your answer but my question was just about use of superclass
SRFI implementation is too complex for what i want to do now,
template is 1 dimension gvector, that's neolithic for me :-) and do not
explain use of superclass...
Damien
On Fri, Apr 30, 2021 at 9:57 AM Linus Björnstam
wro
This does not answer your question, but:
There was just a SRFI released for growable vectors. I don't know about any
interest to have it included in guile, but the reference implentation is
probably trivially portable: https://srfi.schemers.org/srfi-214/srfi-214.html
--
Linus Björnstam
On
Hi!
I attach a template which you could build on. Please post your class when
you're done. :)
Best regards,
Mikael
On Fri, Apr 30, 2021 at 1:11 AM Damien Mattei
wrote:
> hi,
> i want to create a growable vector class in Guile,
> such as std::vector or python list,
> first i do not know if it e
12 matches
Mail list logo