News for hackers. Stuff that matters.
Re:Native Mac APIs for Go by hctaw on Thursday February 04, 2021 @01:18PM (#26028163)
Last I tried to bind to ObjC APIs through C you needed to use NSAutoReleasePool at some point, and to interact with the GC as the APIs expect.

There was no option to use anything else. Has that changed?

Re:Native Mac APIs for Go by w0mbat on Thursday February 04, 2021 @01:25PM (#26028250)
ARC is built on top of the retain/release pool system, but it automates everything from the programmer's point of view so you almost never have to explicitly interact with it.
Re:Native Mac APIs for Go by hctaw on Thursday February 04, 2021 @02:25PM (#26028808)
This works across FFI? How?
Re:Native Mac APIs for Go by favorited on Thursday February 04, 2021 @08:40PM (#26032064)
It doesn't. ARC is a compile-time operation (in Objective-C/Swift)– if you're not using clang or swiftc, then ARC isn't a thing.