News for hackers. Stuff that matters.

dezgeg

Re:Iterating Backwards in C on Friday October 30, 2026 @07:04AM (#50302314)
Isn't decrementing pos beyond start of haystack technically undefined behaviour?
Re:Who Is Planting Backdoors in Ledger Crypto Wallets? on Wednesday October 14, 2026 @08:46AM (#50086876)
Well it doesn't need to be a generic purpose OCR, just one that works for this single UI layout and font.
How do you know the original code didn't use some undefined variable on stack, but happened to consistently work because something else spilled a register containing "suitable" value?
I've generally found it better to do it other way around - keep all the stuff in Linux partition and from Windows side access that over the virtual network share \\wsl.localhost\<Distro>\home\me\whatever
On top of the performance issue you mentioned, /mnt/c will be case-insensitive and trip up lots of Linux software!
Doesn't the Microsoft implementation work by having nop instruction as the first instruction of the function, which can then be patched to a jump to the patched code, that finally jumps back to the original function past the NOP?

Naive implementation of this scheme doesn't allow stacking.

Re:What Meta Got Right with Muse on Saturday October 03, 2026 @07:32PM (#49948844)
> YouTube, Google, Google Maps, and Chrome

You listed products that have been around for ~20 years. Keeping up already entrenched products running doesn't correlate with being able to launch new products.

Re:NTSB Preliminary Report: Prime Air 767 Runway Overrun [pdf] on Saturday October 03, 2026 @05:46AM (#49942749)
I'm gonna guess that the crew have been regularly landing while ignoring similar automated warnings in the past
Re:The systems that no one will test on Tuesday September 29, 2026 @11:11AM (#49894694)
Not to mention how any sort of TLS key exchange is supposed to happen with an unidirectional network.
Re:"They had no concept of a duty of care to their users." on Sunday September 27, 2026 @12:41PM (#49868317)
If your session / computer crashes, for one.
Re:From Thin Air to Bootable Images: The Tine Build System on Saturday September 26, 2026 @09:53AM (#49856575)
Yes, most of this is all supported. There is a existing recipe for building an image that you just dd to and SD card and can boot in a Raspberry Pi (and other devices supported by mainline kernel + u-boot).

Kernel is a package just like another; so you just write your own recipe. Patching kernel recipe works just like patching any Nix recipe.

Not sure about the rockchip-proprietary boot parts; you may be on your own.

Re:Linux support is coming to Snapdragon X2 Series on Friday September 25, 2026 @03:44AM (#49841408)
In theory device trees are supposed to be a OS-neutral stable ABI. Being able to put a device tree into unchangeable mask ROM is an often mentioned design goal.

However, there is a fatal flaw in the process that makes this a pipe dream in reality. In Linux, these rules only apply to reviewed and merged drivers. And during review any new DT interface will almost certainly be bikeshedded in some way.

So unless your chip vendor has upstreamed ALL their drivers before a device is manufactured, the device's firmware-provided DT will very likely work only against a vendor kernel and requires updating.

Re:Linux support is coming to Snapdragon X2 Series on Thursday September 24, 2026 @07:00AM (#49828911)
It probably will help you maintain a better local fork, but getting all things upstreamed is the bottleneck and won't help too much here.
Correct, N64 and PS1 era projects can essentially always be strictly tackled one function at a time. There are very minor things (like string literal sharing) where some earlier function can affect later function, but the workarounds are comparatively simple.

On the other hand, I have heard even old MSVC is a nightmare. Various things are affected by hash table ordering (so the names of variables matter in some situations), stuff like order of #includes mattering, etc.

Re:Ogre Battle 64 Recompiled Project at 99.05% on Monday September 21, 2026 @03:38AM (#49784209)
The term for that is byte-matching decompilation. This is not such project.
Re:Why MCP Was Always a Bad Idea on Sunday September 20, 2026 @04:17PM (#49779645)
Don't most harnesses already do that for bash commands?
There is more normal looking code in other files. It sounds like the original game had animation data (or similar) embedded in the C code.
Re:The Scourge of x86 Emulation on Friday September 18, 2026 @04:58AM (#49751785)
Games use plenty of native code; so much in fact that when Intel tried to enter the Android tablet market with x86 they had to write an ARM emulator.
4G/5G Telco equipment (ab)use HDMI connectors/cables in a similar way.
Re:Homebrew 7.0.0 on Sunday September 13, 2026 @09:31AM (#49683803)
How is that any different from PyPI, npm, cargo, etc?
Re:Git Submodules as a Package Manager on Saturday September 05, 2026 @11:58AM (#49577797)
Correct way is to have everything as-if a source dependency, but a globally shared cache system that can automatically provide artifacts if that exact version of source has already been compiled.

Any system that can only consume manually built (and even in worst case, only tagged and globally pushed) dependencies is horrible for cross-module development, like large scale refactorings and the like.

Re:Claude Fable 5.1 and Claude Mythos 5.1 on Tuesday September 01, 2026 @02:59PM (#49526411)
Yeah, for all the hate Gemini gets, at least it isn't obsessed with adding comments and it's output is more readable than recent Claude's.
Re:Ox-Alpha Is GLM on Tuesday August 25, 2026 @09:28AM (#49433687)
I extremely doubt it's Gemini - all previous Geminis have had very different output style from other models. In a coding harness Gemini is extremely quiet and mostly just does thinking and tool calls, with the thinking blocks heavily summarized.

Also Claude and the Chinese models really like to say "Let me X", Geminis preference is "I will X".

I wonder if pilots' medical checks would catch some of these early?
GPT-o3 was the first OpenAI one to beat Red. The harness used by GPT Plays Pokemon is the most featureful one of the main competitors (GPT, Claude, Gemini), IIRC.

Community maintained spreadsheet of the runs: https://docs.google.com/spreadsheets/d/e/2PACX-1vQDvsy5Dt_-P...

Re:Spaghettifying DRAM on Friday August 14, 2026 @09:55AM (#49298730)
How so? In my experience, the peak of Device Tree days was with the final 32-bit ARM chips before move to aarch64. Back then you had U-Boot which did minimal stuff and after that the kernel had full ownership of the hardware, no management firmware layers or extra code at runtime.

It's during the move to 64-bit aarch64 where things started to imitate the x86, with more and more always-on firmware and secure monitors and whatever being introduced. Nothing really to do with device tree, in fact ACPI is being pushed to the ARM too, yet again hiding more details of the hardware towards proprietary bytecode.

Re:wsp: Multi-Repo Workspace Manager on Saturday July 25, 2026 @01:09PM (#49049393)
Essentially a vibe-coded clone of https://android.googlesource.com/tools/repo ?
Seems like I have much better results with Gemini <= 3.5 Flash being able to solve 10 Lake levels. Of course there may be methodology differences (like how many times the level is attempted from scratch).

I wonder if the reasoning tokens are still being accidentally discarded between turns in those tests. It seems to be much more important to preserve those for Gemini, as it likes to stay quiet and and just make tool calls, unlike Claude that yaps a lot what it's planning to do.

Good stuff, I've been trying this myself with Geminis: https://www.youtube.com/watch?v=brkP58pZ23w&list=PL8C_UWcLmv...

Will be interesting to compare the results.

Older »