News for hackers. Stuff that matters.

Two9A

Show HN: An interactive debugger for the Mornington Crescent esolang

https://codeberg.org/Two9A/mcresc

Originally put together ten years ago, I've migrated this project over to Codeberg and in the process fixed a couple of bugs.The most glaring issue was that in the intervening years, CORS has become a thing so the Transport for London Tube map can no longer be loaded directly from their site; instead, there's a local copy of the SVG.I'm happy with where it is at the moment, there might be more...

( Read More... | no comments | 2 points | on HN )
Re:Pong Wars on the Commodore 64 on Wednesday July 15, 2026 @11:32AM (#48922397)
Yep, it's astoundingly inefficient. I've been meaning to pull the code back into working memory and do the things I mention in Future Considerations, but it took long enough just to do this write-up; could be years before I get around to it.
Re:Pong Wars on the Commodore 64 on Wednesday July 15, 2026 @11:06AM (#48921981)
Hey, thanks for checking this out. I wanted smooth motion to keep close to the JS piece that inspired this; it seemed like it should be eminently possible to get smooth motion, after all.

And yeah, I was reminded of Bresenham's algorithm a few days back, and had a suspicion that I've basically redone it independently (and inefficiently) by doing the trig. As mentioned at the end there, the math isn't where I'm losing most time in rendering though.

The Mastodon release post (cite 0) has comments talking about doing the score recalculation only at time of collision, but the worst thing I do is use a block of RAM for the playing field and another block of RAM for the _display_ of the playing field. Copying those blocks of 20 bytes, gosh it's slow.

Re:Pong Wars on the Commodore 64 on Wednesday July 15, 2026 @09:44AM (#48920742)
Over the years I've written a bunch of things in the orbit of retrocomputing, the largest of which was an incremental game based on a C64 emulator. Somehow I've never written anything substantial for the C64 itself; this post documents my learning while implementing a graphical effect in assembly language, over the course of twelve thousand words and three digressions into side quests.

Let me know if this was entertaining, useful or even both.

Arabic is on the Semitic branch of the hypothesised proto-Indo-European language, which has dual number: https://en.wikipedia.org/wiki/Dual_(grammatical_number)

So you'd expect to see languages from western Europe to south Asia that either have the dual concept, or have an attested ancestor that did.

Re:C64 Copy Protection on Monday March 02, 2026 @03:04AM (#47215094)
It's worse than that even: there are delays after every _bit_ transferred, due to various design decisions that were made along the way, which is why the C64's disk drive is slower than the previous computer (the VIC-20), which is slower than the one before that (the PET).

I wrote about the decisions and the resulting delays for one of those 100-post Threadapalooza projects in 2024, compiled here for easier reading: https://imrannazar.com/articles/commodore-1541

Re:Ask HN: Could you share your personal website here? on Wednesday January 14, 2026 @03:00PM (#46622085)
https://imrannazar.com - Sporadic blog posts on web development and retrocomputing
Re:I Sell Onions on the Internet on Friday December 26, 2025 @06:44AM (#46391224)
If nothing else, you can put up a static page on the basics of Boglehead-ish finances; a copy of The Flowchart from /r/personalfinance would be a great low-effort stop-gap.
Mm, I still recall the time my Windows 98 installation corrupted its registry somehow. The only fix was to reinstall, and the machine had no floppy or CD drive... getting Windows back on there was a task.
Re:The Sodium-Ion Battery Revolution Has Started on Thursday October 23, 2025 @06:30AM (#45680300)
> They're larger and heavier for the same capacity, but the lower price makes up for it

So yes, the battery will be heavier because sodium's heavier, but it's so much cheaper that you can afford the extra footprint.

Reminds me of a ROM-hack for Zelda: Ocarina of Time from a few years ago, that was presented in the release video as using unused assets and storyline from the game itself, when it was actually almost entirely new material. A great technical achievement, to be sure, but somewhat dishonest in its presentation.
Re:The "impossibly small" Microdot web framework on Sunday September 07, 2025 @07:05AM (#45157139)
I'm reminded of an MVC microframework I put together many years back in PHP: https://github.com/Two9A/BirSaat

Having pulled down a copy just now, the framework itself is 526 lines of PHP, and the sample site (a newsfeed that pulls from the BBC) is perhaps 300 lines in models and controllers. I use the framework to this day to serve out my blog and other small sites, seems to work well without getting in the way.

Re:VIMMaster on Thursday August 28, 2025 @09:02AM (#45051670)
I also see a Login Via GitHub, but there could certainly be scope to allow local accounts here.
Re:Potatoqualitee/EOL-dr: End-of-life Disaster Response on Monday December 09, 2024 @05:42AM (#42364858)
Quoting from the README:

Our VDI guy, Andy, was one of my favorites. He was grumpy, always tucked his shirt in, kept his desk Type A clean and was just so principled. ...I always thought he'd be there and was devastated when I found out he died unexpectedly.

"What about his homelab?" I thought. "Will his wife's wifi devices even be able to get an IP address if his DHCP server goes down?". I reached out to her to see how she was doing and she told me that, six months on, she avoids his office at all costs. She worries what will happen when her TV no longer works, when her wifi no longer works.

Re:I turned an old phone into a NAS on Thursday August 08, 2024 @07:23AM (#41190264)
I believe it's a reference to the look of a failed LiPo battery: it puffs up and looks like a pillow, but if you puncture it fire spews forth.

Reddit first came up with the phrase "spicy pillow" to describe that combination.

Re:23words.com on Monday June 10, 2024 @02:06PM (#40636326)
Many of these types of games are daily, so I'd expect it's a different angle tomorrow.

(Thanks for the hint.)

Sounds somewhat familiar. I worked at a place that replaced a basic LAMP stack with microservices written in Perl and MongoDB as a backing store, for the sole purpose of raising complexity.

And left Mongo on the default settings for the time (speed of return over reliability of saving data), so they ended up with a reporting replica which was MySQL.

Don't think I've seen anything before or since which was architected so exactly backwards.

Re:Why the fuck are we templating YAML? (2019) on Tuesday January 23, 2024 @09:24AM (#39103643)
And I've been using vim exclusively for north of fifteen years with Tab replacement, never had a problem with the editor getting confused about what happens with spaces when I hit Tab.

Some detail about the corner cases you've run into would be great, if they're happening constantly I can see how it would be a bugbear.

"CBE" refers to Commander of the most excellent order of the British Empire [0] which is a title conferred by the monarch on those deemed to have performed especially well in the service of the nation.

So you can see how its value might be diluted by this instance.

[0]: https://en.wikipedia.org/wiki/Order_of_the_British_Empire

Re:Research paper is also an executable x86 program [pdf] on Thursday January 11, 2024 @04:24AM (#38949788)
Many years ago, I wrote up a post on doing this kind of thing in plain DOS .com files: https://imrannazar.com/articles/x86-printable-opcodes

It's good to see the principle can be expanded to EXEs, I'll have to dig into this some more.

Re:Why would you still want to use strace in 2023? [video] on Monday January 08, 2024 @04:56AM (#38910000)
I should write that down; -Z would've been really useful when my SSH server was falling over in a heap and I was left scrolling through strace to work out what happened.

I wrote that experience up last week, for what it's worth: https://imrannazar.com/articles/linux-upgrade-fail

Re:The Curious Case of Debian 12 and the SSH Failure on Tuesday January 02, 2024 @10:24AM (#38842546)
I always enjoy reading stories of yak-shaving adventures whenever they come up, so when I ran into my own back in November, I thought it might be fun to write up as a post.

This adventure starts with a small email problem, balloons into a Debian upgrade, and then it all goes sideways. Let me know what you think!

Oh goodness, this is the kind of thing I've been trying to find for years now: some method of making a computer from scratch, as in from raw materials.

Will have to look into your progress, thanks.

Re:Cramming a Tiny Program into a Tiny ELF File: A Case Study on Sunday December 10, 2023 @06:31AM (#38590844)
These kinds of articles are always fun: essentially playing golf with the size of an executable or some other file format.

To plug my own entry in the genre, back in 2006 a few members of the Nintendo DS emulation scene tried to put together the smallest DS ROM that would still do something visible on the system: https://imrannazar.com/hacks/the-smallest-nds-rom

We ended up with a 352-byte file with two minimal executables, for the ARM7 and ARM9 cores. I've yet to see a .nds file smaller than that.

Older »