Site updates, supporting open source software, &c.

Haven’t done a meta post since August, so now seems like as good of a time as any to discuss a few things going on behind the scenes at brhfl dot com. For starters, back in November, I updated my About page. It was something I forced myself to write when I launched this pink blog, and it was… pretty strained writing. I think it reads a bit more naturally and in my voice now, and also better reflects what I’m actually writing about in this space. I also published my (p)review of Americana in November, which was an important thing to write. Unfortunately, it coincided with Font Library, the host of the fonts I use here, being down. This made me realize that I rely on quite a few free and/or open source products, and that I should probably round up ways to support them all. I’ll get to that at the end of this post, it’s a thought process that started in November, though.

Some time in October, I think, Hugo stopped working for me. For whatever absurd reason, the Hugo team has abandoned traditional package managers for Snapcraft. Snapcraft forces updates. I haven’t figured out exactly what is broken yet, but version 0.47.1 is the last version working for me. I have other projects I was hoping to get out this year built on Hugo, but I can’t safely do that until I solve this problem. This has no outside effect (I have safely tucked away a binary of 0.47.1), but it is extremely frustrating. I imagine the next meta post will be figuring out the fix.

I have moved brhfl dot com’s email provider from Google to ProtonMail. If you wish to send comments via the comment links, they’ll go to an encrypted Proton box now. It’s a more secure and private system, and moving this (as well as my personal address) also moves me one step further from Google in general.

