8/16/2004
The ActionScript Jabberwocky
It may not be apparent from many of the random postings I've made here, but one of the main reasons for the existence of Turdhead.com is to provide a space for creative Web-based art, writing, animation and of course, lens flare effects. A turdhead is, after all, not only a geek (of which the internet is full), but also a generally well-read, cultured and sociable sort — a geek that occasionally makes it out into the real world, not only by accident but occasionally even under their own free will.
With that in mind, I have decided to revel in my geekdom and admit that the following sort of thing actually DOES provide me with some sick sense of nerd amusement. It will probably appeal only to fellow Flash programmers, and even then perhaps, only to the true Actionscript aficionado, but regardless, we (i.e., I) hope you enjoy the following:
In the time-honored geek tradition of translating great works of literature into unintelligible crap, I present The ActionScript Jabberwocky:

By the way, if you too are a huge Actionscript geek and/or Turdhead and want to express your own literary dreams, drop us a line! Or better yet, get your very own copy of the ActionScript Jabberwocky on a poster, T-shirt, mouse pad or baby!
Limited time only! Get your poster now!
Addendum: You may also want to check out the follow-up article to this post, and see what other people with too much time on their hands came up with in the forums.
94 Responses to “The ActionScript Jabberwocky”
So what do you think?
Please note that to protect our readers from spammers and other sleazeballs, we moderate all comments on this board. (And be assured, we'd sooner die than sell, give away or otherwise sully the reputation of your email address!)



My god, whats next.. befunge jabberwocky?
Well, If I remember the poem correctly, its beware the jabberwock MY son…
I have no knowledge of actionscript, BUT, would it be expressed better as…
self.son.beware(jabb….)
or something similar?
Beautiful!
What the hell is this?
Nice one! Flash is cool!
Methinks you have been slashdotted
Jabberwocky
Uh oh, your getting slashdotted. Well no matter, good luck with your hosting bill. I do notice that AS is quite similar to PHP. Neat
Hmm..comments broken or just pending for moderation? Prolly pending for moderation. Nice to see another wordpress user though!
You need to get a life!
This is appalling, even for geeks….
Lovely stuff! Nicely done, found this on Slashdot btw, so might be an idea to batten down the hatches on your server
/.tted!
The ActionScript JabberwockyThis made me smile: The Jabberwocky in ActionScript (Macromedia Flash’s scripting language). It’s another one of those that you’ll really need to be a proper geek to appreciate, but it’s really quite good.
Perhaps you need to be a Lewis Carrroll…
You’ve just been slashdotted. Congrats!
Fantastic!
Memorized that poem in 5th grade and remember it to this day.
Also did a bunch of Actionscript just last night for a webcam and used the poem for a password.
Uncanny timing!
ha, kinda makes me want to fire New Adventure Shell
You just demonstrated so elegantly why I prefer imperative/procedural languages (perl, PHP, K&R C, assembly) over object-oriented (java, javascript, Python). I want to tell the computer how to process my data, not tell the data how to get processed by the computer!
LMAO… ok ive seen sht written a million different ways.. but seriously man you have too much time on your hands to rite shit like this lolz..
this would have to be the funniest most strange yet understandable code ive ever seen.. (and ive seen some strange ones… (computer stupidites).
God man find something productive to do! LMAO
Celticknight
dear god….
Cool! Oh, and FIRST!
wow, and I thought I had too much free time…
very cool / funny….and you’ve been /.’d you know
Aceness!
Do you do requests?
Ha! That’s great.
PS - The guy who wrote comment #19 should slit his wrists. ROFLOLZZZZZ!!!!!1111
n0×00b sez: Hey, I tried to compile this, but it ain’t workin’! Can’t find no actionscript compiler within my portage tree, maybe you could do a port to perl or provide an ebuild for it…
Nice Work. WHat’s Next, The Bible Code or maybe I got it The Davinci Code LOL…..
you need to update this…maybe bring it into the 21st century…
“T’was Brillo and the G.E. Stoves
Did Proctor Gamble in the Glade,
All Pilsbury were the Tastee loaves
And in a Minute Maid”
-Mad Magazine
anyway…you get the idea

Massive cool. BTW, the Jabberwock came “whiffing” not “whiffling”, and the blade is a “vorpal blade.” Perhaps V2 could make those changes.
Looks like I passed the nerd test because I did not understand any of that crap.
Agreed… No clue what just transpired. I guess I was out on my BMX too much as a kid
Nice piece of code. Very Funny LOL!
you rule. i have to seriously consider getting one of them posters.
Doesn’t really work … son.sword has type set to “vorpal” before use (”he took his vorpal sword in hand”) but not son.blade (”The vorpal blade went snicker-snack!”). Isn’t that going to cause problems? Can you alias son.blade to son.sword somewhere? Am I taking this too seriously?
The ActionScript JabberwockyThis is really geeky but merits a post: The Jabberwocky, as written in ActionScript. Anyone got any more of these?…
I did a term paper on this poem in 9th grade and found out that the words in the poem do mean things. I believe “slithy toves” means shy badgers, and “borogroves” means turtles. I may be a bit rusty, however, it has been 16 years.
I remember that I spent most of my time writing the thing trying to come up with words that would all meet at the right hand margin so it would look nice, and I recall even changing my letter spacing to get it all lined up. Great job. Brought back some fun memories of obsessive compulsive behavior.
*bows before you* I’ve always wanted somone to do this! You r0×0r!
Damn, does the fact I found that great make me a geek?
And what about the fact that I followed it even though I’ve never looked at ActionScript before?
Great work, as an actionscript junky i appreciate the effort, and the creativity to fit the poem into an AS framework.
Hmm…a consideration, instead of son and blade couldn’t he invert it and access it with _parent.
LOL
In what class is beware() and snicker_snack, etc defined in. i just compilation error after error.
I
LOVE
THIS
!
haha! very nice. must have the tshirt.
Very interesting indeed. I read the poem many many many years ago and I forgot it.I’d like to see the original posted with it, for reference.
Good job
brilliant, you should make it compile though
Yes yes he’s been slashdotted, he gets it. I’d absolutely love it if that happened to my site, and this one’s holding up perfectly well.
I SO wish I’d read that book now, cause I’m an actionscript programmer and I’d probably be laughing my arse off even more than I already am. And, hey, I think *real* actionscript junkiness would be if someone (besides me) blotched a few sprites, compiled this and watched what happens.
It is “whiffling”, not “whiffing”, canticle. I should know, I recited it for a talent show. This is completely awesome!
Congrats, you’ve just been slashdotted!
‘Twas brillig, and the slithy toves
Did gyre and gimble in the wabe:
All mimsy were the borogoves,
And the mome raths outgrabe.
“Beware the Jabberwock, my son!
The jaws that bite, the claws that catch!
Beware the Jubjub bird, and shun
The frumious Bandersnatch!”
He took his vorpal sword in hand:
Long time the manxome foe he sought –
So rested he by the Tumtum tree,
And stood awhile in thought.
And, as in uffish thought he stood,
The Jabberwock, with eyes of flame,
Came whiffling through the tulgey wood,
And burbled as it came!
One, two! One, two! And through and through
The vorpal blade went snicker-snack!
He left it dead, and with its head
He went galumphing back.
“And, has thou slain the Jabberwock?
Come to my arms, my beamish boy!
O frabjous day! Callooh! Callay!’
He chortled in his joy.
For those who don’t know the original poem well, here’s the original text, copied from http://www.jabberwock...bber/jabberwocky.html
‘Twas brillig, and the slithy toves
Did gyre and gimble in the wabe;
All mimsy were the borogoves,
And the mome raths outgrabe.
I have no idea how to “run” this, but I am curious if a well placed syntax
error would produce the last 50 pages of Ulysses.
sorry, obviously not the correct one to understand any of this but “Coodos” on the excellent responses. As for the guy who left comment #19- He must not have too much to do either if he is reading your script and has nothing better to do but down your achievement. Me thinks he may have ISSUES….. Luv ya lots! deettle
to quote some other people
“I thought I had no life”,
but still, that is seriously cool
[…] Tuesday, August 17th 2004
The ActionScript Jabberwocky
The ActionScript Jabberwocky. Mmmmhmmm.
Late evening, in Seen Online, Asides […]
/. I finally got it after the 52nd post.
Please post this as plain text! It’s sick and lovely!
viod Comment;
{
int count = 0;
char result;
while(laughing==TRUE && count < 100)
{
readagain(http://www.turdhead.com/index.php?p=21);
count++;
}
result = (type(comment));
return result;
}
Very cool.
Thought I never saw ActionScript before …
I must say it really has some coherent syntax.
Dude…Rock on.
cout<< “This sucksn”;
do { } while(1);
cout<< “Just kiddingn”;
Dude, I’m sure I agreed with the rest of these people who have posted…if only I could figure out what that means. Obviously, this is too advance for me. I’m gonna spend a little more time on it this weekend and try to figure it out. I really hope it’s as cool as all that! I can’t wait.
I always thought I was a nerd and spent years dealing with that fact. I don’t get it and now I’m worried I’m far more normal than I thought. Now I have to deal with that! Oh crap!
You have taken Actionscript to a new level. Thanks for sharing.
var brillig;
This variable is unused.
I’m not familiar with ActionScript - I believe it’s something from Macromedia (spit). To encode “‘Twas brillig” in Java, I think I’d have used notation something like “new Brillig().twas();”. And you’d need to import some non-existent library to obscure the fact that nobody really knows what most of the words mean. I agree with the commentators who say that the code should compile. That apart, it reads very nicely!
Great! Good sense, excellent nonsense. Surely brillig!
That is some good work, I too want to create literary works of code. So I am working very slowly on a geek novel which will use xml and shell scripting to describe the scenes/chapters etc. So far I have only got as far as a basic storyline idea.
As to geekdom. It is my opinion that a geek is what you describe as a turdhead and nreds are those who are unsociable and don’t get out.
damn! this is good
Added to Wikipedia (http://en.wikipedia.org/wiki/Jabberwocky#External_links).
ActionScript Jabberwockyhttp://www.turdhead.com/index.php?p=21
the son.blade of [”vorpal” blade went snicker snack] does not reference back to son.sword so “vorpal” is not present as an attribute in the class of blade and blade is not known as a sword per an association.
My assumption is that only a vorpal blade goes snicker snack whereas any old generic blade probably just goes wicker whack
Oh hay, looks like this page is on slashdot.
Very nice poetry. I felt a tear touch my cheek.
Brilliant!
Yes, do get out some more.
It made my day! Thank you! And now I notice it’s in binary as well -it’s just great!
ActionScript Jabberwocky and the sequelSo, the appealingly-named TurdHead blogger (time for self-esteem class, Turdy) wrote an ActionScript version of The Jabberwocky poem. It’s an amusing bit of geekery. Then it got Slashdotted, drawing a bunch of fire form people who consider ActionScrip…
Jabberwocky ReduxJabberwocky Redux: Last week’s ActionScript Jabberwocky got Slashdotted and such… good thing it was just a 150K JPG file instead of something with audio, or else bandwidth costs might have been high. Anyway, VeryVito is apparently very sorry to have…
Very funny indeed! Though I must say that your usage of global variables is not what I would call “best pratice”. Also most of the objects and methods are still undefined. For a start I’ve quickly thrown together a Kid class:
NB: Rest of comment moved to Turdhead forums (http://www.turdhead.c...ms/viewtopic.php?t=18)
Re: Post 49 by Glenn. Please forward name of your attorney. I laughed so hard at your
post I fell out of my chair and hurt my back. You have a dangerous sense of humor and
I sure hope you have a lot of insurance. I would like to thank you for your comments but
I won’t since my attorney has advised me it will jeapordize my law suit. But I’m really looking
forward to seeing you in court. Please don’t crack the judge up ’till I’ve been awarded
damages, plus a few million $ for pain, and suffering! John
Now when will these people learn, name ur varibles with apropiate names so u can upon them later on, honestly
[…] etc) as well as mental. Even though I’m not an ActionScript programmer, I still like The ActionScript Jabberwocky. And I’m not a Perl programmer (yet) but I may have to learn. There is […]
[…] nbsp;05 September 2004
The ActionScript Jabberwocky - Turdhead.com [del.icio.us/tag/art]
5:36:19 PM comment(com […]
This is ace, but I could really use a XUL Jabberwocky.
You people are freakin scary….
(chant with me) War and Peace…War and Peace…War and Peace!
i’m writing an english essay on the poem, this is the only thing i’ve found that has helped at all! seriousily good
stuff, wish i could do it!!!!!!
Now I remember why I left IT
Everyone who says that nerds should get out more are mad. If you had any more of a life you might not have created this masterpiece. I love it but like some people have said I’d like to see a complete version with methods defined and such. Nice though.
[…] real, honest-to-goodness, geek-fest in which the code itself becomes the poetry. (See the ActionScript Jabberwocky for an example of what we’re looking for.) As for prizes: What would a gee […]
import com.wonderland.time.*;
import com.wonderland.location.*;
import com.wonderland.fauna.*;
import com.wonderland.flora.*;
import com.wonderland.item.*;
public class Then extends Brillig implements ParentListener{
private Tove[] oTov = new Tove(”slithy”)[Tove.MAXCOUNT];
private Borogove[] oBor = new Borogove(”mimsy”)[Borogove.MAXCOUNT];
private Rath[] oRth = new Rath(”mome”)[Rath.MAXCOUNT];
private Jabberwock oJbrwk = new Jabberwock();
private Sword oSwrd = new Sword(true);
private Head oHd;
private boolean bResponse = false;
public Then(Person pSon){
int i;
int i2;
boolean bRsp = false;
this.setScene()
oJbrwk.append(new JabberwockJaws());
oJbrwk.append(new JabberwockClaws());
pSon.beware(oJbrwk);
pSon.beware(new Jubjub());
pSon.shun(new Bansdersnatch(”frumious”));
pSon.hand.append(Sword);
iLoc = pSon.startSearch(oJbrwk, Foe.MANXOME);
while(!oJbrwk.isIn(iLoc) && (pSon.getSearchTime() < Person.MAX_SEARCH_TIME) && !pSon.tired){
iLoc = pSon.nextSearch();
}
if(iLoc.getNearestTreeType == Tree.TYPE_TUMTUM){
oJbwrk.append(new Eyes(”flame”));
oJbrwk.whiffleTo(Woods.LOC_TULGEY);
oJbrwk.startBurble();
pSon.stand();
pSon.startThought(’uffish’);
while(pSon.getThoughtSubject != oJbrwk){}
pSon.stopThought();
for(i = 1; i <= 2; i++){
for(i2 = 1, i <= 2; i++){
oSwrd.goThrough(oJbrwck);
oSwrd.goThrough(oJbrwck);
oHd = oJbrwk.detach(”head”);
}
}
pSon.galumphTo(pSon.parent.Loc);
while(!bResponse){}
this.setScene();
}
}
public void parentJoy(){
if(oJbrwk = null){
pSon.setSpeechMode(Person.SPEECH_CHORTLE);
pSon.goTo(pSon.parent.getArms().getLoc());
pSon.parent.speak(new Day(”frabjous”).toString());
pSon.parent.speak(”Callooh!”);
pSon.parent.speak(”Callay!”);
}
bResponse = true;
}
public void setScene(){
this.theWabe();
for(i = 0; i < oRth.length; i++){
oRth[i].outgrabe();
}
}
public void theWabe(){
int i;
for(i = 0; i < oTov.length; i++){
oTov[i].gyre();
oTov[i].gimble();
}
}
protected class JabberwockJaws extends Jaws{
public void doBite(Object o){
o.setBitten(true);
}
}
protected class JabberwockClaws extends Claws{
public void doCatch(Object o){
o.setCaught(true);
}
}
protected class Sword extends Blade{
private int iShrp;
public Sword(boolean bVorpal){
if(bVorpal){
iShrp = Blade.DEFAULT_SHARPNESS;
} else{
iShrp = Blade.MAX_SHARPNESS;
}
}
public int getSharpness(){
return iShrp;
}
}
}
This is exactly the kind of thing I’ve been looking for, but when is someone going to design an English to Actionscript dictionary/phrasebook?
[…] Keep in mind, this is not a call for Flash interpretations of literary works (See Vidlit.com for that sort of thing), but a real, honest-to-goodness, geek-fest in which the code itself becomes the poetry. (See the ActionScript Jabberwocky for an example of what we’re looking for.) […]
good god.
Who was the original writer of this amasing poem
Caitlin, the original “Jabberwocky” was penned by Lewis Carroll in “Through the Looking Glass.”
I love the jabbowocky Poem!!!
At sch we have to make r own version and my hero is a secret spy agent!LOL!
[…] I’m thinking about ActionScript, this is as good a time as any to revisit the venerable ActionScript Jabberwocky. Enjoy. The ActionScript Jabberwocky, from […]