[Haskell-cafe] idlelog

2007-05-19 Thread Leandro Lisboa Penz


Hi

I made a program that detects user presence in a linux box by checking 
for keyboard interruptions in /proc/interrupts.


Problem is, it is supposed to run for a long time, and it keeps about 
40MB for itself.


Yeah, this is one more help me with this memory problem mails...

The code can be found in http://hpaste.org/1907, and in darcs get 
http://lpenz.50webs.com/idlelog


I guess I'm having some conceptual problem.

Cheers
Leandro Penz
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] idlelog

2007-05-19 Thread Leandro Lisboa Penz


Hi

I made a program that detects user presence in a linux box by checking 
for keyboard interruptions in /proc/interrupts.


Problem is, it is supposed to run for a long time, and it keeps about 
40MB for itself.


Yeah, this is one more help me with this memory problem mails...

The code can be found in http://hpaste.org/1907, and in darcs get 
http://lpenz.50webs.com/idlelog


I guess I'm having some conceptual problem.

Cheers
Leandro Penz
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] idlelog

2007-05-19 Thread Stefan O'Rear
On Sat, May 19, 2007 at 05:33:22PM -0300, Leandro Lisboa Penz wrote:
 
 Hi
 
 I made a program that detects user presence in a linux box by checking 
 for keyboard interruptions in /proc/interrupts.
 
 Problem is, it is supposed to run for a long time, and it keeps about 
 40MB for itself.
 
 Yeah, this is one more help me with this memory problem mails...
 
 The code can be found in http://hpaste.org/1907, and in darcs get 
 http://lpenz.50webs.com/idlelog
 
 I guess I'm having some conceptual problem.

Actually, you're having a mail system problem.  This is the second
time haskell-cafe has received the message. 

Stefan
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] idlelog

2007-05-19 Thread Donald Bruce Stewart
lpenz:
 
 Hi
 
 I made a program that detects user presence in a linux box by checking 
 for keyboard interruptions in /proc/interrupts.
 
 Problem is, it is supposed to run for a long time, and it keeps about 
 40MB for itself.
 
 Yeah, this is one more help me with this memory problem mails...
 
 The code can be found in http://hpaste.org/1907, and in darcs get 
 http://lpenz.50webs.com/idlelog
 
 I guess I'm having some conceptual problem.

I'd seriously consider using Data.ByteString instead of [Char] string 
for your IO.

-- Don
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe