The Oldest Literary Time Machine

In June 2018, I wrote about H. G. Wells’s The Sleeper Awakes. Its protagonist, Graham, sleeps for centuries and wakes in a dystopia. In one passage, Wells’s characters mention Edward Bellamy and compare Graham’s predicament to the one in Bellamy’s Looking Backward. Bellamy’s protagonist, Julian West, also wakes after a long sleep, but in a utopia. The following month, I wrote about Bellamy’s novel. Like this post, that one begins with how I discovered Bellamy.

Today, nearly eight years after those posts, I was reading H. G. Wells’s The Time Machine when I discovered that it, like any good piece of literature, has spin-offs, or what we might now call fan fiction. Among them were On the Surface by Robert J. Sawyer, The Time Ships by Stephen Baxter, and The Truth About Weena by David J. Lake. The first and last are short stories; the middle one is supposedly a novel. I found all three in a Reddit thread about what eventually happened to the Traveller and/or Weena. The theories there are beyond the scope of this post. From those discussions, The Truth About Weena emerged as the most impactful of the three, so I set about finding it. It had appeared in the second volume of an anthology called Dreaming Down Under. I found a copy online and started reading.

The plot is mostly beyond the scope of this post, but here’s some necessary background: the story is a direct sequel to The Time Machine. At one point, the Traveller’s friends sit around a table, waiting for him to return and discussing his invention. They debate the plausibility of his claims, theories of time travel, and the possibility of Rip Van Winkle-like journeys to the future. That reference sent me looking up Rip Van Winkle, where I found another story about a man who falls into an enchanted sleep and wakes in the future.

Wait, how many of these are there? I wondered. Google turned up a great many, stretching back to ancient folklore and even political writing. Islam has one of these stories too. The Quran’s 18th chapter, The Cave (Al-Kahf in Arabic), tells of believers who seek refuge from pagans in a cave. God places them into an enchanted sleep lasting more than 300 years. A dog sleeps beside them, sitting as if keeping watch and scaring away intruders. When they wake, one ventures into the market, where people marvel at the coins he carries.

Christianity has an almost identical story, though it isn’t in the Bible. In that version, there are seven sleepers, no dog, and a sleep of about 200 years. An emperor seals them in the cave, which unsuspecting locals eventually open. I kept digging and learned that Rip Van Winkle isn’t even the earliest example in modern Western literature. It was preceded by Louis-Sébastien Mercier’s L’An 2440 and Francis Cheynell’s political pamphlet Aulicus His Dream, of the Kings Sudden Coming to London. In Rip Van Winkle’s defense, however, both works ultimately reveal that their visions of the future were dreams and neither features actual time travel.

While searching for a Rip Van Winkle copy, another thought struck me: There’s a DC Comics character called Rip Hunter. Could he be named after Rip Van Winkle? A quick search revealed a tantalizing connection. In the Irving story, Rip Van Winkle wanders into the Kaatskill Mountains, now known as the Catskills in New York. One of the peaks there is called Hunter Mountain. It’s a little far-fetched, but exactly the kind of clever detail that might inspire a comic book character’s name. I haven’t read Rip Van Winkle yet, but I might start as soon as I finish posting this. I’m also curious about David J. Lake’s other works, including the unpublished Time Machine sequel. There may be more to write about.

I used an LLM as a Web Server

I used an LLM as a web-server. My motivations for doing so are as unclear to myself as they are to you. This is just something I’d been wanting to experiment with for a while.

It’s currently live at llmasaserver.pages.dev. The code is at github.com/anasik/llm-as-a-server.

Prologue

Ever since I generated my first Gemini API key, I’ve had this crazy idea of making an LLM respond to HTTP requests while pretending to be a web-server and see how that goes.

I immediately did a dry-run by opening a new Gemini chat and giving it explicit instructions to pretend to be a static website for a predetermined persona.

It worked great, it sent me back HTML+CSS with menus, colors and well-crafted page sections. I could send requests to arbitrary pages like /about or /contact and it would play along.

Then I took it a step further and sent POST and PATCH requests to imaginary resource endpoints and it responded with successes and failures depending on how relevant the endpoint was to the site content.

It got even more real when I sent in DELETE requests followed by GET calls and sure enough, it was smart enough to not return any deleted objects.

The last test I performed was one where I told it to deny any requests that are missing a certain bearer token and just like that we had fake authorization.

Soon afterwards, however, I got a reality check as suddenly all context/memory started collapsing. The static pages changed completely in both design and content and subsequent API calls returned no data. A little probing led to Gemini apologizing to me for having a small context window and limited memory capabilities.

I didn’t view this necessarily as a setback, however, because the whole point of this experiment was to have an LLM generate responses on the fly instead of caching them. Yes, consistency was both expected and desired but determinism was never on the table. I made a note to revisit this later and moved on with my work.

Read Full Post

So You (Still) Want to Write an EF Core Provider

In 2016, Arthur Vickers wrote a post called “So you want to write an EF Core provider.” The post says right at the bottom that it’s “up-to-date as of November 11th, 2016.” It was written against EF Core 1.1, and almost none of the specific types it names still exist.

Last year, when I wanted to write a provider for Azure Database Explorer AKA Kusto, I found myself reading that post and struggling to fill in the gaps. So when I actually finished writing my provider and the introductory blog post about it, I made a note to write a spiritual successor to Arthur’s post, explaining what has changed in the last ten years. This is that post.

This post tries to follow the roadmap of the orignal post as closely as possible but it deviates where necessary to better match the natural order of implementation today. This post also highlights the differences between the original post and the current state of EF Core, so you can see what has changed and what has stayed the same but it doesn’t require you to read the original post to understand this one.

Step 1: Implement services

Implement the services

The 2016 post has you subclass one big DatabaseProviderServices class. Today, each service is its own class, registered individually. Let’s start with IDatabaseProvider, our “Hello World!” moment. This interface was mentioned in the old post but was used very differently.

public sealed class MyProviderDatabaseProvider : IDatabaseProvider
{
    public string Name => "MyProvider";

    public bool IsConfigured(IDbContextOptions options)
        => options.FindExtension<MyProviderOptionsExtension>() != null;
}
Read Full Post

How Tanenbaum (AST) and Distributed Systems Changed The World

At the time of writing, hardly anyone needs an introduction to Linux or Python or Ethernet or Android. If you, the reader, are an avid enthusiast with a computer-science degree or experience, you may be tempted to stop reading because you think you already know where this post is going. I urge you to stay because I’m certain that this post has at least one fact to teach you. And even if you already know all of the facts presented in this post, the beauty of the full picture would still not be lost on you.

Andrew Stuart Tanenbaum, more famously known by his handle, AST, is a Dutch-American ex-professor at VU Amsterdam. AST is primarily known for his work on microkernels that was immortalized in the form of MINIX, a UNIX-like operating system that he built mainly as a means for teaching by example. His book, Operating Systems: Design and Implementation, is considered legendary and a de facto standard for a comprehensive understanding of operating systems principles. What makes this book unique is that it contains an abridged version of MINIX’s code and almost a line-by-line commentary. While this was neither the first nor last book of this kind, it’s certainly the most impactful.

In 1991, Linus Torvalds, a Finnish-American student at the University of Helsinki, bought this book and received a complimentary copy of MINIX. While the book lifted him to new heights, as he writes in his autobiography, he found the OS to be incredibly frustrating and restrictive. Later that year, he went on to release Linux, a monolithic kernel designed to be paired with GNU, and the rest is history. But you probably already knew that. What you might not know is that this was neither AST’s only contribution to modern mainstream software nor his only operating system.

In 1978, Sape J. Mullender, author of Distributed Systems, a PhD student at VU at the time, supervised by AST, began what became Amoeba, a distributed OS that appears to the user as a single, centralized time-sharing system. In 1986, it became a joint venture between VU and CWI (Centrum Wiskunde & Informatica), the Dutch national research institute for mathematics and computer science. In 1987, Guido van Rossum, a research assistant at CWI, joined the Amoeba project. He felt that building system utilities in C was taking too long while the Bourne shell was too limited in its capabilities to be a viable replacement. He needed something in-between. Guido had previously worked on ABC, a failed programming language meant to dethrone BASIC. He decided to develop a new language that retained the strengths of ABC but improved on its shortcomings and thus Python was born.

But Python was hardly the only lasting byproduct of a distributed systems project. In fact, it wasn’t even the only scripting language to be credited as a byproduct of a distributed system. What’s more, Amoeba wasn’t even the only distributed system credited with contributing to the modern Python ecosystem!

Read Full Post

I wrote an EF Core Provider

EF Core Database Provider for Azure Data Explorer (Kusto). GitHub   NuGet Version 

The project that I work on has a lot of data, in a lot of entities with a lot of fields, all exposed through an OData API. Naturally, that compels us to know exactly what kind of query shapes our users may be interested in and to create optimal indexes for them beforehand. However, there’s literally hundreds of fields and creating an index for every single one of them is simply not an option. Timeouts are great for protecting the database from maliciously demanding queries but they don’t offer much in the realm of user-experience. We need to allow clients to send arbitrary queries and we need them to be fast regardless of whether we’re expecting said query or not.

It was clear to me that we needed a solution and not an optimization and so I considered exploring Big Data solutions and columnar databases. Since our infrastructure is primarily Azure-based, my boss suggested that we explore Azure Data Explorer (ADX) aka Kusto. In a couple of days, ingestion was complete and a little testing showed promising performance so we decided to explore our options for integration.

Sadly, Kusto not only doesn’t have an EF Core provider package, the T-SQL support, although well-marketed, was poorly performing. It was very clear to us that this path would require a little investment. After discovering that EFCore.Snowflake, another library/database pair we considered using, is developed and maintained by one person alone, I felt motivated to take a crack at writing a database provider. I mean, how hard could it be in today’s AI powered era?

Read Full Post

Ambition & Ingratitude

Despite my bad luck,
Being ungrateful remains my greatest sin,
And one that life never ceases to punish me for.

While I’ve been unhappy for as long as I can remember,
Looking back, I always view my painful pasts
as happier versions of myself.

The problem with ingratitude isn’t divine retribution.
It’s that ambition without gratitude can be destructive.
You can’t save what you don’t value.

But then, don’t ambition and ingratitude go hand in hand?
After all, you can’t escape what you continue to value.

Third time's the charm

Also check out:

  1. How to work for Microsoft without getting hired
  2. Oops, I did it again

It’s no secret that now I’m a contributor to open-source and that the fruit of my Pull Requests is being distributed by none other than Microsoft themselves. Earlier this year, I posted twice about bug fixes I’d made to Microsoft.AspNetCore.Odata, and I’m pleased to inform you that as of today, I have achieved a hat trick.

I must admit though, that this bug was a lot subtler and less detrimental to the primary function of the library. In fact, viewing strictly by the OData standard, it cannot be called a bug at all. However, the library offers a feature or two that deviates from the standard. And it was one of those features that was broken.

The OData specification defines dollar-prefixed query options e.g. $top, $skip, whereas the Microsoft.AspNetCore.Odata library generously offers a configuration flag, enabled by default too, called EnableNoDollarQueryOptions that allows you to use non-dollar-prefixed query options like ?top=10&skip=10 instead of $top=10&$skip=10.

Read Full Post

Until Dawn - Movie Review

After the overwhelming success of my penultimate movie review, and the rabbit hole I went down that ultimately led to an audience with the director of the movie himself, I couldn’t refuse my wife when she asked me if we could go to the cinema again. However, I had one condition: that we would only go to see a low-budget cheap horror movie that I could come back and write about. She said she wouldn’t have it any other way herself.

Of course, it’s evident that she chose poorly but I didn’t realize that until much later. When she showed me the google card for the movie, I took a quick glance at the name, thumbnail and cast and incorrectly assumed that it was a good match.

Read Full Post

I interviewed Sasha Sibley, a Filmmaker

This post is the last (for now) in a series of posts about Sasha Sibley and his works. If you’re curious, here’s the order they appeared in:

  1. The Painted - Movie Review
  2. I’m glad my Wikipedia article got rejected
  3. The Box - Movie Review
  4. I interviewed Sasha Sibley, a Filmmaker (You’re here.)

On 26th February 2025, I interviewed Sasha Sibley, the talented 27 year-old filmmaker from Los Angeles who made his feature-film debut in 2021 with “The Box” and his theatrical debut in 2024 with “The Painted.” The story of how and why this came to happen is scattered across the other 3 blogposts but in short: after watching “The Painted” at a local cinema, blogging about it and then failing to create a Wikipedia article for it, and learning that it was produced, directed, and written by someone who was about my age, I decided to reach out to him and be one of the first to ask him the real questions. I emailed him, we set up a call and the rest will one day be history.

