Sqlx4k - Introduction to the Kotlin native and FFI (Part 2)

Introduction In the previous part of this series, I attempted to explain the importance of the Kotlin FFI (Foreign Function Interface) compatibility layer. As I mentioned, I believe it is a very effective way (at least for now) to leverage other ecosystems (such as the Rust ecosystem) to bring functionality to the Kotlin/Native ecosystem, in which I see a great deal of potential. FFI Foreign Function Interface (FFI) is a programming feature that enables code written in one language to call and interact with code written in another language....

July 16, 2024 · 8 min · 1611 words · Yorgos S.

Sqlx4k - Introduction to the Kotlin native and FFI (Part 1)

Introduction Recently, I began experimenting with the Kotlin Native platform. I initiated a new repository and attempted to create a simple project utilizing the ktor libraries. The purpose of the project was to recreate a small service that integrates some basic libraries and compile it to a native target (macosArm64 in my case). The service aimed to offer support for: Dependency injection HTTP server Database access (PostgreSQL) Additionally, RabbitMQ support (though it isn’t a priority for now) In this first article of the series, I aim to describe how I ended up writing “low-level” code (FFI between Kotlin and Rust) and also to highlight the importance of native compatibility in Kotlin Native....

July 8, 2024 · 6 min · 1200 words · Yorgos S.