Mark Reid on Nostr: Finally had a small win with my learning of #uxn programming and got a basic version ...
Finally had a small win with my learning of #uxn programming and got a basic version of Bresenham's line algorithm working! I'm sure there are better ways to do it but I'm just happy it's working right now.
This is my first proper go at learning a stack language so around 80% of my time was just figuring out and debugging little idioms and macros to do basic arithmetic.
I vaguely remember teaching this algorithm as a tutor for a computer graphics course in 1998 so it's been fun to revisit it.
Published at
2026-02-14 09:29:26 UTCEvent JSON
{
"id": "1f3906e03588401df9c129d45ed7355b9771063b23930a43469f2dd097631878",
"pubkey": "8c4059b95f935be0c7d69cba174cc71e4c634d1eef6ef17f906d22c122d1447a",
"created_at": 1771061366,
"kind": 1,
"tags": [
[
"t",
"uxn"
],
[
"proxy",
"https://mastodon.social/@mdreid/116068277719846262",
"web"
],
[
"imeta",
"url https://files.mastodon.social/media_attachments/files/116/068/267/937/599/741/original/66a87658c6797640.png",
"m image/png"
],
[
"proxy",
"https://mastodon.social/users/mdreid/statuses/116068277719846262",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.social/users/mdreid/statuses/116068277719846262",
"pink.momostr"
],
[
"-"
]
],
"content": "Finally had a small win with my learning of #uxn programming and got a basic version of Bresenham's line algorithm working! I'm sure there are better ways to do it but I'm just happy it's working right now.\n\nThis is my first proper go at learning a stack language so around 80% of my time was just figuring out and debugging little idioms and macros to do basic arithmetic.\n\nI vaguely remember teaching this algorithm as a tutor for a computer graphics course in 1998 so it's been fun to revisit it.\nhttps://files.mastodon.social/media_attachments/files/116/068/267/937/599/741/original/66a87658c6797640.png\n",
"sig": "ffe7618293af3eab21f5cbf63115495f83c9eac0efe7737c63d5d7f6ec682b8dc659675261a923d7bf2a4d6d4e370b54a4651bc9af0c337687a5d75bdabad80f"
}