HNHacker News
TopNewBestAskShowJobs

diath

1,232 karma · joined November 30, 2019

Software Engineering

C++, Python, Lua, TypeScript

Video Game Development, Linux, Automation, Software Modernization, Software Optimization, Backends

Deus Vult

submissionscomments
diath··on Nerd: A language for LLMs, not humans
The entire point of LLM-assisted development is to audit the code generated by AI and to further instruct it to either improve it or instruct it to fix the shortcomings - kind of being a senior dev doing a code review on your colleague's merge request. In fact, as developers, we usually read code more than we write it, which is also why you should prefer simple and verbose code over clever code in large codebases. This seems like it would be instead aimed at pure vibecoded slop.

> Do you debug JVM bytecode? V8's internals?

People do debug assembly generated by compilers to look for miscompilations, missed optimization opportunities, and comparison between different approaches.

diath··on Microsoft please get your tab to autocomplete shit together
It's because Tab accepts copilot suggestion, you have to press Enter instead to accept the language server suggestion.
diath··on Functional Flocking Quadtree in ClojureScript
FPS is a poor metric anyway, things like this should be measured in frame time instead - but either are meaningless numbers without knowing the hardware it runs on.
diath··on We pwned X, Vercel, Cursor, and Discord through a supply-chain attack
Yes but the primary issue was that 4chan was using over a decade old version of the library that contained a vulnerability first disclosed in 2012: https://nvd.nist.gov/vuln/detail/CVE-2012-4405
diath··on Amazon EC2 M9g Instances
No benchmarks. No FLOPs. No comparison to commodity hardware. I hate the cloud servers. "9 is faster than 8 which is faster than 7 which is faster than 6, ..., which is faster than 1, which has unknown performance".
diath··on Django: what’s new in 6.0
https://en.wikipedia.org/wiki/Context
diath··on I wasted years of my life in crypto
How does that work? You transfer the money in BTC, you exchange that into real money, you open a new bank account, you deposit that money, the bank's anti-money-laundering detection sees a large deposit to a newly open account and triggers an alert, the bank locks you out of the account and asks you for a proof of income/tax payment, you have no explanation of where that money came from legally, they freeze your account and report you to their local revenue services, you're SOL.
diath··on Valve reveals it’s the architect behind a push to bring Windows games to Arm
It's way harder to support Linux than Windows from a developer's perspective. Proprietary vs. open source drivers, approach to driver updates (rolling release vs. stable distros), 5 trillion incompatible glibc versions, X11 vs. Wayland etc, janky sound systems with varied support across Linux distributions (Pulse, Alsa, PipeWire), no ABI compatibility guarantee etc.
diath··on Why are my headphones buzzing whenever I run my game?
What if you have a collision system where collision filters can exclude collisions based on some condition in such a way that their bounding boxes can overlap? For instance an arrow that pierces through a target to fly through it and onto another target? How do you accurately store the Entity ID information for multiple entities with a limited number of bits per pixel?
diath··on Why are my headphones buzzing whenever I run my game?
> A picking texture is a very simple idea. As the name says, it’s used to handle picking in the game, when you click somewhere on the screen (e.g. to select an unit), I use this texture to know what you clicked on. Instead of colors, every object instance writes their EntityID to this texture. Then, when you click the mouse, you check what id is in the pixel under the mouse position.

Unrelated, but why? Querying a point in a basic quad tree takes microseconds, is there any benefit to overengineering a solved problem this way? What do you gain from this?

diath··on 100k TPS over a billion rows: the unreasonable effectiveness of SQLite
> Hopefully, this post helps illustrate the unreasonable effectiveness of SQLite as well as the challenges you can run in with Amdahl's law and network databases like postgres.

No, it does not. This article first says that normally you would run an application and the database on separate servers and then starts measuring the performance of a locally embedded database. If you have to keep the initial requirement for your software, then SQLite is completely out of equation. If you can change the requirement, then you can achieve similar performance by tuning the local PGSQL instance -- and then it also becomes a valuation of features and not just raw throughput. I'm not saying SQLite is not an option either, but this article seems confusing in that it compares two different problems/solutions.

diath··on Ly – A lightweight TUI (ncurses-like) display manager for Linux and BSD
Anyone else just not use any DM? The user/password prompt is sufficient for me and then my shell calls startx when initialized from the tty. It was mostly due to laziness that I did not feel like experimenting with any when I first migrated to Linux but then I just never felt the need to install one. My PC boots, asks me for user/password, then boots the X session and Cinnamon DE.
diath··on Stop Hacklore – An Open Letter
> Never scan QR codes: There is no evidence of widespread crime originating from QR-code scanning itself.

> The true risk is social engineering scams...

Exactly. My grandma is very susceptible to phishing and social engineering, I don't want her scanning random QR codes that would lead to almost identical service to the one she would think she is on and end up with identity theft or the likes.

> Regularly change passwords: Frequent password changes were once common advice, but there is no evidence it reduces crime, and it often leads to weaker passwords and reuse across accounts.

Database leaks happen all the time.

diath··on Migrating Dillo from GitHub
Isn't that pretty much GitLab? But then most people still prefer GitHub anyway.
diath··on Reddit Migrates Comment Back End from Python to Go
> unscalable

