[REBOL] Re: RFC: Cross-language benchmark proposal
From: edanaii:cox at: 10-Nov-2002 9:08
Carl Read wrote:
>On 10-Nov-02, Ed Dana wrote:
>>Second, as part of my algorithm, I had specified a Source and Target
>>directory. I met that specification, in part by creating it as a
> Specify Target Directory or File
>was a bit ambiguious I thought, and I chose file, but I can see how
>Target could be either, and my attempt just assumes it's a file.
Well, it was clear in my head. :)
True, the problem with algorithms is that they need to be specified
clearly, and what's clear to one is not always clear to another. But
then, that's what code reviews are for. :) And why any submissions
should be reviewed before being accepted.
>>Also, you chose to Write the file as a binary file. Is this safer?
>>Or just focused on binary? Just wondering...
>If you don't specify binary, it's possible the file could be
This is more technical than specification oriented, so... Review
> READ source /binary /string /direct /no-wait /lines /part size
>/with end-of-line /mode args /custom params /skip length
> Reads from a file, url, or port-spec (block or object).
> READ is a native value.
> source -- (Type: file url object block)
> /binary -- Preserves contents exactly.
>You didn't say what type of files could be in the directory, so binary
>would be safer.
>There would need to be a fuller description of what the directory
>could contain I think. If just files, then no problems, but if
>directories too, then you'd have to say what to do with them. They
>could be required to be ignored, copied if they're chosen as the
>random choice, or looked through too if the files within them are to
>be part of the random choice.
Definately, your choice of binary was the better choice. I didn't weigh
that issue. So the final version should include binary.
My feeling would be, if it ain't specified, then don't do it. It should
meet the algorithm, as specified. If the algorithm is missing something,
then the algorithm needs to be revised.
Sincerely, | Tell me, tell me, where I'm going; I don't know
Ed Dana | where I've been. Tell me, tell me. Oh won't you
Software Developer | tell me, and then tell me again! My body's aching,
1Ghz Athlon Amiga | my heart is breaking and I don't know where to go!
| So tell me, tell me, why don't you tell me? I just
| gotta know! - Styx, Crystal Ball