News for hackers. Stuff that matters.
Re:PicoC: a very small C interpreter for scripting by jakevoytko on Friday September 03, 2010 @08:26AM (#1659315)
Language interpreters are great for experimenting with new or buggy pieces of code - just experiment at the prompt and copy what works into a file for posterity. I've started looking through the parsing code for PicoC, and its all nice and readable. But I'm surprised this was used in an actual system, embedded or not. C is an absolutely miserable language whose saving graces are executable size and speed. It lacks reasonable features to use for scripting, like code-as-data in Bash or the dynamism of Python and Ruby. There are even embedded scripting languages like LUA. What does C offer as a scripting language, except perhaps familiarity?
Re:PicoC: a very small C interpreter for scripting by listic on Friday September 03, 2010 @08:28AM (#1659321)
As you suggested, it offers the possibility to switch from interpreted to compiled code at no extra effort.