Camelia, the Perl 6 bug

IRC log for #dbdi, 2010-06-30

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

All times shown according to UTC.

Time Nick Message
01:10 dalek left #dbdi
01:10 dalek joined #dbdi
08:37 timbunce joined #dbdi
18:23 mberends joined #dbdi
18:34 timbunce Anyone here got a working knowledge of java?
18:34 moritz_ timbunce: aking on #perl6 has more chances of success
18:35 timbunce sure but I thought I'd start here as it's related to the java2perl6 work.
18:58 mberends I know a little java. what sort of question do you have?
19:00 [Coke] joined #dbdi
19:00 [Coke] ~~
19:00 PerlJam mberends: hey!  See the recent discussion on #perl6 about the FakeDBI name  :)
19:00 [Coke] so is the plan to translate java source to perl6 source? (as opposed to some old plans which were to translate java bytecode to parrot bytecode, or make parrot able to run java, or...)
19:02 mberends PerlJam: just drifted in now. I don't have strong opinions on the name :)
19:04 PerlJam mberends: would you be willing to change it to SimpleDBI?
19:04 timbunce [Coke}: translate java *interfaces* not actual source code. Could you take a look at http://github.com/timbunce/java2perl6 Especially (for now) the type mappings in http://github.com/timbunce/java2perl6/​blob/master/lib/Java/Javap/TypeCast.pm
19:04 mberends PerlJam: sure
19:04 PerlJam mberends++ cool
19:05 PerlJam Having "fake" things in R* seems wrong for some reason  ;)
19:05 mberends that makes sense now. It wasn't an issue when the project began ;)
19:06 PerlJam indeed
19:06 mberends is there a good consensus on SimpleDBI? I haven't had time to backlog everything.
19:08 PerlJam mberends: pmichaud suggested it, timbunce said "anything like that would be fine", and I like it.  That's about the only discussion we had.
19:09 timbunce ProtoDBI?
19:09 * timbunce loves a good bikeshed
19:09 PerlJam I'd be fine with ProtoDBI too :)
19:09 * timbunce wonders if confusing with proto installer
19:09 mberends ok, I read those comments. Proto makes me a bit nauseous ;)
19:09 timbunce MiniDBI?
19:09 mberends nice
19:10 timbunce MicroDBI?
19:10 timbunce NanoDBI? :)
19:10 PerlJam I'm fine with whatever color timbunce chooses as long as it's not "FakeDBI"  :)
19:11 PerlJam timbunce: how's that for bikeshedding?  You're going to end up with exactly the color you want, whether you like it or not!  :)
19:11 PerlJam (well, unless mberends wants to play)
19:13 timbunce I think I like MiniDBI best at the moment.
19:13 mberends SimpleDBI and MiniDBI seem the most apt.
19:14 PerlJam timbunce: do the things on the RHS have to be actual classes or could they be roles?  (Java::Javap::TypeCast)
19:14 timbunce [Coke] : when (if) you clone java2perl, run "perl mkjdbc.pl"
19:14 timbunce PerlJam: that's been on my mind too. I think using roles would be better. Can you see any problem with that?
19:15 [Coke] timbunce: is your converter written in p5?
19:15 timbunce yes
19:16 PerlJam timbunce: I don't see any problem right off, but I haven't looked at the generated code too hard either
19:16 timbunce (most was written by Phil Crow for a GSoC project a couple of years ago)
19:17 mberends thinking it over, I also like MiniDBI the most. I'll rename the repo shortly and then begin work on the content.
19:17 PerlJam mberends++ excellent
19:21 PerlJam I wonder if all of the generated perl 6 files should have  "use v6;" at the top and/or  be named Foo.pm6 instead of Foo.pm
19:23 timbunce PerlJam: I'll do that now.
19:23 mberends Foo.pm6 clarifies everything even before you open the file, and make the "use v6;" completely unnecessary
19:23 PerlJam mberends: I'm a fan of redundancy sometimes.
19:23 PerlJam (this would be one of those times :)
19:24 * timbunce is kind'a sad about .pm6 (especially as Larry made that change in part because NYTProf was getting confused by .pmc files generated by STD)
19:25 mberends PerlJam: I agree about redundancy. We don't know in advance what technical hurdles lie ahead.
19:26 PerlJam at least it wasn't  .pms  :)
19:27 mberends do uppercase letters in repository names cause problems? There are not many examples, but MiniDBI looks more readable than minidbi and would match the class names.
19:27 PerlJam mberends: not that I'm aware of
19:27 PerlJam (that would be an odd thing in this day and age)
19:28 * PerlJam work &
19:28 mberends it all works, we're just not in the habit of naming stuff with uppercase yet
19:34 mberends ok, renamed to http://github.com/mberends/MiniDBI but editing the content might take a few hours
19:43 timbunce [Coke]: currently java interfaces generate perl6 roles, and java classes generate perl6 classes. What are the pros/cons of generating roles for java classes?
19:44 [Coke] timbunce: I don't have an answer for that off the top of my head.
19:45 mberends the Perl 6 guideline is that roles are for functionality, and classes are for instance definition, if that helps.
19:46 timbunce I guess it'll become clear once we start using the output. For now I'll switch to just roles as I think that's the most flexible and I can't see any downsides.
19:47 mberends right. when you create create an instance of a role, Perl 6 also silently creates a class that "does" the role.
22:05 timbunce joined #dbdi

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