Can I distribute the DMD compiler in an app of mine?

Fruitful Approach fruitfulapproach at gmail.com
Tue Mar 29 01:14:36 UTC 2022


On Monday, 28 March 2022 at 01:31:42 UTC, Walter Bright wrote:
> On 3/27/2022 4:40 PM, max haughton wrote:
>> On Sunday, 27 March 2022 at 23:25:34 UTC, Fruitful Approach 
>> wrote:
>>> Hello!
>>>
>>> I believe the project will start out open-source because I 
>>> will be using Qt Creator, KaTeX, Markdown for the frontend.  
>>> And Qt's commercial license is too pricey for now.
>>>
>>> The kernel though of my app will be a library written in D, 
>>> for which (at a low level) the user can use the library in D 
>>> itself (using D as a "host language"), or alternatively type 
>>> in some specialized English, which will then be translated 
>>> into equivalent D statements that use the library.
>>>
>>> Anyway, obviously I need to include the DMD compiler itself 
>>> so that the users get a nice installation experience.  Do we 
>>> have permission to do such a thing?
>>>
>>> If not, is there another D compiler that allows this?
>> 
>> It's boost licensed.
>
> DMD is Boost licensed meaning yes, you can include it.
>
> For GDC, it's GPL licensed. LDC is Apache licensed. I'm not 
> sure how that would apply to your app's license.

Awesome.  Thank you!  Is there any reason I should switch to GDC 
or LDC?  It would be nice to have the speediest compilation time, 
for small-to-medium sized user codes + library usage, but the 
library won't change usually.


More information about the Digitalmars-d mailing list