Thread overview
Can I distribute the DMD compiler in an app of mine?
Mar 27, 2022
Fruitful Approach
Mar 27, 2022
max haughton
Mar 28, 2022
Walter Bright
Mar 29, 2022
Fruitful Approach
Mar 29, 2022
Walter Bright
Mar 29, 2022
Era Scarecrow
March 27, 2022

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?

March 27, 2022

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.

March 27, 2022
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.
March 29, 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.
March 29, 2022

On Sunday, 27 March 2022 at 23:25:34 UTC, Fruitful Approach wrote:

>

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?

Personally i would be against this. Not because licensing issues, but rather for bloat.

I have a similar preference for games that include a bunch of dependency libraries, which can be far larger than the game itself and distributed in hundreds of games means potentially Gigabytes of repeated portions that are not needed and can't be compressed or removed.

But that's just a personal opinion. It's not like you're including a 700Mb installer of .Net in order to run a 200k program.

March 29, 2022
On 3/28/2022 6:14 PM, Fruitful Approach wrote:
> 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.

They each have their own strengths and weaknesses. You'll need to evaluate that in the context of your requirements.