November 11, 2009
On Wed, 11 Nov 2009 17:15:09 +0300, Jeremie Pelletier <jeremiep@gmail.com> wrote:

> Denis Koroskin wrote:
>> On Wed, 11 Nov 2009 06:22:42 +0300, Jeremie Pelletier <jeremiep@gmail.com> wrote:
>>
>>> It's been some time since I last posted to this newsgroup, I've been quite busy these past weeks!
>>>
>>> Among other things, I started writing an IDE for D from scratch and opened a SourceForge project for it a few minutes ago, I'll also open a dsource project to link to the sf one in the following days.
>>>
>>> At first I tried to code it in D using wxD but soon found out the limitations of these bindings, then I tried to write my own wxWidgets bindings which worked great until i realized I was leaking memory like hell
>>  Try to integrate C++ DMD front-end into your IDE, and it will leak a lot more.
>
> If I detect any leaks with DMD I'll just make it use boost's shared_ptr, then bye bye leaks!
>

It's just DMD never ever deletes anything (but duplicates instances a lot!). You'll have to wrap everything with smart pointers.

> The debug runtime library that comes with visual studio already detects memory leaks and allows me to put breakpoints on them to see the call stack and local variable values of the leaked allocation.
>
> Its pretty easy to keep memory leaks around none with that, even if C++ requires more careful programming than D does, more destructor work than D also.
>
> Jeremie

Good luck with that!
November 11, 2009
grauzone wrote:
> Jeremie Pelletier wrote:
>> It's been some time since I last posted to this newsgroup, I've been quite busy these past weeks!
>>
>> Among other things, I started writing an IDE for D from scratch and opened a SourceForge project for it a few minutes ago, I'll also open a dsource project to link to the sf one in the following days.
>>
>> At first I tried to code it in D using wxD but soon found out the limitations of these bindings, then I tried to write my own wxWidgets bindings which worked great until i realized I was leaking memory like hell and had a hard time linking garbage collected D objects to C++ reference counted objects without adding complex overhead.
>>
>> So after spending two weeks on these failed attempts, I jumped back into C++ after two years of almost only writing D code, this time using boost, and boy is that library sweet!
> 
> Oh dear, that's not good publicity for D...
> I know the implementation language doesn't really matter, but it's just not good publicity.
> 
>> Here is the (very simple) website of the project, with a screenshot of the program so far, the content is hard coded for now to test the custom editor painting routines.
>>
>> http://codepoet.sourceforge.net
>>
>>
>> Jeremie

My choice of C++ was based on the wxWidgets library, not the language itself.

I don't mean to do bad publicity to D, and I believe a good IDE will do D more good than it being written in C++ would do harm.

Jeremie
November 11, 2009
Nick B wrote:
> Jeremie Pelletier wrote:
>> Nick B wrote:
>>> Jeremie Pelletier wrote:
>>>> It's been some time since I last posted to this newsgroup, I've been quite busy these past weeks!
>>>>
>>>> Among other things, I started writing an IDE for D from scratch and opened a SourceForge project for it a few minutes ago, I'll also open a dsource project to link to the sf one in the following days.
>>>>
>>> [snip]
> 
>>
>> The IDE will also be cross-platform, I'm using wxWidgets for all the user interface and boost for everything else.
>>
>> Some things I have in mind for later in the development cycle are tasks, semantic analysis, version control for projects, automake and autoconf integration on unix, etc...
>>
>>
>> Jeremie
> 
> Sounds really interesting.  When do you expect it to be ready for beta testing ?
> 
> Nick B

At the rate this is going, I expect to have an usable editor within a month or two with a very basic set of features (project manager, syntax highlighting and compiler support only) and then from that I'll start adding features.

It should also be cross platform from the start, the only windows-dependent code I have right now is the resource manager which loads embedded resources manually to create wxBitmap objects instead of using the heavyweight wxRC approach.

Jeremie
November 11, 2009
Denis Koroskin wrote:
> On Wed, 11 Nov 2009 17:15:09 +0300, Jeremie Pelletier <jeremiep@gmail.com> wrote:
> 
>> Denis Koroskin wrote:
>>> On Wed, 11 Nov 2009 06:22:42 +0300, Jeremie Pelletier <jeremiep@gmail.com> wrote:
>>>
>>>> It's been some time since I last posted to this newsgroup, I've been quite busy these past weeks!
>>>>
>>>> Among other things, I started writing an IDE for D from scratch and opened a SourceForge project for it a few minutes ago, I'll also open a dsource project to link to the sf one in the following days.
>>>>
>>>> At first I tried to code it in D using wxD but soon found out the limitations of these bindings, then I tried to write my own wxWidgets bindings which worked great until i realized I was leaking memory like hell
>>>  Try to integrate C++ DMD front-end into your IDE, and it will leak a lot more.
>>
>> If I detect any leaks with DMD I'll just make it use boost's shared_ptr, then bye bye leaks!
>>
> 
> It's just DMD never ever deletes anything (but duplicates instances a lot!). You'll have to wrap everything with smart pointers.

