Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
This, my first obfu effort, uses modules from The Perl Data Language. You will need an xterm and the PDL modules (my apologies for the esoteric restrictions). For your efforts you will get an interactive OpenGL 3D JAPH. It works (at least) on a linux box running perl v5.8.6.

Update: An image of the result is available on my homenode.

#!/usr/bin/perl use strict; use PDL;use PDL::NiceSlice;use PDL::Graphics::TriD;sub _{map(ord()-80,&_::(shift))}sub _::{split//,shift}$}=pdl(__(8665)) *ones(28,3);{$_=pdl[_('TPRRRPJZPRVJSSRTPTRPNLXPPVPP')], [_('VNNPRZPPDVPPVJJP\PNNNPJ\JPVD')],[0];for my $pdl(1..27){$_($pdl) +=$_($pdl-1)}line3d(::($_),::($}));}sub __{&_::(join('0',map(1x$_, &_::)))}sub ::{{{{}}}shift->xchg(0,1)}

Update: Futzing around a bit more, and using some techniques from teamster_jr's recent spoiler I pared this down to 5 x 72.

#!/usr/bin/perl $_=q^use PDL;use PDLKGraphicsKTriD;H _{map ord()-80,&_K(Q)}H _K{split/ +/, Q}H K{Q->xchg(0,1)}$}=pdl(__(8665))*ones(28,3);H __{&_K(join(0,map(1x$ +_, &_K)))}$_=pdl ITPRRRPJZPRVJSSRTPTRPNLXMVM)],I'VNNPRZMDVMVJJP\PNNNPJ\JP +VD ')],[0];for $p(1..27){O)+=O-1)}line3d(K($_),K($}))^;for $r(qw.sub [_( +J :: L PP N $_->slice($p P shift.){$l=chr(72+$c++);s/$l/$r/g}s/\n//g;eva +l;

In reply to OpenGL (PDL) JAPH by moklevat

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2021-07-31 10:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?