Better HN
topnewbestaskshowjobs
Log inSign up

correct_horse

532 karma · joined Mar 1, 2019 (7y ago) · 151 submissions

Submissions

comment 1mo ago · link · parent

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.

comment 2mo ago · link · parent

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.

comment 2mo ago · link · parent

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.

comment 4mo ago · link · parent

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?

comment 6mo ago · link · parent

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.

comment 9mo ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

for when not to use a spreadsheet, see https://news.ycombinator.com/item?id=34968457 tl;dr when it involves automated processes

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 4y ago · link · parent

> 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.

comment 5y ago · link · parent

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)

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

Memory hole is from 1984. It is where they put papers to be incinerated and forgotten. Spotify removed a few Joe Rogan episodes IIRC.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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...

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

"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

comment 5y ago · link · parent

I had the same reaction. I decided that those were examples that subverted the author's expectations instead of examples of contradiction.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.
123456