4 ms·
Is there any language besides C that's not a complete pita to generate FFI bindings for?
by majewsky 8y ago
Is there any language besides C that's not a complete pita to generate FFI bindings for?
- bunderbunder 8y agofortran?
- pjmlp 8y agoThere 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.