(Fwd) Views on DBI 2.0

2008-12-29 Thread Tim Bunce
- Forwarded message from Marcin Guzowski mar...@guzowski.info -

Date: Mon, 29 Dec 2008 05:14:17 -0800 (PST)
From: Marcin Guzowski mar...@guzowski.info
To: Tim Bunce tim.bu...@pobox.com
Subject: Views on DBI 2.0

   Hi Tim,

   We have developed a distributed system written in Perl that needs to maintain
   multiple db connections across multiple threads (across multiple processes).
   Unfortunately, we can't use current DBI 1.x module, because it's not
   threading-safe. AFAIR DBI 2.0 should fix this problem and could be used in
   multi-threaded apps, is that true?

   Have you any idea when DBI 2.0 will be out?

   Cheers,
   Marcin

- End forwarded message -


Re: (Fwd) Views on DBI 2.0

2008-12-29 Thread Jonathan Leffler

 Date: Mon, 29 Dec 2008 05:14:17 -0800 (PST)
 From: Marcin Guzowski mar...@guzowski.info

   We have developed a distributed system written in Perl that needs to
 maintain
   multiple db connections across multiple threads (across multiple
 processes).
   Unfortunately, we can't use current DBI 1.x module, because it's not
   threading-safe. AFAIR DBI 2.0 should fix this problem and could be used
 in
   multi-threaded apps, is that true?

   Have you any idea when DBI 2.0 will be out?


I think the plan, to the extent there is a plan, is 'sometime after Perl 6
is available'.

It is interesting to speculate 'When will Perl 6 be available'.

-- 
Jonathan Leffler jonathan.leff...@gmail.com  #include disclaimer.h
Guardian of DBD::Informix - v2008.0513 - http://dbi.perl.org
Blessed are we who can laugh at ourselves, for we shall never cease to be
amused.


Re: (Fwd) Views on DBI 2.0

2008-12-29 Thread Dean Arnold

Tim Bunce wrote:

- Forwarded message from Marcin Guzowski mar...@guzowski.info -

Date: Mon, 29 Dec 2008 05:14:17 -0800 (PST)
From: Marcin Guzowski mar...@guzowski.info
To: Tim Bunce tim.bu...@pobox.com
Subject: Views on DBI 2.0

   Hi Tim,

   We have developed a distributed system written in Perl that needs to maintain
   multiple db connections across multiple threads (across multiple processes).
   Unfortunately, we can't use current DBI 1.x module, because it's not
   threading-safe. AFAIR DBI 2.0 should fix this problem and could be used in
   multi-threaded apps, is that true?

   Have you any idea when DBI 2.0 will be out?

   Cheers,
   Marcin

- End forwarded message -



Marcin: perhaps if you could elaborate on your architectural needs, it might be 
possible to
discuss threaded options for DBI 1.x with you.

FWIW: I've implemented a (heavyweight) Erlang-esque solution in DBIx::Threaded, and had hoped to 
improve upon it via Thread::Sociable (www.presicient.com/sociable). Alas, other commitments have

forced me to suspend development of the latter, but it may possible to 
resurrect it.

Also, recent announcements wrt Perl6's development may disappoint the threads enthusiasts among us. 
E.g., they've cut STM, and I suspect other threads related features may also be on the chopping 
block in the interest of delivering a GA language implementation in the next 18 months (Concurrency 
can be a harsh mistress...)


Dean Arnold
Presicient Corp.