---
title: Filtered for escaping the simulation
date: 2022-09-22 10:03
tags: [filtered-for, teeny-weeny-virtual-worlds]
author: "Matt Webb"
pubDate: "Thu, 22 Sep 2022 10:03:00 +0100"
link: "https://interconnected.org/home/2022/09/22/filtered"
urlPrev: "https://interconnected.org/home/2022/09/16/queue.md"
urlNext: "https://interconnected.org/home/2022/09/29/interstellar.md"
---
# Filtered for escaping the simulation

_By {{page.author}} on {{page.pubDate}}._

### 1.

The Total Perspective Vortex.

> ... it is in theory possible to extrapolate the whole of creation - every
> sun, every planet, their orbits, their composition and their economic and
> social history from, say, one small piece of fairy cake.

Seeing it is horrific: "the Total Perspective Vortex can annihilate a man's
soul!"

Zaphod Beeblebox is put into the Vortex in _The Restaurant at the End of the
Universe_ by Douglas Adams, the sequel to _The Hitchhiker's Guide to the
Galaxy._

> He opened the door of the box and stepped in.
>
> Inside the box he waited.
>
> After five seconds there was a click, and the entire Universe was there in
> the box with him.

And... Zaphod survives.

IT TURNS OUT that Zaphod never actually went into the real Vortex.

Instead, earlier in the story, he had unwittingly stepped into a simulated
universe, entirely identical to this one (almost).

> [Zarniwoop] put the briefcase down and sat in another chair.
>
> "I am glad you followed instructions," he said, "I was a bit nervous that
> you might have left my office by the door rather than the window. Then you
> would have been in trouble."
>
> Zaphod shook his heads at him and burbled.
>
> "When you entered the door of my office, you entered my electronically
> synthesized Universe," he explained, "if you had left by the door you would
> have been back in the real one. The artificial one works from here."
>
> He patted the briefcase smugly.
>
> Zaphod glared at him with resentment and loathing.
>
> "What's the difference?" he muttered.
>
> "Nothing," said Zarniwoop, "they are identical. Oh -- except that I think
> the Frogstar Fighters are grey in the real Universe."
>
> -- Douglas Adams, [The Restaurant at the End of the Universe (Amazon)][1]

The other difference is that Zaphod is able to survive the Total Perspective
Vortex in Zarniwoop's simulated universe.

(It's quite the get-out-of-jail-free card to play. I'd be up for seeing more
retconned synthesised universes in other stories. Maybe it will displace the
_"yet it was all just a dream"_ trope someday.)

### 2.

Remember that bug in Xerox scanners that sometimes [silently replaced numbers
in PDF documents to make them compress better][2]?

The wildly powerful - but, it turned out, dangerously inaccurate - compression
format is called _JBIG2._

The JBIG2 format is actually a primitive computer language and, from these
basic parts, it is possible to implement a virtual computer which is then run
while the PDF is being decompressed.

And, since you're now running a full-blown computer inside the bit of your
phone that is responsible for decompressing images, you can write a program
that breaks its way out of that system and hacks your phone _from the inside._

From Google's _Project Zero_ lab, this is an insane and detailed breakdown of
how simply receiving an image as a text message could result in your phone
being hacked.

> JBIG2 doesn't have scripting capabilities, but when combined with a
> vulnerability, it does have the ability to emulate circuits of arbitrary
> logic gates operating on arbitrary memory. So why not just use that to build
> your own computer architecture and script that!? That's exactly what this
> exploit does. Using over 70,000 segment commands defining logical bit
> operations, they define a small computer architecture with features such as
> registers and a full 64-bit adder and comparator which they use to search
> memory and perform arithmetic operations. It's not as fast as Javascript,
> but it's fundamentally computationally equivalent.
>
> The bootstrapping operations for the sandbox escape exploit are written to
> run on this logic circuit and the whole thing runs in this weird, emulated
> environment created out of a single decompression pass through a JBIG2
> stream. It's pretty incredible, and at the same time, pretty terrifying.
>
> -- Google Project Zero, [A deep dive into an NSO zero-click iMessage
> exploit: Remote Code Execution (2021)][3]

### 3.

Back in 2003, Nick Bostrom suggested that we may be living in a computer
simulation.

[He summarises his argument:][4] looking into the future, we find that "there
would be vastly many more such simulated minds than there would be
non-simulated minds running on organic brains" -- and, by weight of numbers,
you and I are more likely to be simulated minds than actual ones.

[Elon Musk is convinced][5] _(Vice):_

