3 Replies - 3116 Views - Last Post: 21 July 2013 - 04:08 PM

#1 xclite  Icon User is offline

  • LIKE A BOSS
  • member icon


Reputation: 894
  • View blog
  • Posts: 3,153
  • Joined: 12-May 09

Quine relay

Post icon  Posted 16 July 2013 - 01:07 PM

I hope this is the right forum - it certainly doesn't fit in any of the language-specific forums.

A quine is a program that prints its own source.

This crazy individual wrote a "quine relay." In essence, the first program outputs the source code to the next, in another language, which prints the source code to yet another program, in yet another language, and so on, through 50 languages, until the 50th language outputs the source of the original program.

Pretty neat exercise in metaprogramming and cleverness:

https://github.com/mame/quine-relay

Is This A Good Question/Topic? 2
  • +

Replies To: Quine relay

#2 Curtis Rutland  Icon User is online

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 4436
  • View blog
  • Posts: 7,707
  • Joined: 08-June 10

Re: Quine relay

Posted 17 July 2013 - 10:59 AM

Yeah, saw that one on reddit yesterday, it was pretty neat. Completely pointless, but a really cool and challenging exercise.
Was This Post Helpful? 0
  • +
  • -

#3 Skydiver  Icon User is online

  • Code herder
  • member icon

Reputation: 3469
  • View blog
  • Posts: 10,700
  • Joined: 05-May 12

Re: Quine relay

Posted 21 July 2013 - 12:39 PM

I would truly be impressed if the quine "drew" generated Logo source code, and the what the Logo source code rendered using turtle graphics would be source code of the next language. :)
Was This Post Helpful? 0
  • +
  • -

#4 cfoley  Icon User is offline

  • Cabbage
  • member icon

Reputation: 1940
  • View blog
  • Posts: 4,027
  • Joined: 11-December 07

Re: Quine relay

Posted 21 July 2013 - 04:08 PM

Using Logo to output in Piet would be pretty cool.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1