https://kotlinlang.org logo
#embedded-kotlin
Title
# embedded-kotlin
m

maarten ha

06/11/2021, 9:05 AM
what is Kotlin able to do on embedded systems? Like is it able to replace c++ for the arduino and python for the raspberry pi?
l

louiscad

06/11/2021, 2:47 PM
Cannot run on AVR microcontrollers currently, but it can run on a Raspberry Pi.
m

maarten ha

06/11/2021, 2:48 PM
what do you mean with AVR microcontrollers?
I’m really new to these kind of things
l

louiscad

06/11/2021, 2:48 PM
This is what powers Arduino boards.
m

maarten ha

06/11/2021, 2:50 PM
what about the esp32?
l

louiscad

06/11/2021, 2:50 PM
No Kotlin there yet either
m

maarten ha

06/11/2021, 2:51 PM
😢 hopefully someone will add it so we can use kotlin for it instead of c++ or python
l

louiscad

06/11/2021, 4:04 PM
I believe you can use Rust instead of C++ on AVRs
But its syntax is not as straightforward as Kotlin for sure.
m

maarten ha

06/11/2021, 4:05 PM
never used Rust before might look into it
p

Piotr Krzemiński

11/21/2021, 2:18 PM
FYI, we're working on Kotlin to Python transpilation: https://github.com/krzema12/kotlin-python I'm looking forward to using it on embedded systems as well. You'll get type safety of Kotlin, but the maturity of libraries of Python (like for handing GPIO, timers, whatever)
👍 1
I sent more info as a separate post on this channel
m

maarten ha

11/21/2021, 2:24 PM
I'll look into it, thanks
4 Views