759 karma · joined February 10, 2011
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.
Let me know if this was entertaining, useful or even both.
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.
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
So yes, the battery will be heavier because sodium's heavier, but it's so much cheaper that you can afford the extra footprint.
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.
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.
Reddit first came up with the phrase "spicy pillow" to describe that combination.
(Thanks for the hint.)
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.
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.
So you can see how its value might be diluted by this instance.
[0]: https://en.wikipedia.org/wiki/Order_of_the_British_Empire
It's good to see the principle can be expanded to EXEs, I'll have to dig into this some more.
I wrote that experience up last week, for what it's worth: https://imrannazar.com/articles/linux-upgrade-fail
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!
Will have to look into your progress, thanks.
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.
Might be worth a pass through to proof-read; I saw another couple of typos, but the page is now throwing a Wordpress database error, so that might be more urgent to look at.
Props to the author for highlighting this.
The most recent programming content on there is from ten years ago though... I should really get around to putting something new together, now the design work's done.
As I recall, the M1 emerging from London starts at "Junction 4" and there were three more junctions planned deeper into central London, but that part of the road never happened either.
The example that brought it up was towards the end of the attempt to climb the Redhorn: "Soon they all stood once more on the flat shelf at the head of the steep slope where they had felt the first flakes of snow the night before." (The F in 'before' might not line up with the previous F's unless you've been reading out loud.)
Perhaps a hundred posts, with the last significant block being ten years ago. I should really get back to it sometime... Posts that tend to have some lasting power:
- https://imrannazar.com/GameBoy-Emulation-in-JavaScript - A ten-part series (intended to be longer) on the implementation of emulators with the example of a GameBoy;
- https://imrannazar.com/Let's-Build-a-JPEG-Decoder - A four-part series (intended to be longer) about the concepts behind JPEG and building a decoder;
- http://imrannazar.com/Extended-Text-Mode-on-the-C64 - Going back fifteen years, an exploration of how to build an 80x25 text mode on the Commodore 64.