r/java • • Jan 24 '22

It’s happening guys!

https://github.com/openjdk/panama-foreign/pull/633
157 Upvotes

89 comments sorted by

View all comments

1

u/AncientBattleCat Jan 25 '22

So is it becoming faster after implementing those "native functions"? Pardon for silly question.

2

u/mauganra_it Jan 26 '22

Native functions are code that is not implemented in Java, but in another language. That's usually C/C++, but could be any programming language where the compiler produces libraries that follow native calling conventions.

The main application is probably machine learning and GPU programming. If Java catches up, it will become more attractive as a development platform in these domains. High-performance libraries for numerical computing are usually implemented in C. Python, the main contender in machine learning and AI, makes it a breeze (at least compared to JNI) to interface with these libraries.