dmd support for IDEs
"Jérôme M. Berger"
jeberger at free.fr
Sun Oct 11 02:14:15 PDT 2009
Walter Bright wrote:
> Jeremie Pelletier wrote:
>> The IDE usually keeps the files in memory and could therefore just
>> call something like getSemantics(char** fileBuffers, int* fileSizes,
>> int nFiles, ParseNode* parseTree) and have its parse nodes already
>> allocated in process memory ready for use.
>>
>> Considering a lot of IDEs like to re-parse the current file every time
>> the keyboard is idle for a few seconds, this could really help
>> performance, nothing is more annoying than an IDE that feels
>> unresponsive.
>
> ...
>
> Experience also suggests that using fork/exec rather than a shared dll
> approach is much more robust and easier to develop. The reason is that
> the former uses separate processes, which cannot step on each other. The
> latter puts everything in one process space, where you've got all the
> lovely, time-consuming, hair-pulling concurrency problems. The utter
> failure of the parse process also cannot bring down the IDE.
Plus, with a DLL you're contaminated by the GPL: the IDE *has* to
be GPL-compatible to use your DLL. With fork/exec there are no such
constraints...
Jerome
--
mailto:jeberger at free.fr
http://jeberger.free.fr
Jabber: jeberger at jabber.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20091011/fe4a5b3c/attachment.pgp>
More information about the Digitalmars-d
mailing list