HackerLangs
TopNewTrendsCommentsPastAskShowJobs

timsneath

no profile record

Submissions

macOS Container Machines

github.com
1,269 points·by timsneath·letzten Monat·437 comments

Improving the usability of C libraries in Swift

swift.org
147 points·by timsneath·vor 6 Monaten·35 comments

comments

timsneath
·letzten Monat·discuss
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
·vor 5 Monaten·discuss
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
·vor 6 Monaten·discuss
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
·vor 7 Monaten·discuss
Also see https://www.engadget.com/ai/you-can-turn-a-cluster-of-macs-i...
timsneath
·vor 8 Monaten·discuss
Also announced today… AWS official support for Swift lambdas: https://aws.amazon.com/blogs/opensource/the-swift-aws-lambda...
timsneath
·vor 9 Monaten·discuss
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
·vor 9 Monaten·discuss
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
·vor 9 Monaten·discuss
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
·vor 9 Monaten·discuss
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
·vor 9 Monaten·discuss
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
·vor 10 Monaten·discuss
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
·vor 2 Jahren·discuss
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.