lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


You might find this thread relevant:
http://lua-users.org/lists/lua-l/2008-05/msg00364.html
Thank you for link, forgot to search before post.

The 2nd one mentioned there still works (71 chars).
You can remove the semicolons to make it 69 chars.

s=[[io.write('s=[','[',s,']',']',s)]];io.write('s=[','[',s,']',']',s)
Almost same variant I wrote. May shrink this to

s=[[io.write('s=[[',s,']',']',s)]]io.write('s=[[',s,']',']',s)

62 chars. (In my variant I used print() and ".." so it was 64 chars).

From the same thread, you have peter cawley's
http://lua-users.org/lists/lua-l/2008-05/msg00379.html
Which also still works (44 chars):

s="s=%qprint(s:format(s))"print(s:format(s))

Wow, really smart and sexy! Posted this variant to author of that quine page. But it looks like site is abandoned, last news dated 1999-06-21.