Hacker News new | ask | show | jobs
by cageface 4930 days ago
Because most people have enough sense to keep bash scripts to a few hundred lines at most and switch to a saner language for anything more complex. In a language like TCL intended for larger-scale development it's just a bugfest waiting to happen.

It's kind of a moot point though. Javascript is unstoppable in the extension language space now.

1 comments

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 one I can think of. Most of the existing JavaScript engines seem too heavy-weight to be used as extensions.

Since I'm not in the web-developer bubble, I just don't see JavaScript all that often.

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.