Welcome to dbdi-dev@perl.org

2004-01-18 Thread Tim Bunce
This list is for anyone developing database drivers for Parrot and especially for those developing the Parrot Database Driver Interface library or a database driver that use it. I'll post an announcement and answer some Firmly Anticipated Questions in a day or two. Tim.

"Parrot DBDI" - Announcement and Firmly Anticipated Questions

2004-01-28 Thread Tim Bunce
Python: http://www.python.org/topics/database/ Perl: http://dbi.perl.org/ PHP: http://freshmeat.net/projects/php-dbi/ (Please let me know about any other similar database interface projects for languages that may target Parrot.) =head2 Developers Harry Jackson <[EMAIL PROTECTED]> h

Re: First DBDI draft

2004-01-30 Thread Tim Bunce
On Thu, Jan 29, 2004 at 09:00:56PM +, Harry Jackson wrote: > Ok. > > I have managed to knock up an initial draft. You will see straight away > that it is very limited in what it does. I have managed to run the > select statement as shown in the code and it does return 1 records > althou

Parrot DBDI Design Notes

2004-01-30 Thread Tim Bunce
Here's something I sketched out for Harry when we started. Seems worth repeating to the list. This is where we're aiming to get to. Tim =head1 Parrot DBD Design Notes These notes for a rough sketch of a class hirearchy based on that use for the Perl DBI drivers: the DBD's. =head1 Handle Object

Re: Things are afoot

2004-01-30 Thread Tim Bunce
On Fri, Jan 30, 2004 at 03:19:45AM +, Harry Jackson wrote: > Harry Jackson wrote: > > >Some of the code is only half finished ie We can connect and prepare but > >not execute and fetch. > > > >Watch this space. > > We can now execute and fetch as can be seen from the bit of code I just > po

Re: Things are afoot

2004-01-30 Thread Tim Bunce
On Fri, Jan 30, 2004 at 02:44:33PM +, Harry Jackson wrote: > Tim Bunce wrote: > > Get as close to my "design notes" (reposted this morning) as > > possible. > > eg set_err(), err(), errstr(), new_child() get_row_array() > >

Re: First DBDI draft

2004-01-30 Thread Tim Bunce
On Fri, Jan 30, 2004 at 03:11:05PM +, Harry Jackson wrote: > > .pcc_sub _MAIN prototyped > .param pmc argv > .include "/home/parrot/dbdi/lib/dbdi/dbdi_header.imc" > > .sym pmc dbh > .sym string dbstring > dbstring = "host=lhost dbname=name user=user password=pass" >

Re: First DBDI draft

2004-01-30 Thread Tim Bunce
On Fri, Jan 30, 2004 at 02:26:27PM +, Harry Jackson wrote: > > >> dbstring = "host=lhost dbname=name user=user password=pass" > >> .pcc_begin prototyped > >> .arg dbstring > >> .pcc_call connect > >> retconnect: > >> .result dbh > >> .pcc_end > >> prin

Re: First DBDI draft

2004-02-03 Thread Tim Bunce
On Tue, Feb 03, 2004 at 04:35:46PM +, Harry Jackson wrote: > [... ] > Question: > Since Dan has said that objects are nearly finished is there any point > spending too much time working on this. Would our time be better spent > helping to get objects finished pronto. I think so. It's basicall

Perl 6 implmenentation of the Java JDBC API?

2006-05-17 Thread Tim Bunce
On Tue, May 16, 2006 at 11:59:48PM +0100, Tim Bunce wrote: > That's partly why I added the following idea to The Perl Foundation's Summer > of Code > project list (http://www.perl.org/advocacy/summerofcode/ideas.html): > > Reimplement the DBI v1 API in Pugs > Des

DBI2 reborn with DBI1 facade

2006-05-17 Thread Tim Bunce
he familiar DBI API while radically refactoring the internals to make best use of Perl 6 and so enable greater functionality and extensibility. (Likely mentor: Tim Bunce) Trying to come up with both a new architecture and a new API was too much. A great deal can be achieved by radically refactori

Re: For your encouragement

2008-12-06 Thread Tim Bunce
On Fri, Dec 05, 2008 at 11:11:30AM -0800, Geoffrey Broadwell wrote: > On Fri, 2008-12-05 at 09:10 -0600, Andy Lester wrote: > > On Dec 5, 2008, at 4:13 AM, Simon Cozens wrote: > > > > > I just ran this code, which worked with the expected results: > > > > > > Beautiful. Posted to Perlbuzz. > >

Re: DBDI Status

2009-07-05 Thread Tim Bunce
On Sat, Jul 04, 2009 at 07:09:20PM +0100, Sentra Systems wrote: > Hi Hi Dave. > Has anything happened with a Parrot JDBC implementation? > Is Parrot stable enough yet? > Has anyone mapped out the minimun subset of JDBC that would be required to > get DBI working in Perl6? Here's the (current) p

Re: DBDI Status

2009-07-06 Thread Tim Bunce
w.hjackson.org/cgi-bin/folding/index.pl > > > > - Original Message > From: Tim Bunce > To: Sentra Systems > Cc: dbdi-dev@perl.org; Simon Cozens > Sent: Saturday, July 4, 2009 11:36:32 PM > Subject: Re: DBDI Status > > On Sat, Jul 04, 2009 at 07:09:20

Re: DBDI Status

2009-07-06 Thread Tim Bunce
dbc --recurse --nest java.sql.Connection I've just checked in a file I had on my disk that lists all the java.sql and javax.sql classess, so you can run java2perl6 --outdir jdbc --recurse --nest $(cat jdbc_classes.txt) Tim. > Regards > Dave > > > Tim Bunce wrote: >> On

Re: DBDI Status

2009-07-11 Thread Tim Bunce
Uh, I meant to add... give me an email address associated with a google account and I'll give you a commit bit on http://code.google.com/p/java2perl6/ (I may move to github but it probably won't happen till after OSCON.) Tim. On Sat, Jul 11, 2009 at 01:03:25AM +0100, Tim Bunce wro

Re: DBDI Status

2009-07-11 Thread Tim Bunce
On Fri, Jul 10, 2009 at 11:45:46PM +0100, Sentra Systems wrote: > Tim > > Attached is a modified copy of the Generator::Std that emits current perl6. > It's been amended to add the correct sigils and 'use' statements. Do you > want to give it a try and see if it does what you want? Try running t

Re: DBDI Status

2009-07-11 Thread Tim Bunce
to give it a try and see if it does what you want? > > :) > Dave > > > Tim Bunce wrote: >> On Mon, Jul 06, 2009 at 02:08:17PM +0100, Sentra Systems wrote: >> >>> Tim >>> >>> Is there a particular reference implementation of java.sql(x) you&

Re: DBDI Status

2009-07-16 Thread Tim Bunce
On Wed, Jul 15, 2009 at 03:46:08PM +0100, Sentra Systems wrote: > Tim > > They fixed a bug in rakudo last night that means a lot more of the pm's > build, still investigating the rest. There a number of additional classes > being discovered by javap (above the list you supplied). Yes, that list

Re: DBDI Status

2009-07-16 Thread Tim Bunce
On Thu, Jul 16, 2009 at 01:49:02AM -0700, Darren Duncan wrote: > Tim Bunce wrote: >> On Wed, Jul 15, 2009 at 03:46:08PM +0100, Sentra Systems wrote: >>> Do you want these to be typecast to 'Any'? >> >> In the short term, yes. In the longer term we'll ne

What needs doing...

