<div>2012/2/29 Adam D. Ruppe <span dir="ltr"><<a href="mailto:destructionator@gmail.com">destructionator@gmail.com</a>></span></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

4) This is an insane idea, but one that came to mind.<br>
I'm testing this by piping the generated JS into<br>
dmdscript.<br>
<br>
dmd runs insanely fast when compiling this code. Phobos<br>
is kinda slow to compile, but you don't have to use it<br>
here. Write D1 style code and dmd is blink of an eye.<br>
<br>
dmdscript is reasonably fast too.<br>
<br>
<br>
<br>
Suppose you're writing an app and you want a scripting<br>
extension. Embed dmdscript, boom you can use javascript.<br>
<br>
(I really want to revive a dmdscript D2 port to make this<br>
even easier, but it isn't hard right now either.)<br>
<br>
<br>
What if you want to script in D? If you're GPL... embed<br>
dmd front end too.<br>
<br>
<br>
Make D output JS, which is interpreted by D, calling<br>
D apis....<br>
<br>
<br>
Pretty insane, but you could script your app in D without<br>
doing shared libraries or anything like that!<br><br>
</blockquote></div><br><div><div>Being mainly a web developer, I think this project of yours is really exciting!</div><div><br></div><div>Also, being a fan of embedding JS into Java applications using their ScriptingEngine API, I absolutely don't think number 4 is an insane idea. I think it's a great idea!</div>
<br class="Apple-interchange-newline"></div><div>I wish I had more time (and D knowledge!) to contribute.. for now I'm just cheering!</div><div><br></div><div><br></div><div>/ Mikael</div><div><br></div>