Microcontrollers are known as the graveyard of hig...
# embedded-kotlin
n
Microcontrollers are known as the graveyard of high level languages 🪦 . Some languages have tried to target microcontrollers, but have eventually died/faded away. Some of the reasons high level languages have failed include the following: • Using a GC that isn't suitable for uCs (Microcontrollers) • Relying too heavily on the Heap for storing data • Bad quality toolchain (toolchain size is too large to download, can't statically link everything into a single binary etc) • Using a standard library that is too heavy weight (e.g. code size is too large) • Generation of binaries that are too large in size • Reliance on a VM (large code size, high RAM usage etc)
a
This being said, should I still hold my breath that one day kotlin could be used to target a uC?
l
Apple is working on embedded Swift, that might already work better, hopefully with many similar concepts like structured concurrency
g
I mean, so far swift adoption was really not impressive outside of iOS I suspect that embedded Swift will be probably really far from real swift too