www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Can I distribute the DMD compiler in an app of mine?

reply Fruitful Approach <fruitfulapproach gmail.com> writes:
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?
Mar 27 2022
next sibling parent reply max haughton <maxhaton gmail.com> writes:
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.
Mar 27 2022
parent reply Walter Bright <newshound2 digitalmars.com> writes:
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.
Mar 27 2022
parent reply Fruitful Approach <fruitfulapproach gmail.com> writes:
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.
Mar 28 2022
parent Walter Bright <newshound2 digitalmars.com> writes:
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.
Mar 29 2022
prev sibling parent Era Scarecrow <rtcvb32 yahoo.com> writes:
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.
Mar 28 2022