TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Shakespeare Programming Language

39 点作者 aohtsab将近 15 年前

9 条评论

tjarratt将近 15 年前
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.
mkramlich将近 15 年前
I can't wait to compile Hamlet with it. I've been wondering for years what that script does.
alain94040将近 15 年前
Definitely deserves an A+ grade for turning in such an assignment.
makmanalp将近 15 年前
Beautifully convoluted.
aufreak2将近 15 年前
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
ricaurte将近 15 年前
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. :)
elblanco将近 15 年前
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>
nitrogen将近 15 年前
I like how easily the arithmetic can be mapped onto a stack or tree structure.
pigbucket将近 15 年前
Poetry is code.