<div dir="ltr">On 16 August 2013 07:55, Piotr Szturmaj <span dir="ltr"><<a href="mailto:bncrbme@jadamspam.pl" target="_blank">bncrbme@jadamspam.pl</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">bearophile:<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Piotr Szturmaj:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Then open sdl.html in the web browser. It should print sorted and<br>
mapped array contents and run simple graphics demo.<br>
</blockquote>
<br>
Very nice. D is meant to run efficiently, but the Web is very important.<br>
There are many situations where it could be useful to run D code in a<br>
browser, so your work is important.<br>
<br>
Integration with asm.js too is useful. (Expecially when asm.js gets a<br>
garbage collection, as Mozilla says). Currently only C and C++ are<br>
perhaps the only two languages usable to write asm.js+WebGL games for<br>
the browser. This could become one of the few niches open for D. There<br>
is also WebCL (<a href="http://www.khronos.org/webcl/" target="_blank">http://www.khronos.org/webcl/</a> ) for heavy computations in<br>
the browser.<br>
</blockquote>
<br></div>
Also D is garbage collected like JS. This means that high level code translation (like Adam D. Ruppe's work) should be more straightforward. On the other hand translating LLVM IR opens the possibility to mix D with C/C++ libraries.<div class="im">
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have found some related activity from Rust people:<br>
<a href="https://github.com/mozilla/rust/issues/2235" target="_blank">https://github.com/mozilla/<u></u>rust/issues/2235</a><br>
<a href="https://github.com/Yoric/Mozilla-Student-Projects/issues/33" target="_blank">https://github.com/Yoric/<u></u>Mozilla-Student-Projects/<u></u>issues/33</a><br>
<a href="https://mail.mozilla.org/pipermail/rust-dev/2012-April/001607.html" target="_blank">https://mail.mozilla.org/<u></u>pipermail/rust-dev/2012-April/<u></u>001607.html</a><br>
<br>
Once your work is more more completed, the dlang site could show (in a<br>
sub-page) the compiler that compiles the online examples of the docs<br>
that's able to produce html+JS on the fly from the D code written in the<br>
browser.<br>
</blockquote>
<br></div>
Yes, and it could be used to write rich web applications (which is the reason I'm working on it). JavaScript certainly wasn't created for big codebases...<br>
<br>
The other big advantage would having one codebase shared between server, browser (including mobile) and desktop apps.<br>
</blockquote></div><br></div><div class="gmail_extra">^^ this!</div><div class="gmail_extra">I've been looking into this too recently.</div></div>