Live data from Hacker News

C-Macs – a pure C macOS application

github.com

1–10 of 138 posts

Re: C-Macs – a pure C macOS application

#7
post #6

As someone with no experience in native application development, could someone explain to me why this is significant? I have a rough idea, but I would like to understand it properly.

I guess it's normally impossible to write a GUI application for mac os without objective-c libraries doing the talking to the OS, but what do I know.

Re: C-Macs – a pure C macOS application

#8
post #6

As someone with no experience in native application development, could someone explain to me why this is significant? I have a rough idea, but I would like to understand it properly.

MacOS apps are typically written in either Objective-C or Swift as these are the officially supported languages for the MacOS APIs.

The code in this template is interfacing with the Objective-C runtime but with pure C.

Re: C-Macs – a pure C macOS application

#9
post #6

As someone with no experience in native application development, could someone explain to me why this is significant? I have a rough idea, but I would like to understand it properly.

MacOS apps are typically written in either Objective-C or Swift as these are the officially supported languages for the MacOS APIs. The code in this template is interfacing with the Objective-C runtime but with pure C.

Does this mean that, theoretically, this could lead to the ability to build MacOS apps in higher languages that interoperate well with C such as Python? I know you can build MacOS apps with Python now, but does this potentially improve the experience?

Re: C-Macs – a pure C macOS application

#10
post #6

As someone with no experience in native application development, could someone explain to me why this is significant? I have a rough idea, but I would like to understand it properly.

MacOS apps are typically written in either Objective-C or Swift as these are the officially supported languages for the MacOS APIs. The code in this template is interfacing with the Objective-C runtime but with pure C.

That has always been possible. Also, under the ObjC layer, is good ol' ANSI C (FreeBSD Unix).

There's a number of apps that run on modern Macs, that were written in C, but it is unusual to see ones that leverage the GUI.

That said, it's possible to walk from Boston to Portland (OR), but I'd rather take a plane.

Post reply on HN