D to Javascript converter (a hacked up dmd)

Brad Anderson eco at gnuk.net
Sun Mar 4 14:29:30 PST 2012


On Saturday, 3 March 2012 at 12:10:47 UTC, Jacob Carlborg wrote:
> 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.

To be fair to Dart, that was from the initial preview release of
it.  They managed to get it quite a bit smaller a couple months
ago. https://gist.github.com/1385015

Regards,
Brad Anderson


More information about the Digitalmars-d-announce mailing list