News for hackers. Stuff that matters.

correct_horse

Re:Apple Music 404 Not Found on Friday October 23, 2026 @03:45PM (#50214365)
I’m sorry to hear that your iPod might be bricked. I haven’t worked on an iPod gen2 personally, but I repaired an iPod mini. The interface for the small hard drive in that is the same as compact flash, so it’s very easy to replace the storage with something more physically durable. Or at least it is easy to find the replacement part - I haven’t tried the whole process on your iPod.
Re:Swap, ZRAM, Zswap and Hibernate on NixOS on Wednesday September 23, 2026 @09:48PM (#49825209)
Not on nixOS, but I thought I would weigh in on my preferred value for swappiness. 0. For some reason when I have a month of uptime (and I suspend once a day), doing anything with the desktop environment for the first time in a few hours causes a micro stutter for maybe 100ms, as if having to swap out from disk. Turning swap off and on again (meaning no pages are swapped to disk anymore) immediately fixes it. Opening a new tab, pressing the super key even performing certain actions in a video game cause the stutter. I know the internet tells me that 0 isn't a good value, but my computer becomes noticeably worse to use even with a swappiness of 5. I have enough RAM for anything I want to use this computer for, so swap is just for suspend for me.
Did you ever try to ask a chatbot to rephrase your hint in its own words? If it prefers LLM generated text, surely that would help.
Re:Minecraft: Java Edition now uses SDL3 on Sunday July 19, 2026 @01:36PM (#48970073)
All of my gamer friends exclusively play Java edition and so do I. Also minecraft's most active speedrun category (any % glitchless, random seed) uses version 1.16.1 on Java edition. The biggest server of minecraft youtubers, hermitcraft, runs on java edition. I suspect some younger gamers whose parents bought the first copy for them on the microsoft store play bedrock?
Re:dotNET (OK, C#) gets union types on Saturday May 23, 2026 @05:40PM (#48251828)
Haskell, OCaml, Erlang lead the way and Rust, Zig and Go get all the mindshare. I feel like its a common pattern for more experimental languages to pioneer features and other languages to copy the features and bring them to a C style syntax that the majority of devs are familiar with.
Re:Claws are now a new layer on top of LLM agents on Sunday February 22, 2026 @12:30AM (#47108486)
Mac minis are particularly suited to running AI models because they can have a pretty good quantity of RAM (64GB) assigned to the GPU at a reasonable price compared to Nvidia offerings. Mac minis have unified memory which means it can be split between CPU and GPU in a configurable way. I think apple didn’t price mac minis with AI stuff in mind, so they end up being good value.
Re:When if is just a function on Saturday October 18, 2025 @05:54AM (#45626127)
Just here to point out that the actor’s name is Bob Odenkirk not Odendirk. In a statically typed language this would be an error at compile time not hacker news comment time.
Safe rust can leak memory, so a better question is "If someone wrote C code that made an invalid read or write, would rust do the same?" I can't answer the question, but ideally if the translated was safe, it would somehow eliminate the bug while keeping the desired behavior. That scenario seems a bit too optimistic though, so probably it'll have an unsafe block that does the invalid read/write and a human can come in and add runtime checks or refactor it further.
Re:I only use Google Sheets on Wednesday October 01, 2025 @07:25PM (#45444817)
for when not to use a spreadsheet, see https://news.ycombinator.com/item?id=34968457 tl;dr when it involves automated processes
Re:A WebGL game where you deliver messages on a tiny planet on Saturday September 27, 2025 @09:10PM (#45400887)
I also got nausea from this game and I've never gotten nausea from a video game before. The style is amazing, but the camera controls need some work. I don't know what the camera needs besides a more standard mouse control.
Re:These days, systemd can be a cause of restrictions on daemons on Saturday September 20, 2025 @12:38PM (#45314872)
I think I agree. I’m curious what software would be in places 2-10. If we’re talking about HN, maybe excel/google sheets? Maybe C++? Recent versions of macOS always seem to get hate, but I think macOS is in a different category.
Re:Safepoints and Fil-C on Friday September 19, 2025 @03:15PM (#45305310)
Fil-C seems interesting, and I didn’t understand the details of how multi-threaded garbage collectors worked before reading it (I still don’t but I’m closer!). The tradeoff between a compacting garbage collector (Java) vs what you can bolt on to C without forking LLVM is particularly interesting.
Re:Impressions from a first-time Mac user on Monday April 11, 2022 @04:29PM (#30994484)
> Disable spotlight for everything except what you want to use it for

My friend's mac would "take off" (fan spun up crazy fast) after every boot/login and I disabled full-text search of documents to fix it. There was probably a weird, maybe not-to-spec pdf/docx on the filesystem that spotlight couldn't parse and got stuck. Kinda dumb that it would waste a 100% usage on one CPU core for a couple minutes every boot though.

Re:Improving first impressions on Signal on Monday November 01, 2021 @06:28PM (#29074075)
Do you think an eventually open style spam filter could work? One where the implemntation is released say 2 years after it was first written (including modifications)
Re:Overly analytical guide to escorting on Tuesday October 19, 2021 @09:54PM (#28925937)
The funniest part of this article (in the context of being posted on HN) is that the author separately mentions engineer and software engineer in her list of client professions. That settles it - normal people think they're different.
Re:Call of Duty Adds Kernel Level Driver for Anti-Cheat on Thursday October 14, 2021 @12:33AM (#28860547)
Cloud gaming would lose practical consumers' control much more than Netflix did. At the very least, one could always point a video camera at the screen to copy video (suppose for one's own records). But with games, there is no chance to do anything like this. Netflix had an interactive Black Mirror episode called Bandersnatch(2018) that I speculated at the time was appealing from a business perspective because copying interactive content is much harder than straight video.
Re:Joe Rogan, confined to Spotify, is losing influence on Wednesday August 25, 2021 @04:14PM (#28306346)
Memory hole is from 1984. It is where they put papers to be incinerated and forgotten. Spotify removed a few Joe Rogan episodes IIRC.
Re:How Actors Work Internally in Swift on Friday August 13, 2021 @10:15PM (#28177197)
I'm not sure if the author of this blog visits hacker news to read this, but your code blocks are unreadable without javascript. They're black highlighted black text.
Re:How Actors Work Internally in Swift on Friday August 13, 2021 @10:09PM (#28177179)
Unsurprising, since the creator of rust, Graydon Hoare now works for apple on swift[0] in "a non-leadership position".

[0] https://old.reddit.com/r/rust/comments/7qels2/i_wonder_why_g...

Re:GNU nano is my editor of choice on Friday August 13, 2021 @06:27PM (#28175494)
Most non-copyleft (permissive free software and proprietary software) tries to stay as far away as possible from the GPLv3 license. Because of this, macOS ships gnu nano 2.0.6 whereas the latest is 5.8. FreeBSD doesn't even have nano installed by default.
Display Data Channel generally doesn't work through dongles. I'm not really sure how usb-c dongles work (block diagram, etc.), so I don't know why this is the case.
Re:Is Rust Used Safely by Software Developers? on Friday July 16, 2021 @06:06PM (#27861772)
I like rust, but don't use it for embedded. Here's a blog I read on how to make GPIO access safe https://www.ecorax.net/macro-bunker-2/.

In that article, they have three goals: verify that the pin is correctly configured, use atomic reads and writes, make sure only one thread (including interrupts) can write to a pin at a time.

Spoiler alert, the way they avoid interrupts screwing everything up is with `cortex_m::interrupt::free(|_| {/*read/write pin*/})`, which executes the passed closure in an interrupt-free context. The author's solution isn't atomic, but the borrow checker and the fact that they target single threaded MCU means no one else can be writing to the port at the same time.

Re:Writing a SQLite clone from scratch in C (2017) on Sunday July 04, 2021 @08:10PM (#27733644)
I haven't found a good solution to a fallible constructor without exceptions. You might want this if you have a C++ wrapper around a file or some other OS primitive. I would love some allowance for constructors returning std::optional. One problem with this is that child classes' constructors would have to return optional too or else they might throw an exception when they call optional::value.
Re:Reverse Engineering Bumble’s API (2020) on Saturday June 12, 2021 @03:45PM (#27486986)
The way tinder dealt with it, as I understand, is by dividing the world into a coarse grid. Users were placed in the grid, then distances calculated from the centers of the grid squares. Basically rounding of position, not rounding of distance. They tried rounding distance (calculated from exact positions) but one can exploit that by exploring for the boundary where the distance changes from one integer to another.
Re:The media's lab leak fiasco on Friday May 28, 2021 @05:40PM (#27320863)
"Let your ideas be second-hand, and if possible tenth-hand, for then they will be far removed from that disturbing element — direct observation." The Machine Stops, page 18
Re:All Is Orwell on Tuesday May 25, 2021 @06:18PM (#27283455)
I had the same reaction. I decided that those were examples that subverted the author's expectations instead of examples of contradiction.
This article suggests a weird anti-synnergy between Google products. If android app makers knew that an adsense/admob ban led to a play store ban, they would use some other advertising platform on Android, which would lose Google money.
Re:The Silent Type: On (possibly) being Bob Dylan’s son on Saturday April 24, 2021 @05:42PM (#26928430)
That wouldn't be the first time something like this happened. It comes to mind that the album titled "John Wesley Harding" is named after the outlaw John Wesley Hardin (no g). I'm genuinely not sure if these changes are a result of sloppiness or creativity.
Re:Java Is Underhyped on Friday April 16, 2021 @09:26AM (#26833583)
I think the Minecraft mod scene happened because java is easier to deobfuscate than C++. JVM bytecode doesn't have as many opcodes as x86_64 and JVM bytecode's opcodes are on average simpler. I suspect that modding a new unobfuscated game written in C++ that contains debugging symbols would be far easier than modding Minecraft was before obfuscation maps were available. But games rarely ship like this, since they would be easy to pirate.
Re:Learning Machine Learning for Game Development on Saturday March 20, 2021 @02:22PM (#26524931)
I'm looking forward to the next installment "Machine Learning Machine Learning for game development," the blog article written instructing general AI on how to generate better ML models for video games.

Older »