1. Re: Str

Kat wrote:
> 
> Derek Parnell wrote:
> > 
> > Kat wrote:
> > > 
> > > Shawn Pringle wrote:
> > > > 
> > > > Kat,
> > > > 
> > > > A EUPHORIA string is a sequence that contains integer
> > > > values that each represent a character value.
> > 
> > 
> > > Really? 
> > 
> > Ok, its not quite accurate. It should read more like ...
> > 
> > "A EUPHORIA string is a sequence that ONLY contains POSTIVE integer
> > values that each represent a character value."
> > 
> > > Since when does EUPHORIA use only 8 bits for each CHAR
> > > in the SEQUENCE? 
> > 
> > Since when is the definition of "string" :: An array of 8-bit unsigned
> > integers?
> 
> It isn't, it could be UTF16 as well, using only 1/2 as much memory as Eu
> sequences.

Except for some weird characters, you are right. However, Euphoria strings are
encoded as UTF32 only.

> > > Since when can you load a 500mbyte STRING into EUPHORIA and
> > > not have the OS kill the application with "too much memory used"
> > > error (windoze allows each app to have  only 2 gigabytes)?
> > 
> > It doesn't. I bet a Commodore 64 couldn't do that either.
> 
> Strangely, there is a IDE64 for the C64 that can handle 4gigabyte files on ATA
> drives.

That would be a disk right and not RAM? I though the problem was storing huge
amounts of bytes in RAM.
 
> > Since when do you absolutely, positively, must have all those 500 mega BYTES
> > in RAM at the same time? Are you saying that your task can only be achieved
> > if all those bytes are in RAM simultaneously?
> 
> Damn, i pick a number that guarantees windose killing the app, and that's all
> you can think of.

Hang on a minute ... did you tell us that you picked '500MB' because that's a
number that will cause Windows to fail?  No you did not. It seemed to me, and I
think everyone else, that you have a need to actually have that 500MB in RAM. I
know that you have applications that to an awful lot of text analysis etc on
stuff from the internet, so I just thought that your concern was that you can't
use Euphoria for those apps because of its forced UTF32 encoding.

It seems to me that if we had UTF8 encoding that you'd then complain that it
can't handle "strings" of more than 2GB!

> Don't you have anything better to do, Derek, or you just trolling
> for me?

Kat, you know me better than that. I'm not shitting you or trying to upset you.
I'm trying to get to the real issue AND try to help find ways to overcome it.

If you can tell me about some of your real world tasks that Euphoria's strings
prevent you from performing, I'd like to find solutions to those for you. So far,
I'm not convinced you have a case but I can have my opinion changed with some
evidence to the contrary.

-- 
Derek Parnell
Melbourne, Australia
Skype name: derek.j.parnell

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu