Snek 1.5, a Python-like programming language for embedded systems, is available

Keith Packard (Keith packard), active Debian developer, leader of the X.Org project, and creator of many X extensions, including XRender, XComposite, and XRandR, ΠΎΠΏΡƒΠ±Π»ΠΈΠΊΠΎΠ²Π°Π» new programming language release Snack 1.5, which can be thought of as a simplified variant of the Python language, adapted for use on embedded systems that do not have enough resources to use micropython ΠΈ CircuitPython. Snek does not claim to be full Python support, but can be used on chips with as little as 2KB of RAM, 32KB of Flash, and 1KB of EEPROM. Project code spreads licensed under GPLv3. Assemblies prepared by for Linux, Windows and macOS.

The need for a new language arose during the teaching practice of Keith Packard, who wanted to use for teaching students a language suitable for use on Arduino boards and reminiscent of Lego Logo in its tasks, but capable of becoming the basis for further programming learning. The key requirements for the new language were text-based (demonstration of real programming methods that are not tied to a graphical interface and a mouse),
providing a basis for a full-fledged learning to program and the compactness of the language (the ability to learn the language in a few hours).

The Snek language uses the semantics and syntax of Python, but only a limited subset of features are supported. One of the goals that is taken into account during development is to maintain backward compatibility - Snek programs can be executed using full-fledged Python 3 implementations. students who are familiar with Snek can jump right into continuing to learn full-fledged Python and use what they already have to work with Python.

Ported to a wide range of embedded devices including Arduino, Feather/Metro M0 Express, Adafruit Crickit, Adafruit ItsyBitsy, Lego EV3 and Β΅duino boards, Snek provides access to GPIOs and various peripherals. In doing so, the project is also developing its own open source microcontroller. Snackboard (ARM Cortex M0 with 256KB Flash and 32KB RAM) designed for use with Snek or CircuitPython and aimed at teaching and building robots using LEGO parts. Tools for creating a snackboard collected during crowdfunding.

A code editor can be used to develop applications on Snek Mu (support patches) or your own console IDE Snekde, which is written using the Curses library and provides an interface for editing code and interacting with the device via a USB port (you can immediately save programs to the device's eeprom and load code from the device).

Snek 1.5, a Python-like programming language for embedded systems, is available

In the new release:

  • Added a port for the Arduino Uno board, which is similar to the port for the Duemilanove board, but includes a firmware replacement for the Atmega 16u2.
  • Added correct support for chains of comparison operations (a < b < c).
  • Adafruit Circuit Playground Express boards have audio output capability.
  • Bootloader enabled for Duemilanove boards Optiboot, allowing you to replace the Snek to avoid the need for a separate programming device.

Besides Snek Keith Packard also develops standard C library PicoLibc, which can be used on embedded devices with little RAM.

Source: opennet.ru

Add a comment