On Thu, Jul 17, 2014 at 10:06 PM, Ron W <ronw.m...@gmail.com> wrote: > Very interesting project. Somehow, I missed that th1ish wasn't a modified > TH1 engine. While I appreciate a C-like syntax, I am a bit surprised to see > the switch away from TCL-like syntax. >
i kept some of it, but some of it partly conflicts with th1ish being expression-oriented, whereas TCL is command-oriented (a distinction i didn't understand clearly at the time). e.g. the [funcCall syntax] is there only because it was easy to implement early on, before i had decided whether th1ish was ever going to grow to any useful size. s2 was built from the ground up to avoid some of th1ish's cruft, and i had the benefit of having a clear path set out in advance (unlike th1ish, which initially wasn't intended to grow anywhere near to where it did). i initially kept TCL-style {strings} in s2, but eventually dropped them in favor of the more general heredoc. i think the only remaining bits of TCL/TH1 heritage are the 'catch' keyword and 'proc' as an alias for 'function' (b/c proc is just easier to type). Fellow list-member Andy Goth has spent no small amount of time explaining the subtleties of TCL to me in various off-list discussions about script engines, but i'm just a TCL'ler at heart. i prefer expression-oriented syntax with a clear definition of 'identifier' vs 'string', though i will admit that command-oriented is arguably better/easier for writing unit test script bindings (initially th1ish's only goal, which it outgrew at some point). @Matt: i do it only because it's fun, not because the world needs another script engine :). It's also my escape mechanism when the real world bombards me with other problems i should be solving ;). Will be interesting to see how this project compares to other ;scripting > engines designed for embedding, like, for example, Lua. > in terms of memory use, it seems to be on par with lua, and lua is the lightest-memory interpreter i've yet run through valgrind. Most of them individually leak more memory than lua and s2 allocate combined. -- ----- stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users