Federico Zanetello:
@State is one of the many SwiftUI’s pillars that, once understood, we take for granted and use pretty much everywhere without a second thought. But what is @State? What’s happening behind the scenes?
Nikita Vasilev:
The answer is that @State does not store its value in the struct. The struct holds only a thin token - a reference to a node in an external, long-lived graph maintained by the SwiftUI runtime.
[…]
State in the Attribute Graph is owned by the view that declares it. Lifetime of the graph node is tied to the lifetime of that view’s identity in the hierarchy.
Rens Breur:
As is generally known, SwiftUI hands off some of its work to a private framework called AttributeGraph. In this article we will explore how SwiftUI uses that framework to efficiently update only those parts of an app necessary and to efficiently get the data out of your view graph it needs for rendering your app.
Chris Eidhof:
In this talk, we’ll look at the system that underpins SwiftUI: the attribute graph.
Previously:
iOS iOS 26 Mac macOS Tahoe 26 Programming Swift Programming Language SwiftUI
Anders Borum:
After my experiments with APFS cloning, I made a Quick Action shortcut for Finder that’s much faster than Duplicate or “cp -c -R”, both of which clone files individually instead of the whole tree in one go.
The regular file copying APIs also give you folders full of file clones rather than a directory clone. His shortcut runs a Python script:
The clone is made with the macOS clonefile(2) syscall, invoked
directly through ctypes. clonefile asks APFS to create a new inode
that shares the source’s data extents — no bytes are copied up
front, the new tree just points at the same disk blocks. The two
trees diverge lazily: only blocks that are later modified in one
side get their own physical storage (copy-on-write).
However, it’s not clear to me what the benefit is. Aside from somehow being faster, it sounds like you end up with the same structure. The clonefile(2) man page says:
If src names a directory, the directory hierarchy is cloned as if each item was cloned individually. However, the use of clonefile(2) to clone directory hierarchies is strongly discouraged. Use copyfile(3)
instead for copying directories.
I don’t think APFS really supports directory clones except at the snapshot level.
See also: Ask Different, Howard Oakely.
Previously:
Apple File System (APFS) Mac macOS Tahoe 26 Python Shortcuts
Rafe Rosner-Uddin (Hacker News):
The Seattle-based group has started to widely deploy its in-house “MeshClaw” product in recent weeks, allowing employees to create AI agents that can connect to workplace software and carry out tasks on a user’s behalf, according to three people familiar with the matter.
Some employees said colleagues were using the software to automate additional, unnecessary AI activity to increase their consumption of tokens—units of data processed by models.
They said the move reflected pressure to adopt the technology after Amazon introduced targets for more than 80 percent of developers to use AI each week, and earlier this year began tracking AI token consumption on internal leader boards.
[…]
Amazon has told employees that the AI token statistics would not be used in performance evaluations. But several staff members said they believed managers were monitoring the data.
Goodhart’s law:
When a measure becomes a target, it ceases to be a good measure.
Previously:
Amazon Artificial Intelligence Business Programming Working
Tim Hardwick:
The file in question is called “weights.bin,” which powers Google’s on-device Gemini Nano AI model – the engine behind Chrome features like scam detection, autofill suggestions, and the “Help Me Write” tool. Local models tend to be pretty big storage-wise, and this one is no different. The problem is that Google hasn’t clearly signposted the fact that it’s eating 4GB of your drive with training data.
The issue only recently came to light thanks to security researcher Alexander Hanff, who noticed that Chrome installs the model on any device meeting the minimum hardware requirements, only without prompting you whether you’d like it there in the first place.
I was opted into the On-device AI feature but for some reason did not have the file on my Mac.
Artificial Intelligence Google Chrome Mac Mac App macOS Tahoe 26 Storage