During the 2nd iteration of my blog (the white blog, now at, I created a matching Tumblr which just showcased some of the photography from my Flickr. I haven’t done anything with it in years anyway, and given Tumblr’s recent and frightening decision to ban porn, I am planning to delete it. I’m currently questioning whether there’s any value in archiving it; I suspect not.

I think that’s about it as far as recent/upcoming changes, so back to a handful of projects that keep the pink gears turning over here…

"I don't know what to say" (external)

I’m behind on posting about this, but given my potential audience, I wouldn’t be doing so as a warning anyway but rather a curiosity. A couple of weeks ago, malicious code was discovered in an npm package called flatmap-stream placed as a dependency inside event-stream. Publish rights to event-stream were apparently handed off to the bad actor, a user with no history whatsoever, because according to the original author:

he emailed me and said he wanted to maintain the module, so I gave it to him. I don’t get any thing from maintaining this module, and I don’t even use it anymore, and havn’t for years.

The attack was quite targeted – a payload was encrypted using the description of another package, the code would only be executed if this package was present. It appears that the end goal was getting bitcoin wallet access, as this targeted package was directly related to the Copay wallet. I don’t have much experience with npm, but I’ve gathered that its approach to dependencies is decentralized ownership/maintenance with centralized package lists/names/etc. It also seemingly pushes minor updates (as declared by the author) automatically, but not major ones. The vector of attack here was quite fascinating then: find a package that doesn’t appear to have been maintained for a while and that is often used alongside a well-maintained package that you want to infiltrate; ask to maintain the first package; push malicious code as a minor update and remove it immediately in a major update; sit back as it makes its way through projects everywhere.

Title link goes to the event-stream issue thread, which is well worth reading for information on the discovery, the forensics process, and a bit of back-and-forth about maintainer responsibility in the open source world. Additionally, in a gist, the original author responded to these issues of responsibility. Finally, if you don’t want to piece it together via the thread, Zach Schneider has an excellent explanation of the attack.

Portal, Commodore 64 style

I’ve been thinking a lot about empathy and emotion in video games lately, and this has really given me the itch to play through Portal again. This weekend, I did just that… sort of. Jamie Fuller1 has released a 2D adaptation of the classic for the Commodore 64 (C64), and it is pure joy. It’s quick – 20 levels with brief introductions from GLaDOS, completable in around a half hour. The C64 had a two-button mouse peripheral (the 13512) but it was uncommon enough that even graphical environments like GEOS supported moving the cursor around with a joystick. Very few games had compatibility with the mouse, and here we are in 2018 adding one more – using WAD to move and the mouse to aim/fire is a perfect translation of Portal’s modern PC controls. If you’re not playing on a real C64 with a real 1351, VICE emulates the mouse, and it works great on’s browser-based implementation as well.

If there’s one thing that I think really makes it lack the feel of Portal, it’s the absence of physics-based puzzles. Portal, of course, had some straight-forward shoot-here-to-end-up-there style puzzles, some straight-forward avoid-the-Sentry-Turret puzzles, and some straight-forward place-the-Weighted-Storage-Cube-on-the-switch puzzles, but a major aspect of the game was figuring out the physics. You had to have a pretty good grasp on how fast and how far you’d be launched if you placed your portal here instead of there. This is, of course, an unreasonable ask for a C64, but it does dramatically change the feeling of the game.

Regardless, Fuller’s adaptation is a wonderful success. I imagine it’d be fun to play through even without knowing the source material, but as an homage it’s blissful. From GLaDOS’s snark to an ending that I won’t spoil, this tribute was made by and for lovers of Portal. Well worth the quick play, especially given how smoothly it runs in a browser without the need to install your own emulator.

  1. Along with Del Seymour (graphics) and Roy Widding (music). ↩︎
  2. One might look at the 1351 and think, oh, the Amiga mouse… but of course nothing is ever simple in retrocomputing. The C64 (and C128) had no dedicated provisions for an analog input device, so the 1351 (as well as paddle controllers and the KoalaPad) used the SID audio chip’s ADC. This is a fundamentally different approach than the Amiga’s. Commodore also released another lookalike, the 1350, which was not an analog device, and instead simply sent joystick signals. ↩︎

The VCSthetic

The Atari VCS, better known as the 2600, was an important part of my formative years with technology. It remains a system that I enjoy via emulation, and while recently playing through some games for a future set of posts, I started to think about what exactly made so many of the (particularly lesser-quality) games have such a unique aesthetic to them. The first third-party video game company, Activision, was famously started by ex-Atari employees who wanted credit and believed the system was better suited to original titles than hacked-together arcade ports. They were correct on this point, as pretty much any given Activision game looks better than any given Atari game for the VCS. Imagic, too, was made up of ex-Atari employees, and their games were pretty visually impressive as well. Atari had some better titles toward the end of their run, but for the most part their games and those of most third-parties are visually uninspiring. Yet the things that make them uninspiring are all rather unique to the system:

There’s a recurring theme to this aesthetic: lots of things happening in horizontal space. The VCS is made up of three primary chips: the MOS 6507 processor1, the Television Interface Adaptor (TIA), and the 6532 RAM, I/O, and Timing chip. Of these, we’re primarily concerned with the TIA: it’s the closest thing we have to a video card, and its design is the primary force behind the aesthetic of the console. Before we dive into this, however, we need to know how televisions work. Or, at least how televisions worked in 1977.

Cathode Ray Tubes (CRTs) shoot electrons at a phosphorescent screen, causing it to glow. In a television in 1977, these electrons are focused and moved around the screen via electromagnetism. Well, ‘moved around’ is a sloppy explanation at best, but the signal is created by shooting the focused beams from left to right (that is, horizontally), one line (scan line) at a time, top to bottom. After the bottom line is complete, the beam returns to the upper left and begins again. The analog TV signal contains vertical sync (start up top) information, followed by signals for each line, prefaced by horizontal sync (start to the left) information. This is a gross oversimplification, but it’s accurate enough for the important takeaways: lines are generated horizontally, one at a time, from top to bottom; and synchronization information is built in to the signal. For as antiquated as they seem now, it’s a wonder CRTs ever worked — they are engineering marvels.

The TIA helps a VCS developer manage the above, but it barely helps. The developer needs to keep track of timing and fit their code within the timing requirements of the video signal. Advanced games like some of those lovely Activision titles changed things during the horizontal timing to push the system beyond its intended capabilities — a technique famously known as ‘racing the beam’. But the unique VCS aesthetic of simpler games comes from using that TIA as intended, and the TIA doesn’t know anything beyond what it’s doing to the current horizontal line. This sounds a bit untenable, but it’s worth keeping in mind that the VCS had to find ways to help developers without adding costly RAM beyond the 128 bytes afforded programs.

In the few ways that the TIA does help, it can only help as far as ‘doing stuff horizontally’ is concerned, because it doesn’t know a thing about the previous or next line. It helps by giving the developer a few graphics registers to play with, including a background… or, more accurately, half of a background which is then either repeated or reflected onto the other side of the screen (horizontally symmetric backgrounds). Also included are two player sprites, with the helpful ability to stretch them out to two or four times their width or repeat them two or three times inside that stretched width (horizontally stretched sprites; many copies sharing a horizontal plane). A final convenience exists under the assumption that many games would be of the Pong-like or shooting varieties: single-dot objects (optionally horizontally stretched) that matched the player or background color and offered positioning and collision detection without maintaining a complex graphical object (simple ‘balls’ and ‘missiles’).

These elements are all part of the low-res background. The dashed line shows where the background is reflected. Player 1 and Player 1’s missile. Player 2.

Player 2’s sprite is stretched horizontally, a function built into the TIA. Player 1’s sprites and missiles are cloned three times on the horizontal plane, a function built into the TIA. Low-res background again is only half of a screen worth, copied to the other side.

Combat, two screenshots of which are simulated above, shows most of these elements, and is very much an archetypal example of the aesthetic I’m referring to. Of the six types of objects (background, two players, two missiles, ball), we see symmetrical, low-resolution backgrounds, player sprites both repeated and stretched, and missiles. Without stretching the limits of the system (racing the beam), this was the sort of thing that you got. With a lot of developers jumping on the home-console bandwagon without trying to live up to the likes of an Activision, this chunky, stretchy, limited-palette2 aesthetic truly defines the system, and all for the sake of giving developers the bare minimum assistance in manipulating a signal for a display technology that operates on horizontal lines.

  1. It’s hard to overstate how important MOS Technology was to home computing. They used cutting edge MOSFET technology and pioneered the art of fixing the production masks, resulting in far higher viable chip yields than competitors. This, combined with a relatively simple chip design, made the 6500 series incredibly affordable for the time. ↩︎
  2. It’s worth noting that while many systems of yore had a unique aesthetic built around simply not supporting many colors (the Apple II and the typically 4-color CGA of the IBM PC come to mind), the VCS actually had a pretty rich palette! But there were only so many graphical objects, and all of them were 1-bit. Interestingly, this leads us to another pretty typical VCS aesthetic, albeit one that is not so much a deliberate function of the TIA. The fact that developers were constantly working with the knowledge of the system’s timing (down to where it was drawing on the screen) and the fact that all graphical objects had 1-bit color depth meant that quickly cycling the color of an object was an inexpensive effect that added a lot of visual impact. Since this, too, was bound by the line-by-line TIA behavior, it’s common to see a rainbow effect of colorful flashing horizontal strips in VCS games. Among others, Yars’ Revenge, Krull, and Swordquest: Earthworld are all first-party titles that make use of this effect. ↩︎

A few of my favorite: Tetrises (Tetrii? Tetrodes?)

I spent a couple of weeks writing this, and of course remembered More Thoughts basically as soon as I uploaded it. For starters, I had somehow completely forgotten about Minna no Soft Series: Tetris Advance for the GBA, which is a somewhat difficult to find Japanese release superior to Tetris Worlds in every imaginable way. Second, I neglected to mention leveling details and have updated the Puyo Puyo Tetris and mobile sections accordingly (as of 10-28).

Tetris, the ‘killer app’ of the Game Boy and proven-timeless time-sink has a pretty bizarre history. Alexey Pajitnov originally wrote it as a proof-of-concept for a Soviet computer that lacked graphics capability. Pajitnov’s coworkers ported the game to the IBM PC, and its availability on consumer hardware meant that unofficial ports popped up across the globe, and licensing deals were struck without Pajitnov’s involvement. Facing some difficult decisions regarding licensing, Pajitnov gave the Soviet Union the rights to the game. Licensing was then handled through a state-sponsored company known as Elorg (the famous Game Boy pack-in deal was during the Elorg era). During this period, brick colors and rules were inconsistent from this Tetris to that Tetris. Some games branded Tetris during this era bore next-to-no resemblance to the game we all know and love.

The Elorg deal was temporary by design, and some years later Pajitnov got the rights back and formed The Tetris Company. The Tetris Company has proven to be an absurdly aggressive intellectual property monster, which is hardly surprising given the game’s licensing history1. The Tetris Company has done one positive thing, though: standardized the rules and the colors of blocks into something known as the Tetris Guideline. This means that any Tetris from the late ‘90s and newer is largely interchangeable2 – and if you can make out the color of the next piece from the corner of your eye, you know what shape it is. The consistency is valuable, and even though years of NES Tetris have left me rather untalented at T-spins, all of my favorite Tetris games are of the modern sort. This also largely means that the distinction really boils down to hardware, but that’s kind of important when some form of the game has been released for pretty much any given system. So on that note, the four I most often reach for are:

Tetris (WonderSwan)
This one is solely about the hardware. The Bandai WonderSwan was a really clever handheld that never saw life outside of Japan. Designed by the original Game Boy’s creator, three iterations were made: one with a greyscale screen, and two with color screens. They’re not terribly expensive to acquire, but without a knowledge of Japanese, the playable library is quite limited. Tetris, of course, is an exception – which is why it routinely fetches ~$100 on eBay. One of the most unique features of the WonderSwan was an underutilized additional set of buttons that allowed games to be designed for either portrait or landscape play. Tetris plays portrait, and for that reason alone, the WonderSwan version is one of the most satisfying. It’s also the only WonderSwan color game that I’m aware of (it’s very possible there are others) that works on an original greyscale WonderSwan as well (like Game Boy DX titles). Being one of the earliest games to start adhering to a version of the Guideline, some of the gameplay seems a little off by modern standards – the game speeds up much quicker than a 2018 Tetris, and I’m fairly certain it doesn’t use the same shuffled/“bag” randomization algorithm as later games. Still, despite its quirks, its price tag, and its reliance on an obscure system, the WonderSwan’s Tetris remains among my favorites.
Puyo Puyo Tetris (Switch)
Puyo Puyo Tetris is a mash-up of Sega’s Dr. Mario-esque game Puyo Puyo and Tetris. I rag on this one a lot because I don’t really enjoy Puyo Puyo, and if you play the game’s charming story mode… you have to play a lot of Puyo Puyo. But, outside of the story mode, you can just play a regular game of Tetris, complete with the encouragement of the characters from story mode. It’s oddly satisfying to hear Ess inexplicably shout ‘Lipstick!’ when you clear a line. Puyo Puyo Tetris came out for the 3DS first, but only in Japan (and the 3DS is region-locked). The Switch release clearly wins for availability and localization, but I also think the Switch’s more tactile controls are better-suited for Tetris. Puyo Puyo Tetris uses ‘fixed leveling,’ where every ten lines cleared level you up. This makes for a quicker and more frantic play than versions with ‘variable leveling’. There is one huge misstep with Puyo Puyo Tetris, and that is the complicated path one must take to play an Endless game of Tetris. If you just choose the Tetris mode from the main menu, the game will stop after level 15. You must navigate several menus, and turn on Endless every time or else face serious disappointment. I’ve never understood why this tends to be the default mode, Tetris is not a game to be won, Tetris is a game of pushing yourself to your own limit.
Tetris Premium/Tetris (iOS)
There are at least three versions of Tetris on iOS (the situation on Android seems similar): Tetris Blitz, which is a two-minute version, and Tetris and Tetris Premium, which both contain a normal (Marathon) Tetris mode. Tetris is ad-supported with an in-app purchase to remove ads. Tetris Premium is paid, but costs less than removing ads from Tetris. Tetris also contains one additional gameplay mode, but ultimately you can download Tetris, and if you only find yourself playing the standard game, buy Tetris Premium. Bit of a mouthful, all that. These mobile versions use ‘variable leveling,’ where the line clears required to level up are 5 times the current level number. Compared to Puyo Puyo Tetris’s fixed leveling, this makes for a longer game and one that (to me) is better-paced. Playing on a smartphone has the same advantage as the WonderSwan: glorious portrait orientation. The obvious downside is the touch controls. There’s a weird mode that places phantom pieces in places the game suspects you might want them, but that somehow simultaneously feels like cheating and removes the rhythm enough that the game feels very different (and at times more difficult). The swipe controls, however, are… surprisingly manageable. Don’t get me wrong, at some point it will register wrong and throw off your entire stack, but for the most part it’s very playable. Swipe/hold left/right/down to move a piece, swipe down to hard drop, tap left/right half of screen to rotate, and swipe up to hold. I’m certainly not an expert player, but I have managed to make it to level 22 with the touch controls. They work pretty well.
And an honorable mention, Tetris Worlds (Game Boy Advance (GBA))
This contentious title kicked off the Tetris Guideline. Its ‘endless spins’ drew the most criticism, and it does make for a significantly different game than older versions without. Tetris Worlds was released for a few different systems, but I’m concerned with the GBA version. With their relatively small screens, none of the GBA-compatible systems (GBA, GBA SP, Game Boy Micro, DS, and DS Lite) are the most visually-spectacular3 systems for Tetris, but among those five systems is a lot of varied hardware with varied use-cases. Notably, I think the clicky buttons of the GBA SP makes for a responsive, tactile experience, and Tetris Worlds on the Game Boy Micro is probably the best pocketable Tetris experience around (those keychain doodads are not great, and Pokémon Tetris on the Pokémon Mini is an expensive experience that pales in comparison to Tetris Worlds on the Micro). GBA’s Tetris Worlds does have two glaring issues: the animated backgrounds are distracting, and there is no Endless (Marathon tops out at level 15). The latter problem a huge deal-breaker, but I still think it’s great loaded up in a Game Boy Micro and tossed into a bag.

  1. According to this article by one of the PC port-developers, Vadim Gerasimov, Pajitnov’s plan was always to make money off of the game, which “[…] seemed unusual and difficult because we lived in the Soviet Union. Making and selling something privately was highly irregular.” While I don’t agree with the aggressive IP strategies of The Tetris Company, I can understand how fired-up an ex-Soviet capitalist-at-heart who created and lost control of a wildly successful product would be. ↩︎
  2. The Tetris Guideline has changed over the years. Piece colors were locked in at the start, which is good. There’s enough consistency between Guideline versions, and few enough versions that any modern Tetris game should feel pretty familiar. ↩︎
  3. One visually-spectacular element of Tetris Worlds was its cover art, by Roger Dean. Dean also redid the Tetris logo, which continues to be used to this day. ↩︎