Slashdot Mirror


The Shakespeare Programming Language

Erik Tjernlund writes: "Oh, where art thou my lovely new programming language? Stop fiddling around with those perl magnets and use a real poetic computer language: The Shakespeare Programming Language. Not a compiler, but it converts to C. Cool 100+ line Hello World example. Amazing what CompSci-students can create when they really should do real work."

148 comments

  1. snort by wrinkledshirt · · Score: 4, Funny

    combines the best features of BASIC, assembly language, and Hamlet.

    Let me guess. It takes three long, boring hours to figure out (2b | !2b)?

    --

    --------
    Bleah! Heh heh heh... BLEAH BLEAH!!! Ha ha ha ha...

    1. Re:snort by Anonymous Coward · · Score: 0

      (2b | !2b)?


      you mean (2b || !2b)
      besides, checking this condition is useless. It says if 2b is true or 2b isn't true.

    2. Re:snort by GiMP · · Score: 3, Informative

      That would be (0x2b || !0x2b) or (toB || !toB)..

      Variables cannot start with numbers, and | is a bitwise OR operation.. which is OK but you probably wouldn't want that in this example.

    3. Re:snort by Anonymous Coward · · Score: 0

      wouldn't it be (this==null||this!=null) ?

  2. Gar... by Anonymous Coward · · Score: 1, Funny

    I thought I went into Sciences to get AWAY from all this crap.

  3. Hello world by jedwards · · Score: 2, Offtopic

    Site is dying fast - here's the only thing anyone cares about ...

    The Infamous Hello World Program.

    Romeo, a young man with a remarkable patience.
    Juliet, a likewise young woman of remarkable grace.
    Ophelia, a remarkable woman much in dispute with Hamlet.
    Hamlet, the flatterer of Andersen Insulting A/S.

    Act I: Hamlet's insults and flattery.

    Scene I: The insulting of Romeo.

    [Enter Hamlet and Romeo]

    Hamlet:
    You lying stupid fatherless big smelly half-witted coward!
    You are as stupid as the difference between a handsome rich brave
    hero and thyself! Speak your mind!

    You are as brave as the sum of your fat little stuffed misused dusty
    old rotten codpiece and a beautiful fair warm peaceful sunny summer's
    day. You are as healthy as the difference between the sum of the
    sweetest reddest rose and my father and yourself! Speak your mind!

    You are as cowardly as the sum of yourself and the difference
    between a big mighty proud kingdom and a horse. Speak your mind.

    Speak your mind!

    [Exit Romeo]

    Scene II: The praising of Juliet.

    [Enter Juliet]

    Hamlet:
    Thou art as sweet as the sum of the sum of Romeo and his horse and his
    black cat! Speak thy mind!

    [Exit Juliet]

    Scene III: The praising of Ophelia.

    [Enter Ophelia]

    Hamlet:
    Thou art as lovely as the product of a large rural town and my amazing
    bottomless embroidered purse. Speak thy mind!

    Thou art as loving as the product of the bluest clearest sweetest sky
    and the sum of a squirrel and a white horse. Thou art as beautiful as
    the difference between Juliet and thyself. Speak thy mind!

    [Exeunt Ophelia and Hamlet]

    Act II: Behind Hamlet's back.

    Scene I: Romeo and Juliet's conversation.

    [Enter Romeo and Juliet]

    Romeo:
    Speak your mind. You are as worried as the sum of yourself and the
    difference between my small smooth hamster and my nose. Speak your
    mind!

    Juliet:
    Speak YOUR mind! You are as bad as Hamlet! You are as small as the
    difference between the square of the difference between my little pony
    and your big hairy hound and the cube of your sorry little
    codpiece. Speak your mind!

    [Exit Romeo]

    Scene II: Juliet and Ophelia's conversation.

    [Enter Ophelia]

    Juliet:
    Thou art as good as the quotient between Romeo and the sum of a small
    furry animal and a leech. Speak your mind!

    Ophelia:
    Thou art as disgusting as the quotient between Romeo and twice the
    difference between a mistletoe and an oozing infected blister! Speak
    your mind!

    [Exeunt]

    1. Re:Hello world by Anonymous Coward · · Score: 0

      Was this the source to DeCSS rewritten in Shakespeare?

  4. oh well by banky · · Score: 5, Funny

    Server, server, whereforeart thou, server?
    Deny thy slashdotting and accept mine HTTP connects!

    5 comments and I can't seem to connect. mayhap I shall bite my thumb at RoadRunner?

    --
    ZOMG I WOULD LOVE TO KNOW ABOUT YOUR FEELINGS ON MACINTOSH VERSUS WINDOWS, VI VERSUS EMACS, AND HOW YOU'RE NOT A DORK
    1. Re:oh well by SEWilco · · Score: 2, Funny
      I wouldst connect to thee, o most remote of arachnid presenters!

      When'er thine voice is delayed from reaching mine ears
      before sweet sleep approaches me,
      and I knowest that we be in the presence of yonder overlooking master of all things constructed,
      then my awareness shall be that the master hast brought his minions to overwhelm thine voice with their chanting
      and I shall be filled with woe and anticipation of what sweetness might I forsee in the morrow.

    2. Re:oh well by banky · · Score: 1

      I bow to you. I was trying to get the first joke in.

      --
      ZOMG I WOULD LOVE TO KNOW ABOUT YOUR FEELINGS ON MACINTOSH VERSUS WINDOWS, VI VERSUS EMACS, AND HOW YOU'RE NOT A DORK
    3. Re:oh well by pyramid+termite · · Score: 1

      Out, out, slashdot!

      By the way, has the "postercomment compression filter" ever heard that brevity is the soul of wit? Calvin Coolidge would have driven himself nuts trying to post here ...

  5. Mitest thou ponder... by Anonymous Coward · · Score: 0

    ah but a beowulf cluster of...

    crap it just doesn't work

    How bout...

    7h0u r't 4 31337 H4x0r,

    1. Re:Mitest thou ponder... by Anonymous Coward · · Score: 0

      all thine ___ doth belong to thy king.

  6. Hey don't knock it off.. by Anonymous Coward · · Score: 0

    that is how LISP got created too.. :>

  7. thou shrew by Anonymous Coward · · Score: 0

    thou server needs to be tammed.

  8. The true meaning of Shakespeare by aoihai · · Score: 5, Funny

    Thus it is revealed that "Much Ado About Nothing" is actually a polynomial time solver of the "Love Triangle" subclass of NP-complete problems.

    --
    You were eaten by a grue.
    1. Re:The true meaning of Shakespeare by jovlinger · · Score: 4, Funny

      fscking genius! Bravo, my good man.

      Following your lead, I have deduced that Othello must be a game-theoretic treatsie, while the Comedy of Errors is clearly a C compiler.

      I suspect that All's Well that Ends Well must be an early formulation of the halting problem, but I'm still waiting for the mechanical proof solver to come back with results. It may be that the last word of the title is a transcription error.

    2. Re:The true meaning of Shakespeare by uchian · · Score: 1

      Hmmm... just found out that Romeo & Juliet act 3 is actually an implementation of the DeCSS...

    3. Re:The true meaning of Shakespeare by samoht · · Score: 1

      And indeed, Hamlet appears to be an early implementation of an indecisive LART©

  9. why not code in Grunting Neanderthal? by perdida · · Score: 3, Interesting

    Shakespeare used the common language of his day. Like The Sopranos, Shakespeare's oevure is meant to be a big hit.

    His writing is not a language or a diction or a dialect unto itself, but to combine the ways of speaking of the poor and rich playgoers of the Elizabethan time. It's the original accessible style, and that is why 15 year olds can understand, and dig, Romeo and Juliet today.

    However, this "speak your mind" crap de-shakespearizes the writing anyway. The topics may be shakespearean, but the diction is a geek-ized bastardization of Elizabethan speech.

    This era's English is as complex as our own. The best way to code in such a language understandably is to write simple prose.

    For coding, you need a more modular language, something less complex. The semi-linguistic grunts and signs of a Neanderthal, or Koko the signing ape,may be more useful. You would get compilable code, due to a simpler logix, and the Neanderthal observer would still understand the meanings.

    1. Re:why not code in Grunting Neanderthal? by Anonymous Coward · · Score: 0

      Reminds me of an old cartoon I used to have over my desk. Wish I could find it online somewhere, but I'll just have to describe...

      Frame 1: Bunch of Neanderthals standing around or sitting on rocks, grunting single words such as "awk", "grep", "yank". Caption: "THEN".

      Frame 2: Bunch of geeks standing around or sitting at desks, grunting single words such as "awk", "grep", "yank". Caption: "NOW".

    2. Re:why not code in Grunting Neanderthal? by Anonymous Coward · · Score: 0

      no, its not a "fucking" joke, its a "grunting" joke.

    3. Re:why not code in Grunting Neanderthal? by majcher · · Score: 4, Interesting

      You must have missed Ook, a language designed for orangutangs.

    4. Re:why not code in Grunting Neanderthal? by elflord · · Score: 2
      or coding, you need a more modular language, something less complex. The semi-linguistic grunts and signs of a Neanderthal, or Koko the signing ape,may be more useful.


      I believe it's already been done. See the posix utilities. A pretty good vocab: (try pronouncing these as spelled) awk, grep, ls, su, tar, stty, zcat, rm, mknod, cp, rmdir, chmod
      Then there's the functions: fchmod, msgsnd, msgop, msgget, mmap, ... etc.

  10. A great new step by einhverfr · · Score: 4, Funny

    On April 1, 2000, an RFC was released on IMPS, the Infinite Monkey Protocol Suite, which is a means of keeping track of an infinite number of monkeys on an infinite number of typewriters to see if they duplicate the works of Shakespear (or any other works for that matter). The RFC is located at http://www.ietf.org/rfc/rfc2795.txt.

    RFC 2795 specified that the entity which stores the works of Shakespear (and everyone else) is the Big Annex of Reference Documents (BARD) and communicates with the ZOO (Zone Operation Organization) vie the InterAnnex Message Broadcasting Protocol for Evaluating Neo-classical Transcripts (IAMB-PENT).

    Anyway, my point is that this new language is great because what other language would you want to write an implimentation of IAMB-PENT in than Shakespear? Soon we will have another Linux groups try to demonstrate this important protocol like they did with RFC 1149!

    --

    LedgerSMB: Open source Accounting/ERP
    1. Re:A great new step by Anonymous Coward · · Score: 0

      How did you manage to misspell "Shakespeare" three times, with it figuring prominently not only in the title and introduction of the story, but in the second paragraph of the RFC as well?

      Impressive.

    2. Re:A great new step by Anonymous Coward · · Score: 0

      The man himself spelt it about 7 different ways.
      This guy is obviously giving us a selection of all possible spellings.
      Otherwise someone would complain he's using the wrong version of the spelling.

  11. Any CSS descrambling software in Shakespeare? by Mark+Gordon · · Score: 5, Interesting

    Assuming this isn't a complete joke...

    David Touretzky would probably get a kick out of this language, since it could lead to a dramatic rendition of a CSS descrambler.

    1. Re:Any CSS descrambling software in Shakespeare? by Jimmy_B · · Score: 3, Insightful
      Any CSS descrambling software in Shakespeare? Assuming this isn't a complete joke...
      Oh, what fools these moderators be. Of COURSE this is a complete joke; notice the category it's in, and read the sample program. It's easy to recognize which phrases have been designated to have language meanings, and that the way they're combined is grammatically-correct nonsense.
    2. Re:Any CSS descrambling software in Shakespeare? by AJWM · · Score: 2

      My first thought too.

      Shakespeare really is a fairly simple programming language with built-in steganographic obfuscation. But it'd be a hoot to see MPAA try to come down on a Shakespeare version of DeCSS or Adobe try to complain about a Shakespearean e-book decryptor.

      (And while the language looks at quick glance to be turing-complete it could do with some richer semantics -- floats, function calls, etc.)

      --
      -- Alastair
    3. Re:Any CSS descrambling software in Shakespeare? by epsalon · · Score: 1

      It should be quite easy to write a Brainf**k to SPL converter, and if someone already wrote DeCSS in Brainf**k and I think this was done, just need to convert it to a *very*long* play in SPL... :)

    4. Re:Any CSS descrambling software in Shakespeare? by brunes69 · · Score: 2

      Did you even look at the website? It si NOT a joke. I just downloaded and compiled the spl2c interperter myself, and then coverted to C and compiled a sample program. it works!

    5. Re:Any CSS descrambling software in Shakespeare? by Jimmy_B · · Score: 2

      (A) the site was slashdotted at the time just about everything here was posted. Most posters are going by the sample program, which someone got and posted, and the description.

      (B)The fact that it compiles doesn't make it any less a joke. The fact that it compiles is, by itself, humorous. The fact that it compiles *and* reads like a parody of Shakespeare is hilarious. Awhile ago, a steganographic tool was mentioned on Slashdot which would reversibly turn text messages into what looks like spam. This is a similar thing, for C code.

  12. Shakespeare is a good start. Now let's try others. by alewando · · Score: 3, Interesting
    Elizabethian English is a good proof of concept, but we should build on this success with other more practical languages.

    Natural-language programming has had its ups and downs over the year. Some will recall Hypertalk, for example, as the language the original Myst game was programmed in. Only some will recall, however, inasmuch as it never got terribly far off the ground. Other natural languages haven't faired much better.

    My contention, however, is that these efforts have not failed because the idea of natural-language programming is somehow fundamentally flawed. Nay, the problem is that we're busy trying to implement the wrong language: English. English may be the language lots of us speak, but it's simultaneously too imprecise to permit of exacting programming and too verbose to allow structures to be implemented quickly and cleanly.

    Tok Pisin would make a much better natural language to implement. It has several important advantages over English:
    1. Simple grammar
    2. English-based lexicon for backwards vocabulary compatibility
    3. Full extensibility, owing to its pidgin origins.

    As yet, a language like Tok Pisin would encounter much opposition among programmers and speakers in the population at large unaccustomed to change, but it's a proposal deserving of serious examination.
  13. Not Quite Right by robbyjo · · Score: 3, Informative

    Not a compiler, but it converts to C.

    Well, technically, the tool that translates one language to another (be it to machine language, intermediate language, or just another sufficiently different high level language) is called compiler. Therefore, calling it non-compiler would be incorrect.

    --

    --
    Error 500: Internal sig error
    1. Re:Not Quite Right by joto · · Score: 2
      Well, technically, a tool that translates from one language to another (such as C to x86 object code) should really be called a translator. Compiling is the craft of putting those peaces together, so we should really start calling our linkers compilers, and our compilers translators.

      But if we are to accept common (albeit faulty) terminology, I will agree that something that translates language foo to C is definitely worthy of being called a compiler...

    2. Re:Not Quite Right by Phroggy · · Score: 1

      When I was bored in high school, my friend and I created the beginnings of a programming language and wrote a compiler for it. The compiler reads source files in our invented language, outputs x86 assembly code in the format of a script to pipe into DOS DEBUG, then pipes it into DEBUG and the result is saved as a .COM file. The compiler was written in QBASIC.

      We never got far enough to be useful, but it does actually work.

      --
      $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
      $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
  14. Includes? by DigitalGodBoy · · Score: 1

    #include

    ==

    Oh damned damned damned villian!

    (from McBeth?)

    --
    "liberty and justice for all those who can afford it"
  15. Operation Theta by mystik · · Score: 0, Redundant

    I guess slashdot needed to DoS more international links for operation theta ...

    --
    Why aren't you encrypting your e-mail?
  16. Amazing... by Anonymous Coward · · Score: 5, Funny

    "Amazing what CompSci-students can create when they really should do real work."

    Like Linux?

    1. Re:Amazing... by Anonymous Coward · · Score: 0

      hate to break it to you, but linux wasn't a student; he flunked out, and out of anger over his OS professer (A. Tanenbaum), he copied his pet OS and renamed it Linux.

    2. Re:Amazing... by Anonymous Coward · · Score: 0

      nice troll

      microkernel != monolithic kernel

      minix != linux

      they're not even similiar.

  17. Cook me up some Hamlet by sparcv9 · · Score: 5, Funny

    Another natural language language is Chef. Programs are written like cooking recipies. The above link has examples of a Hello World and a Fibonacci sequence generator. I wouldn't want to eat either of them, though. The ingredients are the variable names, so some of the concoctions sound downright nasty. Although, the Fibonacci generator only requires 100g flour, 250 g butter, and one egg, and it's accompanying Caramel Sauce (the recursive function) requires a cup of white sigar, a cup of brown sugar, and a single vanilla bean.

    --

    This is not a Fugazi .sig
    1. Re:Cook me up some Hamlet by tconnors · · Score: 1

      Another natural language language is Chef [usyd.edu.au].

      I always was slightly nervous about posting physics.usyd URL's to /.. It seems the effect hasn't hit overly hard - only 1200 accesses since the story was posted (3 hours ago?), but don't you go cutting off my data disks - all you slashdotters! :)

      TimC.

  18. OFF TOPIC Re:Shakespeare is a good start. by digitalsushi · · Score: 1

    i clicked on your sig and ended up on this on one link

    http://www.adequacy.org/?op=view_poll;qid=999108 47 7_sbUDMizJ

    and suddenly realized perhaps how very small this little web forum we call slashdot really is :)

    --
    slashdot: where everyone yells sarcastic metaphors to themselves to understand the issue
    1. Re:OFF TOPIC Re:Shakespeare is a good start. by jovlinger · · Score: 2

      I dunno. That site consists of a bunch of people with a REALLY good sense of humor, or complete and blithering lunatics. Articles about how you should traumatize cattle so the meat tastes good!? I don't want to take it seriously, but I got the impression that several of the posters there do. I'm a bit unsettled by that.

      But, given that their main poll had 137 votes, I guess most people have already voted with their [metaphorical] feet.

  19. Re:Shakespeare is a good start. Now let's try othe by dangermouse · · Score: 2

    Um, what's the point? Why would you bother to go from a language that nobody speaks to another (theoretically "natural") language that nobody speaks?

  20. interesting by Anonymous Coward · · Score: 0

    That's interesting. The win2k process list is faked, but it's interesting none the less.

    I wonder how soon until we see Code Scarlet IIS worms written in Shakespeare? :)

  21. Re:Shakespeare is a good start. Now let's try othe by Anonymous Coward · · Score: 5, Funny

    fuck that. ebonic would be a much better programming language.

    int foo()
    {
    word up, biatch;

    homey = sup();

    }

  22. Screw Linux by Anonymous Coward · · Score: 0
    For Linux, the outlook looks bleak. No longer buffeted by the heady currents of the internet goldrush, Linux-based companies - which have never made any appreciable amount of money - appear to have reached their darkest hour yet. Just as the markets have started to recognize the absurdity of valuing websites with no apparent means of making money at billions of dollars, and are instead examining the underlying worth of companies, they are also recognizing that companies required by their underlying philosophy to give their product away, do not have significant revenue opportunities.


    As a result, the development of the user interface (the most important part of a system) of open source products - without a cent to spend on research - relies on ideas stolen directly from Windows.

    1. Re: Screw Linux by Futurepower(tm) · · Score: 1, Offtopic


      I have never understood why people say there is no money in Linux. The value of the Windows software I have sold to my customers is far, far less than they pay me for support.

      Friends who know more about Linux than I have converted the server farm of a school district to Linux. Judging from what they say, the support time required is about 1/8 that of Microsoft Windows. But, there is still support needed. The cost of support is still more than the cost of OS software, from any vendor.

      --
      Bush's education improvements were
    2. Re:Screw Linux by tenman · · Score: 0, Offtopic
      It's a real shame that the cowards such as yourself find great fun wasting your time poking sticks into the mouth of an angry animal.


      There is no limit to the examples we can give to display the value to Linux in today's corporate America. Every major software vendor (including microsoft) recognize the value, and are making software for the platform. While I know I'm wasting my time, please indulge me as I poke holes in your TROLL/FLAMEBAIT post.


      the outlook looks bleak - Look again. I can name 10 companies, 3 of which I know you heard of, that have implemented (successfully) Linux as the primary OS for the entire corporation this quarter.


      No longer buffeted by the heady currents of the internet gold rush - I assure you that if you look around, you will find that EVERY internet based business (again including Microsoft) are feeling the affects of the post 'gold rush' economy.


      Linux-based companies - which have never made any appreciable amount of money lets compare the number of Linux based companies that showed up on fuckedcompany.com with the number of Wintel based businesses. !!Oh look!! Not saprisingly, they are strangly similar.


      appear to have reached their darkest hour yet - okay, I guess you need to eat more carrots.


      Just as the markets have started to recognize the absurdity of valuing web sites with no apparent means of making money at billions of dollars, and are instead examining the underlying worth of companies, they are also recognizing that companies required by their underlying philosophy to give their product away, do not have significant revenue opportunities. - okay, and your point is? let me break this out a little for you... you have two companies, one that runs Linux, and one that runs Microsoft software. Both are equal in every other way. Both start with the same amount of funding. Both run out of said funding. Bottom line is that the Linux company spent $0 on OS licensee.


      As a result, the development of the user interface (the most important part of a system) of open source products - without a cent to spend on research - relies on ideas stolen directly from Windows. - the correct way to respond to this is to not, but the next best thing I can think of is something like this...

      1) stolen ??? - you mean like M$ did you apple, visa vi Xerox? Or do you mean stolen as in how microsoft is trying to steal market share from AOL, or any other media/content provider?

      2) Have you heard of a little technology called X11? please read up on it. I think you will find that it's past has very little to do with micro$oft

      I know the AC that posted that will never read this. And anybody that might agree with me, could easily say it better, but I feel better now.


      I don't hate Microsoft, but... never mind.

  23. It won't load by Tuxinatorium · · Score: 0, Redundant

    That site won't load. The slashdot effect probably made it crash, or slow down enough to time out. Maybe you should test the links before you post them.

  24. You're missing the point by Tuxinatorium · · Score: 1

    It doesn't matter if toB is true or false, the expression is true anyway, but it takes 3 long boring hours to figure it out (rather like Visual Basic).

  25. to suck or not to suck by hex1848 · · Score: 1

    that is the question

  26. Yes, It Rhymes In The Original Language by SEWilco · · Score: 1

    Yeah, that does rhyme in the original Klingon.

  27. gcc hellow.shks by xcomputer_man · · Score: 1


    #include <romeo.h>
    #include <juliet.h>
    #include <performance.h>

    int main(void *scene) {

    enter(_romeo + _juliet);
    printf("Behold, thou seest the world");
    exeunt(romeo);
    exeunt(juliet);

    render(theatre);
    }

    1. Re:gcc hellow.shks by pjpII · · Score: 1

      Might I point out that the function exeunt(actor a,actor b,...,exit_direction c) doesn't accept a single argument. You'd get the compiler error: "Syntax error: Verb-noun agreement incorrect" Exit(actor a, exit_direction b) would be a better function to use for a single person.

      Latin, Shakespeare, and programming. What more could a geek want?

    2. Re:gcc hellow.shks by Anonymous Coward · · Score: 0

      you didn't return an int

  28. Object oriented Glagolithic in 21 days! by Owensellwood · · Score: 1

    Never fear, slashdotties. I am, as always, compelled to explain the joke for those lacking your encyclopedic knowledge of computer science.

    GLAGOL 61 was the forerunner of several undeservedly obscure computer languages, such as Barfy, SNET, and %++. Inspired by an incident (recorded in a humorous note in the Journal of the ACM by Dr. Harry Buttle) in which a moth was squashed by the print head of a primitive Sperry "wrecking-ball" teletype, Buttle invented the insect-oriented programming paradigm and created a language for the representation of algebraic and algorithmic formulae whose symbols consisted exclusively of

    vowels, used as reserved key-letters, and

    bugs squashed on the page.

    GLAGOL (short for GeneraL AlGOrithmic Language) used a specially designed terminal whose printing element was a modified flyswatter. Used in a bug-filled room (the prototype was set up in a dormitory shower room at William and Mary that had a broken window), it required the use of rubber type to set vowels. Later, the rubber-type mechanism was abandoned in favor of a carriage-mounted Dymo labelmaker. GLAGOL 61 also required special processing hardware for optimized execution. Source code was represented internally by larval grubs, and executable code by pupae, nestled in a unique "honeycomb store" on a rotating surface of uniform negative Gaussian curvature, which doubled as an element in the machine's analog differential analyzer, and as an occasional dressmaker's dummy, eventually leading to a grotesque incident which I shall not offend the reader's sensibilities by recounting.

    GLAGOL 61's economy of expression may be glimpsed in the following two-line decimation algorithm for a fast Fourier transform [I have translated the insect splotches to ASCII as best I can]:

    (random stream of Glagol doesn't pass Slashdot's "lameness filter." Its painful but true

    Rarely has the essence of an algorithm shone through so clearly on the printed page; of modern languages, only APL is comparable.

    --
    -K
    1. Re:Object oriented Glagolithic in 21 days! by xenocidex · · Score: 1

      Never fear, slashdotties. I am, as always, compelled to explain the joke for those lacking your encyclopedic knowledge of computer science.

      Don't worry, the only thing I fear is your ego.

      --
      There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.
    2. Re:Object oriented Glagolithic in 21 days! by Anonymous Coward · · Score: 0

      Yes, very witty. Too bad you didn't write it, and didn't give credit to the original author, Matt McIrvin.

      http://world.std.com/~mmcirvin/kibology/glagol.h tm l

  29. Temporary mirror by jooon · · Score: 5, Informative

    We didn't expect the slashdot effect (well, not so soon anyway ;-), and our WikiWiki certainly didn't, so the web server died. So, we set up some temporary, but not complete mirrors. The source, documentation and examples are here, but it lacks the lively and lovely Wiki discussion.

    http://spl.pu240.com

    http://cgi.student.nada.kth.se/~d98-jas/shakespear e/

    --
    Jon Åslund (one of the authors)
    1. Re:Temporary mirror by Pilferer · · Score: 2, Funny

      >We just got slashdotted, our wiki died and this

      You killed the wiki! YOU BASTARDS!

      (Another reason /. should cache...)

    2. Re:Temporary mirror by jooon · · Score: 1

      > (Another reason /. should cache...)

      Great idea. Google caches every page it finds, slashdot doesn't even cache the few linked pages of the articles it has. I don't read slashdot very often, or at all actually, but from the reactions on this page and from some e-mail I have received, this seems the happen a lot.

      --
      Jon Åslund

  30. Neat, but... by jejones · · Score: 2, Funny

    ...will there be a version letting one write in the original Klingon?

    1. Re:Neat, but... by thoughtstream · · Score: 2, Interesting
      ...will there be a version letting one write in the original Klingon?

      Well...kinda. I demo'd the forthcoming Lingua::tlhInganHol::yIghun Perl module at YAPC::NA last June. It will hit the CPAN in a few weeks time.

      With it you'll be able to implement programs like Eratosthenes' well-known "Death Challenge for Primes" in the original Klingon:


      #! /usr/bin/perl

      use Lingua::tlhInganHol::yIghun;

      ###### mI'wa'DIchvaD 'eratoSHeneS HeghqaD #####

      <mI' tIn law': > yIghItlh!
      mI'tInwIj laDDaqvo'Hal yIlaD nob!
      mI'wa'DIchmeywIj cha' mI'tIn chen nob!
      {
      mI'wa'DIchmeyvaD { 'oH gheD chuv! } mI'wa'DIchmey tIwIv yInob!
      gheD <<\n>> ghItlh!
      } gheDvaD mI'wa'DIchmeyvaD yInIH yInob teHtaHvIS!


      Damian
    2. Re:Neat, but... by mvdwege · · Score: 1

      Looks like completely ordinary Perl to me.

      Sorry, couldn't resist :)

      Mart
      --
      "I know I will be modded down for this": where's the option '-1, Asking for it'?
    3. Re:Neat, but... by otomo_1001 · · Score: 1

      ROTFLASTC

      HAHAHAHA

      Mod parent up.

    4. Re:Neat, but... by Phroggy · · Score: 1

      Question:

      How did you get Perl to accept the apostrophe as a letter, instead of treating it as a quote mark?

      --
      $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
      $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
    5. Re:Neat, but... by thoughtstream · · Score: 1

      How did you get Perl to accept the apostrophe as a letter, instead of treating it as a quote mark?

      Apart from being a string delimiter, apostrophe was also the package name separator in Perl 4 and has been kept on in that role (for backwards compatibility only) in Perl 5.

      That is, the following are synonyms in Perl 5:


      sub Phroggy's_Question { return "???" }

      sub Phroggy::s_Question { return "???" }


      So I could have used an apostrophe in any Perl identifier, so long as I didn't care which package the corresponding referent ended up belonging to.

      However, Klingon has a very different grammatical structure from Perl -- Klingon imperative verbs are RPN, whereas Perl subroutines use a prefix notation.

      So I needed to use a source filter to translate the grammatical structure. Since I was translating anyway, it was quite easy to include specific handling of glottal stop apostrophes as word characters.

      Of course, that also meant I couldn't use apostrophes as string delimiters. But that was okay, since I had already decided that the pach ("talon") and pachmey ("double talons") delimiters:


      <qo' nuqneH> yIghitlh!---> print 'qo\' nuqneH';

      <<qo' nuqneH>> yIghitlh!---> print "qo' nuqneH";


      were more in keeping with the Klingon mindset anyway ;-)

      Damian

  31. Shakespeare & Chef vs. DeCSS by geophile · · Score: 2

    I wonder what the MPAA would do if 2600 published DeCSS translated into one of these languages.

    1. Re:Shakespeare & Chef vs. DeCSS by Lars+T. · · Score: 1

      Imagine a Beowulf cluster of posts looking for a Shakespearean version of DeCSS.

      --

      Lars T.

      To the guy who modded me down from perfect to terrible Karma - Apple haters still suck

    2. Re:Shakespeare & Chef vs. DeCSS by ZxCv · · Score: 2

      Imagine a beowulf cluster of moron posters on slashdot that have to find some way to relate a beowulf cluster to every story...

      --

      Perl - $Just @when->$you ${thought} s/yn/tax/ &couldn\'t %get $worse;
  32. Re: Oh, yeah? Well, up yours! by Futurepower(tm) · · Score: 0, Offtopic


    Have you ever noticed how kind and considerate Slashdot readers are?

    --
    Bush's education improvements were
  33. Re:Bite me you rabid weasel... by Anonymous Coward · · Score: 0

    But seriously. How do I include juliet?

    Beat her over the skull with a lead pipe until you can include her.

  34. Other Ideas by Zipididee · · Score: 1

    Now if this can be done with spanglish or ebonics I will be really impressed.

  35. It's still easier to read than Perl by Anonymous Coward · · Score: 0

    It's still easier to read than Perl.

    What we really need isn't a shakespeare language, it's a burroughs language.

  36. Not a compiler? by p3d0 · · Score: 3, Insightful

    Just because something uses C as its output language doesn't mean it's not a compiler. If it scans and parses text to build an abstract syntax tree like a duck, then generates intermediate code which gets optimized like a duck, then outputs the result in some target language like a duck, then it's a duck, regardless of which target language is used.

    C is actually quite a popular output language for compilers, because it means they don't have to do register allocation.

    --
    Patrick Doyle
    I mod down every jackass who puts his moderation policy in his sig. Oh, wait a sec....
    1. Re:Not a compiler? by Imperial+Tacohead · · Score: 1

      If it scans and parses text to build an abstract syntax tree like a duck...

      Uh, which is to say, not at all?

  37. you do want bitwise or! by Anonymous Coward · · Score: 0
    (a || ! a) is always 1, which is boring and doesn't answer the question.


    (0x2b | ! 0x2b), however, yields the value 0x2b, which answers the question perfectly.

    1. Re:you do want bitwise or! by Anonymous Coward · · Score: 0

      Hmmmm... In binary isn't that
      (00101011 | 11010100), which is just (11111111)?

      (0x2b | !0x2b) = 0xff?

    2. Re:you do want bitwise or! by Anonymous Coward · · Score: 0

      Stupid stupid stupid. ! isn't bitwise not.. Ugh. Sorry for the noise.

  38. Have they reserved the movie rights? by perc · · Score: 1

    I'd love to see some movies made of some SPL programs.

    Leo di Caprio might actually be able to act if all he had to say was "Speak thy mind!"... but the dirty codpieces and square roots of lying pigs-offal might get him down a bit.

    -Perc

  39. Will Would be Proud by Ryan+Amos · · Score: 1

    This gives new meaning to those "Code Poet" shirts...

    -Ryan

  40. *snort* by Anonymous Coward · · Score: 0
    Amazing what CompSci-students can create when they really should do real work.



    Slashcode, for example.

  41. Natural lang processing isn't real work? by Lethyos · · Score: 2

    Short-sightedness on the part of our story poster here. I think natural language processing, or at least work in its direction is "real work". Especially since if computers are going to be fully (in the sense of casual use the same as a telephone) adopted by our society in the future, they'll have be more human-compatable. (For those on /. that didn't realize it already, most average people are still afraid of PC's.)

    When you can dictate instructions to your machine - whether it's 16th century English, or modern Nihongo - the world will be a better place. Steps like this will help lead us to the elimination of these primative and clunky UI's and I/O devices we're currently attached to in favor of elegant, natural communication. Age of intelligent machines, anyone?

    --
    Why bother.
    1. Re:Natural lang processing isn't real work? by joto · · Score: 3, Insightful
      Short-sightedness on the part of our story poster here. I think natural language processing, or at least work in its direction is "real work".

      Nope, this has nothing to do with natural language processing. If you had read the manual you would understand that as well. It is a fairly simple language quite similar to the original basic-dialects, with a lot of syntactic sugar. Adding syntactic sugar has very little to do with natural language processing.

      But I'm sure it was fun, and that they learned something in the process of creating it, so I wouldn't call it worthless...

    2. Re:Natural lang processing isn't real work? by Jimbo+Braddock · · Score: 2, Informative

      I'm sorry that a lot of people seem to misunderstand my attempts at "so called" humor. Of course I think the two SPL creators (who are friends of mine) have done real work.

      Maybe not useful work (as in creating peace, ending world hunger etc etc) for our society at large, but interesting, funny and cool work.

      The language grew out of a lab assignment in a syntax analysis course at our school. If viewed as a lab assignment, SPL is probably a little more work than the course coordinator demands :-). That's all I meant.

      /Erik

      --
      mailto:erik@tjernlund.net | http://erik.tjernlund.net
      "I was so much older then. I'm younger than that now"
  42. Re:Sad News... by Anonymous Coward · · Score: 0

    This is completly false, the device was from India.

  43. ideal language for DeCSS by mj6798 · · Score: 1

    This seems like the ideal language for DeCSS--even a liberal arts educated judge must see that such a "program" constitutes some form of literature.

  44. Umm.. what about AppleScript? by etceteral · · Score: 1
    Some will recall Hypertalk, for example, as the language the original Myst game was programmed in. Only some will recall, however, inasmuch as it never got terribly far off the ground. Other natural languages haven't faired much better.


    Umm.. what about AppleScript? It was based on many of the same elements and ideas of HyperTalk, but extended to a system-wide metaphor. In fact, with Apple's OSA (Open Scripting Architecture), AppleScript has gotten to be pretty darn useful.


    Apple's probably got the best implementation of a natural language parser around right now. With the right extensions and coding, it could serve very easily as a great meta-language for programming.

    --

    ------------
    "...and Maddest of all, to see Life as it Is, and not as it Should Be."

  45. These people can't do math by Anonymous Coward · · Score: 0

    "...the difference of 4 and -64 is 60..."

    note that in the documentation the '-64' is an image, so having seen this they might change that. the difference of 4 and -64... 4 - -64 = 4 + 64 = 68. the sum of 4 and -64 is -60 however, which might be what they were thinking of.

    mayhaps they obfusciated their math?

  46. Re: by Anonymous Coward · · Score: 0

    Yes, it would be possible. Of course the implementation would be very difficult, but it would be very interesting to try your suggestion. Somebody mod this post up, that question isn't offtopic at all!

  47. the other extreme by matrix0040 · · Score: 1

    i kindof liked Brainf**k ... this is the other extreme !!!

  48. WARNING! GOATSE.CX LINK! by Anonymous Coward · · Score: 0

    Warning! DO NOT click on those links, this is a troll posting links to goatsex!!!

    1. Re:WARNING! GOATSE.CX LINK! by Anonymous Coward · · Score: 0

      this is a link to goatsex.

  49. I wouldn't have thought it possible... by Anonymous Coward · · Score: 0

    ...wow, a language that makes COBOL look concise!

  50. World's first recursive insult by tulare · · Score: 3, Funny
    Lol!
    You lying stupid fatherless big smelly half-witted coward!
    You are as stupid as the difference between a handsome rich brave
    hero and thyself!
    The way the language sets up insults just kills me. I like the above. See the title to this post and think about it :)
    --
    political_news.c: warning: comparison is always true due to limited range of data type
    1. Re:World's first recursive insult by tulare · · Score: 2

      Before you flame me, I know the code coming out of this isn't recursive at all. But the insult certainly is. Gives one ideas, doesn't it?

      --
      political_news.c: warning: comparison is always true due to limited range of data type
  51. Yes! by Anonymous Coward · · Score: 0

    There IS a Kligon language!

  52. Re:Bite me you rabid weasel... by Anonymous Coward · · Score: 0

    > This should be posted to comp.lang.c, the newsgroup
    > where everything is off topic.

    Not needed, c.l.c will come here for you:-)
    Here's a possible reply.

    ---
    > #include
    > #include
    > #include

    These are non standard C includes. If your system
    supports these includes your post is offtopic in c.l.c,
    otherwise you must not use angular brackets to
    include them.

    > int main(void *scene) {

    This is an incorrect declaration for main().
    The standard C main function accepts an
    int and a pointer to pointer to char, or optionally
    no arguments, and returns an int. So:
    int main(void) /* or */
    int main (int argc, char *argv[]) /* or */
    int main (int argc, char **argv)

    > enter(_romeo + _juliet);
    > exeunt(romeo);
    > exeunt(juliet);
    > render(theatre);

    These are non standard C functions. If your system
    supports them, your post is offtopic in c.l.c, otherwise
    you must provide their prototype and definition.

    > printf("Behold, thou seest the world");

    You don't flush the output buffer here; the program
    could easily print nothing. Add a \n at he end of the
    string, or a fflush(stdout); after the printf().

    > }

    You don't exit properly from the main function.
    Put a return EXIT_SUCCESS; to let the system
    know that you aren't exiting for an error.
    ---

    This was intended only as a joke. I -love- c.l.c.
    It helped me a lot, and I understand why they're often
    rude against offtopic posts (look at how many msgs
    are posted there every day).

  53. Amazing by chrysalis · · Score: 2

    I just love these funny languages. Nobody will ever use them, but after reading this, you don't feel like programming any more. The C language looks so crude, so cryptic, so non-human friendly after that...
    There's a similar project for Perl called Lingua::Romana::Perligata . This is an awesome module written by Damian Conway, that let you program in Latin. Totally crazy.

    --
    {{.sig}}
  54. Has anyone considered.... by Anonymous Coward · · Score: 0

    That you could use the same source for generating different programs?

    Consider how much of the text is thrown away by the translator. Now write a different translator to use some of those pieces and throw away other ones.

    By combining specifications you could derive different programs from the same literary source.

  55. real work by mrfiddlehead · · Score: 1

    Amazing what CompSci-students can create when they really should do real work.


    I'll assume, for your sake, that you were trying to be cute and that the above was a misdirected quip with the aim to amuse. But the truth is that when I was in university I did some of the most creative work that I ever did, granted it was mostly useless but it did prepare me for the real world.


    Life is not all work. Arbeit macht Frei. Not always.

    --
    :wq
    1. Re:real work by daveman_1 · · Score: 1

      Arbeit macht Frei?

      Ouch.

      Fishing usually set me free.

      --
      Russian Russian Russian RussianDollSig DollSig DollSig DollSig
    2. Re:real work by Jimbo+Braddock · · Score: 1

      Yes. Of course I was only trying (and failing) to be funny. I'm also a CompSci-student here in Stockholm and the SPL creators are friends of mine at The Royal Institute of Technology.

      Mr. Torvalds and Linux is another pretty good example of what university students can create when they probably should use their time to "real school work".

      As I said. Only trying to be amusing. Next time I'll just submit a URL.

      /Erik Tjernlund

      --
      mailto:erik@tjernlund.net | http://erik.tjernlund.net
      "I was so much older then. I'm younger than that now"
  56. So how many monkeys would it take ... by pyramid+termite · · Score: 1

    ... to write a day's worth of posts to Slashdot?

    1. Re:So how many monkeys would it take ... by roie_m · · Score: 1

      Exactly 458232.

    2. Re:So how many monkeys would it take ... by einhverfr · · Score: 1

      ... to write a day's worth of posts to Slashdot?

      Depends. Are they MCSE's?

      --

      LedgerSMB: Open source Accounting/ERP
    3. Re:So how many monkeys would it take ... by ConceptJunkie · · Score: 2

      About 3000 if they stay at their keyboards. About 200 if they sit around and masturbate and throw poo.

      --
      You are in a maze of twisty little passages, all alike.
    4. Re:So how many monkeys would it take ... by Anonymous Coward · · Score: 0

      Obviously the same number of monkeys that write the actual posts in the first place...

  57. This is pretty cool! by TheLinuxWizard · · Score: 1

    Just another example of the kind of cool stuff that only comes about because of GNU and free software!! Way to go, guys!! I bet microsof~1 would never come up with something this cool! Who wants to write a linux kernel config module using this???

    --
    Linux Rulez!!!!!!!!!!!
  58. Global File System (GFS) Rewritten in SPL by Captain+Zion · · Score: 2
    Posted by Hemos on Fri August 31, 17:01 from the speak-thy-mind dept.

    thk writes "Sistina, the main developer of the Global File System, has changed its language from C to SPL (Shakespeare Programming Language). SPL is basically a language to make the source code for programs written with it, resemble a Shakespeare play. Interestingly, the change came just after beta testing, leaving some users a bit miffed. The GFS is an important component of some GPL clustering projects, such as Compaq's SSIC project. The Sistina press release is here."

  59. This is weird! Weird! Weird, I say! by WWWWolf · · Score: 3, Interesting
    You know, just yesterday I fixed some table generation problems in this small program of mine. I commented the offending piece of code better, adding silly comments like "Dramatis Personae" before the variable declarations and stuff like "I Act" before each part of the code...

    ...and next day, someone has Shakespeare Programming Language in Slashdot.

    Weird. Really weird.

  60. Coverup! by manon · · Score: 0

    I bet this is just a nice coverup to keep coding during the course of English literature.

    --
    42 + 1 = 42
  61. college students? real work? by Lhadatt · · Score: 1

    What do you mean, real work? They're prevented from doing such by their own fluffin faculty! If it's not inane projects with no focus on real-world applications, it's teaching Java to beginners.. Our college system sucks. :P

    --
    -----------
    POiT!
  62. Esoteric Programming Languages by jasonzzz · · Score: 1
  63. Note for the metaphorically impaired by p3d0 · · Score: 2

    Duck == Compiler

    --
    Patrick Doyle
    I mod down every jackass who puts his moderation policy in his sig. Oh, wait a sec....
  64. Port DeCSS! by beej · · Score: 1

    Port it now! "No, you can't say those words!"

  65. weird languages by huh_ · · Score: 1

    Just so you know, this site has links to all kinds of weird programming languages.

  66. I like the references by JabberWokky · · Score: 2
    I got the Rocky Horror reference (4711), so I assume that the 17 is a reference as well... either just a nice prime, or (hopefully), the number in the Dragerian series by Stephen Brust?

    Incredible language, by the way. Really really nifty, and something I will use as an example when I'm trying to define the term "hacker".

    --
    Evan

    --
    "$30 for the One True Ring. $10 each additional ring!" -- JRR "Bob" Tolkien