[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: What are closures, continuations?

Gavin Kistner

10/27/2006 11:05:00 PM

From: Simen Edvardsen [mailto:toalett@gmail.com]
> Here's an example of how
> closures and continuations are useful, cooperative threading:

[snip crazy example]

Can someone who isn't busy snorting crazy programming crack explain to
me what the heck that example is showing?

7 Answers

Louis J Scoras

10/28/2006 1:45:00 AM

0

On 10/27/06, Gavin Kistner <gavin.kistner@anark.com> wrote:
> From: Simen Edvardsen [mailto:toalett@gmail.com]
> > Here's an example of how
> > closures and continuations are useful, cooperative threading:
>
> [snip crazy example]
>
> Can someone who isn't busy snorting crazy programming crack explain to
> me what the heck that example is showing?

Err...closures and continations? =)

But seriously, continations can be useful in some situations;
although, most of the time you can get away without them. Take for
instance generators. You can create them using continuations, but
they can also be implemented using closures and, if I'm not mistaken,
threads as well.

I believe the standard generator library is implemented using
continations if anyone is looking for an example in ruby. There is
also plenty of good stuff if you look on any site on scheme.


--
Lou.

Joe Ruby

10/28/2006 7:35:00 AM

0

Lou Scoras wrote:

> But seriously, continations can be useful in some situations;

Obsfucated code contests? ;P

> although, most of the time you can get away without them.

Joe

--
Posted via http://www.ruby-....

Zanzibar

10/12/2010 6:45:00 AM

0

On Oct 12, 10:50 am, "zero" <hah...@yahoo.com> wrote:
> These tycoon probably thought of losing money at the Singapore casino as
> some form of charitable donations, and they are quite happy to lose more.
>
> "Superbee" <superb...@gmail.com> wrote in message
>
> news:4a1db42c-6bdb-4948-a14e-b596a34f311f@y32g2000prc.googlegroups.com...
>
>
>
> > S'pore tycoon blows S$100m at the tables
>
> >http://www.channelnewsasia.com/stories/singaporelocalnews/view/... Hide quoted text -
>
> - Show quoted text -

We have 3 main-charity shows in a year - NKF Charity, Thye Hua Kwan
Charity, and the last one, - the upcoming President Charity.

Everyone that acted in the previous show are also acting in the next
charity. The public is also getting sick and tired with the
rudimentiment of the yearly shows that spreaded equally in 3 months
each.

I think instead of spending so much repeat of the shows that also
costs a few million to organsie and conduct them, there should perhpas
be a casino gambling show that an be held in the 2 casinos in which
tycoon gamblers are invited to gamble with 10 milllion in step to 100
to 200 milllion, etc.

By this way the donation from charity shows will be more and much
faster.

SingrishKing

10/12/2010 6:53:00 AM

0

On 12/10/2010 11:04, Superbee wrote:
> On Oct 12, 10:50 am, "zero"<hah...@yahoo.com> wrote:
>> These tycoon probably thought of losing money at the Singapore casino as
>> some form of charitable donations, and they are quite happy to lose more.
>>
>> "Superbee"<superb...@gmail.com> wrote in message
>>
>> news:4a1db42c-6bdb-4948-a14e-b596a34f311f@y32g2000prc.googlegroups.com...
>>
>>
>>
>>> S'pore tycoon blows S$100m at the tables
>>
>>> http://www.channelnewsasia.com/stories/singaporelocalnews/view/... Hide quoted text -
>>
>> - Show quoted text -
>
> Some of these tycoons treat such losses as small entertainment costs.
> In the eyes of other high rollers, they need to maintain some level of
> prestige ... "$100 million ... nothing to me!" ... others will
> "Wow ... you are so rich!"


ya lor! dhey say "sup sup soeu le"!

wah! lai dhat i oso wan to open ca$hingno ah! how to open one har?
mus frien frien wifh who in dhe garmen har?

--

tok Singrish very dhe shiok one ah!

SingrishKing

10/12/2010 7:12:00 AM

0

On 12/10/2010 14:45, Zanzibar wrote:
....
> We have 3 main-charity shows in a year - NKF Charity, Thye Hua Kwan
> Charity, and the last one, - the upcoming President Charity.
>
> Everyone that acted in the previous show are also acting in the next
> charity. The public is also getting sick and tired with the
> rudimentiment of the yearly shows that spreaded equally in 3 months
> each.
>
> I think instead of spending so much repeat of the shows that also
> costs a few million to organsie and conduct them, there should perhpas
> be a casino gambling show that an be held in the 2 casinos in which
> tycoon gamblers are invited to gamble with 10 milllion in step to 100
> to 200 milllion, etc.
>
> By this way the donation from charity shows will be more and much
> faster.



