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

Keith Packard (Keith Packard), an active Debian developer, leader of the X.Org project, and creator of many X extensions, including XRender, XComposite, and XRandR, announced the new release of the programming language Snek 1.5, which can be seen as a simplified version of Python, adapted for use on embedded systems with limited resources that cannot support MicroPython and CircuitPython. Snek does not aim for full support of Python but can be used on chips with just 2KB of RAM, 32KB of Flash memory, and 1KB of EEPROM. The project code is is distributed under GPLv3 license. The need for a new language arose during Keith Packard's teaching practice, where he wished to use a language suitable for teaching students on Arduino boards and reminiscent of Lego Logo, but capable of forming a foundation for further learning in programming. Key requirements for the new language included a text-based nature (demonstrating real programming methods not tied to graphical interfaces and mice), are prepared are available for Linux, Windows, and macOS.

providing a foundation for complete programming education, and compactness of the language (the ability to learn the language in a few hours).
The Snek language uses Python semantics and syntax but only supports a limited subset of features. One of the goals considered during development is to maintain backward compatibility — programs written in Snek can be executed using full implementations of Python 3. Thus, students familiar with Snek can immediately transition to continuing their study of full Python and leverage their existing work in Python.

Snek has been ported to a wide range of embedded devices, including Arduino boards, Feather/Metro M0 Express, Adafruit Crickit, Adafruit ItsyBitsy, Lego EV3, and µduino, providing access to GPIO and various peripherals. Additionally, the project is also developing its own open microcontroller

Snekboard (ARM Cortex M0 with 256KB Flash and 32KB of RAM), designed for use with Snek or CircuitPython, aimed at education and building robots using LEGO components. The resources for creating Snekboard were gathered through crowdfunding. To develop applications in Snek, the code editor

Mu can be used, (with patches for support.) or your own integrated console development environment Snekde, which is written using the Curses library and provides an interface for editing code and interacting with the device via USB (you can immediately save programs to the device’s eeprom and load code from the device).

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

In the new release:

  • A port for the Arduino Uno board has been added, which is similar to the port for the Duemilanove board, but includes firmware replacement for the Atmega 16u2.
  • Correct support for comparison chains (a < b < c) has been added.
  • For Adafruit Circuit Playground Express boards, audio output capability has been provided.
  • For Duemilanove boards, the bootloader Optiboot, allows replacing Snek, eliminating the need for a separate programming device.

In addition to Snek, Kit Packard also develops the standard C library PicoLibc, which can be used on embedded devices with limited RAM.

Source: opennet.ru

Buy reliable website hosting with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster