“The entire history of the world, for all practical purposes, is contained within the Internet.”
— Martin explaining his discovery about the internet's true nature.

Scott Meyer (2013)
Genre
Fantasy / Science Fiction
Reading Time
10 hours 15 min
Key Themes
See below
Sign in to track this book
A slacker discovers reality is a computer program, exploits it to become a medieval wizard, and hilariously botches his attempts to escape the consequences while charming a local.
Martin Banks, a programmer in modern America, finds a hidden file on his computer called 'reality.exe'. He experiments and discovers this file is not a game, but the actual source code of his reality. He first uses his new ability for small, personal changes, like getting a better parking spot or improved coffee. As he goes deeper, he realizes his immense power to alter physical properties, manipulate time, and defy physics with simple code changes. This discovery changes his understanding of existence, making the mundane a playground for his coding skills, though he remains careful about making any truly big alterations.
Confident from his success, Martin begins to try more noticeable changes, such as making a local river flow backward or causing objects to float. While these changes are first dismissed as oddities or mass hallucinations, they start to draw unwanted attention. During one bold alteration involving a local landmark, Martin makes a mistake that nearly exposes his abilities to the authorities. Realizing the danger of being discovered and the possible consequences of his actions on reality, he decides he needs to escape to a place where his 'magic' would be less scrutinized. He begins to plan his disappearance, seeking a refuge from the results of his reality-bending activities.
To escape the growing scrutiny and the potential for global disaster from his irresponsible tinkering, Martin decides to travel to a time where his abilities would seem like magic rather than a system bug. He uses 'reality.exe' to open a portal through time and space, aiming for Medieval England. He intends to live a quiet life as a wizard, where his reality manipulation would be accepted. The transition has its challenges, as he must adapt to a completely different historical period, lacking modern conveniences and facing a very different social structure. He carefully plans his arrival to avoid immediate suspicion, aiming to settle in gradually.
Arriving in Medieval England, Martin carefully stages his first 'magical' displays to build his reputation as a powerful wizard. He uses his knowledge of reality's code to perform seemingly miraculous feats, such as conjuring food, fixing broken objects, and controlling the weather, all while keeping a mysterious persona. He settles near a small village, attracting the attention and awe of the locals, who quickly believe in his powers. He calls himself 'the Wizard of the North' and sets up a humble home, trying to live peacefully while secretly trying to undo the damage he caused in his original timeline. His new life combines cautious magic and careful integration into the medieval world.
Martin soon meets Phillip, a curious and somewhat clumsy local villager who becomes his first, unofficial apprentice and confidant. Phillip is fascinated by Martin's 'magic' and provides a needed connection to the local community. However, Martin's growing fame reaches Lord North, the local feudal ruler, who demands Martin's services. Lord North is a typical medieval noble: demanding, superstitious, and eager to use Martin's powers for his own benefit, whether for small matters or military advantage. Martin finds himself in a tricky spot, needing to please the lord without revealing the true nature of his abilities or creating paradoxes that could unravel his new reality. He handles these demands with a mix of genuine help and clever misdirection.
Martin's reputation as a wizard grows as he helps the local villagers with various problems, often using his coding abilities to solve issues that would otherwise be impossible in the medieval era. He 'magically' improves crop yields, cures minor illnesses, and even helps find lost livestock, all while carefully attributing his successes to arcane spells and rituals. These interactions solidify his position in the community and give him a sense of purpose. He finds satisfaction in using his powers for good, even if it means constantly improvising and keeping up the illusion of traditional magic. These small acts of kindness make him popular with the common folk, making his presence an accepted and valued part of their lives.
Martin's carefully built medieval life is disrupted by the unexpected arrival of Gwen, a woman from his own time who also has the ability to manipulate reality through 'reality.exe'. Gwen is a more skilled and ruthless code manipulator, and her sudden appearance immediately puts Martin on edge. She reveals she has been tracking him, aware of his past actions and the potential instability he created. Her motives are unclear at first, but she poses a significant threat to Martin's peaceful life and his secret. Her presence forces Martin to face the wider implications of his actions and the possibility that he is not the only one playing with reality, adding suspense and danger to his isolated life.
Gwen's manipulative nature and disregard for the consequences of her reality-altering actions sharply contrast with Martin's careful approach. While Martin tries to maintain the illusion of magic and minimize paradoxes, Gwen is more reckless, using her powers for personal gain and to show dominance. Their different philosophies lead to direct conflicts, as Gwen tries to undermine Martin's authority in the village and even tries to expose his true nature. Martin finds himself forced to use his abilities defensively, not just to protect himself but also to protect the innocent villagers from Gwen's more disruptive 'magic.' This conflict highlights the ethical dilemmas of wielding such immense power, as their personal struggle begins to affect the medieval world around them.
Gwen's increasingly obvious and powerful displays of 'magic' attract the attention of a more dangerous force than Lord North: a powerful and mysterious medieval entity or group that sees their abilities as a challenge to its own power or understanding of the world. This new threat is hinted to be like a powerful sorcerer or a religious order with great influence, able to understand the true nature of their 'magic' to some extent. Both Martin and Gwen realize they are in grave danger, as their modern abilities make them targets in a world where such power is either revered or condemned. They consider a temporary alliance to face this common enemy, knowing that their individual survival depends on it.
Facing a formidable medieval adversary, Martin and Gwen reluctantly agree to a temporary truce, combining their reality-manipulating abilities to overcome the threat. This alliance forces them to confront their differences and learn to cooperate, even as their personalities clash. Through clever moves and powerful 'magical' displays, they manage to neutralize the immediate danger, though not without further altering their medieval reality. The experience makes them re-evaluate their relationship and their individual responsibilities with 'reality.exe'. They realize their actions have far-reaching consequences, and they must decide whether to continue their independent, chaotic paths or work together to navigate the complexities of their unique existence.
The Protagonist
From a self-serving tinkerer, Martin evolves into a cautious 'wizard' who strives to use his immense power responsibly, often feeling burdened by it.
The Antagonist/Supporting
Gwen shifts from a purely antagonistic figure to a complex character who, while still self-interested, can recognize shared threats and cooperate.
The Supporting
Phillip remains largely static, serving as a constant, bewildered observer of Martin's 'magic' and a loyal sidekick.
The Supporting
Lord North remains a static representation of medieval authority and superstition.
The Mentioned
The villagers' perception of Martin solidifies from curiosity to unwavering belief in his magical abilities.
The Antagonist
Introduced as a rising threat, its role is primarily to unite the protagonists against a common, more formidable enemy.
The main theme is that reality is a changeable construct, a computer program that can be altered. Martin's discovery of 'reality.exe' directly challenges the characters' and readers' understanding of what is real. The difference between Martin's modern understanding of 'coding' and the medieval view of 'magic' shows how belief systems shape reality. What is a bug in the code to Martin is a miracle or dark art to a villager. This theme is clear in every scene where Martin performs a 'spell,' showing how easily perception can be manipulated when the truth is hidden. The book constantly asks: is reality what it is, or what we believe it to be?
“What if the world isn't real? What if it's just... code?”
With the discovery of 'reality.exe', Martin gains god-like power, which immediately raises the question of responsibility. At first, Martin uses his power for small personal gain, but he quickly realizes the consequences of his actions, leading him to flee to the past. His later efforts to use his 'magic' for good, like helping villagers, are balanced by a constant fear of creating paradoxes or causing unintended harm. Gwen's more reckless use of power acts as a contrast, showing the ethical dilemmas and potential for abuse. The book explores the burden of immense power and the moral choices that come with it.
“With great power comes... a lot of paperwork, apparently.”
Martin's journey from modern America to Medieval England creates a culture clash, which is a source of both humor and conflict. He must adapt to a world without technology, modern sanitation, or scientific understanding, while also keeping up the illusion of being a powerful wizard. This theme is explored through his interactions with Phillip, Lord North, and the villagers, who interpret his actions through their medieval worldview. Martin's struggle to explain complex technological concepts as 'magic' and his internal frustration with medieval logic highlight the vast differences between the two eras and the challenges of adapting to an entirely alien environment.
“It's not 'magic,' Phillip, it's just very, very advanced programming. But yes, 'magic' works too.”
Martin's decision to flee to Medieval England is an act of escapism—an attempt to escape the consequences of his actions and the complexities of his modern life. While his new life as a wizard offers purpose and freedom, it also comes with its own dangers and limitations. The arrival of Gwen, who represents unresolved issues from his past, further complicates his escape, showing that true problems cannot simply be left behind. The theme explores whether running away truly solves anything, or if it merely delays the inevitable confrontation with one's responsibilities and past mistakes, suggesting that even in an idealized escape, new troubles will arise.
“I thought I could just... disappear. Start over. But reality, it seems, has a long memory.”
The source code of reality, allowing manipulation of the world.
'Reality.exe' is the central plot device, a literal computer file that functions as the source code of existence. It grants Martin (and later Gwen) the ability to alter physical laws, time, space, and matter through simple coding commands. This device provides the 'magic' in the fantasy setting, allowing for fantastical events to be explained through a science fiction lens. It's the engine of the plot, enabling time travel, miraculous feats, and the core conflict between the characters' understanding of reality and the medieval world's perception of magic. Its existence raises philosophical questions about free will and predestination.
A means of escaping consequences and creating a new identity.
Time travel, facilitated by 'reality.exe', serves as a crucial plot device that allows Martin to escape the immediate consequences of his actions in the modern world. By transporting himself to Medieval England, he can reinvent himself as a 'wizard' where his reality-bending powers are more readily accepted. This device creates the primary setting and the initial premise of the story, enabling the culture clash and the humorous situations that arise from a modern man in an ancient time. It also introduces the potential for paradoxes and the challenge of maintaining historical integrity while using advanced powers.
A modern programmer adapting to a medieval world.
This trope is extensively used to generate humor and highlight the thematic clashes within the story. Martin, a modern programmer accustomed to technology and scientific understanding, is dropped into a superstitious, pre-scientific medieval society. His attempts to explain his 'magic' in technological terms, his internal struggles with the lack of modern conveniences, and the villagers' bewildered reactions to his 'spells' all contribute to this device. It serves to emphasize the vast cultural differences and Martin's ongoing struggle to adapt while maintaining his secret, providing both comedic relief and character development as he learns to navigate a completely alien world.
A classic pairing to explore the nature of 'magic' and mentorship.
The relationship between Martin (the 'wizard') and Phillip (the 'apprentice') is a classic literary device that allows for exposition, character development, and comedic interactions. Phillip's unwavering belief in Martin's magic provides a lens through which the medieval world views Martin's abilities, while Martin's internal struggle to maintain the illusion of magic offers a contrasting, modern perspective. This dynamic enables Martin to explain (or attempt to explain) his powers and the rules of his new reality, often leading to humorous misunderstandings. It also grounds Martin in the medieval setting, giving him a personal connection to the community he is trying to help.
“The entire history of the world, for all practical purposes, is contained within the Internet.”
— Martin explaining his discovery about the internet's true nature.
“Being a wizard is really just being a programmer with a very powerful API.”
— Martin's realization about the nature of magic in his new reality.
“There are no rules. Anything is possible. That's the real magic.”
— Martin reflecting on the limitless possibilities once he understands the system.
“The most powerful spell is 'delete'.”
— Martin recognizing the ultimate control offered by direct manipulation of reality's code.
“If you can't find a bug, it's a feature.”
— A humorous observation about programming that applies to the 'magic' system.
“The past isn't fixed. It's just a database that needs updating.”
— Martin understanding that historical events can be altered by editing the internet's code.
“It's not about what you know, it's about what you can edit.”
— A core principle for Martin as he navigates his new wizardly existence.
“Most people don't want to know how the sausage is made, they just want to eat it.”
— Philip explaining why most people wouldn't understand or appreciate the true nature of reality.
“Every time you use the internet, you're interacting with the fabric of reality.”
— A profound statement on the true nature of the internet within the book's premise.
“The biggest problem with magic is that it's too easy to make mistakes.”
— Martin reflecting on the unintended consequences of his early attempts at magic.
“You can't break the internet, but you can certainly break your reality.”
— A warning about the dangers of careless manipulation of the system.
“The future is just a really big to-do list.”
— Martin's perspective on the malleability of future events.
“Sometimes the best way to solve a problem is to make it someone else's problem.”
— A cynical but often effective strategy employed by the characters.
“The only difference between a wizard and a normal person is access.”
— Martin realizing that the potential for magic is universal, but the means are not.
Ready to see how well you understood this book? Take our interactive quiz with 10 questions.