but hor, Charity wan multiple income stream ah mah!

--

tok Singrish very dhe shiok one ah!

kingkong

10/12/2010 8:59:00 AM

0

The truth is these tycoon have probably donated hundred thousands of dollars
to NKF Charity, Thye Hua Kwan
Charity, and President Charity at behest of their wives and children but
they often do feel shiok about it.

However, in the casino, it is quite different. It shows these tycoons don't
mind losing millions, as long as they are happy doing it and do not leave
the casino with a bad taste in their mouth.

They probably think it is better to lose money to the casino and benefit
thousands of poor Singaporean than buying a new car for themselves.

"Zanzibar" <zanzibar_duck@yahoo.com> wrote in message
news:51987ff3-0a63-4543-975b-cd2efe585a24@x20g2000pro.googlegroups.com...
On Oct 12, 10:50 am, "zero" <hah...@yahoo.com> wrote:
> These tycoon probably thought of losing money at the Singapore casino as
> some form of charitable donations, and they are quite happy to lose more.
>
> "Superbee" <superb...@gmail.com> wrote in message
>
> news:4a1db42c-6bdb-4948-a14e-b596a34f311f@y32g2000prc.googlegroups.com...
>
>
>
> > S'pore tycoon blows S$100m at the tables
>
> >http://www.channelnewsasia.com/stories/singaporelocalnews/view/...
> >Hide quoted text -
>
> - Show quoted text -

We have 3 main-charity shows in a year - NKF Charity, Thye Hua Kwan
Charity, and the last one, - the upcoming President Charity.

Everyone that acted in the previous show are also acting in the next
charity. The public is also getting sick and tired with the
rudimentiment of the yearly shows that spreaded equally in 3 months
each.

I think instead of spending so much repeat of the shows that also
costs a few million to organsie and conduct them, there should perhpas
be a casino gambling show that an be held in the 2 casinos in which
tycoon gamblers are invited to gamble with 10 milllion in step to 100
to 200 milllion, etc.

By this way the donation from charity shows will be more and much
faster.


asdf asdf

10/13/2010 6:52:00 AM

0

On Oct 12, 4:58 pm, "zero" <hah...@yahoo.com.sg> wrote:
> The truth is these tycoon have probably donated hundred thousands of dollars
> to NKF Charity, Thye Hua Kwan
> Charity, and President Charity at behest of their wives and children but
> they often do feel shiok about it.
>
> However, in the casino, it is quite different. It shows these tycoons don't
> mind losing millions, as long as they are happy doing it and do not leave
> the casino with a bad taste in their mouth.
>
> They probably think it is better to lose money to the casino and benefit
> thousands of poor Singaporean than buying a new car for themselves.
>
> "Zanzibar" <zanzibar_d...@yahoo.com> wrote in message
>
> news:51987ff3-0a63-4543-975b-cd2efe585a24@x20g2000pro.googlegroups.com...
> On Oct 12, 10:50 am, "zero" <hah...@yahoo.com> wrote:
>
> > These tycoon probably thought of losing money at the Singapore casino as
> > some form of charitable donations, and they are quite happy to lose more.
>
> > "Superbee" <superb...@gmail.com> wrote in message
>
> >news:4a1db42c-6bdb-4948-a14e-b596a34f311f@y32g2000prc.googlegroups.com...
>
> > > S'pore tycoon blows S$100m at the tables
>
> > >http://www.channelnewsasia.com/stories/singaporelocalnews/v.......
> > >Hide quoted text -
>
> > - Show quoted text -
>
> We have 3 main-charity shows in a year - NKF Charity, Thye Hua Kwan
> Charity, and the last one, - the upcoming President Charity.
>
> Everyone that acted in the previous show are also acting in the next
> charity. The public is also getting sick and tired with the
> rudimentiment of the yearly shows that spreaded equally in 3 months
> each.
>
> I think instead of spending so much repeat of the shows that also
> costs a few million to organsie and conduct them, there should perhpas
> be a casino gambling show that an be held in the 2 casinos in which
> tycoon gamblers are invited to gamble with 10 milllion in step to 100
> to 200 milllion, etc.
>
> By this way the donation from charity shows will be more and much
> faster.

Name him-lah.lol.