good question,

can you guarantee that one crashing thread (just an evaluation error) can never stop 
execution of the other threads, and allow some sort of signals to warn you that a 
thread has dumped?

Allowing you to respawn it?


-MAx
---
"You can either be part of the problem or part of the solution, but in the end, being 
part of the problem is much more fun."
 

> -----Original Message-----
> From: Maarten Koopmans [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 29, 2004 11:05 AM
> To: [EMAIL PROTECTED]
> Subject: [REBOL] Threading continued
> 
> 
> 
> Hi,
> 
> I have got some code and some questions. I have a working version of 
> 'eval a function that takes a block of code and evaluates it like 'do.
> Big deal? Well... it responds to a 'rest word, giving you the 
> restof the 
> block to be evaluated and the value of the last evaluated expression.
> 
> So: eval [ 10 + 10 join "a" "b" rest 20 print "howdy" ]
>  >> [ "ab" [ 20 print "howdy"]]
> 
> Note that the second item (the rest of the code) is the 
> position in the 
> original code, so a ' head on that gives you the original code back.
> 
> Anyway.... this interruptable evaluator run on a block with 
> 10.000 now 
> invocations 3.5 times slower than do. That's slow, but probably fast 
> enough for most things. And Moore's law and all...
> 
> On top of such an eval function you can easily build a co-op 
> threading 
> engine. Instead of doing a script you would 'eval it, making it four 
> times slower but concurrent.
> And it would be easy to add all sort of utility threads 
> out-of-the box 
> for newbies, like a dns reader thread that returns the value to a 
> function on completion etc.
> 
> Question: is this a thing any of you want despite the 
> performance hit of 
> 400% ?
> 
> It is easy for me to get there, but I need to know if there 
> is anybody 
> who'd like to see it available.
> 
> Thanks,
> 
> Maarten
> -- 
> To unsubscribe from this list, just send an email to
> [EMAIL PROTECTED] with unsubscribe as the subject.
> 
> 

-- 
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.

Reply via email to