DMDScript now under Boost license
bearophile
bearophileHUGS at lycos.com
Mon Mar 29 19:47:03 PDT 2010
Walter Bright:
> I thought about that a lot, but CTFE seems to fill that gap well enough.
CTFE works at compile-time, while people add scripting languages like Python, JavaScript, Groovy, Jpython, Jruby, etc, to run-time C/C++/Java code for other purposes. For example games are often written in C++ and Lua. For example Firefox is C++ and JavaScript, ecc. You can't write one million of lines of D CTFE code to script a 3D videogame. So unless you leave the compiler beside the running program, and you allow to dynamically interpret and run D code at runtime, the purposes are very different.
So I think embedding/extending D2 with a scripting/dynamic language (like MiniD o Python with Pyd) will be useful for some future D projects. But I don't want it built-in, people will find ways to attach it as they do to C/C++/Java. You have to focus in building a good D language.
What I think I'd like in D is something like this, but I think there's no need to use JavaScript for this, it can be used just D code:
https://developer.mozilla.org/en/Treehydra
Bye,
bearophile
More information about the Digitalmars-d-announce
mailing list