Re:Zink (OpenGL on Vulkan) performance better than expected
by pantalaimon on Wednesday September 09, 2020 @07:00PM
(#24426914)
But why C99 instead of C11?
[ Parent
| on HN ]
Re:Zink (OpenGL on Vulkan) performance better than expected
by moonchild on Wednesday September 09, 2020 @07:22PM
(#24427120)
What features does c11 provide that would be useful?
Re:Zink (OpenGL on Vulkan) performance better than expected
by marcthe12 on Wednesday September 09, 2020 @10:59PM
(#24428505)
Atomic and Generics. Awkward to use and relatively unknown but c11 introduced them
Re:Zink (OpenGL on Vulkan) performance better than expected
by moonchild on Wednesday September 09, 2020 @11:46PM
(#24428700)
How do atomics help a high-level graphics API? The implementation can use them, but threading probably shouldn't be part of the interface.
Generics are cool, but auxiliary to any core part of the api since it's not really possible to use them outside of in a macro that wraps over a real function.
Re:Zink (OpenGL on Vulkan) performance better than expected
by Reelin on Thursday September 10, 2020 @01:49AM
(#24429271)
Can't you (ie the programmer) still use them though? You can write C11 code which freely calls the C99 API. By using C99 the API is compatible with a wider range of compilers and callable from a broader range of languages.
(Also where would the API itself have benefited in any significant way from the use of atomics or generics? Recall that compiler support for atomics is optional in C11.)
Re:Zink (OpenGL on Vulkan) performance better than expected
by marcthe12 on Thursday September 10, 2020 @02:12AM
(#24429405)
Generic could help but that could be just a wrapper over the main api.
Re:Zink (OpenGL on Vulkan) performance better than expected
by bsder on Wednesday September 09, 2020 @11:33PM
(#24428654)
Because Microsoft basically won't support C11.
Re:Zink (OpenGL on Vulkan) performance better than expected
by pjmlp on Thursday September 10, 2020 @01:30AM
(#24429171)
They do via clang, long part of Visual Studio installer (since 2015), Visual C++ as C++ compiler naturally not.
And they aren't the only ones, try to see how much of Apple or Google OS applications you manage to write with C11 alone.
Re:Zink (OpenGL on Vulkan) performance better than expected
by marcthe12 on Thursday September 10, 2020 @02:11AM
(#24429400)
They recently added it the roadmap though.
Re:Zink (OpenGL on Vulkan) performance better than expected
by pjmlp on Thursday September 10, 2020 @05:55AM
(#24430644)
Where is this roadmap?
There is no public plan to add to Visual C++ anything more than what ISO C++ requires in terms of C source code and libraries compatibility.
Microsoft has contributed to clang on Windows for those that still want to use C.