Shipping the DMD compiler with code
Colin Grogan
grogan.colin at gmail.com
Mon Nov 4 01:41:27 PST 2013
On Saturday, 2 November 2013 at 11:40:59 UTC, Jacob Carlborg
wrote:
> On 2013-11-01 16:47, Colin Grogan wrote:
>> I have a project I may need to write that is pretty performance
>> intensive, but also needs to be quite customiseable.
>>
>> We previously had this done with Perl, and the customising
>> came from
>> adding functions to a file and the main script would call those
>> functions as required.
>> Problem is, the Perl program is performing very slowly.
>>
>> Im thinking of doing this with D, and using string mixins to
>> add in
>> customised functions at compile time. All well and good I
>> think.
>>
>> However, I dont want to have the hassle of telling users to
>> install a D
>> compiler on their systems.
>> Ideally, the user should be able to unzip this tool and run it
>> with rdmd.
>>
>> Is it possible to ship the D compiler with the code, and not
>> have to
>> worry about any libs and config files being missing?
>
> Due to license issue you're not allowed to distribute the DMD
> without permission from Walter, which he usually give. But
> perhaps you could tell the user to download the DMD zip
> themselves.
>
>> I'm specifically thinking about libphobos.a and dmd.conf, can
>> they just
>> be in the same folder as the D compiler or do they need to be
>> in
>> /usr/lib and /etc ?
>
> The DMD from the zip will work out of the box. No need to
> install anything. Just download and unpack the zip.
>
> You could also create a tool that downloads and unzip the
> compiler. Then you might want to take a look at DVM, which
> already does that:
>
> https://github.com/jacob-carlborg/dvm
Looks very useful, I'll look into it!
More information about the Digitalmars-d-learn
mailing list