Re:The Java type system is broken
by pjmlp on Thursday July 19, 2018 @01:05PM
(#17568350)
Yeah, although I think they missed an opportunity to move beyond "only C goes" mindset at Khronos.
[ Parent
| on HN ]
Is there any language besides C that's not a complete pita to generate FFI bindings for?
There are many ways to define APIs, we don't need to struggle ourselves only to C.
Metal uses Objective-C/Swift, with shaders in C++14. The Objective-C runtime can be used as FFI.
DirectX, uses COM with HLSL (a C++ subset). Likewise any COM or .NET (via RCW) aware language can talk to it.
One of the reasons OpenCL lost to CUDA was being stuck with C, while CUDA offered C, C++, Fortran and any additional language that could target PTX.
Which was what eventually made them come up with SPIR and later SPIR-V.
NVN and LibCGNM are also based on C++ and C++ inspired shader languages.
All modern OO, with nice SDKs that handle font, texture, materials, maths, GPGPU debugging.
Re:The Java type system is broken
by bunderbunder on Thursday July 19, 2018 @04:40PM
(#17570060)
fortran?