Better HN
topnewbestaskshowjobs
Log inSign up

flohofwoe

23,658 karma · joined Oct 15, 2013 (13y ago) · 7,007 submissions

Submissions

comment 14h ago · link · parent

> but the social contract is breaking down a bit there

The only "social contract" that's breaking down here is a multi-billion-dollar company creating an artificial scarcity for a digital product.

comment 3d ago · link · parent

Hmm, is this new or surprising? When testing my home computer emulator code for correctness, Opus had no trouble taking C64 .prg files apart and analyse them the same way it would analyse .asm source files.

PS: and it also has no problem writing a simple 'bouncing sprite' C64 demo without going through assembly and wrap that in a .prg file (of course this is basically the 'hello world' of C64 demos and could be as-is in the training set).

Let's see if the data URL survives HN:

https://floooh.github.io/tiny8bit/c64.html?file=data%3Aappli...

comment 4d ago · link · parent

> "doing their own research"

...usually just means clicking on YouTube videos they get recommended by an algorithm that's optimized for engagement, not evoking critical thought. E.g. reinforcing instead of challenging personal opinions.

At least this specific sentence of "doing their own research" is a good signal that the person is a conspiracy theory idiot and can be ignored.

comment 4d ago · link · parent

Those little imperfections will become valuable signals in the future that the text has indeed not been touched by AI ;)

...of course it's easy to fake by instructing the LLM to place random spelling and grammar errors into the text, but this requires at least a minimal amount of thinking ahead by the human master ;)

comment 5d ago · link · parent

IMHO the main problems with this idea is that it isn't type-safe and it's wasting a lot of stack space for the tags.

> I've often wondered where it came from

Don't know but the other place where I've seen this idea is when initializing OpenGL contexts on some platforms. This involves defining attribute key/value pairs like this:

    int attributes[] =
    {
        GLX_RED_SIZE, 8,
        GLX_GREEN_SIZE, 8,
        GLX_BLUE_SIZE, 8,
        GLX_ALPHA_SIZE, 8,

        GLX_DEPTH_SIZE, 24,
        GLX_STENCIL_SIZE, 8,

        GLX_DOUBLEBUFFER, True,

        None
    };
Of course OpenGL is a bit later than AmigaOS, but not by much :)

comment 5d ago · link · parent

A somewhat similar extension concept (in the sense of: allow to extend the API without breaking ABI) still exists in some C APIs, for instance in Vulkan each struct starts with an `sType` tag and a `pNext` pointer, this allows to build 'extension struct chains':

https://docs.vulkan.org/refpages/latest/refpages/source/VkDe...

comment 5d ago · link · parent

Tbh I would skip all the preprocessor magic proposed in the article and just go for plain C99 'option bag struct' arguments, the called function only needs to be aware that "zero means default".

I've been using this style for almost 10 years now in the sokol headers, and it still feels like the right thing to do and actually more ergonomic than most other languages for initializing complex structs, e.g. see here for creating a 3D render pipeline object with dozens of creation options, but most of them keeping their default values:

    state.pip = sg_make_pipeline(&(sg_pipeline_desc){
        .layout = {
            .attrs = {
                [ATTR_texcube_pos].format = SG_VERTEXFORMAT_FLOAT3,
                [ATTR_texcube_color0].format = SG_VERTEXFORMAT_UBYTE4N,
                [ATTR_texcube_texcoord0].format = SG_VERTEXFORMAT_SHORT2N
            }
        },
        .shader = shd,
        .index_type = SG_INDEXTYPE_UINT16,
        .cull_mode = SG_CULLMODE_BACK,
        .depth = {
            .compare = SG_COMPAREFUNC_LESS_EQUAL,
            .write_enabled = true
        },
        .label = "texcube-pipeline"
    });
(or see here: https://github.com/floooh/sokol-samples/blob/11bbe1a6865e93c...)

...this code snippet also makes use of C99 features that are not available in C++20 though (or most other languages), and it's really remarkable how well designed the C99 designated init feature as a whole is (even though it was an afterthought) and how badly its individual subfeatures were understood by most later languages (basically, only Odin got it "mostly right": https://github.com/floooh/sokol-odin/blob/7d47a31cad83a26ba1...)

comment 6d ago · link · parent

Well you guys worked really hard to get there, so...

comment 6d ago · link · parent

> ...with no showers, not toilets...

...so just like 95% of Russia in peace time? ;P

comment 1w ago · link · parent

The old gamedev wisdom is: ask your players what feels wrong, but not what the solution should be.

comment 1w ago · link · parent

Software of the early 2000s pretty much looks the same as today, quality has typically even regressed. Busy-work around the development process doesn't automatically result in better software.

comment 1w ago · link · parent

> I haven’t used it personally, but I always heard that VSS was a complete train wreck.

It was, but then it was just a version control system. Back then version control wasn't as 'intrusive' into the whole development workflow as git is today. You interacted with version control exactly twice a day: once in the morning to get the latest state, and once in the evening to commit the day's work.

comment 1w ago · link · parent

Sounds like you're in the wrong job ;P

comment 1w ago · link · parent

Last I checked those apps expire after about a week and there are quite a few other restrictions, and why bother when most apps can just as well be a simple webpage which Claude has no trouble building either ;)

