Parity with C/C++ & Fortran Standard Library, Intrinsics, Pragmas, Built-ins and Platform Specific Functions

Suminda Sirinath Salpitikorala Dharmasena sirinath1978m at gmail.com
Sun Jan 3 11:14:07 UTC 2021


Hello,

Some time the motivation to call C/C++ would be to use some of the built in
functions, intrinsics, pragmas and platform specific functions.

Writing simple functions to access these types of functionality may be an
inconvenience even with the introduction of Panama.

So it is possible to have a package (perhaps like javax.intrinsics.*) which
provides similar functionality in Java without every one having to roll out
native code for simple native code like just to call a C/C++ or Fortran
library function, Intrinsics, Pragmas, Built-ins. GCC and Clang being
portable many of the this functionality would be portable.

Also they need not match what is available in a particular C/C++
implementation but should be generic while being a super set of
functionality w.r.t. any give C/C++ & Fortran implementation. It can follow
the approach used in SIMDe (https://github.com/simd-everywhere/simde)
project, but not limited just to SIMD intrinsics. Also the code should feel
idiomatic Java.

Many of the functionality that might need to be visited from the Standard
Libraries are what are intrincsified or low level or through otherwise not
available in Java.

Simple interface to calling native code is great! But being able to avoid
it altogether but nevertheless achieving the same results in portable
manner is even better!

Suminda


More information about the panama-dev mailing list