HNHacker News
TopNewBestAskShowJobs

perlclutcher

26 karma · joined January 15, 2023

submissionscomments
perlclutcher··on GrapheneOS finds Bluetooth memory corruption via ARM MTE
It's not that easy.

https://www.ifixit.com/repairability/smartphone-scores

> The battery is stubbornly glued down, and the soldered charge port can’t be easily replaced.

You have to take a heat gun to your phone to soften the glue to get the old battery out. Too little heat, the battery won't budge. Too much heat, you damage your screen or worse, ignite your battery. Good luck.

perlclutcher··on GrapheneOS finds Bluetooth memory corruption via ARM MTE
GOS's limited device support is disappointing, but I understand their reasoning. I still wish they'd release "GrapheneOS Minus" (in the vein of uBlock Origin Minus[0]) so a much larger audience could have 95% of the security benefits they'd have on Pixel hardware.

As an alternative to replaceable batteries you could consider installing something like acc[1] to mitigate stress on your battery. My phone is 7 years old and the original battery still holds a charge like the day I bought it.

[0]: https://github.com/uBlockOrigin/uBlock-issues/discussions/22...

[1]: https://github.com/VR-25/acc

perlclutcher··on How I Backup
I just migrated from a QNAP NAS to a custom build with ZFS. I have files with creation times dating back to the 90s on my original FAT16 filesystem and I didn't want to lose them, so I recently did a (way-too-)deep dive on this, I'll summarize my notes for you.

First, ext4 actually does support creation times, called "crtime". But there's some internet confusion about it since this support predated linux kernel support, so you had to use ext4-specific tooling (on an unmounted filesystem) to access it, e.g.:

  debugfs -R 'stat <inode>' /dev/nvme0n1p1
  debugfs -R -w 'set_inode_field <inode> crtime <new-time>' /dev/nvme0n1p1
The btrfs situation is similar, but btrfs called it "otime" (for some reason?). Linux 4.11 introduced kernel-level support unified across all filesystems, calling it "btime" (birth time).

But the normal file syscalls only support reading btimes, not setting them to arbitrary values. And rsync on linux, as you saw, can't do anything the kernel doesn't have a syscall for. For a while the only option was to:

1. set the system clock

2. create a file (at which point the kernel sets btime to the system time, plus a few nanoseconds)

3. restore the system clock

Obviously a huge hack, and needs root, but tools like s-tar automated it (search for "time storm" in this manpage):

https://web.archive.org/web/20220331080358/http://schilytool...

I almost gave up and spun up a Windows VM (since Windows has supported reading and writing creation times since the beginning). But then it clicked -- the kernel interface to the filesystem module takes the btime as an explicit parameter. So if you could find a kernel module that talks to the filesystem module directly (instead of going through the usual high-level file syscalls), you can pass along any btime you want. And there just so

perlclutcher··on AI behavior guardrails should be public
https://twitter.com/altryne/status/1760358916624719938

Here's some corporate-lawyer-speak straight from Google:

> We are aware that Gemini is offering inaccuracies...

> As part of our AI principles, we design our image generation capabilities to reflect our global user base, and we take representation and bias seriously.

perlclutcher··on WebKit switching to Skia for 2d graphics rendering
PSO = Pipeline State Object
perlclutcher··on KYC. No, Thanks
Yes, they could have cited some sources, but the number is spot on. It's an overestimate, even.

https://www.unodc.org/documents/data-and-analysis/Studies/Il...

> Globally, it appears that much less than 1% (probably around 0.2%) of the proceeds of crime laundered via the financial system are seized and frozen.

https://www.tandfonline.com/doi/full/10.1080/25741292.2020.1...

> the confiscation rate might be 0.07 percent. In other words, despite ubiquitous money laundering controls, criminals retain up to 99.93 percent of criminal proceeds.

perlclutcher··on Jetbrains unbundling AI assistant doing the right thing
Understandable. I started cycling accounts because I am worried about stylometry, but maybe I got carried away. Apologies.
perlclutcher··on Jetbrains unbundling AI assistant doing the right thing
Any chance you can tell me why my IP was shadowbanned? I don't think I've posted anything terribly objectionable here.
perlclutcher··on Jetbrains unbundling AI assistant doing the right thing
The internet's reaction to this has been so silly.

Jetbrains has for a long time included a set of optional plugins that are disabled by default and make HTTP calls to Jetbrains servers:

- Spaces

- Code With Me

- Shared Indexes

- their plugin authoring plugin

- (probably more I'm forgetting)

Now they released plugin #5+, that is also disabled by default, and also requires you to take a series of several explicit steps before you can enable it and use it, but this time everyone loses their minds? I feel bad for the engineers there.

perlclutcher··on The King of Curcumin: a case study in consequences of large-scale research fraud
My go-to site for questions like this is examine.com.

https://examine.com/supplements/curcumin/

So yeah, like sibling said, it doesn't seem to do much.

perlclutcher··on The Case for Rust in the base system
There's always the mrustc[1] compiler that compiles Rust to C source files. So any platform that can compile C, can also compile Rust (with caveats of course).

Of course, this only means we could, it doesn't necessarily mean we should.

[1]: https://github.com/thepowersgang/mrustc

perlclutcher··on Tell HN: Stop using email as the unique ID when using "Sign in with GitHub"
Tell HN: Stop using "Sign in with <site>". Both DO and Replit let you sign up with a plain old email address. And with a password manager, it's equally convenient, still just one click to sign in.

Why would you rope in an unrelated point of failure to your relationships with online companies and give up sovereignty of your identity? It's only a matter of time before the leopards eat your face.

perlclutcher··on Immediate Mode GUI Programming
I don't think primitive layout is necessarily a limitation of the immediate mode GUI paradigm. It just requires layout to be deferred until the end of the frame. And of course to do that performantly, you'd likely need some caching between frames.

But here's the kicker: egui already does cache things between frames—for accessibility support, it already builds a full retained widget tree! From there it's not a huge jump to cache layout too. I really wish someone would experiment with this idea. Maybe Gio will be the ones to do it.