https://kotlinlang.org logo
#random
Title
# random
e

eygraber

03/19/2024, 6:47 PM
Reading through some of the JEPs for JDK 22 makes me sad, but also very glad that Kotlin exists 😅
t

theapache64

03/19/2024, 6:48 PM
😄 which part ?
e

eygraber

03/19/2024, 6:49 PM
This round it was FFM and String templates
a

agrosner

03/19/2024, 9:18 PM
Will they ever adopt true null safety? 😅
l

Loney Chou

03/22/2024, 8:22 AM
FFM is good I suppose? At least it opens up a whole world. Template is kind of Javaish yeah.
e

eygraber

03/22/2024, 12:28 PM
It's all good, but the implementations are all, as you say "kind of _Javaish_"
o

Oleg Yukhnevich

03/22/2024, 12:39 PM
FFM is rather good, comparing to JNI The API of FFM is minimal and a little ugly for a reason - it really should not be used without
jextract
(or other code-generator) - with it, the API looks more or less nice and strait-forward, I would say FFM API is low-low-level API, and
jextract
generated API is just low-level API In future (I suppose) there will be better APIs for some stuff. AFAIK even now there talks there regarding mapping struct to `record`s. And a lot more sugar could be added - though, I believe it would be mostly on
jextract
side (and it's expected) Still, with Kotlin we could do better already, but it's a really hard task (
cinterop
is not a good API either)
7 Views