Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6178

General • Re: A Snek port for a Pico ?

$
0
0
I guess pure Snek might never become more than it is. It's Keith's pet project for teaching programming to kids via Lego robotics and it seems fine for that.

But, for more advanced use it's rather lacking, has some severe limitations, and only competes against Python, MicroPython or CircuitPython when it will run on devices those won't.

In essence it's a cut-down Python-like language which can have application specific functions added. In Keith's case Lego motors, some basic GPIO functions.

For me that's great because I want to strip the language of those functions, go in my own direction adding my own functions. It also won't compete with Python, MicroPython or CircuitPython, but may have some utility for some, or in some applications.

I have pivoted again, am now adding to my cloned 'posix' port, crafting "a better Snek for a Pi", which should then build and run on an RP2. I have set aside that it will currently only run one REPL command on the RP2 before hanging.

That's been fun and I am quite enjoying the adventure. I have figured out a way of doing 32-bit which is essential IMO for Pi and RP2, can peek and poke memory and registers on an RP2. I have it interfacing with 'libgpiod' so it may even find uses in trivial Pi projects which are variants on 'press a button, light a LED'.

Statistics: Posted by hippy — Wed Dec 18, 2024 5:26 pm



Viewing all articles
Browse latest Browse all 6178

Trending Articles