Swift is a language and a runtime; python is also a language and a runtime... objective c is a compiled language, extended c. They all provide binding to the platform's GUI toolkit. (cocoa/quartz). Swift on Linux doesn't bind to cocoa (nor x11, I think - not familiar with it). If you are going to get rid of x11, it will be mac os -specific in some degree already.
One of Just's programs I have on my hard disk has `import AppKit` in it (that's cocoa), and another part has `import Quartz`. It is doing those for basic windows programming for mac os.
On Thursday, 2 May 2024 at 15:37:33 BST, Alexei Podtelezhnikov <apodtele@gmail.com> wrote:
> Am I missing some points?
Me too. We are talking about an API which opens a window and shows an uncompressed pixel buffer in whatever language.Then it passes on keystrokes, receives an updated pixel buffer, and updates the window with it.
We are talking about really basic window programming for macOS. The pixel buffer is already prepared in a system-independent fashion.