Better HN
topnewbestaskshowjobs
Log inSign up

generichuman

2,286 karma · joined Jan 30, 2017 (9y ago) · 242 submissions

Nope
Submissions

comment 2d ago · link · parent

Ocarina of Time is available for you to play without a Switch 2 as long as you can dump the cartridge yourself, so that part of the argument is a bit shaky.

Also they're not under an obligation to provide their games to PC gamers, keep that in mind.

comment 3d ago · link · parent

The (Tracing) Garbage Collector abstraction isn't really designed to be controlled though. You can understand the implementation and write code against that, but at that point, why not switch to something that you can genuinely control?

I'm not saying manage memory manually. You can switch to a language that is reference counted. Then at least that abstraction guarantees deterministic deallocation.

That comes with another set of trade-offs such as having to pay attention to atomic reference counts, making sure there's no cycles, maybe even treating some graphs as arenas to avoid chained deallocations, but the abstraction itself is designed to be deterministic and is more easily controlled.

comment 1mo ago · link · parent

Not dead on arrival, just extremely expensive on arrival for commercial/production use-cases, unless you're using Windows Containers on Azure.

They're missing things like winget as well, but that's mostly an inconvenience rather than a blocker.

4.

Triton: DirectX 11 driver for QEMU(blog.getutm.app ↗)

7 points · by generichuman · 4mo ago · 1 comment

comment 4mo ago · link · parent

You can use GLM in OpenCode with a z.ai subscription by default as well. Also it'd be good if you mentioned you were involved with nemesis8.

6.

No-One Is Going to Buy Your Videogame(illomens.itch.io ↗)

25 points · by generichuman · 5mo ago · 2 comments

comment 9mo ago · link · parent

That's cool. I imagine I could also maintain a MinGW package that can be downloaded through the Zig package manager and statically linked without involving the zig libc? (Such that the user doesn't need to install anything but zig)

That's a good way to sell moving over to the zig build system, and eventually zig the language itself in some real-world scenarios imo.

comment 9mo ago · link · parent

This is very exciting for zig projects linking C libraries. Though I'm curious about the following case:

Let's say I'm building a C program targeting Windows with MinGW & only using Zig as a cross compiler. Is there a way to still statically link MinGW's libc implementation or does this mean that's going away and I can only statically link ziglibc even if it looks like MinGW from the outside?

9.

Pico GPU is a 300KB memory GPU intended to learn and experiment with shaders(ncannasse.github.io ↗)

2 points · by generichuman · 10mo ago · discuss

comment 10mo ago · link · parent

Check Detour out: https://github.com/graphitemaster/detour?tab=readme-ov-file#...

I suspect with combination of Detour & Zapps it could be possible.

comment 10mo ago · link · parent

Can you build GUI programs with this? I'm thinking anything that would depend on GPU drivers. Anything built with SDL, OpenGL, Vulkan, whatever.

comment 1y ago · link · parent

If your use case is generating html, MathML is supported in all modern browsers: https://developer.mozilla.org/en-US/docs/Web/MathML#browser_...

13.

Producing Open Source Software – 2nd edition(producingoss.com ↗)

1 points · by generichuman · 1y ago · discuss

comment 1y ago · link · parent

I will be even more impressed with linux syscall stability if your implication is that (some) people need to recompile their software for each major update on all other UNIXes.

comment 1y ago · link · parent

I'm only thinking in terms of Linux distributions since I never needed to deploy software on other UNIXes (excluding macOS, but Apple constantly forces changes anyway).

Do other UNIXes have any problems similar to glibc ABI problems that Linux users experience, or do they stabilise the libc ABI similar to how Linux keeps syscalls stable?

comment 1y ago · link · parent

That doesn't give you independence from the libc, does it? By extension you lose distro-independence too (not sure if Detour supports musl-based ones, need to run tests).

Agree that IPC will be more secure and stable though.

I imagine Detour is mostly targeting closed source projects trying to run on as many distros as possible.

17.

NJVL: Nim's New Intermediate Representation(github.com ↗)

78 points · by generichuman · 1y ago · 9 comments

18.

Detour: Dynamic linking on Linux without Libc(github.com ↗)

79 points · by generichuman · 1y ago · 8 comments

comment 1y ago · link · parent

That's only true if you're making CRUD software and easily replaceable by any random programmer. For anything more serious LLMs are only useful as a better search engine.

comment 1y ago · link · parent

Keep in mind there _may_ be a negative feedback loop there.

If you're building your software in a way that won't be able to perform better with superior disk/db/network performance, then it isn't worthwhile to ever upgrade to a more performant disk/db/network.

If it is possible, make sure your software will actually be faster on a faster disk rather than just testing on a slow disk and thinking "well we're I/O bound anyway, so no need to improve perf".

comment 1y ago · link · parent

All fair, but:

> As for the "...latest version of the SDKs..", that is moving the goal posts, there is no mention of it on [...]

I thought it was implied since tooling & library breakages over the years happen and sometimes you can't just get the old SDK to run on the latest Windows / macOS. If the languages and Ant/Maven are backwards compatible to that extent, that's actually pretty good!

I had to deal with moving a .NET Framework 4.7 project to .NET Standard 2.0 and it wasn't effortless (although upgrading to each new .NET release after that has been pretty simple so far). We took a couple of weeks even though we had minimal dependencies since we're careful about that stuff.

comment 1y ago · link · parent

Okay, C++ is believable, but can you really build a Java / .NET project that was not touched for 20+ years with no changes to the code or the build process (while also using the latest version of the SDKs)?

I imagine you can _make_ a project compile with some amount of effort (thinking maybe a week at most) but they wouldn't be exactly "unzip the old archive and execute ./build.bat".

comment 1y ago · link · parent

I landed on "immutable distros by default for average users" as well. It is a more Windows/macOS like experience where it is much harder to mess up the system.

Flatpak guarantees everything will work in most cases, and for other cases there's AppImage. Just need to get most devs to distribute AppImages. BoxBuddy with distrobox will solve _all_ edge cases where someone says "X works with Y in Z on my machine" so you replicate their machine in distrobox.

I know this is trading program size with convenience, but that's what Windows and macOS does too. It is better to be on some immutable linux distro rather than Windows in my opinion. We don't have to force the average person who just wants their computer to work to install (extreme example) Gentoo or whatever.

24.

Teal – A statically-typed dialect of Lua(teal-language.org ↗)

229 points · by generichuman · 1y ago · 173 comments

25.

Windows User Space Emulator(momo5502.github.io ↗)

1 points · by generichuman · 1y ago · discuss

26.

The state of binary compatibility on Linux and how to address it(jangafx.com ↗)

201 points · by generichuman · 1y ago · 143 comments

27.

How do I make sure my game runs well on Via?(venusoft.net ↗)

1 points · by generichuman · 1y ago · 1 comment

comment 1y ago · link · parent

https://archive.md/cvzgy

(was down for me, this fixed it)

12345
9