News for hackers. Stuff that matters.
Re:Swift System Is Now Open Source by NobodyNada on Friday September 25, 2020 @03:27PM (#24593278)
It looks like it:

> a new library for Apple platforms that provides idiomatic interfaces to system calls and low-level currency types

In other words, it's a set of native, type-safe Swift APIs that wrap the usual C system calls.

> System pervasively uses raw representable structs and option sets. These strong types help catch mistakes at compile time and are trivial to convert to and from the weaker C types.

> Errors are thrown using the standard language mechanism and cannot be missed. Further, all system calls interruptible by a signal take a defaulted-true retryOnInterrupt argument, causing them to retry on failure. When combined, these two changes dramatically simplify error and signal handling.

> FilePath is a managed, null-terminated bag-of-bytes that conforms to ExpressibleByStringLiteral — far safer to work with than a UnsafePointer<CChar> [Swift's spelling of `char *`].

Re:Swift System Is Now Open Source by layoutIfNeeded on Friday September 25, 2020 @04:53PM (#24593980)
>causing them to retry on failure

I hope they meant in case of failure with EINTR.