News for hackers. Stuff that matters.

pfg_

Because you can't prove that the optimized version is the same as the original version
When I first switched to Android, I was shocked to see Google's Photos app send me an ad for buying printed printed framed photos. After turning that off, I haven't noticed many ads.
Re:I made a build profiler to understand Bun's compile times on Saturday September 12, 2026 @07:56PM (#49678497)
The issue with splitting up Bun's Zig module is that Rust is designed for multiple crates compiling separate objects and linking them together in the end, but for Zig you would need to manually export and import C abi functions and you can't make use of language features like slices, generics, non-extern structs, and others anymore. In Zig, every module is compiled in the same compilation unit. Even the standard library is compiled in the same unit as your app.
Re:Minecraft: Java Edition now uses SDL3 on Sunday July 19, 2026 @03:54PM (#48971203)
Snapshots do let you upgrade worlds to future releases and you don't need to do any NBT editing, just upgrade the game and load the world.
Steam fixes this by having a footer, and putting more content under the footer. Google search also did this on mobile for a little while.
Re:Show HN: Zanagrams on Sunday June 28, 2026 @03:39PM (#48710794)
You're not stuck, the board only removes letters and connections that are not used by any other word (probably excluding "bonus words"). So the word(s) you're missing are still on the board.

No hint feathre though, the hints are the letters going away. You'll probably have to use a scrabble search or something.

Re:You don't want long-lived keys on Friday April 24, 2026 @07:11PM (#47896941)
The fixed position background made it look like I had dust on my phone screen
Elite Beat Agents lives on as osu! which can be played using a mouse or drawing tablet
Re:A new spam policy for "back button hijacking" on Tuesday April 14, 2026 @12:31PM (#47767824)
Usually when I see this from non-spam sites, it's not even pushstate, it's just some page that redirects as soon as it loads. So you press back twice and it goes back -> forwards -> back -> forwards. Disabling pushstate doesn't fix that, it just makes pushstate equivalent to a redirect.
MV3 still allows you to run content scripts, which can inject any javascript into any webpage. From there, you can do anything you want. You can steal passwords, tokens, show popups, redirect, ... etc. Preventing extensions from dynamically modifying network requests doesn't change that.
Re:Optimal Strategy for Connect 4 on Saturday April 11, 2026 @03:33PM (#47733331)
This is the first human-learnable weak solution for connect 4. Surely it can be improved.
Firefox has this ability by default and I find it very useful. And it will never get sold to some random person to be replaced with adware.
This only applies to sleeper car routes. You're on the traib for 2-3 days, mostly with no cell service. If you eat in the restaurant car, they will seat you with strangers. If you sit in the observation car, there's a bunch of other people sitting there too.
Re:A Coherent Vision for the Future of Version Control on Sunday March 22, 2026 @08:01PM (#47483730)
I tried p4merge a while ago and it didn't do it ubfortunately, still stuck copying the base and ours to seperate files and diffing them.
Re:Apple Introduces MacBook Neo on Thursday March 05, 2026 @03:31AM (#47259127)
Mac is good at managing low memory conditions. Linux is not. When I was on Linux, if I hit 16gb ram used the entire system would freeze for minutes. I would have to go in TTY2 to kill something to get it responsive again.
Speed bumps suck for both the driver and passangers of the car and generate road noise.
Re:Case study: Creative math – How AI fakes proofs on Monday January 26, 2026 @12:55AM (#46762288)
Probably gemini on aistudio.google.com, you can configure if it is allowed to access code execution / web search / others
Re:Dead Internet Theory on Monday January 19, 2026 @06:10AM (#46677621)
They're saying one example of a reason someone could fake a video is so it would get found out and discredit the position it showed. I read it as them saying that producing the fake video of a cop being racist could have been done to discredit the idea of cops being racist.
Re:Scripts I wrote that I use all the time on Wednesday October 22, 2025 @07:02PM (#45676254)
fish lets you cd to a folder without 'cd' although you still need the slashes. I use it all the time.

    c $> pwd
    /a/b/c
    c $> dir1
    dir1 $> ..
    c $> ../..
    / $>
Re:Show HN: rift – a tiling window manager for macOS on Sunday October 12, 2025 @05:25AM (#45556766)
I wouldn't consider having good default configs and being feature-rich at odds with eachother. Ghostty is feature-rich but needs no config. There's no reason yabai needs to be so highly composable that it doesn't even have a hotkey listener by default and and instead points you to another piece of software that only translates hotkeys to shell commands and is no longer being maintained. i3 at least has a pretty usable default config.
Re:Zig builds are getting faster on Friday October 03, 2025 @08:34PM (#45469406)
The reason to care about compile time is because it affects your iteration speed. You can iterate much faster on a program that takes 1 second to compile vs 1 minute.

Time complexity may be O(lines), but a compiler can be faster or slower based on how long it takes. And for incremental updates, compilers can do significantly better than O(lines).

In debug mode, zig uses llvm with no optimization passes. On linux x86_64, it uses its own native backend. This backend can be significantly faster to compile (2x or more) than llvm.

Zig's own native backend is designed for incremental compilation. This means, after the initial build, there will be very little work that has to be done for the next emit. It needs to rebuild the affected function, potentially rebuild other functions which depend on it, and then directly update the one part of the output binary that changed. This will be significantly faster than O(n) for edits.

Re:Show HN: Powerful Visual Programming Language (Book) on Friday October 03, 2025 @08:14PM (#45469257)
How is it real if it only exists as a spec in a book? Is there a compiler? Is there an editor?
Re:The effects of algorithms on the public discourse on Friday September 12, 2025 @03:34AM (#45219639)
> If there was a service that detected "here's a word from our sponsors" parts of the video and removed them, that would be altering Content

This exists and it's called SponsorBlock. It automatically skips past sponsored segments. Debatable if that is altering content though

Re:No adblocker detected on Tuesday September 09, 2025 @03:30AM (#45178668)
Youtube creators get access to watchtime stats which show a dip for sponsored segments. My understanding is that sponsor contracts typically don't ask to get access to that data though, instead they look at views and refferals
Re:Why Language Models Hallucinate on Sunday September 07, 2025 @02:59AM (#45156014)
I tried this four times, every time it recognized it as nonsense.
Re:The Math of Shuffling Cards on Sunday September 07, 2025 @01:42AM (#45155701)
But it's not just good enough, it's optimal. It is equivalent to picking a random deck from the set of all possible decks assuming your random source is good. More random than a real shuffle.
Whenever I use chrome, I'm missing the style editor and multi-line repl mode from firefox. When I switched to firefox from chrome, I didn't miss anything. There might be new features chrome has added since that I would want if I knew about them
The whole comment is spoilered, so you need to click on it to reveal that text. Presumably it could also appear in a comment that you need to scroll on the page to see.

It's clear to a moderator who sees the comment, but the user asking for a summary could easily have not seen it.

Re:A Fast, Growable Array with Stable Pointers in C on Wednesday August 06, 2025 @04:40PM (#44817536)
Zig has this as std.SegmentedList, but it can resize the segment array dynamically
Even when the bisect points to a large commit, it's usually not too difficult to find the source of the regression. Sometimes I've had to go into the original PR and bisect on its commits which is a bit harder. It doesn't seem worth it to me to try to maintain commit quality within a PR when as long as I commit often enough it doesn't really make a difference.

Older »