Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Functor and protocol based sequence library

1 view
Skip to first unread message

Eduardo Cavazos

unread,
Feb 16, 2010, 6:21:49 PM2/16/10
to
Hello,

A note I posted to the Ikarus list:

http://ikarus-scheme.org/pipermail/ikarus-users/2010-February/000792.html

I'm interested in ideas from folks here as well.

Ed

Nathan Campos

unread,
Feb 18, 2010, 9:52:48 AM2/18/10
to
On Feb 16, 9:21 pm, Eduardo Cavazos <wayo.cava...@gmail.com> wrote:
> Hello,
>
> A note I posted to the Ikarus list:
>
> http://ikarus-scheme.org/pipermail/ikarus-users/2010-February/000792....

>
> I'm interested in ideas from folks here as well.
>
> Ed

Congratulations!
Very nice work, but it will be better if on a pastebin, that have
syntax highlighting. ;)

Eduardo Cavazos

unread,
Feb 18, 2010, 10:15:29 AM2/18/10
to

> Congratulations!
> Very nice work, but it will be better if on a pastebin, that have
> syntax highlighting. ;)

Thanks! It's just a sketch though, exploring the territory.

Here's another approach that is a bit more lightweight, using functors
but without the protocol abstraction:

http://gist.github.com/306892

Those functors are for "indexable" sequences (i.e. vectors, strings,
bytevectors).

Ed

Nathan Campos

unread,
Feb 18, 2010, 10:18:44 AM2/18/10
to

Very nice!

Eduardo Cavazos

unread,
Feb 18, 2010, 3:49:02 PM2/18/10
to
> Here's another approach that is a bit more lightweight, using functors
> but without the protocol abstraction:
>
>    http://gist.github.com/306892
>
> Those functors are for "indexable" sequences (i.e. vectors, strings,
> bytevectors).

Here's a similar set of functors for 'iterable' sequences:

http://gist.github.com/308044

I define some procedures for basic lists as well as the random access
lists provided by SRFI-101.

Ed

Eduardo Cavazos

unread,
Feb 19, 2010, 4:58:36 AM2/19/10
to

Here's the code as a set of R6RS libraries:

http://gist.github.com/308590

The '(sequences f32-vectors)' library provides an example of an
indexable sequence.

Ed

0 new messages