D to Javascript converter (a hacked up dmd)

Jacob Carlborg doob at me.com
Sat Mar 3 04:10:45 PST 2012


On 2012-03-02 15:38, Adam D. Ruppe wrote:
> On Friday, 2 March 2012 at 05:58:03 UTC, Nick Sabalausky wrote:
>> You make it sound as if there's another kind of JS.
>
> Horribly inefficient relative to the environment :P
>
> I just don't want 100 kb of crap to download just to
> write a hello world.
>
> A lot of people prefer to use gzipped sizes, but I don't
> because the browser still has to parse the whole thing,
> and that takes time after the download, even if you don't
> actually run any of it.
>
> (On some browsers, it parses it again on every page load!)
>
>
> This generated D code gzips very, very well, but I still
> want to keep it small in general for general speed.
>
> The fastest code is no code at all. Less to parse, less
> to run.

No, we don't want to do it like Dart:

https://gist.github.com/1277224

17260 lines of code for Hello World.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-announce mailing list