Re: Database Transactions and STM [was: Re: STM semantics, the Transactional role]

2005-07-24 Thread Yuval Kogman
On Sun, Jul 24, 2005 at 18:50:28 +1200, Sam Vilain wrote: > Sorry for the necro-equine flagellation, but I think STM would have to > support general nesting to be useful. In fact I'd be highly surprised > if the Haskell STM implementation doesn't already support it. Uh, yeah, that's exactly my p

Re: Database Transactions and STM [was: Re: STM semantics, the Transactional role]

2005-07-23 Thread Sam Vilain
Yuval Kogman wrote: everyone gets to choose, and another thing I have in mind is the Transactional role... DBI::Handle does Transactional; To the STM rollbacker and type checker thingy this means that any IO performed by DBI::Handle invoked code is OK - it can be reversed using the Transa

Re: Database Transactions and STM [was: Re: STM semantics, the Transactional role]

2005-07-20 Thread Yuval Kogman
On Mon, Jul 18, 2005 at 15:16:16 +1200, Sam Vilain wrote: > Yuval Kogman wrote: > >everyone gets to choose, and another thing I have in mind is the > >Transactional role... > > DBI::Handle does Transactional; > >To the STM rollbacker and type checker thingy this means that any IO > >performed b

Re: Database Transactions and STM [was: Re: STM semantics, the Transactional role]

2005-07-18 Thread Aankhen
On 7/18/05, Sam Vilain <[EMAIL PROTECTED]> wrote: > Is this needed, when you can just; > >atomic { > unsafeIO { $dbh.begin_work }; > > unsafeIO { $dbh.do(...) }; > > unsafeIO { $dbh.commit }; >} CATCH { > $dbh.rollback; >}; Shouldn't that `CATCH` block be wit

Database Transactions and STM [was: Re: STM semantics, the Transactional role]

2005-07-17 Thread Sam Vilain
Yuval Kogman wrote: everyone gets to choose, and another thing I have in mind is the Transactional role... DBI::Handle does Transactional; To the STM rollbacker and type checker thingy this means that any IO performed by DBI::Handle invoked code is OK - it can be reversed using the Transa

STM semantics, the Transactional role

2005-07-15 Thread Yuval Kogman
Hey! Welcome back our show, gay camels[1] in denial! On todays show, those who can't shut up won't, and will send you another email! Today's issues cover STM, and just that. Perl6 should have some kind of atomic { ... } going on, AFAIK. W