Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^5: Perl 6 ... dead? (no, just convalescing)

by Anonymous Monk
on Sep 01, 2004 at 08:02 UTC ( #387429=note: print w/replies, xml ) Need Help??

in reply to Re^4: Perl 6 ... dead? (no, just convalescing)
in thread Perl 6 ... dead?

Yes it is
  • Comment on Re^5: Perl 6 ... dead? (no, just convalescing)

Replies are listed 'Best First'.
Re^6: Perl 6 ... dead? (no, just convalescing)
by Wassercrats on Sep 01, 2004 at 19:00 UTC
    Is not. Real bytecode ads an extra level of protection. It's more difficult to understand.

      You can convert your Perl 5 scripts to bytecode, and any one can -MO=Deparse them back to something (reasonably) close to the original code.

      In Perl 6 you will (I assume) be able to convert your scripts to byte code tartgeting Parrot, and some one will eventualy make a Deparser for Parrot/Perl 6. Perl 6 will probably not be that much friendlier to source hiding than Perl 5 is.

      You could always try B::C if your willing to give up some portability.

        Even, say, Java bytecode can be deparsed. OK, there are code obfuscators, which do various clever tricks (for example producing valid bytecode which works in the JVM but which could never be produced from valid Java code) and garbling variable/sub/class names to prevent them from being understood. You can easily obfuscate (Acme::Bleach anyone?) Perl code, and garble the names for good measure. I guess the fact that Perl 6 will compile to bytecode will make other forms of source protection easier to implement than for Perl 5 though.
        Diotalevi explained to me that you can't convert Perl to real bytecode. There's some compiler that does a bad job, then there's the not-real bytecode that could be converted back without knowing machine language.

        It really pisses me off that people are being misled into thinking Perl is as safe as any other language when it comes to concealing the source code. The inability to do that well also makes copy protection less safe.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://387429]
and the voices are still...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2017-01-17 17:59 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (158 votes). Check out past polls.