So anyway it is not usable for Ucs with a few kilo...
# kotlin-native
m
So anyway it is not usable for Ucs with a few kilobytes of memory. For bigger devices with tens of megabytes and embedded linux - well, why not.
👍 1
n
I don't think there should be any compelling reason why Kotlin can't run on Ucs. After all there was a internal JetBrains project a while back that successfully had a Kotlin program running on a STM32 ARM M3 based Uc in user space. All of the kernel was written in C.
m
Well, maybe it will someday. But not now.
Maybe even it can run some very simple program like LED blinking. But not real life production code.
n
Actually the internal project is far more advanced than a LED blinking. The Kotlin program drew some text on a LCD screen (PC monitor), which by embedded standards is a bit advanced.
m
AFAIC 99% was written in C, in Kotlin it was ten lines of code
n
Do you have the web address to the GitHub project? Forgot to bookmark the project, would make for a good learning experience. simple smile
m
n
Can see where the confusion might have come from. Definitely a project that relies on PC hardware, not a Uc. Many PC specific technologies are referred to in the code (eg Grub, VESA, IRQ, x86). Grub doesn't support any Ucs. On ARM based SBCs (Single Board Computers - eg Beaglebone Black, RPi) uBoot is used instead of Grub for boot loading.
Wonder if anyone has managed to get Kotlin Native working on OpenWrt (based on Linux and is used for embedded devices - eg routers, switches).