Slashdot Mirror


Periodic Table of the Operators

mAsterdam writes "At his code blog Mark Lentcner writes: "A while back, I saw Larry Wall give a short talk about the current design of Perl 6. At some point he put up a list of all the operators - well over a hundred of them! I had a sudden inspiration, but it took a few months to get around to drawing it..." You might want to take a look at this and think about which operators are yet to be discovered."

21 of 323 comments (clear)

  1. Undiscovered: the /. operator by thomasdelbert · · Score: 4, Funny

    The /. operator is the one that causes your system to grind to a halt.

    - Thomas;

    --
    ___ This sig is in boldface to emphasize its importance!
    1. Re:Undiscovered: the /. operator by Anonymous Coward · · Score: 1, Funny

      So the equivalent of Unobtainium in periodic terms then.

  2. Re:Oh my sweet Jesus... by Roland+Piquepaille · · Score: 1, Funny

    That code is gonna be NASTY.

    That code already is nasty. Ever looked at Perl scripts in the last few years?

  3. I looked all over. by Phidoux · · Score: 5, Funny

    Where is the WTF operator?

    1. Re:I looked all over. by thomasdelbert · · Score: 3, Funny
      Where is the WTF operator?
      Here:

      ($p?(/.{70}\|$/):(/^\|/))||(&{$\[3]}<$/[0])?($p=!$ p):&{$\[$p]}||die("$d");

      - Thomas;
      --
      ___ This sig is in boldface to emphasize its importance!
    2. Re:I looked all over. by Temporal · · Score: 3, Funny

      Man... someday someone is going to write an obfusicated perl version of "rm -rf *" and post it on slashdot, and everyone is going to fall for it.

    3. Re:I looked all over. by Anonymous Coward · · Score: 1, Funny

      And do essentially no damage to their systems, because nobody runs as root, and everyone backs up their home directories on a regular, automated basis. Right?

  4. Some of these have a halflife of a few nanoseconds by JCCyC · · Score: 5, Funny

    Code written with them becomes illegible after that.

  5. Perl 6 by Anonymous Coward · · Score: 5, Funny

    Perl 6 is going to be the best thing that ever happened to Python.

  6. The Elements - Tom Lehrer by Richard_L_James · · Score: 3, Funny
    which operators are yet to be discovered.

    The sentance reminded me of the Elements song.... No doubt someone has already started rewriting it for Perl !

  7. Relevant excerpt from the INTERCAL language manual by mcc · · Score: 4, Funny

    TONSIL A (1)

    The Official INTERCAL Character Set

    Tabulated on page XX are all the characters used in INTERCAL, excepting
    letters and digits, along with their names and interpretations. Also
    included are several characters not used in INTERCAL, which are presented
    for completeness and to allow for future expansion.

    Character Name Use (if any)

    . spot identify 16-bit variable
    : two-spot identify 32-bit variable
    , tail identify 16-bit array
    ; hybrid identify 32-bit array
    # mesh identify constant
    = half-mesh
    ' spark grouper
    ` backspark
    ! wow equivalent to spark-spot
    ? what unary exlusive OR (ASCII)
    " rabbit-ears grouper
    ". rabbit equivalent to ears-spot
    | spike
    % double-oh-seven percentage qualifier
    - worm used with angles
    < angle used with worms
    > right angle
    ( wax precedes line label
    ) wane follows line label
    [ U turn
    ] U turn back
    { embrace
    } bracelet
    * splat flags invalid statements
    & ampersand[5] unary logical AND
    V V unary logical OR
    (or book)
    V- bookworm unary exclusive OR
    (or universal qualifier)
    $ big money unary exclusive OR (ASCII)
    c| change binary mingle
    ~ sqiggle binary select
    _ flat worm
    overline indicates "times 1000"
    + intersection separates list items
    / slat
    \ backslat
    @ whirlpool
    -' hookworm
    ^ shark
    (or simply sharkfin)
    #|[] blotch

    Table 2 (top view). INTERCAL character set.

    (1) Since all other reference manuals have Appendices, it was decided that
    the INTERCAL manual should contain some other type of removable organ.

    (2) This footnote intentionally unreferenced.

  8. huh by INeededALogin · · Score: 2, Funny

    You might want to take a look at this and think about which operators are yet to be discovered

    Yet to be discovered? means... Yet to be thought of... or yet to be documented. I am sure that I could find all of them by spending a few minutes looking through the code.

    Sorry, I am just puzzled by what I am discovering.

    1. Re:huh by Anonymous Coward · · Score: 2, Funny

      O, a sarcasm detector, thats a real useful operator.

  9. Can't seem to find it... by mcc · · Score: 4, Funny

    We may have to wait for Perl 7 for that one. However, if you look under "Quasi Variables/Templars", you will find there is a "yadda, yadda, yadda" operator.

  10. Python by Anonymous Coward · · Score: 1, Funny

    Then people will learn why Python is the best thing that ever happened to Ruby.

  11. If you think this is scary... by dexter+riley · · Score: 3, Funny

    ...remember that unlike Perl operators, you can't overload the chemical elements. Imagine if He meant helium, unless some chemist changed its definition to mean Mercury, or Ununtrium, or anything else!

    Mmm, a bottle of good old H2O! Glug glug. What's this small print? "The oxygen in this molecule has been overloaded to be radioactive, caustic, and-" ack!
    Thud.

    1. Re:If you think this is scary... by pjt33 · · Score: 3, Funny

      Dexter used to drink a lot, but now he drinks no more:
      For what he thought was H2O was H2SO4.

  12. Re:the pdf file by Anonymous Coward · · Score: 2, Funny
    Are you sick of having to copy and paste URLs into your address bar, and remove the spaces put there by Slashdot? With amazing new Hyper-Link technology, following URLs is a snap! All you have to do to create one is put this into your post:

    <A HREF="your URL here">description of site</A>

    Remember to include the http:// in the URL or browsers will think it's a subdirectory of slashdot.org!

  13. Re:Oh my sweet Jesus... by Mr.+Piddle · · Score: 2, Funny

    3.0 is identical to 3 or you get your money back

    That's unfortunate. Hopefully, Perl programmers can unlearn this habit when they work with just about every other programming language ever. You just can't get around the fact that floating point numbers are constrained to a certain number of bits in RAM, unless special math libraries are used (and those libraries are not used often).

    --
    Vote in November. You won't regret it.
  14. Re:Oh my sweet Jesus... by hazem · · Score: 2, Funny

    You obviously never studied mathematics, 3 and 2.999... are exactly the same.

    I thought that was engineering:

    pi =3
    g=10m/s^2

    or at least close enough for government work.

  15. Re:Oh my sweet Jesus... by Finuvir · · Score: 2, Funny

    I was able to gauge my progress through school and college based on the number of significant digits in g. "g is 10", "g is 9.8m/s", "g is 9.81ms^-1", "screw g; you want G!", "G? This is General Relativity!"

    --
    Why is anything anything?