News for hackers. Stuff that matters.
Re:The Java type system is broken by pjmlp on Thursday July 19, 2018 @11:52AM (#17567447)
The missing part every time this story gets told, is that Microsoft already had a generics implementation ongoing being lead by Don Syme of F# fame.

They just decided to release 1.0 without generics, instead of waiting for it to be 100% ready.

As Don clearly describes on his blog.

Re:The Java type system is broken by monocasa on Thursday July 19, 2018 @11:58AM (#17567506)
Sure, totally.

In fact, I'm a big fan of how Microsoft does versioning, supporting previous versions, but releasing major versions with backwards incompatible changes. You see this in DirectX, and IMO, that's why we're talking about DirectX and Vulkan, rather than AZDO OpenGL these days. It really gives you an opportunity to clean up the cruft.

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.
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?