|
|
Subscribe / Log in / New account

A tiny Python called Snek

A tiny Python called Snek

Posted Jan 24, 2020 5:56 UTC (Fri) by keithp (subscriber, #5140)
In reply to: A tiny Python called Snek by SEJeff
Parent article: A tiny Python called Snek

Yeah, the ESP32 isn't exactly tiny. But, it's something I had lying around, so naturally I ported Snek to it. Somehow, I tend to collect tiny microcontroller boards. They're like coat hangers around here.

MicroPython uses a couple hundred kB of ROM; which is amazingly small considering how much Python that includes. Snek is a much less capable language, but it can squeeze down to about 32kB of ROM if you leave out the math functions.

Snek currently has ports for:

  • Adafruit Crickit FeatherWing (Atmel SAMD21)
  • Arduino Duemilanove (Atmel ATmega 328P)
  • ESP32
  • Adafruit Feather M0 Express (Atmel SAMD32)
  • SiFive HiFive1 Revb (RISC-V)
  • Adafruit ItsyBitsy (Atmel ATmega 32u4)
  • Arduino Mega (Atmel ATmega 2560)
  • Adafruit Metro M0 (Atmel SAMD21)
  • Arduino Nano 33 IoT (Atmel SAMD21)
  • Adafruit Circuit Playground Express (Atmel SAMD21)
  • POSIX (for testing and debugging)
  • QEMU for ARM (Cortex M3)
  • QEMU for RISC-V (rv32imac)
  • Arduino µduino from Crowd Supply (Atmel ATmega 32u4)

These range from 32kB of ROM and 2kB of RAM all the way up to several hundred kB of ROM and a bunch of RAM.


to post comments

A tiny Python called Snek

Posted Jan 24, 2020 14:38 UTC (Fri) by SEJeff (guest, #51588) [Link] (1 responses)

If a little hardware fairy were to gift you an adafruit huzzah esp8266, would you consider porting to it?

A tiny Python called Snek

Posted Jan 24, 2020 18:36 UTC (Fri) by keithp (subscriber, #5140) [Link]

Sure! I've already used the esp8266 toolchain packaged in Debian as I tested the Picolibc port done by Jonathan McDowell.

A tiny Python called Snek

Posted Feb 5, 2020 9:23 UTC (Wed) by zoobab (guest, #9945) [Link]

Any plan for STM32 boards? especially the popular and cheap STM32F103? They are ARM Cortex M3, so it should be close to the other ARM boards already supported...


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds