Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: (more questions) Re: HWXperl - The place for GUI apps in Perl

by gmpassos (Priest)
on Sep 22, 2002 at 13:45 UTC ( #199890=note: print w/replies, xml ) Need Help??

in reply to (more questions) Re: HWXperl - The place for GUI apps in Perl
in thread HWXperl - The place for GUI apps in Perl

> Where can I find discussions on the design of this thing?
In mailing list of the project on SF:

> Why did you decide to limit this to perl5.8?
Well, since HWX doesn't use a normal Perl, not only a Perl with some extra modules, it use the Perl that we release. We got Perl 5.8.0 to use the last resources, specially Threads! I don't see why spend time making the interpreter with earlier version! We don't have much peoples working on that yet, we need to do the priority things first!

> Why'd you decide you had to mess with toke.c ?
I already answer that. To enable DotRef in the native level of the syntax, this means make it works in any part of Perl, including eval() and in the check syntax of the code. Filter::Simple, the other way to do that, doesn't have all the resources that I want for DotRef, specially the use inside eval()! Well, if it doesn't do what I want, I made my own.

> Does it break perl as we have come to know it? (i cannot imagine how it could not ).
NO! All the normal syntax was ok. DotRef first look if the class exist, if not it return a normal concatenation. But if you stop one minut you will see that no one will write:
because this is the same of: objaaabbbccc
DotRef, only accept \w and no space between the dots.

> Have you added any tests to the distribution?
Not yet. The GUI things will be hard to make a good test, and the DotRef was ok.

> Do you still use Mattia's wxPerl stuff, or do you define your own bindings?
Yes, is the same wxPerl, but is my own compilation. The only thing that I have added to wxPerl is the Wx::ActiveX and Wx::ActiveX::IE modules tha I made, and wasn't in the standart wxPerl yet.

>(how dependent is HWX really on your custom perl binary , and should it be?)
Well, it uses Class::DotRef. But inside the HWX and GML I tried to not use it to enbale it in other Perl versions, if in the future someone want it. About the "custom perl binary", the custome thing is for the PerlBin, and PerlBin is a tool to publish your app, not to run.

>Have you had any thoughts about abstracting PerlBin (real cool) away from HWXPerl, so it can work with many perl versions?
If you take a look in the changes that I made in the source of Perl binarys, you will see that it will works in any OS, since was simple things with the use of basic resources of C. All the other things are made with Perl codes, you can see a small script inside the source, to make it portable and simple.

> Does it work on different platforms other than win32?
Yes, I think that it works in any, you just need to compile it and make the same changes in the source for each OS inside Perl-src.

>I modified to use some modules, and I created the binary without issues. Adding a 'lib' with those modules to where my hello.exe was worked like a charm. I gotta say I'm real interested in this PerlBin thing.
Well, is soo simple! I say again, if it doesn't do what I want I make my own. :-P

>In fact I was so interested in this idea (an open source alternative to perl2exe or PerlApp), that one night after some cb banter The Perl Compiler (turning perl scripts into binary executables) and created The project kind of died, since the one person who knew enough c/c++ and perl internals to get us started got stuck behind a NDA (non-disclosure agreement), but it'd be hella cool to resurrect it.
Well, I think that the best way is to do some scrirpt or program that get the standart source of Perl, make the changes. And the user just compile and use Perl normally, and when it want to "compile" use something like PerlBin. In the project you can release the binarys for diffenrent OS too. I hate perl2exe and PerlApp, they are selling something soo simple to do! About PerlBin, when some other priority things was made, I will link it with Zlib, to compress your script and your lib inside the binary. Talk with Marcus, one of the other developers of HWX, it was very interested on this too. You can find the e-mail in the file Changes.HWX in the CVS.

> How difficult would it be to make PerlBin work on earlier versions of perl (reading the description, I imagine it wouldn't be too much work)?
I think that will be just copy and paste!

>nice job ++
Thanks. ;-)
Hey, join to the HWX team, or just sign the mailing list for news.

Graciliano M. P.
"The creativity is the expression of the liberty".

  • Comment on Re: (more questions) Re: HWXperl - The place for GUI apps in Perl

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://199890]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2018-05-22 09:14 GMT
Find Nodes?
    Voting Booth?