Re: Kat's 8bit sequences

new topic     » goto parent     » topic index » view thread      » older message » newer message

Greg Haberek wrote:
> 
> 
> I sure could use 8-bit (or 16-bit Unicode) strings! I'm coming up on my next
> release of wxEditor (boy, does it sure look nice! /gloat) and one stumbling
> block I've found is that I'm loading files into sequences of strings, one line
> being its own sequence (much easier to manipulate this way, IMHO), which
> quickly
> inflates the memory usage, because I've got 4x (or 2x) the RAM being used per
> character. I've tried writing my own 8-bit string routines, but nothing comes
> close to the ease of manipulation I get with sequences.
> 
> I really think we'd benefit from storing strings as strings and sequences as
> sequences, and still manipulate them equally.

You make sense Greg.

If the goal is to make Euphoria more 'full featured' then adding other types
like strings would seem to be part of that goal.  It the goal is, "Hey, I'm
doing this volunteer work.  I'll code whatever cool thing I think of" that
'goal' would likely produce different results.  If your goal is to fill in
gaps or holes without much changing the language... well, that's a different
thing as well.

My concern about adding string types is the potential that Euphoria will then
have to do the type of garbage collection that is normally associated with
string usage.  This can create unacceptable performance lags.  If strings
can be implemented without the danger of such hiccups, I'd be much less
concerned about there addition.

Is there a formal process for adding features?  I ask because I'm not aware
of any.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu