Hacker News new | ask | show | jobs
by pjmlp 2843 days ago
The fact that Vulkan is a C API and requires searching for extensions even for a plain 3D Hello World, makes Metal a better option on the Mac.
1 comments

Erm, not really. I have implemented a reasonably serious PBR renderer in Vulkan on Mac on top of MoltenVK, and the C API is not at all an obstacle. Swift/C interop is fairly straightforward, and Objective C is a superset of C so that is a total non-issue.

The ability to easily integrate the wealth of C libraries directly into your high-level code (as opposed to, say, the verbosity of implementing a JNI) is one of the strengths of Swift.

C is an obstacle to safe and modern IT stacks.
Why are you using graphics engines in your IT stack?
I guess because I am not using a VT 100 terminal, rather a desktop computer using a GPU to provide a nice modern user experience.

The biggest theme on Linux Security Summit 2018 was taming security exploits on Linux kernel due to C's lack of security.

I count at least 10 talks about this subject.

https://www.youtube.com/user/TheLinuxFoundation/videos

So apparently the review process, approvals and current static validation is still not enough.