David Nicol wrote:
On 7/2/05, Dean Arnold <[EMAIL PROTECTED]> wrote:

>
>   - Asynchronous queries (coroutines?  threads?)

Threads. If you've ever done much Java/JDBC work, you'll
realize how much simpler a solution to async it is.
(Ignoring the rest of Java/JDBC's undesirable traits)


A couple quarters ago I submitted a proposal to write a general
pragma delivering sugar to simply wrap any module with message-passing,
including worker process/thread pooling and testing against DBI to the
TPF, I guess the proposal has expired by now.  Anyway this can be
solved in a general way that is larger than DBI, and get it solved in
DBI "for free."


I'm already implementing such a wrapper for DBI (DBIx::Threaded);
not a pragma, and very specific to DBIv1, but hopefully it solves
at least 85-90% of the problem. (tho async cancel/abort isn't
solvable at this point)

BTW: the Pots::* modules already do what I *think* you're
proposing (again, not as pragmas, and Perl5 based)

Dean

Reply via email to