|
From: | Alex Shinn |
Subject: | Re: [Chicken-users] UTF-8 support in eggs |
Date: | Fri, 11 Jul 2014 10:28:46 +0900 |
On 07/09/14 09:00, Alex Shinn wrote:> The clean way to handle this is to duplicate the useful stringConsidering Chibi Scheme size numbers from your other mail, I hardly
> APIs for bytevectors. This could be done without code duplication
> with the use of functors, though compiler assistance may be
> needed for efficiency (e.g. for inlined procedures). Even without
> code duplication there would be an increase in the core library
> size, though we could probably move most utilities to external
> libraries (how often do you need regexps that operate on binary
> data?).
call this a huge price for the benefit received. Even for my specific
embedded use cases.
> The bigger issue from the performance perspective is existing> idioms that use indexes, which can degrade to quadratic behaviorDo you have some examples on how to avoid performance degradation and
> in the worst case no matter how much you optimize (without hacks
> that slow down normal usage). So people would have to learn to
> take substrings where appropriate to avoid the start/end parameters
> to all SRFI 13 functions, or we would need to deprecate SRFI 13
> in favor of a cursor-oriented API (planned for R7RS).
not use string indexes?
How about more complex formatting like
outputting numbers with padding? I guess these should be handled with
something like fmt (or chibi.show).
[Prev in Thread] | Current Thread | [Next in Thread] |