www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Inline D in Javascript

reply =?ISO-8859-1?Q?K=e5re_Andersson?= <kare_andersson yahoo.se> writes:
I read some comment on D on the need for a "killer application" to boost
popularity. 

What about "inline D" in javascript (/php)?

What strikes me is the perfect profile of D. The compiler is fast, and the
resulting code is fast as well. Still, with some few issues (like
documentation), D is relatively easy to learn. The safety is hight, compared
with C++.

I understand that other forces than "how good it is" are of higher importance
for the direction of the development on Internet. For instance, html5 is moving
forward due to its compability with new technology, although much of its
handling of text and graphics are awkward, gaining an edge over java/flash.

Still I believe in reason as part of the development. My own primary interest
is in developing demonstration platforms for simple functions (open source). I
believe there is so much good software out there which is ignored just because
of lack of accessibility. Also D has this problem to some extent, although the
obvious solution is more people getting to use D and taking part in its growth.

Obviously, inline D would need some kind of package to make it. Then if D code
occurs in the JavaScript, it is compiled "just in time" and the machine code
temporarily stored like a (virtual) cookie. The D functions are then called
from the script in analogy to how local server scripts are called and the
result dynamically implemented.

I can see the safety issues, but how about the vision? Is the vision realistic
at all?
Dec 23 2012
parent Jacob Carlborg <doob me.com> writes:
On 2012-12-23 22:47, Kåre Andersson wrote:
 I read some comment on D on the need for a "killer application" to boost
popularity.

 What about "inline D" in javascript (/php)?

You might want to take a look at this: http://forum.dlang.org/thread/yfmgvgprfpiquakiyjlk forum.dlang.org -- /Jacob Carlborg
Dec 24 2012