keith-packard / snek

Snek programming language for tiny systems
GNU General Public License v3.0
294 stars 30 forks source link

EV3 snekserver #34

Closed dottedmag closed 4 years ago

keith-packard commented 4 years ago

Nice to have the EV3 port work with mu and snekde. Are there patches required for mu to recognize the device?

dottedmag commented 4 years ago

Nice to have the EV3 port work with mu and snekde. Are there patches required for mu to recognize the device?

Yes, quite a bit. I have got them here in a completely unmergeable state for now: https://github.com/dottedmag/mu/commits/snek

Not sure if I'm going to clean them up ever — Mu code expects REPLs to be connected via serial port, so a lot of work is needed before network Snek REPL can be added.

snekde should be easier, I haven't looked at it yet.

keith-packard commented 4 years ago

There have been some pretty major changes in the way mu communicates with devices; you may want to rebase on top of the current snek bits before doing much more with this. Once I get snek support into mu, I may deprecate snekde; mu is a lot nicer. I am wondering if we should create a built-in 'snekde' that runs on the target device though; for devices that connect via serial, you'd only need a terminal emulator on the host. For devices that connect over a network, I can imagine building something using html. Imagine 'mu' as a network application :-)