Camelia, the Perl 6 bug

IRC log for #dbdi, 2010-07-21

| Channels | #dbdi index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:16 minusnine joined #dbdi
01:57 snarkyboojum joined #dbdi
02:17 snarkyboojum joined #dbdi
02:29 timbunce joined #dbdi
02:56 GitHub126 joined #dbdi
02:56 GitHub126 java2perl6: master Tim Bunce * 0777460 (4 files in 3 dirs): remove remaining references to old Std generator
02:56 GitHub126 java2perl6: master Tim Bunce * ec5d480 (2 files in 1 dirs): prep for release
02:56 GitHub126 java2perl6: master Tim Bunce * 6f8b40e (2 files in 1 dirs): resync tests after Std fix
02:56 GitHub126 java2perl6: master commits d5c56fd...6f8b40e - http://bit.ly/aDzZy1
02:56 GitHub126 left #dbdi
03:50 snarkyboojum joined #dbdi
05:16 timbunce joined #dbdi
05:40 mberends timbunce: yes, this netbook running Ubuntu has postgresql and mysql
05:42 timbunce Could you try running dbdi.pl6 in the latest java2perl6 - http://github.com/timbunce/ja​va2perl6/blob/master/dbdi.pl6
05:42 timbunce It runs for me - though it takes ~60 seconds of cpu time to compile!
05:44 timbunce It would be interesting and helpful if someone(TM) would work on a MiniDBI driver for DBDI.
05:46 mberends ok, I'll try test immediately
05:48 timbunce Feedback re slides: slide2 line1 is better expressed as: "DBI v2 will be built over a JDBC-like API"
05:48 mberends ah, thanks. easy fix.
05:53 mberends I think there may be case sensitivity problems in the code. lib/ has a Java directory, and it cannot find java::sql::DriverManager
05:54 mberends mac OS is annoying that way
05:58 timbunce ah, you'll need to run "perl jdbclib-update.pl" first to generate the modules
05:59 mberends ok, will do now
05:59 timbunce and set PERL6LIB to include the jdbclib dir (I source the dbdi-init.sh script to do that)
06:00 mberends argh, that script runs perl6 (lastest version) I had another name for the old Zavolaj compatible perl6
06:01 mberends I guess a shell alias would override all that
06:02 mberends but that may be ok for now, it seems to be generating the modules
06:03 mberends it's complaining about not finding java::io::Serialiazable though
06:03 timbunce yeah, I've just hit that myself - I hadn't regenerated the libs for a while. Give me a few mins.
06:04 mberends the @*INC does show jdbclib in the module path, so that's fine from the script
06:06 mberends lots of checking steps now, all successful. From Array.pm6 to ResultSet.pm6 so far :)
06:07 mberends java::lang::Iterable also appears to be missing
06:09 mberends module Bag missing
06:09 mberends lots is ok, I imagine the initial test script will not need very much anyway
06:11 timbunce A uses B which uses C which ... and pretty soon you've half the java classes loaded :)
06:11 mberends some of that is inevitable, yeah
06:13 timbunce I removed a lot of the default type casting from java2perl6 because it was really jdbc specific and not appropriate for the general tool. That combined with the recent change to 'use' modules referenced as 'does' is what's triggered these errors.
06:13 mberends ended. 50 ok, 24 failed. phew, it's quite a mountain of classes!
06:13 timbunce the failing ones are java builtins. I'm adding them to the default type casting now. be done soon
06:16 mberends ok, looking through the failed ones, there is no mention of DriverManager although there is InetAddress which may affect connecting
06:16 timbunce no, it's not used.
06:17 timbunce see DBDI.pm6 and DBDI_pg.pm6
06:18 mberends yes. I'm preparing to try the test script again with fixed lib and perl6
06:19 GitHub124 joined #dbdi
06:19 GitHub124 java2perl6: master Tim Bunce * 5cf2263 (1 files in 1 dirs): add typecasts for java builtins - http://bit.ly/bRN6P3
06:19 GitHub124 left #dbdi
06:19 timbunce git pull and regenerate
06:19 mberends doing that
06:21 mberends with a `time` command in front of the update script. I like to get a feel for how long things take.
06:22 mberends clean so far, beyond InetAddress now :)
06:22 mberends looks like ya fixed it, sir!
06:23 timbunce the update is a rare operation. it's especially slow because loading a class high in the dependency tree loads all the ones below it. so low-level classes actually get 'checked' many many times
06:23 mberends right. if they are .pm6 files, they will load much faster as .pir files
06:24 timbunce perl6 dbdi.pl6 is v.slow to compile because it's (currently) sucking in (probably) most of the classes. I'll add a typemap that'll map many to perl6 builtins.
06:24 mberends CallableStatement now, taking ages
06:25 timbunce is there any easy way to get perl6 to auto-cache .pir's and do timestamp checking?
06:26 mberends not yet. I think that would be a great wishlist item to put on the table in Pisa. I'm also one who would like to take a stab at implementing it.
06:26 timbunce consider it wish-listed!
06:26 mberends :)
06:34 GitHub7 joined #dbdi
06:34 GitHub7 java2perl6: master Tim Bunce * 1841b49 (1 files in 1 dirs): add jdbclib-typemap and use to stub out types we dont care about for now - http://bit.ly/cVX8ad
06:34 GitHub7 left #dbdi
06:34 timbunce have you tried 'perl6 dbdi.pl6' yet?
06:35 mberends the update just finished, about to try..
06:35 * timbunce sits on edge of seat :)
06:35 mberends (long silence)
06:36 * timbunce drum-roll
06:36 mberends (crickets)
06:37 * timbunce whistles
06:37 mberends O NOES, cannot find NativeCall! the Zavolaj is not installed!
06:37 * mberends goes to fix
06:38 timbunce :)
06:41 mberends drat, the old Rakudo  I built is failing on NativeCall. I hadn't checked that. Will probably have to revert further back in Rakudo history, and that has big delays with re-building. sorry for now, it will take a while.
06:41 timbunce no problem.
06:42 timbunce I'm happy - it works for me :)
06:42 mberends I think it will work here soon as well :)
06:43 timbunce any thoughts on DBDI.pm6 and DBDI_pg.pm6, and writing a DBDI driver for MiniDBI?
06:44 mberends I'm willing to try to write it.
06:45 timbunce great. That'll force me to fill-out the implementation to meet your needs
06:45 mberends yeah, running code always helps check the design work
06:54 * mberends must shower and GOTO $work while Rakudo re-builds, will keep on testing.
06:54 timbunce thanks
08:06 mberends joined #dbdi
08:26 GitHub97 joined #dbdi
08:26 GitHub97 java2perl6: master Tim Bunce * 5379dad (1 files in 1 dirs): refactor get_included_types
08:26 GitHub97 java2perl6: master Tim Bunce * 6f6dfb9 (1 files in 1 dirs): refactor TypeCast and add defined_cast method
08:26 GitHub97 java2perl6: master Tim Bunce * 82ac7f7 (1 files in 1 dirs): refactor Javap and use defined_cast method
08:26 GitHub97 java2perl6: master Tim Bunce * a77e91f (3 files in 1 dirs): List loaded modules in dbdi.pl6. Shrink jdbclib-classes.txt. Expand jdbclib-typemap
08:26 GitHub97 java2perl6: master commits 1841b49...a77e91f - http://bit.ly/apM6Ry
08:26 GitHub97 left #dbdi
09:06 snarkyboojum joined #dbdi
09:11 dalek joined #dbdi
09:37 dalek joined #dbdi
10:31 dalek joined #dbdi
11:49 dalek joined #dbdi
12:14 dalek joined #dbdi
13:26 dalek joined #dbdi
13:37 dalek joined #dbdi
14:08 dalek joined #dbdi
14:12 PerlJam joined #dbdi
14:50 dalek joined #dbdi
16:20 timbunce joined #dbdi
18:26 timbunce joined #dbdi
19:47 mberends joined #dbdi
21:20 snarkyboojum joined #dbdi
23:35 timbunce joined #dbdi

| Channels | #dbdi index | Today | | Search | Google Search | Plain-Text | summary