On Tue, Feb 28, 2012 at 11:18 AM, Attila Kinali <[email protected]> wrote: > On Tue, 28 Feb 2012 11:10:36 +0100 > Drasko DRASKOVIC <[email protected]> wrote: > >> I would be more convinced with Python. I see no reason why would >> anybody choose Lua ove Python : it is more mature, has bigger >> community, bunch of documentation... It can be made small, and even >> embedded on the chip (http://code.google.com/p/python-on-a-chip/). > > Oh, there are a few reasons: > > * Not everyone likes a white space sensitve language[1]
I would not concern this as a serious reason, but I can understand this preference. I for example miss semicolon termination - question of habit. I am more Perl type of guy ;)). > * python is magnitudes larger and slower than lua No, it is not - as you saw PyMite VM is very small. It does not implement all Python standard, but it shows that Python can be small. > * python needs a lot more work to be used as embedded language So does Lua. Apart from Bogdan's work on eLua, I do not see it really widely accepted in the embedded industry. On the contrary, I see python everyday (for Linux desktop scripting). Would not it be realistic that in a few years from now we start discussing replacing Lua by Python, referring to it in the same way as we do now for TCL ? On the contrary, I would expect much more development done on the Python language, ports to embedded SW, usage for VHDL coding (via MyHDL, http://www.myhdl.org), etc, in the future. > And: Running python on an embedded processor is not the same > as embedding python in a programm. I am very well aware of this, thanks. I was referring to the 55K VM size. > > Attila Kinali > > [1] I actually hate that. As someone who works on different architectures > with different OS and different editors, python is a real pain to work > with. Because you have to figure out in each and every editor how to get > it to show the white space colour coded so that subtle and _invisible_ > (it's white space after all) become visible. And quite a few editors > do not support this. Why should they? White space is not supposed to > be visible after all. No, every character is supposed to be visible. How do you edit your Makefiles, btw ? BR, Drasko ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
