I need performance, so for this (and as a low entry point for absolute
beginners) I would welcome python (or some other easy-to-learn
scripting language) as a feature in RIOT.
True. And if you look at some Python<->C networking performance comparisons, Python can come out ahead of C. All the best webservers are no longer written in C, afaik.
I envisioned how something similar as David's example could look like
in a dreamed-up RIOT-ported (micro)python (assuming we map RIOT
modules to python modules) :-D:
I actually assembled my C++ EventFramework after seeing/using https://pypi.python.org/pypi/circuits
As a micro-python option, there's also LUA. Which is already popular on Routers. It's not as memory or stack hungry. It's halfway between Python and C++. LUA just doesn't have the wow factor of Python for me unfortunately. But it would be better suited imho than Python and known to work on small processors.
Python would be a very good language to have as a friend of Riot, but there are *so* many compatability issues to solve downstream Operating-System wise, ie filesystems, databases, timers, pyrserial. I just can't see enough of those basic pythonic functionality items implemented for Python to be viable.
Unless that is, the 'Python for DOS' concept is used as a starting point.
One other way, is to say, 'ok, everything else can run Python (our notebooks/phones/pc's) and we'll use that to talk to our Riot devices'.
In that case things are much simpler.
But to restate, having small code applications like https://gist.github.com/authmillenon/cf748f9525d8a3cfa34e is the way to go. Nobody has 3 weeks to code stuff these days and small, fast and short is a great way to go.