Compiling D inside of a D program
John Colvin
john.loughran.colvin at gmail.com
Sat Dec 21 15:16:42 PST 2013
On Saturday, 21 December 2013 at 23:00:20 UTC, Mineko wrote:
> On Saturday, 21 December 2013 at 22:51:53 UTC, John Colvin
> wrote:
>> On Saturday, 21 December 2013 at 22:18:58 UTC, Mineko wrote:
>>> On Saturday, 21 December 2013 at 22:07:42 UTC, John Colvin
>>> wrote:
>>>>
>>>> To the best of my knowledge it's totally ok to have your
>>>> program download the latest zip from dlang.org on the client
>>>> machine and use that.
>>>
>>> Sounds good to me, I more or less know what to do now, I'll
>>> be using DMD because of it's fast code compilation which is
>>> going to be KEY especially to multiplayer games, I would have
>>> LIKED to use GDC, but like I said, fast compilation times.
>>> (Or perhaps someone has an idea there..?)
>>
>> How fast do you actually need it to be?
>
> Fast enough to where the engine is not spending 5 minutes
> compiling a heavily scripted (multiplayer usually) game,
> perhaps gdc -0fast would do it?
-Ofast means fast code, not fast compilation.
For a scripting layer, dmd is probably the best choice. If the
scripts get really big you might still run in to some problems.
If they remain small (or at least the bit that neds recompiling
is small) then gdc/ldc would still be viable.
More information about the Digitalmars-d-learn
mailing list