Instagram, which is significantly bigger than Reddit, disagrees.

diath··on KDE going all-in on a Wayland future
It's actually wild that they're trying to sell lack of basic desktop features as "security features". Try explaining to an average person that when they are playing a game and want to capture a cool moment to share on Discord with their friends that by design the window server they are using will not let them do that and it's "for their own good". Like God forbid I want my computer to be actually usable. We had the same situation in the past when Wayland lacked a way to lock in the cursor within a window and it took them like 8 years to develop a "protocol" or whatever they call it. Imagine that for each basic desktop usability/UX feature, we will have to wait another decade. At that rate Linux will never have widespread adoption on desktop. Wayland sometimes feels like an active effort to sabotage Linux on desktop.
diath··on Indie game developers have a new sales pitch: being 'AI free'
Arc Raiders has 160k Steam reviews (which is a lot) and 90% of them are positive. It also has an estimated >4M owners despite a high price tag and is currently the #4 most played game on Steam globally. The AI nay-sayers are a vocal minority - and likely just terminally online Twitter people that do not even play the game, the rest of the players are too busy enjoying the game regardless of whether it's made with AI or not.
diath··on Migrating to Bazel symbolic macros
I wish tools like CMake and Bazel simply used Lua, Python or JavaScript for their configuration instead of making their own languages with numerous quirks. There's literally no benefit of doing that.
diath··on Build desktop applications using Go and Web Technologies
QML is not native, PySide uses Python. If you pick either of those, you lose native controls and low level language for performance, so again, may as well use web-based tech. Especially that HTML/CSS support significantly more styling/animating options than QML.
diath··on Build desktop applications using Go and Web Technologies
Making good GUI software requires a lot of iteration and trial and error before you're satisfied with the UI and UX. With a web-based tech, you make a change, auto reload triggers, you see the change almost instantly, making tweaking very easy. If you're working with a large Qt codebase, every little change to a header file requires a long ass compile times. It's really frustrating when you spend an hour just tweaking a few controls when you know it could have taken 5 minutes. Also, the reactive model as seen in web frameworks like React or Vue is much superior to the typical flow of state management in retained mode GUI applications in desktop frameworks. Until we have a decent solution that solves these problems, people will continue using tech like Electron or OS web views.
diath··on Gnome is better macOS than macOS
To quote one of the lead GTK/GNOME developers, "what makes you think font sharpness is a metric (of font rendering quality)"? It's absolute madness: https://gitlab.gnome.org/GNOME/gtk/-/issues/3787.
diath··on Gnome is better macOS than macOS
Have you tried Cinnamon? I've been happily using it for years, Cinnamon is pretty much GNOME before GNOME started getting bastardized. GNOME these days is pretty much two devs having very strong opinions about how the DE should serve them with no regards to usability or other users; I wouldn't hope that it will improve in the future.
diath··on How I learned Vulkan and wrote a small game engine with it (2024)
If you want something like SDL but for 3D, check out Raylib.
diath··on Cloudflare outage on November 18, 2025 post mortem
Falling back to a generic base configuration in the presence of an incoming invalid config file would probably be a sensible thing to do.
diath··on Cloudflare outage on November 18, 2025 post mortem
> You misunderstand what Rust’s guarantees are.

Well, no, most Rust programmers misunderstand what the guarantees are because they keep parroting this quote. Obviously the language does not protect you from logic errors, so saying "if it compiles, it works" is disingenuous, when really what they mean is "if it compiles, it's probably free of memory errors".

diath··on Azure hit by 15 Tbps DDoS attack using 500k IP addresses
I'm not sure why you're being downvoted, this is literally what keeps happening to me. I run a couple private MMO servers, I regularly get hit with DDoS attacks and clowns like this guy DMing me to demand money to stop attacking my servers:

https://abyss.diath.net/img/20251118055501688.png

diath··on I'm making a small RPG and I need feeback regarding performance
GPU code performance != CPU code performance. You can have a visually trivial game (Dwarf Fortress pre-makeover) that will grind your CPU to a halt because of all the simulations it has to process. You can also have a visually complex game that will run fine because the rendering will be properly optimized to reduce drawcalls etc but as the number of units grows, it will push your CPU to the limit.
diath··on Tell HN: X is opening any tweet link in a webview whether you press it or not
Instagram does that too, I never accidentally like any post when scrolling, but I accidentally like ads every day.
diath··on Chromium Browser DoS Attack via Document.title Exploitation
No, when you run something like <script> while(true) {} </script>, it will only freeze the tab where you ran it, the browser UI and other tabs will still be responsible and usable. When you run this DoS, it makes the entire browser unusable, and exhausts your system memory, eventually crashing the entire browser.
diath··on UDP isn't unreliable, it's a convertible (2024)
> It's so common it's almost an instinct. But that description doesn't quite hold up once you look closer. UDP isn't unreliable in the sense that it fails to do its job -- it's unreliable in the same way a convertible is "un-dry".

Well, no, it's unreliable in the sense that if I ordered a package online, the courier may get lost on the way and never come with my package, and then I have to order it again if I want it delivered, and then hope that this time it actually does, in that case, it kind of does fail to do its job if you want things to be delivered.

← PreviousPage 5 of 12Next →