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."
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.
Goat sex free since 2001
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.
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:
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.
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:
Damian
Weird. Really weird.