comment 2w ago · link · parent

> to a PM who in my opinion was right to push back because for a non-technical person...

Ah and there's the rub. Why should a PM of a software project even be a 'non-technical person' (because tbh what's even the point, how would a 'non-technical' person even be able to evaluate technical decisions and their implementation?). And even for multi-disciplinary projects like videogames it's not too much to expect that the project manager has at least a basic understanding of all crafts that work on a game.

E.g.. there's nothing more useless than a PM that's just pushing task bars around in JIRA to make them fit into the next sprint.

...and also: would you fly in a plane, or drive over a bridge that was built under supervision of a 'non-technical' PM? (I know I know... since the Boeing disasters that question is rhetorical, most people don't seem to care)

comment 2w ago · link · parent

...exactly, and at some point you want to show inline animations or videos and all sorts of other media, show webpage previews, play audio snippets and all the other things things a webpage can do, and then you're back to either integrating a browser engine or attempt to write one from scratch (the browser engine can of course be provided by the system webview, e.g. what Tauri does).

comment 2w ago · link · parent

Oh man... if you want to start a professional career as internet troll you have a really long road ahead of you.

comment 2w ago · link · parent

It's still doing nothing that a 20 year old flight simulator wouldn't be able to do. The one potential performance problem on a laptop with HighDPI display might be the pixel fillrate to render at full resolution, but the pixel shaders in Google Earth should be extremely cheap, and if that's not enough it could drop down to half resolution with 4x MSAA without much quality loss (but an M1 GPU easily has enough oompfh per pixel on a Retina display for what Google Earth needs to render).

comment 2w ago · link · parent

> Smooth, even on an M1...

Well, I would certainly excpect that an application that was already running smoothly on vanilla computers around 2005 also runs smoothly on a computer from 2020 ;)

comment 2w ago · link · parent

Tbf, 'hardware accelerated' doesn't mean much when your text renderer is slow (which apparently seems to have been fixed after the 'Muratori drama': https://devblogs.microsoft.com/commandline/windows-terminal-...)

comment 2w ago · link · parent

> The amount of times I've been sad that multiply or sum are longer than + or * is limited to long formulas and even then it's a non issue.

It depends on what things you work on. When I'm writing 'math-y' code (GPU shaders for renderng etc) then I want the expressions to look close to the reference paper and not artificially split them up into multiple lines of code with function calls instead of operators.

comment 2w ago · link · parent

...and while at why not also dump the assignment and indexing operators!

    assign(result, add(b, mul(c, sub(d, e)), add(add(f, g), array_get(arr, i)));
(I bet I messed up the parentheses somewhere).

At that point, even assembly code is more readable. Also there's a reason why Lisp and Forth haven't exactly taken the world by storm ;)

comment 2w ago · link · parent

macOS is just a bit behind the curve. For instance a couple of years ago macOS added Windows Vista style permission popups, and Apple really doesn't want you to install UI apps outside the App Store, which is essentially the equivalent of "Windows SmartScreen".

comment 2w ago · link · parent

Windows Terminal doesn't support Kitty Graphics Protocol (yet?: https://github.com/microsoft/terminal/issues/8389).

That's the one thing I always check first in a terminal because I have this pet project to run emulators in a terminal ;)

https://github.com/floooh/chipz-kitty

(works fine in Kitty and Ghostty, wezterm theoretically also supports the Kitty protocol but at some point just freezes)

comment 2w ago · link · parent

Maybe, but it reminds me of the bad old days when Microsoft called their applications 'cross-platform', and then they just meant different flavours of Windows ;)

comment 2w ago · link · parent

Very similar, about the only difference from user perspective is that Kitty has a slight content 'wobble' on macOS when resizing the window (this typically happens when the content is rendered via an MTKView or CAMetalLayer and its parent view's 'layerContentsPlacement' isn't anchored to one side during window resizing). That would be trivial to fix though.

PS: another difference is installation size, on macOS Kitty is about 246 MB while Ghostty is 67 MB (and it looks like Kitty comes with a glslang shader compiler and python 3.14 frameworks, which together already take up 32 MB).

TL;DR: it feels like Ghostty is paying a bit more attention to platform-specific aspects than Kitty.

Also funny/sad: both call themselves 'cross-platform', but then don't support Windows (only various UNIX variants).

comment 3w ago · link · parent

More like Windows running in browser running Rebirth 338 (at least going by all the 'wine' in filenames) ;)

The webpage is loading an incredible amount of .js files which all look identical (https://margeux.com/rb338/boxedwine-firefox-20261103.js, looks like Emscripten JS shims), but then also loads two massive blobs (one is 100 MB, the other 150 MB). I'd at least check what's up with all those .js file downloads, that looks like a bug tbh.

First start takes very long btw on a 50 MBit connection, most time seems to be spent with this same small JS file that's downloaded many times, I'm sure this could be massively optimized.

comment 3w ago · link · parent

Last I checked Norway doesn't have a border with the US ;)

comment 3w ago · link · parent

Hmm, IME at least in emulators the switch tables usually have enough 'structure' that GCC or Clang have no trouble turning them into jump tables.
12345
234