Well then that will make a good patch to submit to Walter :) I too would like to see DMD's memory consumption drop down.

>> The debug runtime library that comes with visual studio already detects memory leaks and allows me to put breakpoints on them to see the call stack and local variable values of the leaked allocation.
>>
>> Its pretty easy to keep memory leaks around none with that, even if C++ requires more careful programming than D does, more destructor work than D also.
>>
>> Jeremie
> 
> Good luck with that!

So far so good!
November 11, 2009
what a pityful sate d is in. this probably shows, that you can't use d for anything serious and by the time you guys are through discussing things, people will be using something different for good.
too bad


Jeremie Pelletier Wrote:

> It's been some time since I last posted to this newsgroup, I've been quite busy these past weeks!
> 
> Among other things, I started writing an IDE for D from scratch and opened a SourceForge project for it a few minutes ago, I'll also open a dsource project to link to the sf one in the following days.
> 
> At first I tried to code it in D using wxD but soon found out the limitations of these bindings, then I tried to write my own wxWidgets bindings which worked great until i realized I was leaking memory like hell and had a hard time linking garbage collected D objects to C++ reference counted objects without adding complex overhead.
> 
> So after spending two weeks on these failed attempts, I jumped back into C++ after two years of almost only writing D code, this time using boost, and boy is that library sweet!
> 
> Here is the (very simple) website of the project, with a screenshot of the program so far, the content is hard coded for now to test the custom editor painting routines.
> 
> http://codepoet.sourceforge.net
> 
> 
> Jeremie

November 11, 2009
watching wrote:
> what a pityful sate d is in. this probably shows, that you can't use d for anything serious and by the time you guys are through discussing things, people will be using something different for good.
> too bad
> 

I really don't think so, the very purpose of this IDE I'm developing is to make D easier to use and develop large scale projects with.

The only thing still in the way of using D with graphical applications right now is the lack of proper bindings to cross-platform GUI toolkits for D2.
November 11, 2009
Jeremie Pelletier wrote:
> watching wrote:
[snip]
> 
> I really don't think so, the very purpose of this IDE I'm developing is to make D easier to use and develop large scale projects with.
> 
> The only thing still in the way of using D with graphical applications right now is the lack of proper bindings to cross-platform GUI toolkits for D2.

Jeremie

Not sure if you know this, but Adam D Ruppe has just started developing  a cross platform (linux & windows)  'D Windowing System'.

See here for details:
http://arsdnet.net/dws/

In particular read the section titled "Why I got started".

cheers
Nick B
November 11, 2009
Nick B wrote:
> Jeremie Pelletier wrote:
>> watching wrote:
> [snip]
>>
>> I really don't think so, the very purpose of this IDE I'm developing is to make D easier to use and develop large scale projects with.
>>
>> The only thing still in the way of using D with graphical applications right now is the lack of proper bindings to cross-platform GUI toolkits for D2.
> 
> Jeremie
> 
> Not sure if you know this, but Adam D Ruppe has just started developing  a cross platform (linux & windows)  'D Windowing System'.
> 
> See here for details:
> http://arsdnet.net/dws/
> 
> In particular read the section titled "Why I got started".
> 
> cheers
> Nick B

I wasn't aware of it, this is great news!

Jeremie
November 11, 2009
Jeremie Pelletier wrote:

> watching wrote:
>> what a pityful sate d is in. this probably shows, that you can't use d for anything serious and by the time you guys are through discussing things, people will be using something different for good. too bad
>> 
> 
> I really don't think so, the very purpose of this IDE I'm developing is to make D easier to use and develop large scale projects with.
> 
> The only thing still in the way of using D with graphical applications right now is the lack of proper bindings to cross-platform GUI toolkits for D2.

Out of curiosity, did you consider GtkD and QtD?

Have you thought about how to do plugins / extensions already? Of all the best software I'm using it seems a large part comes from the extensions.

I wish you all the best with this project, great to see something started again on this front.
November 11, 2009
In march 2009 i did a D2 port of DWT. It is called DWT2 and available
from http://hg.dsource.org/projects/dwt2
But i don't know if it still compiles with a current compiler.