I'd love to see DScript one day ...

Chris via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 12 04:23:56 PDT 2016


On Sunday, 12 June 2016 at 10:51:16 UTC, Walter Bright wrote:
> On 6/12/2016 3:17 AM, Chris wrote:
>> On Friday, 10 June 2016 at 22:01:53 UTC, Walter Bright wrote:
>>> On 6/10/2016 3:55 AM, Chris wrote:
>>> > Cool. I'd love to see `DScript` one day - and replace JS 
>>> > once
>>> and for all ...
>>> > well ... just day dreaming ...
>>>
>>> Dreams are reality:
>>>
>>> https://github.com/DigitalMars/DMDScript
>>
>> I just tried to compile it on Linux with dmd v2.071.0 in 64bit 
>> mode. The
>> compiler emits loads of deprecation warnings concerning module 
>> import,
>
> Yeah, the import lookup was recently changed.
>
>> and it seems to be geared towards 32bit:
>
> That's right. It should be fixed.
>
> Nevertheless, these are minor issues. If you try to create a 
> new script compiler, you're in for a heluva lot more work than 
> fixing some bit rot.

Sure, but then we should turn it into a first class citizen and 
update it with each version of dmd and prevent bit rot.

I haven't had a chance to look at the source code in detail yet. 
How hard would it be to integrate JIT and D (and C) interop? 
Theoretically something like the Derelict-D libs allow for 
interop with Python and Lua too. I think we could create 
something really nice and useful here.

By the way, provided we go ahead with this, wouldn't the name 
DScript be catchier than DMSScript? Although I don't want to 
bikeshed about the name now.



More information about the Digitalmars-d mailing list