TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Shakespeare Programming Language

39 pointsby aohtsabalmost 15 years ago

9 comments

tjarrattalmost 15 years ago
I laughed when it occurred to me that, since their parser only accepts variables named after a character from a play, Shakespeare programs are limited by having a finite number of variables and storage, but laughed even harder when reading their solution to this problem, stacks.<p>Each variable is a stack that can push and pop, with no error handling:<p>"Trying to pop when the stack is empty is a sure sign that the author has not yet perfected her storytelling skills, and will severly disappoint the runtime system."<p>Fantastic. All the user-friendliness of assembly indeed.
mkramlichalmost 15 years ago
I can't wait to compile Hamlet with it. I've been wondering for years what that script does.
alain94040almost 15 years ago
Definitely deserves an A+ grade for turning in such an assignment.
makmanalpalmost 15 years ago
Beautifully convoluted.
aufreak2almost 15 years ago
I'm still laughing hard! These guys deserve to graduate right now ... or maybe a perpetual grant to stay in school and write such assignments :D Excellente!<p>Edit: Just noticed 2001
ricaurtealmost 15 years ago
This is amazing! I took a Shakespeare class in college, and it would have been awesome to have given my instructor some source code for assignments. :)
elblancoalmost 15 years ago
Reminds me a bit of Haifu <a href="http://www.dangermouse.net/esoteric/haifu.html" rel="nofollow">http://www.dangermouse.net/esoteric/haifu.html</a>
nitrogenalmost 15 years ago
I like how easily the arithmetic can be mapped onto a stack or tree structure.
pigbucketalmost 15 years ago
Poetry is code.