Two9A

Joined 15 years ago

Karma
759
Submissions
112
Member since
Feb 10
http://imrannazar.com/
View on Hacker News

Recent submissions

Comment · 3 months ago
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.
Comment · 3 months ago
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.

Comment · 3 months ago
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.

Comment · 6 months ago
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.

Comment · 8 months ago
Comment · 9 months ago
https://imrannazar.com - Sporadic blog posts on web development and retrocomputing
Comment · 10 months ago
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.
Comment · 11 months ago
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.
Comment · 1 year ago
> 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.

Comment · 1 year ago
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.
Comment · 1 year ago
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.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton