Readit News logoReadit News

Deleted Comment

Deleted Comment

hgs3 commented on The Big Oops: Anatomy of a Thirty-Five-Year Mistake [video]   youtube.com/watch?v=wo84L... · Posted by u/doruk101
abetusk · 2 months ago
I found this talk to be great. It goes through the history of OOP and how some of the ideas for the more modern ECS were embedded in the culture at the formation of OOP in the 1960s to 1980s but somehow weren't adopted.

It was pretty clear, even 20 years ago, that OOP had major problems in terms of what Casey Muratori now calls "hierarchical encapsulation" of problems.

One thing that really jumped out at me was his quote [0]:

> I think when you're designing new things, you should focus on the hardest stuff. ... we can always then take that and scale it down ... but it's almost impossible to take something that solves simple problems and scale it up into something that solves hard [problems]

I understand the context but this, in general, is abysmally bad advice. I'm not sure about language design or system architecture but this is almost universally not true for any mathematical or algorithmic pursuit.

[0] https://www.youtube.com/watch?v=wo84LFzx5nI&t=8284s

hgs3 · a month ago
> It goes through the history of OOP

Unfortunately, the "history" omits prototype-based OO (Self, Io, Lua, etc.) which doesn't suffer from many of the "issues" cited by the speaker.

Deleted Comment

hgs3 commented on Exhausted man defeats AI model in world coding championship   arstechnica.com/ai/2025/0... · Posted by u/hassanahmad
hgs3 · a month ago
This is interesting, but aren't "coding competitions" about writing small leetcode programs from a prompt? I would expect the AI to excel at that.

Deleted Comment

hgs3 commented on I write type-safe generic data structures in C   danielchasehooper.com/pos... · Posted by u/todsacerdoti
hgs3 · 2 months ago
I'm curious what a hashmap looks like with this approach. It's one thing to pass through or hold onto a generic value, but another to perform operations on it. Think computing the hash value or comparing equality of generic keys in a generic hashmap.
hgs3 commented on Libxml2's "no security embargoes" policy   lwn.net/SubscriberLink/10... · Posted by u/jwilk
sysmax · 2 months ago
Sadly, that stuff backfires. The researcher will publish your response along with some snarky remarks how you are refusing to fix a "critical issue", and next time you are looking for a job and the HR googles up your name, it pops up, and -poof-, we'll call your later.

I used to work on a kernel debugging tool and had a particularly annoying security researcher bug me about a signed/unsigned integer check that could result in a target kernel panic with a malformed debug packet. Like you couldn't do the same by just writing random stuff at random addresses, since you are literally debugging the kernel with full memory access. Sad.

hgs3 · 2 months ago
Just be respectful and not snarky. And be clear about your boundaries.

What I do is I add the following notice to my GitHub issue template: "X is a passion project and issues are triaged based on my personal availability. If you need immediate or ongoing support, then please purchase a support contract through my software company: [link to company webpage]".

hgs3 commented on No More Shading Languages: Compiling C++ to Vulkan Shaders [pdf]   xol.io/random/vcc-paper.p... · Posted by u/pjmlp
arjonagelhout · 2 months ago
What is the main difference in shading languages vs. programming languages such as C++?

Metal Shading Language for example uses a subset of C++, and HLSL and GLSL are C-like languages.

In my view, it is nice to have an equivalent syntax and language for both CPU and GPU code, even though you still want to write simple code for GPU compute kernels and shaders.

hgs3 · 2 months ago
I would expect a shading language to provide specialized features for working with GPU resources and intrinsic operations.
hgs3 commented on Open source can't coordinate?   matklad.github.io/2025/05... · Posted by u/LorenDB
PaulHoule · 2 months ago
Look at Microsoft Windows. You can still run Access '97 because all the DLLs with the GUI widgets from Win '95 are still there. Until 2012 or so, Microsoft would regularly come out with a whole new widget set every few years. You can see this most notably in the settings UI for Windows where there are some screens in the "modern" UI and plenty of dialogs that still come from the '95/NT 4 era.

Since then Microsoft has had no real answer for "how do I write desktop applications for Windows?" other than "use Electron".

(If they were still introducing new widget sets they'd be converting the 'modern' dialogs to something 'postmodern' while still having Win '95 dialogs in there)

hgs3 · 2 months ago
> Since then Microsoft has had no real answer for "how do I write desktop applications for Windows?" other than "use Electron".

Microsoft has been pushing WinUI the past few years, with WinUI 3 being the latest recommended UI toolkit [1]. I think what's interesting about WinUI 3 is it's not built into Windows - you have to ship the whole toolkit with your app, just as you would GTK or Qt on Windows. I find that a perplexing direction for a "native" toolkit.

[1] https://learn.microsoft.com/en-us/windows/apps/winui/winui3/

u/hgs3

KarmaCake day1425August 11, 2020View Original