News for hackers. Stuff that matters.
Re:The Java type system is broken by majewsky on Thursday July 19, 2018 @03:32PM (#17569547)
Is there any language besides C that's not a complete pita to generate FFI bindings for?
Re:The Java type system is broken by pjmlp on Thursday July 19, 2018 @04:51PM (#17570154)
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?