[plt-scheme] Process hangs with big input

From: Noel Welsh (noelwelsh at yahoo.com)
Date: Tue Mar 14 09:42:39 EST 2006

Thanks for the tips.  What is the newish port library?  Is 
that ports are waitable?  Or something else?

I'm adverse to using threads in this context as I'd have to
restruct my code, but if its the only way I guess I'll just
have to suck it up and get on with it.

> What are you doing, in this particular case?

I'm running svn diff to count the number of lines of code
students have modified in a project.  This is so we can
(roughly) assess their contribution to a group project. 
For my use the code is basically:

  - for all revisions, get the output of svn diff for the
revision and its predecessor
  - regex search for ^- and ^+ (subtractions and additions)
  - count total number per user for all revisions

However, you can see the same problem if you simply run

 (system/output "cat a-big-file")

I suppose I could run the regexps on the ports, instead of
collecting the results in a string.  I'll try that first.


Email: noelwelsh <at> yahoo <dot> com   noel <at> untyped <dot> com
AIM: noelhwelsh
Blogs: http://monospaced.blogspot.com/  http://www.untyped.com/untyping/

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

Posted on the users mailing list.