News for hackers. Stuff that matters.

agosz

Re:Libghostty 1.0 on Saturday November 07, 2026 @02:03PM (#50407052)
If you do version and size as the first two fields, you're basically there to backwards and forwards compatibility. Callers can request the size of the struct, allocate a buffer, and read out the parts they need. They can also check specific versions for what they support and ignore newer versions.

It also helps if you only append to the end of the struct for newer fields.

If you want to search the archives that they released: https://nyitottaktak.hu/#kereses

The article links to this site and that's the search page

Re:Frontier AI on Your Own Hardware on Monday September 21, 2026 @10:29PM (#49796145)
> The difficulty did not disappear. It moved. It is no longer hard to publish a paper. It is hard to publish a coherent ecosystem.

Terrible article. It's full of these; it's tell-tale LLM. I'm surprised people post these, especially after all the articles that got upvoted that people hate LLM written articles.

Nevertheless, my curiosity got the better of me, and I thought the author might have some valuable insight further down. I skimmed forward where he talks about pessimism and came across this:

> the “software engineer” job no longer exists — and both are now within reach: agent skills come with time, and deep specialization, which used to take years, is quick to acquire with agents.

This is just plain wrong with the experience we've had ramping up juniors on my team (compiler backend). It still takes a long time to get to know the domain. Agents can't replace context and knowledge about the whole system and how it fits together with other systems and the use cases it might be subjected to. Agents can help accelerate it, but it doesn't feel like it has been "quick to acquire" for the juniors that joined my team.

Re:I write games in C (yes, C) on Tuesday February 10, 2026 @03:13PM (#46966137)
That's so cool! I didn't know they open sourced it. Is your work also open? And how do you check that the frames don't change?

I love seeing people try to revive old games and improve them for players. I've made a couple of contributions to VCMI, an open source implementation of heroes of might and magic 3 that I used to play as a kid and it's so rewarding seeing people use those.

Re:I write games in C (yes, C) on Monday February 09, 2026 @04:35AM (#46943393)
If I may ask, how did you end up getting access to the code base? And what are you doing with it?
Re:Astro is a return to the fundamentals of the web on Wednesday July 09, 2025 @05:21PM (#44514855)
How does this compare to a static site generator like 11ty? What would be the benefits of Astro over that or another site generator?
Re:Introducing command And commandfor In HTML on Friday March 07, 2025 @06:13PM (#43295861)
That's what people say of C++ too. Too many features makes it harder to learn a language and ramp up on codebases; they'll have different standards on what they use.
Re:C++26: Pack Indexing on Friday January 24, 2025 @03:39PM (#42816703)
The compatibility can be solved with macros to toggle it on or off depending on how you're building. C++26 has constexpr sqrt.
This will ultimately benefit the current Big Tech incumbents. Tiktok was gaining ground rapidly on advertising money and I wouldn't be surprised if there was lobbying that stifled the competition.

Instead of banning TikTok, we should be trying to compete with them and make a better product that wins customers over. It's sad to see the US becoming more authoritarian and follow China's example.

Re:Valve is testing ARM64 support for popular games on Tuesday September 24, 2024 @12:26AM (#41633103)
Yes, that's correct! Unfortunately ARM64 can't fully interface with x64 code (e.g. you can't translate an ARM64 CONTEXT to an x64 one directly due to differing numbers of registers), so the backwards compatibility is restricted to ARM64EC only.
Re:Valve is testing ARM64 support for popular games on Monday September 23, 2024 @06:39PM (#41631343)
ARM64EC doesn't really make your code JITable. It is ARM64 code with thunks to enable transitions to x64 code. That's why it runs at near native speeds; not because of the JIT. The x64 portions of the binary do get JITed though, but the ARM64EC portions are usually much faster.

All x64 code gets JITed but that's regardless of whether ARM64EC is used or not; ARM64EC allows ARM64 applications to interface with x64 binaries.

Re:Valve is testing ARM64 support for popular games on Monday September 23, 2024 @03:33AM (#41623356)
ARM64EC requires source and it produces an ARM64EC executable, which runs close to ARM64 speeds. x86/x64 executables are emulated.
Re:How America's universities became debt factories on Saturday September 14, 2024 @02:31PM (#41541813)
> I went to Georgia Tech over other universities because it was in-state and Georgia has generous scholarships for students with good grades. So why does competition among schools not lower costs?

All the schools have access to loans that are guaranteed to be repaid. We still have the mindset that degrees are required for employment (I'm not commenting on whether that's good or bad; that's just the current cultural mindset). Because of this, schools have no incentives to control costs. The students will go regardless because they have access to money that will pay for the tuition, no matter how much it costs. There's no penalty for the universities to raise costs because they will get students anyways.

Re:Leaving Neovim for Zed on Sunday August 18, 2024 @03:46PM (#41284860)
Can I use the VS Code C++ extensions still?
Re:GitHub Is Down on Wednesday August 14, 2024 @07:13PM (#41251526)
It's showing a few incidents now. Some things are still green though that don't seem to be working.
MPL or CDPL
I have tried using LLMs on the legacy C++ codebase that I work on, and the only thing it could reliably do was generate code for unit tests.

When I fix bugs, it's usually not helpful because I need to debug and track down where the bug is.

When I develop new features, it occasionally uses the wrong lock, or makes up APIs that don't exist. I find it gets in the way more for development.

For C# and .NET core, I found IntelliCode to be pretty useful.

Re:Compilers Are (Too) Smart on Sunday June 09, 2024 @04:24PM (#40627305)
Yes, D. D has great support for compile-time function execution, and generics. You can generate code at compile time and use it with generics. It's what C++ should have been.