HNHacker News
TopNewBestAskShowJobs

timsneath

2,621 karma · joined February 16, 2011

Developer technologies at Apple.

In former lives I worked on Flutter (Google) and Windows (Microsoft).

submissionscomments
timsneath··on Fixing the Portobello Police Station Clock
What a lovely blog in general: some really fun retro-computing projects, written up in a very thoughtful, human way. Feels like a throwback to the earlier hacking spirit of the internet. Thank you, Colin: your "experiment with writing" is a success as far as I'm concerned!
timsneath··on Swift 6.4 Released
One fun example is this Playdate game: https://news.play.date/news/four-corners-swift/

Here's a more comprehensive list of different platform examples: https://github.com/swiftlang/swift-embedded-examples

timsneath··on macOS Container Machines
To clarify a few comments here: this is not only OCI containers: container machines add support for persistence and filesystem mounting, making container machines a great lightweight Linux environment for developers using macOS. More details here: https://developer.apple.com/videos/play/wwdc2026/389
timsneath··on Apple Container 0.9.0
Swift goes further down the stack than you might at first imagine -- there's a lot of Swift written at Apple even in places where you might expect C.

The container CLI tool wraps the underlying Containerization framework, which in turn vends packages for things like EXT4 file system support -- all written in Swift. Here's one example as a jumping off point. https://github.com/apple/containerization/blob/main/Sources/...

timsneath··on 1000 Blank White Cards
Sounds a bit like "We Didn't Playtest This at All" (https://boardgamegeek.com/boardgame/31016/we-didnt-playtest-...), which is a lot of fun as an icebreaker game in various settings. This version has the cards prepopulated with content.
timsneath··on macOS 26.2 enables fast AI clusters with RDMA over Thunderbolt
Also see https://www.engadget.com/ai/you-can-turn-a-cluster-of-macs-i...
timsneath··on Swift on FreeBSD Preview
Also announced today… AWS official support for Swift lambdas: https://aws.amazon.com/blogs/opensource/the-swift-aws-lambda...
timsneath··on Apple will phase out Rosetta 2 in macOS 28
In macOS 26, you can see every Rosetta app that has recently run on your machine by going to System Information and then Software / Rosetta Software. It includes the "Fallback Reason" (e.g. if you manually forced the app under Rosetta or if it was an Intel-only binary).
timsneath··on The Swift SDK for Android
Ha! But that's not semantically meaningful Swift code in any normal context, nor is it idiomatic. `self` is equivalent to `this` in C++, and is never normally null.

You use this construct for unwrapping nullable fields, for example something like this:

guard let httpResult else { return }

Note that you don't need to assign the value to itself in modern Swift. This line takes an optional (httpResult?) and returns early if null. If not, you can use it with strong guarantees that it's not nullable, so no need for ? or ! to unwrap it later in the scope.

timsneath··on The Swift SDK for Android
This doesn't transpile. It cross-compiles to Android architectures using the NDK. You can see a very simple "hello world" example at the bottom of this article:

https://www.swift.org/documentation/articles/swift-sdk-for-a...

timsneath··on The Swift SDK for Android
It's worth noting that this doesn't add any expectations for how your UI is built. The example shown in the screenshot continues to use Jetpack Compose (Android's native UI) with Kotlin invoking Swift business logic. You can also use other UI frameworks on Android, of course, including some that are written in Swift.

One nice thing about this implementation is that it shares many of the same characteristics as Swift on other platforms: unlike some common alternatives, it's not garbage collected but uses reference counting; it uses the same underlying libraries, concurrency primitives and memory model.

Excited to see how folk use it... it's technology that will hopefully springboard some other interesting innovations.

[Disclosure: I work on developer tools and frameworks at Apple.]

timsneath··on Ntfsplus: NTFS Filesystem Remake
I didn't understand the introduction here, which says both:

> The well-maintained NTFS driver in the Linux kernel enhances interoperability with Windows devices

and

> Currently, ntfs support in Linux was the long-neglected NTFS Classic (read-only), which has been removed from the Linux kernel, leaving the poorly maintained ntfs3.

Is it well-maintained or long-neglected? Or am I misunderstanding this?

timsneath··on UTF-8 is a brilliant design
And just for fun, they also support what must be the most weird encoding system -- UTF-EBCDIC (https://www.ibm.com/docs/en/i/7.5.0?topic=unicode-utf-ebcdic).
timsneath··on OPA maintainers and Styra employees hired by Apple
OPA solves the problem of defining and enforcing policies across a system. Some examples:

- How do I enforce that inbound API requests come only from trusted sources?

- How do I enforce fine-grained access to user records?

- How do I enforce a set of naming conventions for a data update?

Many such policies may come from regulatory requirements, may be regional in nature, and may change in otherwise stable codebases. And it's even harder when you're applying this to a highly-scalable production internet service. As a result, defining policy at an organizational level with auditing is a challenge for large enterprises. OPA helps enterprises administer and enforce policies.

More details on what OPA does here: https://www.openpolicyagent.org/docs/philosophy

And you can see some examples of Rego (the policy language) here: https://play.openpolicyagent.org

timsneath··on Apple announces Foundation Models and Containerization frameworks, etc
The framework that container uses is built in Swift and also open sourced today, along with the CLI tool itself: https://github.com/apple/containerization
timsneath··on Redesigned Swift.org is now live
That's built in now -- the default VSCode "Format Document" / "Format Selection" commands work with just the Swift extension installed.
timsneath··on Redesigned Swift.org is now live
Good news! https://code.visualstudio.com/docs/languages/swift
timsneath··on Swift at Apple: Migrating the Password Monitoring Service from Java
It runs on Linux-based infrastructure. We've updated the blog post to clarify this. Thanks!
timsneath··on Swiftly 1.0
Very feasible. From embedded (https://www.swift.org/blog/embedded-swift-examples/) to Linux apps (https://www.swift.org/blog/adwaita-swift/) to tiny games (https://www.swift.org/blog/byte-sized-swift-tiny-games-playd...) to ML (https://www.swift.org/blog/mlx-swift/) to Windows (https://www.swift.org/blog/swift-everywhere-windows-interop/) to Private Cloud Compute (https://github.com/apple/security-pcc)...
timsneath··on Apple is open sourcing Swift Build
Working on it: https://github.com/swiftlang/swiftly?tab=readme-ov-file
timsneath··on Apple is open sourcing Swift Build
Of course! Tons of examples here: https://github.com/apple/swift-embedded-examples

At WWDC24, we shared a session on embedded Swift, which is available on YouTube: https://www.youtube.com/watch?v=LqxbsADqDI4

More documentation on embedded Swift tooling here: https://github.com/swiftlang/swift/blob/main/docs/EmbeddedSw...

(Disclosure: I work at Apple.)

timsneath··on Boom XB-1 First Supersonic Flight [video]
It used to be that Hacker News was a place for the inventors, the technologists, and the futurists. What happened to our optimism and excitement for firsts?

Airfares have dropped precipitously over the last fifty years: https://simpleflying.com/50-years-airfares/, and it's quite possible that the trend will continue.

Conversely, the speed of commercial flight has barely changed over that time (with the exception of longer flights reducing stops). Boom is innovating in this area and bringing supersonic flight within reach again -- I for one think that's something to be celebrated.

timsneath··on Homomorphic encryption in iOS 18
That is exactly the goal of Private Cloud Compute, part of the fabric of Apple Intelligence: https://security.apple.com/blog/private-cloud-compute/#:~:te....
timsneath··on Homomorphic encryption in iOS 18
More here: https://www.swift.org/blog/announcing-swift-homomorphic-encr...
timsneath··on Apple Photos phones home on iOS 18 and macOS 15
More on homomorphic encryption here: https://www.swift.org/blog/announcing-swift-homomorphic-encr...

Summary: "Homomorphic encryption (HE) is a cryptographic technique that enables computation on encrypted data without revealing the underlying unencrypted data to the operating process. It provides a means for clients to send encrypted data to a server, which operates on that encrypted data and returns a result that the client can decrypt. During the execution of the request, the server itself never decrypts the original data or even has access to the decryption key. Such an approach presents new opportunities for cloud services to operate while protecting the privacy and security of a user’s data, which is obviously highly attractive for many scenarios."

timsneath··on Advent of Code 2024
Excellent! Come and join the Swift leaderboard here https://forums.swift.org/t/advent-of-code-2024 if you haven't already -- it's super interesting to compare different solutions.
timsneath··on Steve Ballmer was an underrated CEO
Azure existed long before ScottGu took over. It started with dueling projects from Ray Ozzie’s world and Bob Muglia’s world. Ray had great ideas but no idea how to run something like Azure at scale. Bob brought the enterprise mindset and retooled it, and of course Scott owns the lion’s share of the credit for its growth and technical qualities.
timsneath··on We're forking Flutter
I don’t believe NYT has used Flutter for some years.
timsneath··on Fully documented source code for Lander on the Acorn Archimedes
This is an incredible labor of love and historical record. The technical articles alone have a depth that goes further than the documentation for any living project that I know of. I can only imagine how much work has gone into this. He gives a talk on his disassembly work here, which deserves a wider audience: https://www.youtube.com/watch?v=orP_0aQo-Pc
timsneath··on Dumped orange peel transformed a barren pasture (2017)
https://www.princeton.edu/news/2017/08/22/orange-new-green-h... seems to be the original article; this is a very light rewrite by the looks of things. Perhaps we can change the linked article, dang?
Page 1 of 5Next →