HackerTrans
TopNewTrendsCommentsPastAskShowJobs

diath

1,132 karmajoined 7 лет назад
C++, Python, Lua, TypeScript

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

comments

diath
·11 дней назад·discuss
> Immigrants economic contributions are net-positive, its not at the expense of anyone bc economies are no zero sum games.

It's at the expense of women and their safety, for example. Between years 2010 and 2015, 60% of rapes in Sweden were perpetuated by people of foreign origin: https://pmc.ncbi.nlm.nih.gov/articles/PMC8330751/. That was back when foreigners made up about 20% of their population, which I think is now over 30%, extrapolating, the immigrant rape problem is likely even worse. At what point do we stop putting economic growth over the well being and safety of citizens?
diath
·16 дней назад·discuss
"just know people bro"
diath
·19 дней назад·discuss
Why is it surprising? This is essentially a pre-built PC in a small form factor and most PC peripherals are USB-A.
diath
·19 дней назад·discuss
Minecraft has two versions, Java and Bedrock (C++), the Bedrock edition uses bgfx: https://www.minecraft.net/en-us/attribution
diath
·25 дней назад·discuss
There's so few gun related homicides in Poland that an execution style murder is 100% either mafia affairs or assassinations: https://en.wikipedia.org/wiki/Gun_laws_in_Poland#Gun_deaths_...
diath
·26 дней назад·discuss
With regards to 1), do not write/read structs directly to/from files. Instead write a proper serializer/deserializer. Without it, you may encounter another breakage soon when a different compiler/compiler options insert different struct padding bytes, which will then once again make your data non-portable, and a maliciously crafted save file with no length/size field validation on the deserializer level can lead to a variety of memory bugs.
diath
·в прошлом месяце·discuss
These jobs are unpopular because the pay is shit, not because people don't want to do them, the government could simply have grants/bonus program for people employed in these positions so that the taxpayer money directly funds the bettering of the society and environment around them. Besides, Japan is a good real world example that you do not need to lean on immigrant labor to stop your country from becoming "dirty"; it's one of the most ethically homogeneous countries and also one of the cleanest places you can visit.
diath
·в прошлом месяце·discuss
It has not lagged behind depending on how you look at it, video game development can be split into engine programming and gameplay programming. For engine programming, you only need a handful of senior engineers specializing in low level details of a video game engine, and these will get paid high appropriate wages that match industry standard salaries. For the gameplay programmers, they just seek the cheapest labor that can do "quantity over quality" type of work to pump out content and there's a large pool of juniors/interns that will accept these low wages just because they want to be a part of something popular.
diath
·2 месяца назад·discuss
So... git rebase -i?
diath
·2 месяца назад·discuss
I just have a rule in AGENTS.md that any additions, removals or modifications to the public facing APIs should update the corresponding API documentation, works fine for me (assuming both sit in the single workspace).
diath
·2 месяца назад·discuss
If you have a VPS that's always running, you can just use it as a git remote through SSH without moving things around or any third party software, just put the Git repo on the VPS and clone it via "git clone ssh://user@host/path". You get authentication, encryption and synchronization out of the box with just ssh/git.
diath
·2 месяца назад·discuss
> Who said anything about recreating the exact code?

The person I'm replying to? Who said you will get the same code as if it were the original source?
diath
·2 месяца назад·discuss
Absolutely. This is just some delusions of a vibe coder at best. Not with just current generation of AI tools but essentially never. The conversion from C, C++, Rust or whatever, through post-processing (macros etc), through IR generation, through compile time optimizations, through link time optimizations, to the generated machine code is a one way street for low level languages. You can get a pretty close higher level approximation that matches the flow/logic/structure - but the code will never be anywhere near close to the original source code. I could write the same C++ program in 3 different ways and get identical assembly, how do you go back to the exact source? The answer is that you don't.

Here's the same simple program, written in 3 different ways, producing identical binary compatible code: https://godbolt.org/z/qWrc8fEnn

How does the AI know whether it should produce back the snippet #1, #2 or #3? It does not. It cannot.
diath
·2 месяца назад·discuss
It has been available since GCC 12.1 (May 2022), Clang 19.1 (Sep 2024), and Visual Studio 17.13 (2022~): https://godbolt.org/z/on1v6qdf3

These days compiler developers implement accepted standard features pretty fast.
diath
·2 месяца назад·discuss
It's an advertisement for their tool that found the exploit: https://copy.fail/#contact, https://xint.io/products/xint-code
diath
·3 месяца назад·discuss
I have read it, if you scroll down to the API list for the new text functions, they all relate to text (string) manipulation, not text rendering. There's still no native mechanism for caching text vertexes between frames.
diath
·3 месяца назад·discuss
The remaining issue I have with Raylib is that the library has no concept of a Text object, so for text-heavy scenes (lots of combat damage texts in fast paced games, lots of UI elements), the library spends most of the time recalculating font glyph stuff when drawing text.
diath
·3 месяца назад·discuss
From the article:

> State law classifies camera-based tickets as mere violations, and they don’t add any points to a driver’s record, even though exceeding the speed limit by 11 miles per hour is worth four points on a license — but only if the offender is caught by a cop instead of a camera. Just three of those tickets suspends a driver’s license, but Giovansanti can keep on driving.
diath
·3 месяца назад·discuss
> The goal is to migrate everyone to EVs

This won't happen unless they outright ban non-EV vehicles which is unlikely considering how many people are still using old cars and cannot afford new cars, how many car enthusiasts are there, and not to mention potential lobbying from big oil.
diath
·3 месяца назад·discuss
> I didn't really want to wander outside of VSCode just yet because I was happy with VSCode/Copilot/Opus-4.5

This was my first thought too but apparently you can just use Claude Code within VSC: https://code.claude.com/docs/en/vs-code