|
|
Subscribe / Log in / New account

A tiny Python called Snek

A tiny Python called Snek

Posted Jan 23, 2020 20:53 UTC (Thu) by keithp (subscriber, #5140)
In reply to: A tiny Python called Snek by ceplm
Parent article: A tiny Python called Snek

The main goal of the Snek project was to build a small, easy to teach language that would be useful later on. To me, that meant doing something based on Python.

My daughter took an introductory programming class as part of her geology degree. The class used Python, but most of the time was spent learning things also in Snek. Most of the examples and classwork would run (unchanged) using Snek instead of Python.

A tiny Lua for Arduino-scale machines could be a fun project though. Our robotics program teaches students three languages (Snek, Logo and ROBOLAB) and lets them choose which language to use for further work. When the OS 9 Macs needed to run Logo are no longer available, we'll need to find something new...


to post comments

A tiny Python called Snek

Posted Jan 23, 2020 21:13 UTC (Thu) by ceplm (subscriber, #41334) [Link] (2 responses)

> When the OS 9 Macs needed to run Logo are no longer available, we'll need to find something new...

What’s wrong with UCB Logo? https://en.wikipedia.org/wiki/Logo_(programming_language)

A tiny Python called Snek

Posted Jan 24, 2020 6:06 UTC (Fri) by keithp (subscriber, #5140) [Link] (1 responses)

There's lots of potentially interesting languages to teach new programmers, but our program focuses on building robots (with Lego components!), which means having hardware to connect the computer with motors and sensors. Finding hardware that can do that turns out to be non-trivial.

When the old Macintosh machines stop working, the interface hardware will no longer have anything to connect to. Those use a proprietary serial protocol hooked up to the original Macintosh serial ports. Maybe those interfaces could be connected to a modern machine?

For Snek, I had hoped to use existing Arduino-compatible hardware, but couldn't find any integrated boards capable of driving 9V motors and servos. So I ended up building my own, which has resulted in a Crowd Supply campaign... Somehow this feels a lot like yak shaving.

A tiny Python called Snek

Posted Jan 30, 2020 11:30 UTC (Thu) by Wol (subscriber, #4433) [Link]


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