Live data from Hacker News

Tcl/Tk 8.6 released (now stackless, w/coroutines, tailcalls, and more)

tcl.tk

41–42 of 42 posts

Re: Tcl/Tk 8.6 released (now stackless, w/coroutines, tailcalls, and more)

#41
post #3

Is this the programming language that works without a lexer/parser and a grammar? Why aren't there more programming languages written this way? Seems easier to implement.

The parser's behavior is not specified except in the implementation, which is messy C. I was once loosely involved in a project that tried to reimplement it, which turns out to be extremely difficult, and was laughed at by Brent Welch. Indeed, it failed on countless edge cases. lex and yacc (or whatever) at least isolate this part of the language, making it much easier to have more than one implementation.

Tcl's C implementation is far from messy. Its actually one of the best commented C based language code bases i have ever seen. But your project was doomed by false assumptions. (oh, and Tcl has more than one implementation, e.g. there is a version based on Parrot for example, http://code.google.com/p/partcl/ or the JACL interpreter based on the JVM).

Re: Tcl/Tk 8.6 released (now stackless, w/coroutines, tailcalls, and more)

#42

Earlier quoted context omitted.

Really? I've never seen it used as an actual extension language. I've seen Lua, I've seen Scheme, at work we do everything in Python (but that's more extending than embedding), but I've never seen JavaScript as a "extend this C or C++ application" language. I'm not counting node, because it only exists to run JavaScript. Nor am I counting web browsers, for similar reasons. Can you give some examples? PDF is the only…

Embedding Javascript is fairly easy with Qt[1], so I assume that many applications built on top of it may use it. 1: http://doc.qt.digia.com/qt/qdeclarativejavascript.html

Thanks for the link; I'd forgotten about Qt and JavaScript, which is funny, since I was just thinking about learning it.
Post reply on HN