Tell me about yourself. Where did you grow up?
I grew up in the DC area, Maryland, Rockville, but I always just say DC. Just kind of simple, suburban life. My parents were divorced, and I jumped around a bit between their houses, but didn’t move around too much.

How did you get into filmmaking?
I always had the interest or the itch to do movies for whatever reason. I just really loved movies. My dad showed me a lot of rated movies when I was a kid; rated action movies like The Matrix etc.., which my mom was never happy about, but they were just the coolest things I’d ever seen, and I wanted to emulate that somehow. My dad had this tape video camera and I just started, filming stuff. This was early 2000s.

When I was 10-12 I started getting my friends together and we started making movies and putting them on YouTube to maybe get 56 views or something. So, that was my childhood. And then I wanted to pursue it professionally so I kept building to the extent that I tried to apply to film festivals. I was set on moving to Hollywood, so I only applied to colleges in LA and ended up getting into LMU — which was a great experience, a great film school. I went there for four years and did a dual degree in screenwriting and production. I learned a lot.

I had an award-winning short film (The Painted) and nobody cared because it was the pandemic. I made The Box. I don’t like to talk about it as much. It’s not that great.

I watched it today. It was great.
Thank you. I think there were a lot of (production) limitations on that film. I made it in college and, the script was one thing and what I shot was another and then I had to edit it and it kind of found its final form in the editing room which was not what I had originally written.

If you read the script, you’d be like, “Whoa, this had very different things going on.” But so many things I was just like okay we can’t shoot this. We can’t do that. There was supposed to be more going on in the box that he’s in. It’s funny because now with AI and all this stuff, maybe some of those weird ideas I had could have been realized.

About that: What are your thoughts on the latest advancements in AI within your industry, and how do you plan to leverage them?
You can’t ignore it. It’s definitely taking over. I am already playing with some of these tools. All the VFX that I had to do for The Painted, I learned myself. I had to do Houdini and Maya. I’ve always used After Effects, so that was easy. I’ve been using that since I was a kid. But some of the 3D software, was a trip. I took a couple classes and there’s some real, geniuses that work in visual effects. I don’t claim to be one of them, but I had to learn. I was like, All right, I’m gonna focus on fluid simulations and try to get decent at that so I can do some of the effects in the painted. because it’s like the low budget mentality.

I think you’re pretty good at the editing part. I would assume that you edited the short film yourself but hired professionals for the feature-film?
No, I still edited the feature as well.

From the sound of it, you never wanted to be an actor. Why did you rule out acting so early on?

Read Full Post

Why did Anders Hejlsberg choose Go for Typescript instead of C# or Rust?

Ever since Anders Hejlsberg made the announcement for Project Corsa, aka Strada, aka typescript-go, there’s been a lot of unrest surrounding their decision to use Go.

On one hand, we have the Rust fans demanding to know why Rust wasn’t chosen for this, considering the popularity of Rust as the de facto modern low-level language.

The dev lead of Typescript, Ryan Cavanaugh himself, took to Reddit to address the first question1. He said, and I quote:

“In the end we had two options - do a complete from-scrach rewrite in Rust, which could take years and yield an incompatible version of TypeScript that no one could actually use, or just do a port in Go and get something usable in a year or so and have something that’s extremely compatible in terms of semantics and extremely competitive in terms of performance.”

On the other hand we have the C# community asking the real questions: Why did the lead architect of C# sit by such a decision? This one, was answered by Anders Hejlsberg himself in an interview with Michigan TypeScript2:

“C# was considered but Go is definitely the lowest-level language we can get to and still have automatic garbage-collection […] C# is byte-code first and while it has some AOT, it’s not available on all platforms and it doesn’t have decades of hardening and wasn’t engineered that way to begin with. Go has a little more expressiveness when it comes to data-structures and inline structs. Our JS codebase is written in a highly functional style with very few classes which is also a characteristic of Go […] we would have had to switch to an OOP paradigm to switch to C# […] ultimately that was the path of least resistance.”

  1. Link to Ryan’s reddit comment: https://lnkd.in/dqHx6gj3 ↩

  2. Link to Anders’ interview: https://lnkd.in/dUJiwEzv ↩