Skip to content

java

Introduction to Project Panama (Part I): Loading a Native Library

efbffaf3-city-18478-160db8f19ec

Project Panama is Java's modern alternative for calling native code or “Foreign Functions” implemented in other languages such as C or C++. While previously we had Java Native Interface (JNI) for achieving the same goal by writing glue code (C files translating types between Java and C) to connect the dots between the JVM and shared so or dll libraries, now Project Panama helps us by achieving that all in Java :)

Read more

Kotlin Coroutines and Java NIO 2 Asynchronous Channels (Part II)

We showed that using Kotlin Coroutines and its ecosystem, we can write much more maintainable code when taking advantage of Java NIO 2 Asynchronous Channels. This blog post is the follow-up and last part of previous blog post where we managed to write a very simple Asynchronous and Non-blocking Java NIO server using AsynchronousServerSocketChannel. Now in this part we will leverage Kotlin coroutines and rewrite the whole thing. The end result will be interesting in that we end up with a more maintainable code!

Read more

Kotlin Coroutines and Java NIO 2 Asynchronous Channels (Part I)

Thanks to Kotlin Coroutines and its ecosystem, we can write much more maintainable code when taking advantage of Java NIO 2 Asynchronous Channels. This two part blog post will showcase how we can fuse Java NIO 2 AsynchronousServerSocketChannel and Kotlin Coroutines together to write a maintainable non-blocking asynchronous network applications.

Read more