2009-08-05 Thread Tim Bunce
I've applied a bunch of changes today. The current output of the mkjdbc.pl script is appended below. It's looking pretty good. (I'm using the latest rakudo from git) There are a few immediate issues... . . java.sql.SQLXML: jdbclib/java/sql/SQLXML.pm ERROR (line 1): Invalid comp unit:

Re: What needs doing...

2009-08-08 Thread Tim Bunce
m. > >-- Todd Presta >-- [1]http://www.asciiville.com > > > -------- > >From: Tim Bunce >To: dbdi-dev@perl.org >Cc: Tim Bunce ; crow.p...

Re: [PATCH] Don't check for leading blank lines in

2009-08-10 Thread Tim Bunce
Thanks, applied! Send me an email address associated with a google account and I'll add you to the project so you can commit directly. Tim. On Mon, Aug 10, 2009 at 12:37:06AM +0200, Moritz Lenz wrote: > Hi, > > attached patch for java2perl6 makes the tests files not check leading > blank lines

Re: [PATCH] require Data::Dumper::Simple

2009-08-10 Thread Tim Bunce
"Data::Dumper::Simple is actually a source filter that ..." Eeek! I'd be happy to loose the dependency. I don't think it's worth it. Tim. On Mon, Aug 10, 2009 at 12:21:32AM +0200, Moritz Lenz wrote: > Hi, > > java2perl6 uses Data::Dumper::Simple (at least for the tests, it seems) > but doesn't n

Re: [PATCH] Don't check for leading blank lines in

2009-08-10 Thread Tim Bunce
On Mon, Aug 10, 2009 at 09:26:56AM +0100, Tim Bunce wrote: > Thanks, applied! But not committed. I'll try to sort out the underlying failure first. It's almost certainly a side effect of my messing with the type mapping. Tim. > Send me an email address associated with a google

Re: [PATCH] Don't check for leading blank lines in

2009-08-10 Thread Tim Bunce
In and working (for me at least) now. Thanks! Tim. On Mon, Aug 10, 2009 at 04:40:18PM +0100, Tim Bunce wrote: > On Mon, Aug 10, 2009 at 09:26:56AM +0100, Tim Bunce wrote: > > Thanks, applied! > > But not committed. I'll try to sort out the underlying failure first. >

Re: Join the DBDI project

2009-08-11 Thread Tim Bunce
On Tue, Aug 11, 2009 at 10:41:01AM +0200, Cosimo Streppone wrote: > Hi Tim, > > I just read the recent messages on the DBDI mailing list, > and I'd like to join the list and the project. Wonderful. Welcome. Thanks! I believe joining the list just requires an (e.g., empty) email to dbdi-dev-subscr

Re: [java2perl6] r98 committed - Tests pass successfully now....

2009-09-28 Thread Tim Bunce
On Sun, Sep 27, 2009 at 07:38:52PM +, codesite-nore...@google.com wrote: > Revision: 98 > Author: cosimo.streppone > Date: Sun Sep 27 12:37:52 2009 > Log: Tests pass successfully now. > I think this is a bad hack, and probably doesn't make sense, > as this file is probably autogenerated (?) Ye

Re: [java2perl6] r99 committed - Now the comp_stmt(?) rule triggers correctly....

2009-09-29 Thread Tim Bunce
That's great. Many thanks Cosimo! Tim. On Tue, Sep 29, 2009 at 09:29:11PM +0200, Cosimo Streppone wrote: > Cosimo committed r99: > >> Revision: 99 >> Author: cosimo.streppone >> Date: Mon Sep 28 13:29:30 2009 >> Log: Now the comp_stmt(?) rule triggers correctly. >> Fixed the grammar properly to a

Re: [java2perl6] r100 committed - Implemented method to invoke the javap subprocess (invoke_javap)....

2009-10-05 Thread Tim Bunce
On Mon, Oct 05, 2009 at 05:19:23PM +0200, Cosimo Streppone wrote: > Tim wrote: > >> To detect errors from javap I'd add something like >> >> or die "$JAVAP_EXECUTABLE @{[ %$options ]} @$classes failed.\n"; >> > > Is this ok? > > http://code.google.com/p/java2perl6/source/detail?r=101 It needs

Re: Java::2Perl6API formerly Java::Javap

2010-08-15 Thread Tim Bunce
[CC'd to dbdi-...@perl.org] On Fri, Aug 13, 2010 at 08:41:35AM -0500, Phil Crow wrote: >Gmail confused my reading of this thread, so I didn't get to reply to this: > > I've a quick question for you (since I know practically zero Java)... > Given some large Java project, like a JDBC

Re: Java::2Perl6API formerly Java::Javap

2010-08-23 Thread Tim Bunce
On Sat, Aug 21, 2010 at 05:37:19AM -0500, Phil Crow wrote: >I've modified the grammar to accept verbose output from javap and >to capture constant values. I'm one change away from making those >work generally in generated output. Wonderful! >So, I need a commit bit. Sure, I'll ne

Re: Java::2Perl6API formerly Java::Javap

2010-08-29 Thread Tim Bunce
On Sat, Aug 28, 2010 at 06:40:10AM -0500, Phil Crow wrote: >I've finished numeric and string constant handling through to generation. > To activate the feature add >-verbose to your -javapopts. Without that you get the old ... behavior > regardless of constant type. Excellent! It's great

Re: Java::2Perl6API formerly Java::Javap

2010-09-01 Thread Tim Bunce
} Was that accidental? If you've time, I'd be delighted if you could update the TODO, to remove the section on constants, and start exploring anything else in there that takes your fancy. Thanks again Phil! Tim. > Phil > > On Sun, Aug 29, 2010 at 4:33 PM, Tim Bunce wrote

Re: Java::2Perl6API formerly Java::Javap

2010-09-05 Thread Tim Bunce
On Wed, Sep 01, 2010 at 05:32:52PM +0100, Tim Bunce wrote: > > So instead of method USELESS_CONSTANT (--> Int) is export { 4 } > it now does method USELESS_CONSTANT (--> Int) is export { return 4; } I've switched to the compact form and added escaping of embedded quotes