To learn Factor, I wrote up a spelling
correction<http://surana.wordpress.com/2009/12/15/spelling-corrector-in-factor/>program
(I'd appreciate suggestions to improve this). I tried using some
concurrency features but it resulted in an "Out of memory" exception and the
listener died. So I had a few questions about this:
1. How do I tell the listener not to die on "Out of memory", and instead
abort and return to the listener?
2. This exception occurs when I replace cleave with parallel-cleave: { 4
quots } parallel-cleave. Does parallel-cleave block until all quots return?
I'm assuming it does, in which case there should only be 4 extra threads in
my program. But when I run my program on an array of 500 words (process 1 at
a time), the image crashes.
3. I wanted to use "size" to check memory consumption of a vector, but it
appears to only give me the size of the vector and not its contents too. Can
I get the total storage size of a data structure?
4. Are there any plans to add multi-threading to the VM? I didn't realize
Factor was single-threaded until i noticed it peak at 50% cpu.
Thanks,
Pinku
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk