Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Re: Re: Re: Re: Re: The Perl Compiler (turning perl scripts into binary executables)

by BrentDax (Hermit)
on Jul 11, 2001 at 19:44 UTC ( [id://95731]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Re: Re: Re: The Perl Compiler (turning perl scripts into binary executables)
in thread The Perl Compiler (turning perl scripts into binary executables)

That doesn't mean we *want* to copy VB. Personally, I hate having to haul around a runtime with my (few) VB programs.

evals are the reason I want you to *tell* the compiler if you're using something. One of the things I really don't want to do is outsmart the programmer. We should have switches to exclude certain functionality that already exists in the Perl core for size reasons. (For the purposes of this article, I'm using a --no=feature switch.) Perhaps we can have it say, "WARNING:  You don't seem to be using regular expressions.  Support for them can be excluded with the --no=re flag.  (This warning can be disabled with the --notips flag.)" (Or whatever.)

To pull that off, someone needs to wade through the core and find all the entry functions for regexen--then we just make those die on entry and delete the other regex functions. Unless someone already knows this--anybody?

=cut
--Brent Dax

@HPAJ=split("", "rekcaH lreP rentonA tsuJ"); print reverse @HPAJ; #sucky but who cares?
  • Comment on Re: Re: Re: Re: Re: Re: Re: The Perl Compiler (turning perl scripts into binary executables)
  • Select or Download Code

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Re: Re: The Perl Compiler (turning perl scripts into binary executables)
by John M. Dlugosz (Monsignor) on Jul 11, 2001 at 20:31 UTC
    I've read that Larry wants to move more stuff out of the core in Perl 6. He mentioned format.

    Regular expressions are rather central. But maybe you're not using all the exotic features such as zero-width lookahead assertions. Maybe another choice could be a simpler regex module that's substantially smaller but is enough for ordinary grepping and handling your switch statements.

    We also need choices as to static linking vs. loadable runtime libraries. You might prefer a self-contained EXE, but I want 10 little EXE's sharing one runtime library. Depends on the intended use, too.

    —John

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://95731]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-23 23:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found