Thumbnail for {{ page.title }}

The shortest ooc quine

👋 This page was last updated ~12 years ago. Just so you know.

A few days ago I posted an ooc quine. But while browing HackerNews, I found an even shorter one. The shortest!

Here it is, in its full glory

Can’t see anything? That’s an empty file. It will compile and run just fine. ooc doesn’t require a main function - you can just shove code in there that will run at the program’s initialization. If there’s none, no big deal! It’ll just not run anything.

That’s one nice side-effect of simple design.

Comment on /r/fasterthanlime

(JavaScript is required to see this. Or maybe my stuff broke)