Readit News logoReadit News
ilyagr commented on We rewrote the Ghostty GTK application   mitchellh.com/writing/gho... · Posted by u/tosh
Sammi · 17 days ago
I can't even open nano in ghostty when I've ssh'd to my ubuntu box:

  $ nano
  Error opening terminal: xterm-ghostty.
Works fine in macos terminal and built in vs code terminal.

ilyagr · 14 days ago
If you're like a quick fix, see https://ghostty.org/docs/help/terminfo#copy-ghostty's-termin.... If that doesn't work, perhaps one of the other suggestions on that page will.
ilyagr commented on Blood oxygen monitoring returning to Apple Watch in the US   apple.com/newsroom/2025/0... · Posted by u/thm
brandonb · 18 days ago
Apple was in a patent dispute over this feature with Massimo. Their workaround is to calculate blood oxygen on the iPhone, using the sensors from Apple Watch.

The Apple Watch hardware is otherwise the same. The back of the watch shines light of a specific wavelength into your skin and measures the reflected light. Heart rate sensing uses green (525 nm) and infrared (850–940 nm) light; blood oxygen sensing added a red light at 660 nm in 2020.

The iPhone will now calculate the ratio of absorbed red to infrared light, then apply calibration constants from experimental data to estimate blood oxygen saturation.

More detailed writeup on how the technology works is here: https://www.empirical.health/metrics/oxygen/

ilyagr · 17 days ago
According to the link, the patents in question expire in 2028.
ilyagr commented on Vet is a safety net for the curl | bash pattern   github.com/vet-run/vet... · Posted by u/mooreds
tyingq · a month ago
An option to run the potentially harmful script in a rootless container, then dump filesystem diffs, audit events, etc...might be helpful.

I get containers aren't perfect isolation, but...

ilyagr · a month ago
One option is https://github.com/binpash/try

It is Linux-only, though.

ilyagr commented on Diffsitter – A Tree-sitter based AST difftool to get meaningful semantic diffs   github.com/afnanenayet/di... · Posted by u/mihau
jbellis · 2 months ago
If you're looking for something more complete and actively maintained, check out https://github.com/GumTreeDiff/gumtree.

(I evaluated semantic diff tools for use in Brokk but I ultimately went with standard textual diff; the main hangup that I couldn't get past is that semantic diff understandably works very poorly when you have a syntactically invalid file due to an in-progress edit.)

ilyagr · 2 months ago
In case anybody happens to be interested in testing `gumtree` with https://github.com/jj-vcs/jj, I think I got them to work together. See https://github.com/GumTreeDiff/gumtree/wiki/VCS-Integration#... (assumes Docker).
ilyagr commented on Take Two: Eshell   yummymelon.com/devnull/ta... · Posted by u/nanna
networked · 2 months ago
> For file management these days, Dired is my interface of choice. It is simply the more elegant tool for the job. Case in point: renaming a bunch of files in a directory to arbitrary names. With a shell, my standard approach would have been to run some variant of `ls -1 > foo.sh`, edit `foo.sh` to insert `mv` on each line to a renamed target file, `chmod u+x foo.sh` to be executable, run `foo.sh`, delete `foo.sh` and call it a day.

I used to do this before I discovered vidir. [1] vidir is not actually tied to vi; it lets you rename and delete files through your `$EDITOR`. You edit a temporary file that looks like this:

  ...
  0093<tab>./fstab
  0094<tab>./fuse.conf
  0095<tab>./fwupd
  ...
There is also https://github.com/bulletmark/edir designed to improve on vidir. I haven't used it yet.

I'll give Emacs another try some day, I swear, and Dired is one of the reasons.

Edit: [1] I linked to https://github.com/trapd00r/vidir here at first. That is a fork; vidir comes from https://joeyh.name/code/moreutils/. You probably want the original. It is packaged for Debian, FreeBSD, Homebrew, etc. as part of the package `moreutils`.

ilyagr · 2 months ago
Is <https://github.com/trapd00r/vidir> the same as `vidir` from <https://joeyh.name/code/moreutils/>?

Shout out to moreutils, there are many nice utilities, and there's a `moreutils` package in most distributions.

Update: Looking at the authors listed in the man pages, the `trapd00r` version looks to be a fork of the moreutils version. Not sure how the functionality compares. Both versions seem to have been updated since the fork.

ilyagr commented on Apple announces Foundation Models and Containerization frameworks, etc   apple.com/newsroom/2025/0... · Posted by u/thm
badc0ffee · 3 months ago
The video on Containerization.framework, and the Container tool, is live [0].

It looks like each container will run in its own VM, that will boot into a custom, lightweight init called vminitd that is written in Swift. No information on what Linux kernel they're using, or whether these VMs are going to be ARM only or also Intel, but I haven't really dug in yet [1].

[0] https://developer.apple.com/videos/play/wwdc2025/346

[1] https://github.com/apple/containerization

ilyagr · 3 months ago
If you search the code, they support Rosetta, which means an ARM Linux kernel running x86 container userspace with Rosetta translation. Linux kernel can be told to use a helper to translate code using non-native architecture.

Actually, they explain it in detail here: https://github.com/apple/containerization/issues/70#issuecom...

It's unclear whether this will keep being supported in macOS 28+, though: https://github.com/apple/container/issues/76, https://www.reddit.com/r/macgaming/comments/1l7maqp/comment/...

ilyagr commented on X changes its terms to bar training of AI models using its content   techcrunch.com/2025/06/05... · Posted by u/bundie
tetris11 · 3 months ago
That's a wild reference!

https://en.wikipedia.org/wiki/Roko's_basilisk

> Roko's basilisk is a thought experiment which states there could be an otherwise benevolent artificial superintelligence (AI) in the future that would punish anyone who knew of its potential existence but did not directly contribute to its advancement or development, in order to incentivize said advancement.

ilyagr · 3 months ago
An intelligence that reasons this way would be, in human terms, batshit insane and completely immoral. So, it seems unlikely that many or maybe any humans would experience it as "otherwise benign" if it had power over their lives.

And if we do get an all-powerful dictator, we will be screwed regardless of whether their governing intelligence is artificial or composed of a group of humans or of one human (with, say, powerful AIs serving them faithfully, or access to some other technology).

ilyagr commented on Jjui – A Nice TUI for Jujutsu   github.com/idursun/jjui... · Posted by u/Curiositry
sam_goody · 3 months ago
No really related, but I'm surprised that jj has no good GUI.

With so much VC money chasing so many established niches (eg bun -> node), and so much potential growth for jj - especially considering it has so much dev interest, and has the advantage of not requiring lock-in [a jj repo can be converted to a regular git repo].

ilyagr · 3 months ago
See https://github.com/jj-vcs/jj/wiki/GUI-and-TUI for a standalone GUI and two VS Code plugins. None of the GUIs there are fully-featured, so sometimes you have to imagine what it could become, but each one is usable. The two VS Code plugins can be used at the same time and complement each other somewhat.

u/ilyagr

KarmaCake day1033December 15, 2012View Original