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

On JAPHs Redux

by cciulla (Friar)
on Apr 25, 2003 at 12:32 UTC ( #253150=perlmeditation: print w/replies, xml ) Need Help??

I will be the first to admit that the vast majority of (at least my) JAPHs are not truly obfuscated -- just more or less clever hacks.

I've learned about hashes of arrays, hex, octal, binary, substr, sprintf, __DATA__, etc. vis a vis perl using JAPHs -- I suspect that quite a few aspirants of perl knowledge do the same.

Since there's no special place to put JAPHs, they generally show up in Obfuscation. The line blurs, but a JAPH is a JAPH and an obfu is an obfu.

While BooK's post is much more eloquent, and the topic has lain dormant for the past two years, again I humbly beseech the powers that be for the establishment of a JAPH section.

Replies are listed 'Best First'.
•Re: On JAPHs Redux
by merlyn (Sage) on Apr 25, 2003 at 14:12 UTC
    As the inventor of the JAPH (and some would say "JAPH #0"), I would have to put JAPHs firmly inside the set of all ObfuPerls. It meets all the requirements of ObfuPerl (using unusual features, using features unusually, messing with spacing and alternate delimiters, etc.), and the additional requirements that it print a signature line (canonical JAPHs printing my now-famous 25 character string "Just another Perl hacker," including the comma). I don't see anything about JAPHs that would make them not ObfuPerl, unless you're talking about the most trivial versions.

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.

      I concur that JAPHs meet all the requirements of ObfuPerl, but I submit that they are an important subset thereof -- significant enough to warrant their own section.

        No, they're not an important subset significant enough to warrant their own section.

        MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
        I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests.
        ** The Third rule of perl club is a statement of fact: pod is sexy.

Re: On JAPHs Redux
by Mr. Muskrat (Canon) on Apr 25, 2003 at 13:21 UTC

    Thank you for pointing a node that I have never seen or heard mention of before today!

    The table that follows is a direct quote from the good BooK's post:

    • prints "Just Another Perl Hacker"
    • discovery of features
    • less used features used in unusual ways
    • does something useful/funnny/powerful
    • hard to understand/read programs
    • an artistic approach to the code
    • should confuse B::Deparse

    So it seems to me that if a JAPH is not obfuscated that it should be posted in Cool Uses For Perl or the Snippets Section.

      I've not played with enough Obfu to see what techniques will "confuse" B::Deparse. It would seem that the bytecodes are the bytecodes. The output may be mechanical, but where will B::Deparse not be able to produce Perl from bytecode?

      [ e d @ h a l l e y . c c ]

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://253150]
Approved by Tanalis
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2023-06-06 00:03 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (26 votes). Check out past polls.