Toots for zeh@mastodon.gamedev.place account

Written by Zeh Fernando on 2025-02-01 at 20:14

Very proud of my son's Copyright Infringement skills

=> View attached media

=> More informations about this toot | View the thread

Written by Zeh Fernando on 2025-02-01 at 14:11

I want to like Kotlin, and a well-written Kotlin codebase can be a beautiful thing, but ugh, do I hate its kitchen sink approach to syntax. You end up with some super odd looking code that reads "natural" under specific expectations, but which is completely inconsistent with anything else you could write, and very undiscoverable.

I'm looking at Mockk's things like

verify { mock wasNot Called }

And it grinds my gears, somehow.

The result is worse than C++ macro madness IMO.

=> More informations about this toot | View the thread

Written by Zeh Fernando on 2025-02-01 at 13:35

Searched online for "meditation for sore throat" when I meant to search for "medication for sore throat" and discovered a whole new category of magical thinking delusions

=> More informations about this toot | View the thread

Written by Zeh Fernando on 2025-01-31 at 21:17

If you're in the mood for some Assembly porn, this rewrite of the NES Ghosts'n Goblins sprite routine to make it more performant is all you need: https://www.youtube.com/watch?v=WmHpMRtgU3I

=> More informations about this toot | View the thread

Written by Zeh Fernando on 2025-01-30 at 03:15

For several reasons I never got the time to dedicate to fixing that. The partners who built the machine also added a system where it would boot every once in a while (to prevent other issues) so any problem with the UI's lifetime turned out to be low priority.

But I'm proud of the work I did there, and am always reminded of how unstable things are today.

Website and apps break often, and we're expected to reload/restart when that happens - "turn it off and on again". It's no big deal.

=> More informations about this toot | View the thread

Written by Zeh Fernando on 2025-01-30 at 03:11

So the problem becomes apparent: the maximum value of a 32 bit signed int is 2,147,483,647 (2^31-1), or roughly 24 days if counting ms. After that, things just break apart because times are negative in relation to when some of the animations started.

Eventually I tried wrapping getTimer() to transform the overflow of an int32 and make it work as an uint32, so it could last for ~49 days.

Unfortunately I never got to test it. I had to rely on the real system time, so I had to wait 24+ days.

=> More informations about this toot | View the thread

Written by Zeh Fernando on 2025-01-30 at 03:05

But, it turned out that after 24 days or so everything sorta went haywire. Animations slowed down to a crawl (and the interface was always animating). I didn't quite understand.

Eventually I figured it out: to control animation (and a bunch of other things), I used ActionScript's getTimer(), which is "the number of milliseconds that have elapsed since the Flash runtime virtual machine (..) started".

And that's an integer.

=> More informations about this toot | View the thread

Written by Zeh Fernando on 2025-01-30 at 02:57

I spent a lot of time debugging it. Even ran into a severe Flash bug with string interning that I had to circumvent (made me appreciate languages who do strings well!).

Eventually I got to the point where the interface ran perfectly for many days, with no leaks or increases in memory use. In fact, it basically allocated all the GPU/CPU memory it needed right at the start - made me appreciate the meaning behind "unused memory is wasted memory". Then it just recycled and reused some stuff.

But.

=> More informations about this toot | View the thread

Written by Zeh Fernando on 2025-01-30 at 02:54

Anyway, I came up with this "test" interface that would just let the application run and press around the interface (injecting mouse events, basically), to simulate operation. Like a webdriver kind of thing. All in real time. So I could monitor memory usage over time.

Luckily I had a separate unit so I'd just deploy the interface there and let it running permanently to make sure it didn't crash. It was also a nice conversation piece - I had a fountain machine UI self-operating at my desk 24h.

=> More informations about this toot | View the thread

Written by Zeh Fernando on 2025-01-30 at 02:51

So this was a soda dispenser interface ("Pepsi Spire", still in use).

It used Flash for the animation; it was my last work in Flash.

The machine was a very low power NUC.

I spent a TON of time profiling it, and optimizing the hell out of it. Everything was GPU driven. I made sure draw calls were kept to a minimum, that there were NO memory leaks of any kind, used tricks like spritesheets and polls, etc.

