[PRL] Re: [plt-internal] Fwd: Load Balancing for networks

Joe Marshall jrm at ccs.neu.edu
Tue Jan 13 09:46:13 EST 2004


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