From: Tony Arcieri Date: 2012-07-06T09:37:39+09:00 Subject: Re: Green threads in 1.9.* ? --0015175cfb4e845e3504c41e785c Content-Type: text/plain; charset=ISO-8859-1 On Thu, Jul 5, 2012 at 12:31 PM, rex goxman wrote: > 1. I have proposed no system. I have stated that I'd like to use green > threads, and asked if ruby still had them available. Your suggested use case for green threads was firing off background jobs that may or may not break, with zero interest as to if they complete successfully. This is not what Erlang does. Erlang/OTP provides extensive reporting of all failures of any OTP components. At least, that seems to be what you're suggesting here. Please correct me if I'm wrong: This is a crappy example, but say you need to do some > calculation which might fail or even crash, but you don't want (or need) > to check the inputs to the calculation, or wrap the thing up in an error > catching mechanism, or anything of this nature. You just want to > calculate it, and if it works, fine, and if it doesn't (or even crashes) > - fine, your main program continues to run. -- Tony Arcieri --0015175cfb4e845e3504c41e785c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Thu, Jul 5, 2012 at 12:31 PM, rex goxman <lists@ruby-forum.com> wrote:
1. I have proposed no system. =A0I have stated that I'd like to use gre= en
threads, and asked if ruby still had them available.

<= /div>
Your suggested use case for green threads was firing off backgrou= nd jobs that may or may not break, with zero interest as to if they complet= e successfully. This is not what Erlang does. Erlang/OTP provides extensive= reporting of all failures of any OTP components.

At least, that seems to be what you're suggesting h= ere. Please correct me if I'm wrong:

This is a crappy example, but say yo= u need to do some
calculat= ion which might fail or even crash, but you don't want (or need)
to check the inputs to the ca= lculation, or wrap the thing up in an error
catching mechanism, or anything of this nature. =A0You ju= st want to
calculate it, and if it works= , fine, and if it doesn't (or even crashes)
- fine, your main program continues to run.=A0=

--
Tony= Arcieri

--0015175cfb4e845e3504c41e785c--