January 21, 2008
Ary Borenszweig wrote:
> Robert Fraser escribió:
>> Awesome. Now time to get porting the rest of Eclipse over for a pure-D Descent ;-).
> 
> Heh. Same thought here, although without runtime reflection, hmm...

I was kidding mostly. According to Ohloh, Eclipse is ~10 million LOC and Descent is nearing 700,000. While I'd love to see a D port of Descent at some point, it would be a HUGE amount of work, even if we started with TioPorted sources & debugged from there.
January 21, 2008
Robert Fraser escribió:
> Ary Borenszweig wrote:
>> Robert Fraser escribió:
>>> Awesome. Now time to get porting the rest of Eclipse over for a pure-D Descent ;-).
>>
>> Heh. Same thought here, although without runtime reflection, hmm...
> 
> I was kidding mostly. According to Ohloh, Eclipse is ~10 million LOC and Descent is nearing 700,000. While I'd love to see a D port of Descent at some point, it would be a HUGE amount of work, even if we started with TioPorted sources & debugged from there.

Yeah, I know... And I'm sure it won't make any big difference with the Java version, except Expression#getConstantValue would return a pure D object. :-P
January 21, 2008
Eric Suen wrote:
> For OSX, Maybe should waiting for SWT 3.4, because SWT 3.3
> is based on Carbon, and SWT 3.4 has Cocoa port
> 
> "doob"
>> Frank Benoit wrote:
>>> Bjoern schrieb:
>>>> Does it make sense, to port the SWT snippets ?
>>>> this ones : http://www.eclipse.org/swt/snippets/
>>> Sure, that would be great.
>>> I you want to start, please talk to me first.
>>> So I can prepare the sources in the same way, i did it on the rest.
>>>
>>> As said in the dwt-linux homepage, in the moment i am working on the examples.
>>> this ones: http://www.eclipse.org/swt/examples.php
>>>
>>> Frank
>> This is great news and I would be happy to help. I can help testing both the linux and windows version. Any plans on an osx version? 
> 
> 
Yes that would probably be good, I remembered that after I wrote the post.
January 21, 2008
Frank Benoit wrote:
> doob schrieb:
>> This is great news and I would be happy to help. I can help testing both the linux and windows version. Any plans on an osx version?
> 
> No plans for OSX for now. Doing this means to do the whole port again, because OSX will use the native widget from OSX and so its implementation is very different from the gtk/win.
> 
> But, if you want to start this, you are welcome. I can assist with some swt specific knowledge and experience how to do the porting efficient.

I thought it was quite a big different between win and gtk and that it also would about be that to osx.
January 21, 2008
John Reimer wrote:
> doob wrote:
> 
>> Frank Benoit wrote:
>>> Bjoern schrieb:
>>>> Does it make sense, to port the SWT snippets ?
>>>> this ones : http://www.eclipse.org/swt/snippets/
>>> Sure, that would be great.
>>> I you want to start, please talk to me first.
>>> So I can prepare the sources in the same way, i did it on the rest.
>>>
>>> As said in the dwt-linux homepage, in the moment i am working on the
>>> examples.
>>> this ones: http://www.eclipse.org/swt/examples.php
>>>
>>> Frank
>> This is great news and I would be happy to help. I can help testing both
>> the linux and windows version. Any plans on an osx version?
> 
> Yes, any help would be greatly appreciated.  Testing, of course, is good...
> but if you have any expertise (especially on win32)... please let us know.
> 
> OS X would be great!  But it's way more than we can tackle at this point. But, if you (or somebody else) is interested in doing such a port, then
> Frank should be able to get you started. :)
> 
> -JJR

Unfortunately I don't have any expertise. I think the snippets should be quite easy to port. I haven't looked at source code for the examples so I don't know about theme. As mentioned we should probably wait for the SWT Cocoa to be finished before we start to port the osx version.

I almost forgot JFace, may I can try to port that. What I know it's only Java and that should be easier, at lease for me.
January 21, 2008
doob schrieb:
> I almost forgot JFace, may I can try to port that. What I know it's only Java and that should be easier, at lease for me.

