https://kotlinlang.org logo
#python-contributors
Title
# python-contributors
@louiscad +1, I'm also looking at it right now for my hobby project, so in terms of "want" - I'm in 🙂 We'd need to learn how it differs from the "standard" Python. So far I learned that it's just a subset of Python, in terms that it supports/implements a certain part of the language. No idea what about the libraries. Quickly thinking, I see no problem with generating MicroPython-compatible simple Python and covering MicroPython and "standard" Python this way. It might be even the case now since I don't recall us generating any fancy Python code.
when generating AST entities, I assumed Python 3.9, but as I said, in practice we can probably limit ourselves to simple language features
That's about the language itself, and from the libraries point of view, I saw Micropython exposed its own API for accessing embedded peripherals, so it would need to be exposed in Kotlin as typed API
l

louiscad

11/21/2021, 6:04 PM
Do we have a Kotlin/JS like of defining functions for external python code?
p

Piotr Krzemiński

11/21/2021, 6:05 PM
Not yet done, but it's planned
I'm working to get MicroPython working on my board with STM32, so that I can experiment with what MP can do
l

louiscad

11/21/2021, 6:06 PM
Found this (long) article on differences between Python and MicroPython: https://core-electronics.com.au/tutorials/Python_and_MicroPython.html
p

Piotr Krzemiński

11/21/2021, 8:09 PM
👍🏼 1