| Time |
S |
Nick |
Message |
| 02:16 |
|
|
Alias joined #padre |
| 02:19 |
|
|
estranho joined #padre |
| 03:36 |
|
Hyppolit |
svn: r14435 | adamk++ | http://padre.perlide.org/trac/changeset/14435 |
| 03:36 |
|
Hyppolit |
Adding FindFast dialog design |
| 03:36 |
|
Hyppolit |
trunk/Padre/fbp/ |
| 04:09 |
|
|
charsbr joined #padre |
| 04:10 |
|
|
|Sno| joined #padre |
| 04:14 |
|
|
Sno| left #padre |
| 04:15 |
|
|
Zapelius joined #padre |
| 04:23 |
|
szabgab |
I have uploaded the newest version of the padre-on-strawberry package, I'd appreciate people with windows checking it out |
| 04:23 |
|
szabgab |
http://code.google.com/p/padre[…]y-5.12.3.0-v3.exe |
| 04:23 |
|
szabgab |
it is already an installer and not only a zip package |
| 05:05 |
|
|
pece joined #padre |
| 05:21 |
|
|
toi joined #padre |
| 05:33 |
|
|
katofiad left #padre |
| 05:37 |
|
|
marcela joined #padre |
| 05:40 |
|
Alias |
weird, it's an exe and not an msi? |
| 05:40 |
|
Alias |
How did you manage to build it? |
| 05:44 |
|
|
Sewi joined #padre |
| 05:50 |
|
szabgab |
Alias: I use Inno Setup |
| 05:50 |
|
szabgab |
and created an iss file which is in the tools directory of our SVN repo |
| 05:51 |
|
szabgab |
it only builds .exe files not .msi |
| 05:58 |
|
Alias |
Using Perl::Dist::Padre? |
| 05:58 |
|
Alias |
Or you built it yourself? |
| 05:59 |
|
szabgab |
I installed Strawberry |
| 05:59 |
|
szabgab |
on that I cpan installed some modules (including Padre) |
| 05:59 |
|
szabgab |
and tool the c:\strawberry directory |
| 05:59 |
|
szabgab |
s/tool/took/ |
| 05:59 |
|
szabgab |
excluding the cpan/build directory |
| 06:00 |
|
szabgab |
I am sure it has some unwanted effects |
| 06:00 |
|
szabgab |
for example the modules I installed are in perl/site/ and not perl/vendor |
| 06:01 |
|
szabgab |
but I guess with some work I can change that for next time |
| 06:02 |
|
szabgab |
heck, it might be enough if I just move the files to the other directory |
| 06:03 |
|
|
pece left #padre |
| 06:05 |
|
Hyppolit |
wiki page http://padre.perlide.org/trac/[…]i/DownloadWindows changed by szabgab |
| 06:16 |
|
|
sniper left #padre |
| 06:18 |
|
|
katofiad joined #padre |
| 06:20 |
|
|
daxim joined #padre |
| 06:31 |
|
|
Sewi left #padre |
| 07:10 |
|
|
katofiad left #padre |
| 07:24 |
|
|
Sewi joined #padre |
| 07:34 |
|
|
azawawi joined #padre |
| 07:35 |
|
azawawi |
good morning everyone |
| 07:35 |
|
azawawi |
Alias: my $ping = Net::Ping->new; |
| 07:35 |
|
azawawi |
Alias: :) |
| 07:35 |
|
El_Che |
hey azawawi |
| 07:36 |
|
azawawi |
El_Che: hi there |
| 07:36 |
|
El_Che |
what did I read here? |
| 07:36 |
|
El_Che |
you want to make swt-perl bindings? |
| 07:36 |
|
|
mj41 joined #padre |
| 07:36 |
|
azawawi |
El_Che: seems so :) |
| 07:36 |
|
azawawi |
El_Che: been reading SWT code like crazy since yesterday |
| 07:38 |
|
szabgab |
El_Che: azawawi could you please check the new istaller for windows? |
| 07:38 |
|
azawawi |
szabgab: strawberry à la Crème works perfectly |
| 07:38 |
|
szabgab |
and good morning |
| 07:38 |
|
azawawi |
szabgab: :) |
| 07:38 |
|
El_Che |
so that means we need a jvm in the future? |
| 07:38 |
|
szabgab |
azawawi: I am glad to hear that |
| 07:38 |
|
azawawi |
szabgab: you applied the latest with the win32/macos locker fix, right? |
| 07:39 |
|
szabgab |
I used 0.84 with that specific "fix" |
| 07:39 |
|
azawawi |
$self->{update_locker} = ( $^O =~ /^mswin/i ) ? 1 : Wx::WindowUpdateLocker->new( $self->{owner} ); |
| 07:39 |
|
azawawi |
i see |
| 07:39 |
|
szabgab |
I did not want to do it on trunk and we can already see Alias commenting |
| 07:40 |
|
azawawi |
that's why i came to this channel, i wanted to discuss it with Alias |
| 07:40 |
|
Alias |
yo |
| 07:40 |
|
Alias |
I'm not particularly keen on disabling every single gui optimisation lock |
| 07:41 |
|
azawawi |
szabgab, Alias: i didnt want to make it a 2.8.12 specific bug, since that would involve adding Alien::wxWidgets dependency... |
| 07:41 |
|
azawawi |
Alien::wxWidgets->version requires a use Alien::wxWidgets to work |
| 07:41 |
|
Alias |
The version of Wx is available to padre itself |
| 07:41 |
|
Alias |
Look in the About dialog |
| 07:42 |
|
Alias |
It's like Padre::Wx->something? |
| 07:42 |
|
szabgab |
Alias: that's the version of Wx.pm |
| 07:42 |
|
szabgab |
and not that of Alien |
| 07:42 |
|
szabgab |
I just added the version of Alien btw |
| 07:42 |
|
Alias |
"wxWidgets 2.8.10" |
| 07:42 |
|
szabgab |
to the dialog box and I was expecting your anger about that :) |
| 07:43 |
|
szabgab |
as I had to explicitly load Alien::wxWidgets for that :) |
| 07:43 |
|
azawawi |
perl -MAlien::wxWidgets -e "print Alien::wxWidgets->version" => 2.008012 |
| 07:43 |
|
szabgab |
yeah, actually maybe the About dialog should also run an external perl command to get that data and avoid loading the module |
| 07:44 |
|
Alias |
holy shit, we load alien |
| 07:44 |
|
Alias |
really? |
| 07:45 |
|
azawawi |
i dont :) |
| 07:45 |
|
Alias |
There's got to be a better way than that |
| 07:45 |
|
Alias |
Well THAT explains why the about dialog is so slow |
| 07:46 |
|
Alias |
We probably should use Padre::Util::parse_variable instead |
| 07:46 |
|
szabgab |
Alias: it was slow before that, don't look at me! |
| 07:46 |
|
azawawi |
Alias: true, it was slow |
| 07:48 |
|
szabgab |
and I need help naming the beast I created |
| 07:51 |
|
azawawi |
Alias: any input on perl-swt bindings? |
| 07:52 |
|
azawawi |
Alias: SWT is the GUI toolkit that eclipse platform is built upon |
| 07:53 |
|
Alias |
I know little to nothing about it |
| 07:53 |
|
azawawi |
Alias: JFace is the MVC over SWT |
| 07:53 |
|
Alias |
szabgab: We should build Wx version capture into Padre::Wx |
| 07:54 |
|
Alias |
Look for the alien pm file, and then use the Padre::Util version scanner |
| 07:54 |
|
azawawi |
Alias: basically the final distribution from IBM is a JAR (ZIP file) containing 4 DLLs along with Java DLL bindings + Java code |
| 07:54 |
|
Alias |
And what's your question? :) |
| 07:55 |
|
azawawi |
:) |
| 07:56 |
|
szabgab |
let's rewrite Padre in Java :) |
| 07:56 |
|
szabgab |
and call in Syzygy :) |
| 07:56 |
|
azawawi |
im trying to come up with a better GUI solution for perl than wxWidgets |
| 07:56 |
|
szabgab |
which is just a generalization of Eclipse :) |
| 07:56 |
|
azawawi |
one that has more maintainability in mind |
| 07:57 |
|
Alias |
Have you tried the formbuilder stuff yet? |
| 07:57 |
|
Alias |
My plan is to get around the wxWidgets problems with better tooling |
| 07:57 |
|
Alias |
I don't see how switching to a different toolkit would fix it |
| 07:58 |
|
azawawi |
it is a pet project anyways |
| 07:59 |
|
azawawi |
if it works, perl will be able to benefit from the latest eclipse-like toolkit |
| 07:59 |
|
azawawi |
it is really a simple toolkit |
| 07:59 |
|
azawawi |
with a lot of low-level stuff |
| 07:59 |
|
szabgab |
I alaso have a pet project for when I think I really have time, I'll try to rewrite Padre using Moose in a branch |
| 08:00 |
|
El_Che |
azawawi: would you need the jvm in that case? |
| 08:00 |
|
szabgab |
the problem is that I am not sure how we might be able to evaluate the result of such changes |
| 08:00 |
|
azawawi |
the challenge ofcourse is to convert the Java code into perl code and then emulate the JNI via perl... |
| 08:00 |
|
El_Che |
azawawi: or it's more of a C binding? |
| 08:00 |
|
azawawi |
no |
| 08:00 |
|
azawawi |
SWT has two parts |
| 08:01 |
|
azawawi |
the C part simply wraps low-level OS calls |
| 08:01 |
|
azawawi |
and the java part is divided into another two parts: low-level OS emulation layer and then the actual code in Java to do the OS calls |
| 08:01 |
|
azawawi |
it is really a clever approach |
| 08:02 |
|
azawawi |
so most of the work will be in Java and the C can be compiled by a normal C compiler |
| 08:03 |
|
Hyppolit |
svn: r14436 | szabgab++ | http://padre.perlide.org/trac/changeset/14436 |
| 08:03 |
|
Hyppolit |
add links to recent blog entries by Gabor |
| 08:03 |
|
Hyppolit |
trunk/template.padre.perlide.org/data/ |
| 08:03 |
|
|
Alias left #padre |
| 08:03 |
|
El_Che |
so you need a jvm to run a perl + swt app |
| 08:04 |
|
azawawi |
nop |
| 08:05 |
|
azawawi |
that's what perl-swt is all about |
| 08:05 |
|
azawawi |
re-write Java code into perl code |
| 08:05 |
|
azawawi |
machine translation |
| 08:05 |
|
azawawi |
language translation to be exact via a script |
| 08:05 |
|
azawawi |
and bundle the DLLs that ship with the original SWT <your-favourite OS> distribution |
| 08:06 |
|
azawawi |
that way we do not compile nor require a C compiler |
| 08:07 |
|
azawawi |
Hello world from SWT (Java) http://www.java2s.com/Code/Jav[…]oWorldDisplay.htm will look like |
| 08:09 |
|
azawawi |
http://pastebin.com/xrGSdvZa (perl swt) |
| 08:10 |
|
azawawi |
it has mistakes but you get the picture of how simple is swt-perl |
| 08:11 |
|
szabgab |
azawawi: you are frightening me :) |
| 08:11 |
|
azawawi |
szabgab: why? :) |
| 08:12 |
|
azawawi |
http://pastebin.com/uxFLjYcY (fixed typos) |
| 08:14 |
|
azawawi |
SWT and wxWidgets share the same parent-child concept in constructors... |
| 08:14 |
|
azawawi |
both are native |
| 08:14 |
|
azawawi |
both are fast |
| 08:16 |
|
azawawi |
the cool thing is they built a lot of binaries http://download.eclipse.org/ec[…]200/index.php#SWT |
| 08:20 |
|
|
charsbr left #padre |
| 08:21 |
|
azawawi |
szabgab: why dont you install it to C:\Padre ? |
| 08:21 |
|
azawawi |
szabgab: if relocate works |
| 08:22 |
|
azawawi |
szabgab: and rename the package to simply Padre over Strawberry |
| 08:27 |
|
El_Che |
azawawi: was |
| 08:27 |
|
El_Che |
10:13 < Z-Blocker> goe dat ge den donderdag meegaat SpecialK |
| 08:27 |
|
El_Che |
10:13 < Z-Blocker> tis al lang geleden |
| 08:27 |
|
El_Che |
damn |
| 08:27 |
|
El_Che |
sorry |
| 08:27 |
|
El_Che |
azawawi: Display->new; should be "new Display" :) |
| 08:27 |
|
El_Che |
more java like |
| 08:27 |
|
El_Che |
:) |
| 08:27 |
|
azawawi |
:) |
| 08:28 |
|
El_Che |
display.readAndDispatch :) |
| 08:28 |
|
El_Che |
camelcase and all :) |
| 08:28 |
|
azawawi |
http://pastebin.com/uxFLjYcY |
| 08:29 |
|
azawawi |
import swt.* => use swt; |
| 08:30 |
|
azawawi |
what worries me is the threading model conversion from Java to perl |
| 08:30 |
|
azawawi |
and the JNI perl call layer |
| 08:30 |
|
El_Che |
azawawi: as threading in java is useful and in perl kind of sucks? |
| 08:31 |
|
azawawi |
El_Che: yeah i notice that a lot |
| 08:31 |
|
azawawi |
El_Che: same with python |
| 08:31 |
|
El_Che |
or ruby |
| 08:31 |
|
azawawi |
El_Che: a lot of engineering went into making threading usable in Java |
| 08:32 |
|
El_Che |
the libs are nice when you want something like a queue etc |
| 08:33 |
|
azawawi |
true |
| 08:33 |
|
azawawi |
nothing in the core language... all in the libs |
| 08:37 |
|
|
dolmen joined #padre |
| 08:45 |
|
azawawi |
El_Che: did you play with SWT before? |
| 08:45 |
|
El_Che |
not really |
| 08:45 |
|
El_Che |
to my shame, I preferred matisse for quick and dirty little ui's |
| 08:46 |
|
azawawi |
actually i tried it for a couple of remote data capturing desktop applications |
| 08:46 |
|
azawawi |
and it worked well |
| 08:46 |
|
azawawi |
no one noticed it was Java :) |
| 08:47 |
|
El_Che |
you notice with resizing problems the first time you run an app |
| 08:47 |
|
El_Che |
I have seen it with swt and swing |
| 08:47 |
|
azawawi |
all solvable... :) |
| 08:47 |
|
El_Che |
it saves the size of windows in a .app dir as a trick for later though |
| 08:47 |
|
azawawi |
on win32 at least |
| 08:48 |
|
El_Che |
yes, of course, but kind of telling that it doesn't get that kind of things right |
| 08:49 |
|
azawawi |
the cool thing is the Browser widget... mozilla on unix, safari on mac, IE on win32 |
| 08:49 |
|
El_Che |
kind of the anti-thesis of the swing approach |
| 08:49 |
|
azawawi |
yup |
| 08:49 |
|
azawawi |
but works :) |
| 08:50 |
|
azawawi |
even Gosling complained about it being too simple and difficult to port... |
| 08:50 |
|
azawawi |
AWT-like... |
| 08:52 |
|
szabgab |
azawawi: I think in my blog I wrote that I am really not sure this package should even include the name "padre" |
| 08:52 |
|
szabgab |
as it is more than just adding padre to the mix |
| 08:52 |
|
azawawi |
Padre over strawberry... |
| 08:52 |
|
szabgab |
and you can install it anywhere, it just now defaults to c:\strawberry |
| 08:52 |
|
szabgab |
yeah, that's how I started |
| 08:52 |
|
szabgab |
but now it already has DAncer and Moose and soon it will have a few other things |
| 08:53 |
|
El_Che |
would c:\Program Files\strawberry be the default in win32-land? |
| 08:53 |
|
szabgab |
El_Che: I avoided that as I think spaces don't work well there |
| 08:53 |
|
azawawi |
szabgab: ofcourse you need to document the added packages in a README.txt or something |
| 08:53 |
|
szabgab |
or perl does not work well with spaces |
| 08:53 |
|
szabgab |
azawawi: sure I do |
| 08:54 |
|
szabgab |
probably add a new README with the list of all the new things I added |
| 08:54 |
|
azawawi |
szabgab: true spaces-in-path+perl+win32 = bugs... |
| 08:54 |
|
El_Che |
a lot of people may be not too happy with a crowded root dir |
| 08:55 |
|
azawawi |
szabgab: normally on win32, you install into C:\Program Files |
| 08:55 |
|
azawawi |
szabgab: i.e. C:\Program Files\Vendor Name\Product Name |
| 08:55 |
|
szabgab |
so what do you say, I should first fix perl and only then start building this package? |
| 08:56 |
|
El_Che |
easy boy |
| 08:56 |
|
azawawi |
:) |
| 08:56 |
|
szabgab |
yeah but you guys jumped on me even though I just did the same thing as Alias did |
| 08:56 |
|
azawawi |
it is not perl.exe fault alone, i think it is the various other packages also |
| 08:56 |
|
El_Che |
szabgab: while at it, add some better threading support and a core OO framework |
| 08:56 |
|
El_Che |
:) |
| 08:56 |
|
szabgab |
sure, after lunch :) |
| 08:57 |
|
El_Che |
and make it run on my ipod :) |
| 08:57 |
|
azawawi |
and SWT over perl :) |
| 08:57 |
|
azawawi |
and wxScintilla :) |
| 09:02 |
|
azawawi |
szabgab: using Parse::RecDescent *again* to parse Java code in preparation for the big Java-to-perl translation... :) |
| 09:04 |
|
azawawi |
El_Che: the nice bit is that i can translate javadocs into PODs and get perl documentation :) |
| 09:04 |
|
El_Che |
hehe |
| 09:06 |
|
azawawi |
class DisposeEvent { } => package DisposeEvent; use Moose; extends 'Event'; # :) |
| 09:07 |
|
azawawi |
El_Che: kind of ugly... :) |
| 09:08 |
|
El_Che |
I have done some gtk2-perl, but the swing workflow felt more natural thant the gtk one |
| 09:09 |
|
azawawi |
swing = create a parent and then add a child |
| 09:09 |
|
El_Che |
now bleading blead on solaris, 5.14.0 is broken :( |
| 09:09 |
|
azawawi |
swt, wx => creating a child requires a parent |
| 09:09 |
|
El_Che |
azawawi: I mean more of the main loop kind of things |
| 09:09 |
|
El_Che |
and the big warning: "DONT USE THREADS" |
| 09:16 |
|
azawawi |
hmm |
| 09:17 |
|
szabgab |
azawawi: there is another parser module by the mad man I think that looks more like the Grammars in p6 |
| 09:18 |
|
azawawi |
Regexp::Grammars |
| 09:18 |
|
azawawi |
szabgab: im a compiler guy :) |
| 09:19 |
|
azawawi |
szabgab: i have a question regarding stackoverflow |
| 09:19 |
|
szabgab |
yeah, that's the one |
| 09:19 |
|
azawawi |
szabgab: how do you watch incoming perl questions? |
| 09:19 |
|
azawawi |
szabgab: any idea? |
| 09:20 |
|
szabgab |
http://stackoverflow.com/quest[…]wered&pagesize=30 |
| 09:20 |
|
szabgab |
maybe ? |
| 09:20 |
|
szabgab |
or http://stackoverflow.com/quest[…]ewest&pagesize=30 |
| 09:21 |
|
azawawi |
great thx |
| 09:24 |
|
azawawi |
szabgab++ # padre+strawberry+win32 :) |
| 09:28 |
|
azawawi |
any links of translating Java OO to Perl? |
| 09:28 |
|
azawawi |
s/of/for/ |
| 09:34 |
|
waxhead |
hey everyone |
| 09:34 |
|
waxhead |
just quickly.. are we stable enough to roll out a release? |
| 09:35 |
|
waxhead |
I have a failing test or so under RELEASE_TESTING=1 but I often find they can be dealt with later... |
| 09:36 |
|
szabgab |
waxhead: hi |
| 09:36 |
|
waxhead |
hey szabgab... I think it's time we got a new release out there... |
| 09:36 |
|
szabgab |
I did not have time in the recent days to try the parts that use threading |
| 09:36 |
|
szabgab |
but all kinds of things came up |
| 09:36 |
|
waxhead |
only I'm not sure where Padre stands stability wise... |
| 09:36 |
|
szabgab |
IMHO start rolling |
| 09:37 |
|
szabgab |
and maybe we should mark it as "unstable" |
| 09:37 |
|
szabgab |
or some such |
| 09:37 |
|
El_Che |
call it snapshot? |
| 09:37 |
|
szabgab |
the rolling might get some people here to wake up and start fixing things, if there really are |
| 09:37 |
|
szabgab |
snapshot sounds better :) |
| 09:38 |
|
El_Che |
and you are the mba guy... |
| 09:38 |
|
El_Che |
:) |
| 09:40 |
|
azawawi |
waxhead++ |
| 09:54 |
|
szabgab |
El_Che: I passed my marketing exam with the minumum of 60 |
| 09:54 |
|
El_Che |
hehe |
| 09:55 |
|
szabgab |
lucky that TPF now has a real head of marketing |
| 09:55 |
|
szabgab |
or whatever the title is |
| 09:59 |
|
azawawi |
szabgab: aha started it ... http://code.google.com/p/perl-swt/ :) |
| 09:59 |
|
El_Che |
azawawi: will you be moosinfying swt as well? :) |
| 10:00 |
|
azawawi |
El_Che: definitely... |
| 10:32 |
|
|
diogo_ joined #padre |
| 10:34 |
|
|
estranho left #padre |
| 10:49 |
|
azawawi |
El_Che: ping |
| 10:55 |
|
|
bowtie joined #padre |
| 11:04 |
|
El_Che |
back |
| 11:04 |
|
El_Che |
was out lunching |
| 11:05 |
|
azawawi |
i wonder where can i find a Java-to-Moose quick guide |
| 11:06 |
|
azawawi |
interface => role, static => ?, ...etc |
| 11:07 |
|
El_Che |
I don't think it's very useful |
| 11:07 |
|
El_Che |
as the concept are pretty different |
| 11:07 |
|
El_Che |
a role is something of an interface + abstract class imho |
| 11:08 |
|
El_Che |
static is just a method that doesn't use $self |
| 11:08 |
|
El_Che |
and so on |
| 11:08 |
|
El_Che |
the thing is that because perl relies on best practices instead of compiler imposed restrictions it's a little vage |
| 11:08 |
|
El_Che |
vague |
| 11:09 |
|
azawawi |
El_Che: http://code.google.com/p/perl-swt/wiki/TODO |
| 11:09 |
|
azawawi |
El_Che: true |
| 11:09 |
|
El_Che |
also moose's attributes are a lot more powerful than java's counterpart |
| 11:10 |
|
El_Che |
on the other hand java also relies on non-language best-practices for IDE's, like @override |
| 11:10 |
|
azawawi |
rw, ro... => <nothing> or final |
| 11:11 |
|
El_Che |
auto setters and getters |
| 11:12 |
|
azawawi |
interesting |
| 11:12 |
|
azawawi |
any link? |
| 11:12 |
|
azawawi |
http://code.google.com/p/perl-[…]HelloWorldPerlSWT :) |
| 11:13 |
|
|
katofiad joined #padre |
| 11:14 |
|
El_Che |
I mean, perl-moose has auto-setters and getters and Java doesn't |
| 11:14 |
|
azawawi |
aka properties |
| 11:15 |
|
El_Che |
not really |
| 11:15 |
|
El_Che |
more like methods |
| 11:15 |
|
El_Che |
setVariable, isVariable, getVariable and the like |
| 11:16 |
|
azawawi |
i see |
| 11:17 |
|
|
zamolxes joined #padre |
| 11:17 |
|
azawawi |
El_Che: has 'weight' => ( is => 'rw', reader => 'get_weight', writer => 'set_weight', ); # ? |
| 11:19 |
|
El_Che |
no, rather: has 'weight' => ( is => 'rw') |
| 11:19 |
|
El_Che |
and you get weight() as reader |
| 11:19 |
|
El_Che |
and weight($x) as writer for free |
| 11:19 |
|
El_Che |
while in java you have to write de get and set methods |
| 11:21 |
|
azawawi |
also public vs private enforcement... you cant... |
| 11:21 |
|
azawawi |
nor protected |
| 11:21 |
|
szabgab |
azawawi: atually I wanted to create some kind of documentation of "Moose for xyz developers" |
| 11:21 |
|
szabgab |
where xyz would be Java/Python/Ruby/PHP/C# |
| 11:21 |
|
El_Che |
azawawi: you can take the _ approach for granted |
| 11:22 |
|
szabgab |
or is there such a thing somewhere? |
| 11:23 |
|
azawawi |
szabgab: not to my knowledge but i would be happy to contribute ofcourse |
| 11:23 |
|
szabgab |
which OOs do you know? |
| 11:24 |
|
El_Che |
szabgab: some perl OO docs would be nice |
| 11:24 |
|
El_Che |
there are different kind of plumbings out there |
| 11:24 |
|
El_Che |
I still have some code with PBP inside-out objects |
| 11:24 |
|
El_Che |
unreadable as it was back then |
| 11:24 |
|
El_Che |
(the new method I mean) |
| 11:25 |
|
szabgab |
oh, I never met anyone who actually used inside out |
| 11:25 |
|
szabgab |
and even admitted it :) |
| 11:25 |
|
szabgab |
I am happy now |
| 11:26 |
|
szabgab |
nice to meet you :) |
| 11:26 |
|
azawawi |
2. nice to meet you :) |
| 11:27 |
|
El_Che |
and not the simple inside-out, but the hardcore that really protects your object |
| 11:27 |
|
El_Che |
like said, unreadable |
| 11:29 |
|
|
dodathome joined #padre |
| 11:29 |
|
azawawi |
static => http://search.cpan.org/~drolsk[…]ssAttribute-0.24/ |
| 11:31 |
|
El_Che |
I try not to use much moosex |
| 11:31 |
|
El_Che |
dependencies of moose are heavy enough |
| 11:33 |
|
azawawi |
i.e. a package variable... |
| 11:34 |
|
azawawi |
class A { static int foo; } => package A; our $foo; |
| 11:34 |
|
szabgab |
what does it give more than having my $x in the class ? |
| 11:35 |
|
azawawi |
one instance |
| 11:35 |
|
azawawi |
per all instances |
| 11:35 |
|
azawawi |
same as class attributes |
| 11:35 |
|
szabgab |
package A; my $x = 23; gives that |
| 11:35 |
|
azawawi |
yup |
| 11:35 |
|
szabgab |
and methods declared in the class can access it |
| 11:36 |
|
szabgab |
if you use 'our' it will be visible from the outside world as well |
| 11:37 |
|
azawawi |
my => private, our => public or friend |
| 11:37 |
|
azawawi |
friend = accessible by the classes in the same package |
| 11:37 |
|
azawawi |
implied, no real keyword there... |
| 11:38 |
|
El_Che |
azawawi: perl has no 'family' namespaces |
| 11:38 |
|
El_Che |
so protected is out |
| 11:38 |
|
|
dodathome left #padre |
| 11:39 |
|
azawawi |
i see |
| 11:39 |
|
azawawi |
El_Che: http://perlgeek.de/blog-en/per[…]ake-no-sense.html |
| 11:40 |
|
El_Che |
I read that when it was out |
| 11:40 |
|
El_Che |
I am not a java ninja, but I haven't use protected much (ever?) |
| 11:41 |
|
azawawi |
i have used a couple of times... but really it is a bit of over-engineering... |
| 11:41 |
|
* azawawi |
checks out SWT codebase |
| 11:42 |
|
szabgab |
is there a way to limit the aclling of a method to be only from the class? |
| 11:42 |
|
szabgab |
I think that would be protected method, right? |
| 11:43 |
|
szabgab |
in general in perl you cannot really but what if you checked caller(1) ? |
| 11:47 |
|
azawawi |
szabgab: that's actually a compilation check not a runtime |
| 11:48 |
|
El_Che |
szabgab: _ is pretty clear, no |
| 11:48 |
|
azawawi |
szabgab: again different paradigms, Java/Ada enforce a lot of stuff at compile-time |
| 11:49 |
|
azawawi |
szabgab: if we were to do it in perl, then why use perl? :) |
| 11:49 |
|
azawawi |
szabgab: i remember a post about it from chromatic |
| 11:49 |
|
azawawi |
szabgab: parameter validation or something |
| 11:50 |
|
szabgab |
I don't know, Moose can enfore the type of the attributes |
| 11:50 |
|
szabgab |
isn't that the same logic there? |
| 11:50 |
|
azawawi |
at runtime |
| 11:50 |
|
azawawi |
not compile-time |
| 11:50 |
|
szabgab |
yes |
| 11:51 |
|
szabgab |
that's what I meant that I wonder if it could be enforced at run time to check if the method was called internally? |
| 11:51 |
|
azawawi |
so if i translate a Java file that compiles to Perl, im guaranteed that no file will actually access that protected attribute :) |
| 11:51 |
|
azawawi |
at least in the SWT codebase :) |
| 11:52 |
|
szabgab |
El_Che: _ is good for me but I also could live without checking the types of my attributes :) |
| 11:52 |
|
azawawi |
before ? |
| 11:52 |
|
El_Che |
szabgab: type? use moose |
| 11:52 |
|
El_Che |
compile time check if I recall correctly |
| 11:52 |
|
szabgab |
El_Che: now you ar confusing me. I am sayign that Moose enforces types |
| 11:52 |
|
szabgab |
at run time |
| 11:52 |
|
szabgab |
of course |
| 11:53 |
|
El_Che |
(not that there is much difference between compile and run time in dynamioc languages :) ) |
| 11:53 |
|
szabgab |
but can it enforce private methods? |
| 11:53 |
|
El_Che |
szabgab: no, compile time: a few msecs before run time :) |
| 11:53 |
|
szabgab |
"it happens when it happens" |
| 11:53 |
|
El_Che |
szabgab: yes, it can |
| 11:53 |
|
El_Che |
I use it often |
| 11:53 |
|
El_Che |
let me search some code |
| 11:53 |
|
azawawi |
http://search.cpan.org/~flora/[…]thodModifiers.pod ? |
| 11:55 |
|
shadowpaste |
"El_Che" at 217.168.150.38 pasted "private attribute" (8 lines) at http://paste.scsys.co.uk/108687 |
| 11:55 |
|
El_Che |
ro, init_arg undef makes it not writable outside, the private writer allows me to writo to it from the inside |
| 11:56 |
|
szabgab |
El_Che: that's a private attribute as long as the called does not use $o->_error(42) right? |
| 11:57 |
|
El_Che |
no, it stays private |
| 11:57 |
|
El_Che |
wait |
| 11:57 |
|
szabgab |
hmm, I'll check |
| 11:57 |
|
El_Che |
le t me check as well as I am not sure |
| 11:57 |
|
|
sniper joined #padre |
| 11:57 |
|
El_Che |
szabgab: it's readonly |
| 11:58 |
|
El_Che |
so your call with done a compilation error |
| 11:58 |
|
szabgab |
sounds good, let me write up my own example |
| 11:58 |
|
El_Che |
It took me a while to figure that out (I was "forced" to make attributes rw) |
| 11:59 |
|
El_Che |
I didn't find it in the docs |
| 12:01 |
|
szabgab |
hmm, it does not work for me as I expect it |
| 12:02 |
|
El_Che |
can you set the attribute?? |
| 12:02 |
|
szabgab |
I have is => 'ro', writer => '_set' and I can call $o = C->new; $i->_set(42) |
| 12:03 |
|
El_Che |
did you do the init_arg => undef, |
| 12:05 |
|
|
submersible_toaster left #padre |
| 12:05 |
|
|
submersible_toaster joined #padre |
| 12:10 |
|
|
diogo_ left #padre |
| 12:11 |
|
szabgab |
nope |
| 12:16 |
|
shadowpaste |
Someone at 217.168.150.38 pasted "moose1" (15 lines) at http://paste.scsys.co.uk/108689 |
| 12:16 |
|
szabgab |
El_Che: see that paste |
| 12:16 |
|
szabgab |
that prints 'Foo' |
| 12:17 |
|
szabgab |
am I writing something wrong or misunderstand something? |
| 12:18 |
|
El_Che |
trying it out |
| 12:18 |
|
El_Che |
but I upgraded to 5.14 and need to get moose again |
| 12:18 |
|
El_Che |
(perlbrew) |
| 12:19 |
|
El_Che |
retrieving it |
| 12:19 |
|
azawawi |
El_Che: http://search.cpan.org/~azawaw[…]T-0.01/lib/SWT.pm # incoming... :) |
| 12:19 |
|
El_Che |
yeah |
| 12:20 |
|
El_Che |
hehe, I see you perlified the methods :) |
| 12:20 |
|
azawawi |
ofcourse |
| 12:21 |
|
El_Che |
szabgab: damns, it Foos here as well |
| 12:26 |
|
El_Che |
szabgab: liuckely it will take the correct type |
| 12:27 |
|
El_Che |
https://github.com/perigrin/Mo[…]rivate-Attributes |
| 12:28 |
|
|
sugar joined #padre |
| 12:59 |
|
|
estranho joined #padre |
| 13:01 |
|
daxim |
azawawi, why did you release something empty? |
| 13:07 |
|
|
katofiad left #padre |
| 13:16 |
|
|
katofiad joined #padre |
| 13:19 |
|
azawawi |
daxim: hi there, sorry i was away a bit |
| 13:19 |
|
azawawi |
daxim: im working to fix it :) |
| 13:20 |
|
azawawi |
daxim: http://code.google.com/p/perl-swt/wiki/TODO |
| 13:22 |
|
daxim |
fine, but why did you release something empty? |
| 13:22 |
|
azawawi |
daxim: to take SWT namespace |
| 13:23 |
|
daxim |
oh man. :| |
| 13:23 |
|
azawawi |
daxim: i added the *experimental* warning in the docs |
| 13:36 |
|
|
wallasey joined #padre |
| 13:36 |
|
wallasey |
get alien version = Wx::wxVERSION_STRING() |
| 13:37 |
|
wallasey |
or if willing to parse Wx::wxVERSION() |
| 13:37 |
|
azawawi |
wallasey: nice |
| 13:53 |
|
Hyppolit |
svn: r14437 | azawawi++ | http://padre.perlide.org/trac/changeset/14437 |
| 13:53 |
|
Hyppolit |
The wxWidgets 2.8.12 "the window will not carry updates when it is frozen" workaround applies only on wxWidgets 2.8.12 non-UNIX platforms (wallasey++) |
| 13:53 |
|
Hyppolit |
trunk/Padre/lib/Padre/ |
| 14:03 |
|
|
user_972 joined #padre |
| 14:04 |
|
|
user_972 left #padre |
| 14:10 |
|
Hyppolit |
svn: r14438 | szabgab++ | http://padre.perlide.org/trac/changeset/14438 |
| 14:10 |
|
Hyppolit |
restrict the installation path to eliminate spaces |
| 14:10 |
|
Hyppolit |
trunk/tools/ |
| 14:17 |
|
|
marcela left #padre |
| 14:21 |
|
|
toi left #padre |
| 14:32 |
|
|
wallasey left #padre |
| 14:54 |
|
azawawi |
El_Che: ping |
| 14:55 |
|
azawawi |
El_Che: take a look at the java imports in the swt codebase... not bad... not a lot of java core classes |
| 14:55 |
|
azawawi |
El_Che: http://code.google.com/p/perl-swt/wiki/SWTImports |
| 14:56 |
|
azawawi |
El_Che: i generated a list of SWT Perl package names from the SWT java code base http://code.google.com/p/perl-[…]i/SWTPerlPackages |
| 14:56 |
|
El_Che |
having a look |
| 14:56 |
|
azawawi |
El_Che: cool |
| 14:57 |
|
El_Che |
things like reflect will be tricky |
| 14:58 |
|
azawawi |
El_Che: but only in one file, can be emulated |
| 14:58 |
|
azawawi |
El_Che: btw, i got the idea to do the perl swt binding from DWT (working) and pyswt (dead) |
| 14:58 |
|
azawawi |
El_Che: DWT => SWT on the D language |
| 15:00 |
|
azawawi |
my plan is to generate documentation first from javadocs and skeleton Perl code with the skeleton methods |
| 15:00 |
|
El_Che |
D what java should have been :) |
| 15:00 |
|
El_Che |
azawawi: have a look at gtk2-perl |
| 15:00 |
|
El_Che |
they also do a lot of autogeneration |
| 15:01 |
|
azawawi |
preserving @since and @see along with @param |
| 15:01 |
|
azawawi |
that way we get quality documentation in POD |
| 15:02 |
|
|
asarch joined #padre |
| 15:06 |
|
azawawi |
will hack it when im home |
| 15:06 |
|
* azawawi |
going home & |
| 15:06 |
|
|
azawawi left #padre |
| 15:11 |
|
|
katofiad left #padre |
| 15:20 |
|
|
katofiad joined #padre |
| 15:57 |
|
|
pece joined #padre |
| 15:58 |
|
|
Sewi left #padre |
| 16:01 |
|
|
kaare joined #padre |
| 16:04 |
|
|
toi joined #padre |
| 16:16 |
|
|
daxim left #padre |
| 16:43 |
|
|
mj41 left #padre |
| 16:49 |
|
|
Sewi joined #padre |
| 17:48 |
|
|
Sewi left #padre |
| 17:54 |
|
|
dolmen left #padre |
| 17:55 |
|
|
mj41 joined #padre |
| 18:30 |
|
|
kaare left #padre |
| 18:48 |
|
|
azawawi joined #padre |
| 18:51 |
|
|
Sewi joined #padre |
| 18:58 |
|
|
sugar left #padre |
| 19:01 |
|
|
sugar joined #padre |
| 19:07 |
|
Hyppolit |
wiki page http://padre.perlide.org/trac/wiki/WikiStart changed by bowtie |
| 19:09 |
|
Hyppolit |
wiki page http://padre.perlide.org/trac/[…]PadrePluginDialog changed by bowtie |
| 19:10 |
|
Hyppolit |
wiki page http://padre.perlide.org/trac/[…]ePluginCookbook01 changed by bowtie |
| 19:14 |
|
|
asarch left #padre |
| 19:16 |
|
Hyppolit |
wiki page http://padre.perlide.org/trac/[…]ePluginCookbook01 changed by bowtie |
| 19:21 |
|
|
Di-ima left #padre |
| 19:24 |
|
|
mj41 left #padre |
| 19:25 |
|
Hyppolit |
wiki page http://padre.perlide.org/trac/[…]ePluginCookbook01 changed by bowtie |
| 19:36 |
|
|
teejay joined #padre |
| 20:10 |
|
|
Sewi left #padre |
| 20:17 |
|
|
Steffen joined #padre |
| 20:22 |
|
|
perlite_ joined #padre |
| 20:25 |
|
|
perlite left #padre |
| 20:26 |
|
|
perlite_ is now known as perlite |
| 20:26 |
|
Hyppolit |
svn: r14439 | szabgab++ | http://padre.perlide.org/trac/changeset/14439 |
| 20:26 |
|
Hyppolit |
add the Padre-on-Strawberry to the download page |
| 20:26 |
|
Hyppolit |
trunk/template.padre.perlide.org/tt/pages/ |
| 20:29 |
|
Hyppolit |
svn: r14440 | szabgab++ | http://padre.perlide.org/trac/changeset/14440 |
| 20:29 |
|
Hyppolit |
add date |
| 20:29 |
|
Hyppolit |
trunk/template.padre.perlide.org/tt/pages/ |
| 20:32 |
|
|
azawawi left #padre |
| 20:32 |
|
|
sugar left #padre |
| 20:33 |
|
Hyppolit |
svn: r14441 | szabgab++ | http://padre.perlide.org/trac/changeset/14441 |
| 20:33 |
|
Hyppolit |
more dates and separators |
| 20:33 |
|
Hyppolit |
trunk/template.padre.perlide.org/tt/pages/ |
| 20:36 |
|
|
toi left #padre |
| 20:38 |
|
Hyppolit |
svn: r14442 | szabgab++ | http://padre.perlide.org/trac/changeset/14442 |
| 20:38 |
|
Hyppolit |
move CPAN to the right side |
| 20:38 |
|
Hyppolit |
trunk/template.padre.perlide.org/tt/pages/ |
| 20:50 |
|
Hyppolit |
wiki page http://padre.perlide.org/trac/[…]ePluginCookbook01 changed by bowtie |
| 21:02 |
|
Hyppolit |
wiki page http://padre.perlide.org/trac/[…]ePluginCookbook01 changed by bowtie |
| 21:44 |
|
|
pece left #padre |
| 22:00 |
|
|
El_Che left #padre |
| 22:04 |
|
|
El_Che joined #padre |
| 22:04 |
|
|
El_Che left #padre |
| 22:04 |
|
|
El_Che joined #padre |
| 22:10 |
|
|
El_Che left #padre |
| 22:10 |
|
|
El_Che joined #padre |
| 22:13 |
|
|
katofiad left #padre |
| 22:37 |
|
|
Steffen left #padre |
| 22:42 |
|
|
katofiad joined #padre |
| 23:14 |
|
|
katofiad left #padre |
| 23:45 |
|
|
katofiad joined #padre |
| 23:48 |
|
|
bowtie left #padre |