← All stories
● Covered by 1 source · 1 reportLow impact1 neutral

The Qlobe: A Ruby Quine That Rotates Its Output 45 Degrees Per Execution

🔄 Updated 23h ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • The Qlobe is a Ruby quine that self-replicates.
  • It rotates a textual globe in its output by 45 degrees per run.
  • Users can specify a custom rotation angle via command-line argument.
  • The quine uses Zlib for data compression and manipulation.

Introducing The Qlobe

Yusuke Endoh, known for creating specialized quines, developed "The Qlobe" for RubyConf. This quine is designed to be a "global" quine, meaning it is not specific to a particular language or locale beyond its Ruby implementation.

Rotational Output Mechanism

The Qlobe's primary feature is its ability to rotate a textual representation of a globe within its output. Each execution of the quine advances the globe's rotation by 45 degrees. This means that after eight executions, the globe will return to its original orientation.

The rotation angle is controlled by an internal variable, 'v', which is updated with each run. Users can override the default 45-degree rotation by providing an integer as a command-line argument, allowing for custom rotation increments.

Technical Implementation

The quine's code includes mechanisms for self-replication and the globe rendering. It utilizes Ruby's `eval` function to execute its own source code. Data compression and manipulation are handled using the `zlib` library, which is required for the quine's operation. The visual globe is constructed using character mapping and mathematical calculations to project a 3D shape onto a 2D text output.

Significance in Quine Development

The Qlobe demonstrates a creative application of quine principles by incorporating dynamic visual output. While quines are primarily self-replicating programs, this example adds an interactive and visually changing element to the concept, showcasing advanced programming techniques within the constraints of a quine.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~4 min · 3 stories · Nov 09

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

Yusuke Endoh created "The Qlobe," a Ruby quine that outputs its own source code while rotating a textual globe by 45 degrees with each execution. This quine can also accept a command-line argument to specify a custom rotation angle.