That would really cool.
I am very interested in this.
January 21, 2008
doob wrote:

>> Yes, any help would be greatly appreciated.  Testing, of course, is good...
>> but if you have any expertise (especially on win32)... please let us know.
>>
>> OS X would be great!  But it's way more than we can tackle at this point. But, if you (or somebody else) is interested in doing such a port, then
>> Frank should be able to get you started. :)
>>
>> -JJR
> 
> Unfortunately I don't have any expertise. I think the snippets should be quite easy to port. I haven't looked at source code for the examples so I don't know about theme. As mentioned we should probably wait for the SWT Cocoa to be finished before we start to port the osx version.
> 
> I almost forgot JFace, may I can try to port that. What I know it's only Java and that should be easier, at lease for me.


JFace is something we've had our eye on; so, yes, that would be great! :)
January 21, 2008
John Reimer wrote:
> doob wrote:
> 
>>> Yes, any help would be greatly appreciated.  Testing, of course, is good...
>>> but if you have any expertise (especially on win32)... please let us know.
>>>
>>> OS X would be great!  But it's way more than we can tackle at this point. But, if you (or somebody else) is interested in doing such a port, then
>>> Frank should be able to get you started. :)
>>>
>>> -JJR
>>
>> Unfortunately I don't have any expertise. I think the snippets should be quite easy to port. I haven't looked at source code for the examples so I don't know about theme. As mentioned we should probably wait for the SWT Cocoa to be finished before we start to port the osx version.
>>
>> I almost forgot JFace, may I can try to port that. What I know it's only Java and that should be easier, at lease for me.
> 
> 
> JFace is something we've had our eye on; so, yes, that would be great! :)

Then I try with JFace first, would be quite a lot to learn if I tried to port the osx version.

I haven't looked at your source code yet so what is it to think about when I do the port, how should I port the data types. I read that you use char[] instead of String, what about boolean? The previous DWT used boolean as an alias to int, is there anything else?
January 21, 2008
doob schrieb:
> I haven't looked at your source code yet so what is it to think about when I do the port, how should I port the data types. I read that you use char[] instead of String, what about boolean? The previous DWT used boolean as an alias to int, is there anything else?

I prepared the original SWT source like this

1. make an eclipse project and load the sources.
2. switch to flat package view
3. select all packages and do 'organize imports'
4. load all files into gvim
5. remove all tabs with ":bufdo retab", having tabstop=4
6. do some global search replace
	":bufdo %s:==:is:g"
	":bufdo %s:!=:!is:g"
	":bufdo %s:\<boolean\>:bool:g"
	":bufdo %s:\<org.eclipse.swt\>:dwt:g"
	":bufdo %s:\<SWT\>:DWT:g"
	":bufdo %s:\<package\>:module:"
	":bufdo %s;\<implements\>;:;"
	":bufdo %s;\<extends\>;:;"

7. save all files
	":wall"
8. rename all .java to .d

Now you have files, that are good for making diffs and merges with your later ported code.

Keep those files for later, if you want to merge a newer
JFace version, than you can follow the same steps and make a three-way merge

The String to char[] replacements should be done interactively. So you can let them be unchanged in javadoc comments.

Frank
January 23, 2008
Reply to Frank,

> Dear D community
> 
> We are happy to announce the new dsource projects
> - DWT-Win      http://www.dsource.org/projects/dwt-win
> - DWT-Linux    http://www.dsource.org/projects/dwt-linux
> Both projects will be a manual port of the SWT 3.3 with tango
> compatibility.
> 
> Status DWT-Linux:
> Completed:
> dnd, custom, widgets, events,
> graphics, accessibitly, printing, layout
> Missing:
> browser, program
> First helloworld example running
> Size with debug info/strip/upx: 4,8 MB/1,8 MB/0,5 MB
> Help is welcome:
> All ported code is pretty untested. Examples are needed.
> The official SWT examples should be ported to show the functionality
> of
> the widgets.
> They can serve as a test and also as programming examples.
> Frank
> 

I can't seem to check it out.

http://svn.dsource.org/projects/dwt-win/ amI missing