Home For Fiction – Blog

for thinking people


programming

My 48K Challenge: A Programming Lesson on Creativity

June 13, 2022

There are all sorts of asinine challenges in the ocean of mediocrity that is social media, and let me assure you, this isn’t one of them. My “48K challenge” is something I came up with when I noticed something disturbing on my “smart” phone: The size of the calculator app is 8MB. That of the alarm clock is 19MB. And my personal favorite, the messages app (just SMS, that is) is a whooping 204MB.

Are these people serious?

When I was a kid, you could pack an entire video game in 48KB. In other words, the space the calculator app requires is the equivalent of more than 165 video games for the ZX Spectrum – my first computer.

It goes without saying that technology has advanced a lot; the games of the 80s can’t be technically compared to those we have today. And yet, it feels programming has become sloppy.

I’m of course generalizing, but it feels as if the more the resources we have, the less the creativity and the greater our laziness. It all leads to resource hogs that take too much space and are often buggy. Because, hey, let’s all keep updating all the time.

And so, I gave myself what I termed the 48K challenge. I decided to make a retro-style video game in JavaScript, that had to be 48KB or less. The results were intriguing and revealing – and a little bit disappointing, but not in the way you imagine.

48k challenge
Here’s a screenshot from the result of my 48K challenge. The acuity of the image is deliberately low. I coded the program in 256×192 pixels (the native ZX Spectrum resolution) which I then quadrupled, to emulate the loss of acuity when projected on a TV, as we did in the 80s monitor.
(more…)

No, AI Can’t Produce Art (but It Can Write)

June 6, 2022

Based on discussions and what I read, a lot of people are afraid AI, artificial intelligence, will “steal” their jobs – what the hell happened to the “one day we’ll have robots and we won’t need to work” dream of early sci-fi? But I digress… Writers don’t seem to be an exception. A great number of them seem to be worried about AI replacing them. So, can AI produce art?

In this post I argue that no, AI can’t produce art – for reasons we’ll explore. But AI can certainly write. It can already now, and I’m certain it will become even better.

Where’s the difference, then, you might ask.

The difference, to a large extent, revolves around matters central to the writer-or-artist distinction. More insidiously, perhaps, it’s about conditioning us into patterns that can have far-reaching (and unpleasant) consequences.

AI can't produce art
“The algorithm” (Google Photos) keeps suggesting that I should “fix [the] lighting” of this and many other photos. It doesn’t understand art
(more…)

Planet Generator: A Tool for SciFi and Fantasy Authors

May 16, 2022

Astronomy is one of my hobbies, and I’m particularly intrigued by exoplanets – planets beyond our solar system. Combining this interest with my coding and writing experience, I thought to make this JavaScript Planet Generator program. Not only does it create graphical representations of such fascinating worlds, it also generates random civilizational data that might be helpful for science fiction and fantasy authors.

In other words, whether you’re a scifi/fantasy author looking for worldbuilding prompts, a programmer looking for inspiration and/or tips, or simply someone interested in the universe, there’s definitely something in Planet Generator that will interest you.

planet generator
Here’s how the results page of Planet Generator looks like
(more…)