[PRL] Re: [plt-internal] Fwd: Load Balancing for networks
Matthias Felleisen
matthias at ccs.neu.edu
Tue Jan 13 13:10:28 EST 2004
Dan is probably one of the top-five teachers in our program.
I doubt he made that kind of mistake but you never know.
I have asked him for the code. When I get it, I'll check
and post.
-- Matthias
On Tuesday, January 13, 2004, at 09:46 AM, Joe Marshall wrote:
> Matthias Felleisen <matthias at ccs.neu.edu> writes:
>
>> This could be an interesting little project for someone to check out
>> our scripting abilities. I am sure (well Chet would tell me) "Perl
>> does this no sweat."
>>
>> 1. It could be that Dan is just programming functionally in a naive
>> manner.
>>
>> 2. It could be that he's loading the whole file at once and you don't
>> need that.
>>
>> 3. It could be an algorithmic or a language problem.
>>
>> Of course 3 is most interesting. So anyone? --Matthias
>
> 50 cents says that the program that reads the files has this loop (or
> equivalent) in it:
>
> (define (read-lines port)
> (let loop ((lines '()))
> (if (eof? port)
> lines
> (append lines (cons (read-line port) '())))))
>
More information about the PRL
mailing list