> "There's a one in billions chance [we're in] base reality," he said. ...
>
> "I've had so many simulation discussions it's crazy," Musk said. "It got to
> the point where every discussion was the AI or simulation conversation and
> my brother and I finally agreed we would ban such conversations if we were
> ever in a hot tub because it really kills the magic."

If we are in a simulation, could we get out? There are people working on it.
This throwaway snippet...

> Many people in Silicon Valley have become obsessed with the simulation
> hypothesis, the argument that what we experience as reality is in fact
> fabricated in a computer; _two tech billionaires have gone so far as to
> secretly engage scientists to work on breaking us out of the simulation._
>
> -- The New Yorker, [Sam Altman's Manifest Destiny (2016)][6]

...but that was 6 years ago and I haven't heard of anything since.

It's intriguing to imagine _how_ breakout might occur.

There seem to be three main avenues:

  * Observe an inconsistency that proves that we are in a simulation, e.g. a
    feature of the universe that _should_ correspond with the laws of physics
    as understood, but manifests in a way that shows that the simulation
    machine is conserving resources. e.g. we get to Proxima Centauri and it
    turns out the star is just a big painting on cardboard, that kind of thing
    only more subtle. (How to use the observation to break out is left an
    exercise for the reader.)
  * Do something so appealing or unusual that the Simulation Runners are
    motivated to intervene.
  * Hack our way out -- taking advantage of the fact that there is a
    computational substrate to our simulated universe, cause a buffer overflow
    or race condition or out of bounds error, or something, and break out to
    the containing machine. e.g. is it possible to construct some kind of
    in-memory data structure (being, perhaps: a structure in our physical
    universe) that somehow triggers a parse error and is read as code? Could
    we run our own programs on the simulator?

It's odd, imagining that I might be a document, and further imagining that
there might be a specific thought I may one day have (thoughts being physical
structures, according to Hebb's rule) that could prise open an escape hatch
from the simulation sandbox.

RELATED:

It is possible to reprogram Super Mario from inside Super Mario. Like, it's
possible to glitch Super Mario to write data into system memory, and then
glitch it again to execute that data as code. So here's a video of [using code
injection to run Flappy Bird inside Super Mario][7] _(YouTube)._ They first
inject a 26 byte bootloader, using that to write Mario's x-coordinate to
memory on a spinjump, and that allows reliably loading a much larger payload.
The whole process is WILD. Um. _So something like that but IRL?_

_Ref._

Bostrom, B. N. (2003). [Are We Living in a Computer Simulation?][8]
Philosophical Quarterly, 53(211), 243-255.

### 4.

[The Aleph][9] _(Wikipedia),_ a short story by Borges (1945). [PDF here.][10]

The author meets someone who has found an Aleph.

> He explained that an Aleph is one of the points in space that contains all
> other points.

It's downstairs.

> "It's in the cellar under the dining room," he went on ...

So they go and see it.

> On the back part of the step, toward the right, I saw a small iridescent
> sphere of almost unbearable brilliance. At first I thought it was revolving;
> then I realised that this movement was an illusion created by the dizzying
> world it bounded. The Aleph's diameter was probably little more than an
> inch, but all space was there, actual and undiminished. Each thing (a
> mirror's face, let us say) was infinite things, since I distinctly saw it
> from every angle of the universe. I saw the teeming sea; I saw daybreak and
> nightfall; I saw the multitudes of America ...

AND SO ON.

In April 2003 at a party in San Francisco, after a particularly lengthy
run-up, we managed to manifest the Aleph, an actual centre of the universe, a
single point in space and time in which all else is contained, infinity
hanging in the air, there for the taking, right in the middle of our group.

Reader: I ate it.

   [1]: https://www.amazon.co.uk/Restaurant-End-Universe-Hitchhikers-Galaxy/dp/0330508598

   [2]: /home/2022/04/11/filtered

   [3]: https://googleprojectzero.blogspot.com/2021/12/a-deep-dive-into-nso-zero-click.html

   [4]: https://www.simulation-argument.com/matrix

   [5]: https://www.vice.com/en/article/8q854v/elon-musk-simulated-universe-hypothesis

   [6]: https://www.newyorker.com/magazine/2016/10/10/sam-altmans-manifest-destiny

   [7]: https://www.youtube.com/watch?v=hB6eY73sLV0

   [8]: https://www.simulation-argument.com/simulation.pdf

   [9]: https://en.wikipedia.org/wiki/The_Aleph_(short_story)

   [10]: https://web.mit.edu/allanmc/www/borgesaleph.pdf