This was a consumer facing UI for 24h restaurants. It needed to be resilient.

=> View attached media | View attached media | View attached media | View attached media

=> More informations about this toot | View the thread

Written by Zeh Fernando on 2025-01-30 at 02:42

I once built an application that crashed after about ~24 days of continuous use.

Testing it was... interesting.

=> View attached media

=> More informations about this toot | View the thread

Written by Zeh Fernando on 2025-01-28 at 17:33

Amazing, information-packed article on DeepSeek and the implications for AI ventures now and in the future: https://centreforaileadership.org/resources/deepseeks_narrative_attack/

TL;DR: VCs scrambling, open source is an unmovable force

=> More informations about this toot | View the thread

Written by Zeh Fernando on 2025-01-28 at 15:42

Anyway, it just feels weird for a place I've been visiting for over 25 years to just sorta fizzle and die.

=> More informations about this toot | View the thread

Written by Zeh Fernando on 2025-01-28 at 15:41

Yet I don't feel bad about it. The comments section is a bit of a relic, detached from what the website actually is (gaming posts/news), and has been dying for a while, with the same people just echoing each other. I don't personally know anyone there, and no one knows me. And I've had my own grievances about moderation there in the past.

Still, it's symbolic of how you can't have small communities anymore. The modern alternative is stuff like Reddit where you have a million anonymous people.

=> More informations about this toot | View the thread

Written by Zeh Fernando on 2025-01-28 at 15:39

After ~30 years, it seems Shacknews.com's community has finally (mostly) died. The "chatty" (the comment section) is a bit of a dead zone, after a bunch of weird conflicts between moderators, the site's owner, some prominent posters who since left, etc.

I've been visiting this site daily since ~1998 for various reasons. It has always been my "window" into US culture, and with some gaming discussion on top (it was part of the websites I'd visit from the PlanetQuake days!).

(...)

=> More informations about this toot | View the thread

Written by Zeh Fernando on 2025-01-22 at 18:52

LinkedIn was already fast becoming hot garbage, but the recent AI developments have made the descent to hell come 10x faster. So much crap being posted - not just about AI, but using AI.

Today I saw someone replying to random posts with comments that are visibly AI generated, with some random question at the end, to generate engagement of some sort.

I just find it all so embarrassing.

=> More informations about this toot | View the thread

Written by Zeh Fernando on 2025-01-21 at 16:27

Getting into a rabbit hole of #running documentaries recently. The recent "Road to Houston" series (which just started) is the latest one, and it's pretty awesome if you can get past the narration: https://www.youtube.com/watch?v=72gthn-veaw

It covers the Houston Half Marathon in which (spoiler alert) Conner Mantz got 2nd place to break the American HM record set by Ryan Hall.

=> More informations about this toot | View the thread

Written by Zeh Fernando on 2025-01-19 at 01:38

On a slightly different note, I have to admit I've been using Reddit more than ever in the past few months. I didn't want to, but some communities are only there, and very strongly so (in my case, running and Power Metal stuff). Fediverse alternatives like Lemmy are not even close.

When the main goal of a social network is debate/discussion/news, more so than self-expression, the network effect of the established leaders is much stronger.

=> More informations about this toot | View the thread

Written by Zeh Fernando on 2025-01-18 at 15:46

Anyway like I said before, I used the Mastodon API for something simple recently and it was a breath of fresh air.

And I think lots of people don't realize what we lost when the wild west of the APIs died.

Mainstream social media networks like to pretend they're the only world that exists. To keep things contained inside them. In some cases you can't even link to outside URLs, let alone integrate with them.

They want us to forget it didn't use to be like that.

=> More informations about this toot | View the thread

Written by Zeh Fernando on 2025-01-18 at 15:44

Personally I expect to see

To some extent most or all of these already exist, but I expect to see more.

=> More informations about this toot | View the thread

=> This profile with reblog | Go to zeh@mastodon.gamedev.place account

Proxy Information
Original URL
gemini://mastogem.picasoft.net/profile/108212092537583263
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
355.079255 milliseconds
Gemini-to-HTML Time
9.68469 milliseconds

This content has been proxied by September (3851b).