23,658 karma · joined Oct 15, 2013 (13y ago) · 7,007 submissions
comment 3d ago · link · parent
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
...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
...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
> 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
https://docs.vulkan.org/refpages/latest/refpages/source/VkDe...
comment 5d ago · link · parent
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 1w ago · link · parent
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 2w ago · link · parent
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
comment 2w ago · link · parent
comment 2w ago · link · parent
comment 2w ago · link · parent
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
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
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
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
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.