[gambit-list] SRFI-13

Marc Feeley feeley at iro.umontreal.ca
Wed Apr 15 11:08:44 EDT 2009


On 15-Apr-09, at 10:53 AM, Alex Queiroz wrote:

> Hallo,
>
> On 4/15/09, Bradley Lucier <lucier at math.purdue.edu> wrote:
>>
>> At one point my implementations of SRFI 13 and 14 used the internal
>> Gambit API to properly check the types and bounds of arguments and  
>> raise
>> exceptions with the proper continuations.  That API has changed  
>> since I
>> wrote those, but there are only a few macros and types that have to  
>> be
>> rewritten to bring it up to date, but I don't have time to do so now.
>>
>
>     It built flawlessly with 4.4.2, but then it may give unpleasant
> surprises at runtime. I'll try to spot the needed changes.
>
>> Also, I use a very naive bitmap implementation for character sets,  
>> which
>> is OK for Latin-1 but not for Unicode, so a different data structure
>> should be used for that.  Haven't done that, either.
>>
>
>     Hmmm. this is more serious since I tend to use UTF-8 encoding.

Are you talking about the Unicode character class tables?  If I'm not  
mistaken Will Clinger wrote a fairly compact and fast implementation  
of those tables.  The code must be in Larceny somewhere.  I believe it  
is also part of the reference implementation for R6RS.

Marc




More information about the Gambit-list mailing list