December 26, 2012
On Wednesday, 26 December 2012 at 15:54:12 UTC, Jacob Carlborg wrote:
> On 2012-12-25 22:40, Chris wrote:

> Unfortunately no, there is no timeline. I'm doing this on my spare time which, as for most here, is very limited. I'm also working on other D projects.

Time is an issue, I know. I'd like to help you but my time is limited too.

> It definitely will be. Since I started with D1 and Tango I want to finish the port first, before I switch to D2. I'm hoping the switch to D2 will be fairly easy since the utility libraries/functions are already ported to D2 (the Windows and Linux versions use them).

That would be great.

> I want to use DWT as well. Since my main platform is Mac OS X it will happen.
>

>
> I pronounce the three characters separately, D-W-T. DWT is short for D Widget Toolkit. A play on the original name SWT - Standard Widget Toolkit.

I once read that SWT is pronounced "SWAT", so I thought "DWAT" would be the logical consequence (which sounds a bit like "twat").

> D kind of had that feature. I don't know if it's still available but deprecated or completely removed. I think it could extract all code in code-tags:
>
> <code>int i = 0;</code>
>
> http://digitalmars.com/d/1.0/html.html

Now that you mention it, I read that too. I was thinking of a PHP like embedding like this:

<html>
...
<?d
auto greeting = "Hello";
writeln(greeting);
?>
...
</html>

I wonder how hard it would be to implement something like this for D.
December 26, 2012
On 2012-12-26 17:32, Chris wrote:

> Time is an issue, I know. I'd like to help you but my time is limited too.

What could be helpful is testing the snippets and see which works and which don't. I've started to adapt the snippets from the current DWT snippet repository to the DWT Mac repository.

Snippets: https://github.com/d-widget-toolkit/org.eclipse.swt.snippets

The "todo.taskpaper" file contains a list the snippets and their status.

DWT Mac repository: https://github.com/d-widget-toolkit/dwt-mac

> Now that you mention it, I read that too. I was thinking of a PHP like
> embedding like this:
>
> <html>
> ...
> <?d
> auto greeting = "Hello";
> writeln(greeting);
> ?>
> ...
> </html>
>
> I wonder how hard it would be to implement something like this for D.

Not that hard I think.  Oh, now that I think of it, you should check out Vibe.d and especially its templates:

http://vibed.org/features#diet-templates

-- 
/Jacob Carlborg
December 26, 2012
On Wednesday, 26 December 2012 at 18:54:15 UTC, Jacob Carlborg wrote:
> On 2012-12-26 17:32, Chris wrote:

> What could be helpful is testing the snippets and see which works and which don't. I've started to adapt the snippets from the current DWT snippet repository to the DWT Mac repository.
>
> Snippets: https://github.com/d-widget-toolkit/org.eclipse.swt.snippets

I can try to do that next year in January.


> The "todo.taskpaper" file contains a list the snippets and their status.
>
> DWT Mac repository: https://github.com/d-widget-toolkit/dwt-mac
>

> Not that hard I think.  Oh, now that I think of it, you should check out Vibe.d and especially its templates:
>
> http://vibed.org/features#diet-templates

Now that I look at it, I have come across that page too. I haven't tested it though.

December 28, 2012
Have you seen this one:

https://github.com/sleets/dwt-mac
December 28, 2012
On Friday, 28 December 2012 at 11:19:11 UTC, Chris wrote:
> Have you seen this one:
>
> https://github.com/sleets/dwt-mac

No, but it hasn't been updated for over a year. I don't see anything indicating it has come further along in the porting process then I have. The code is originally from me.

--
/Jacob Carlborg
December 28, 2012
On Friday, 28 December 2012 at 11:51:55 UTC, Jacob Carlborg wrote:
> On Friday, 28 December 2012 at 11:19:11 UTC, Chris wrote:
>> Have you seen this one:
>>
>> https://github.com/sleets/dwt-mac
>
> No, but it hasn't been updated for over a year. I don't see anything indicating it has come further along in the porting process then I have. The code is originally from me.
>

I see. If you have a list or better a *description* of what has to be done to finish the project and to update it to D2 (possibly with Phobos integration) please send it to me. My email address is there I think. Maybe I can have a look at it. I have some vague experience with combining Ojective-C and D, also I know the Cocoa Framework (although not the latest flashy additions that come with each new version of OS X, I been outta touch for a while now).
December 28, 2012
On 2012-12-28 13:05, Chris wrote:

> I see. If you have a list or better a *description* of what has to be
> done to finish the project and to update it to D2 (possibly with Phobos
> integration) please send it to me. My email address is there I think.
> Maybe I can have a look at it. I have some vague experience with
> combining Ojective-C and D, also I know the Cocoa Framework (although
> not the latest flashy additions that come with each new version of OS X,
> I been outta touch for a while now).

The current status is that everything compiles, but far from everything runs. I'm trying to collect a list of snippets that doesn't work and then try to fix them. I think the best approach is to try and fix as many snippets as possible before moving to D2.

Here's the list of the status of the snippets I've tested:

https://github.com/d-widget-toolkit/dwt-mac/blob/master/todo.taskpaper#L12

The @run tag indicates the snippet doesn't crash but it seems somethings aren't working properly.

The snippets I'm using are these:

https://github.com/d-widget-toolkit/org.eclipse.swt.snippets

They are actually for the D2 port but they're easy to adapt to D1. It's mostly just changing the import statements.

I'm using DMD 1.072. I know for sure that version works with Tango. I'm only compiling 32bit for now. You can install DMD 1.072 and Tango using DVM:

https://github.com/jacob-carlborg/dvm

I've written a porting guide here:

https://github.com/d-widget-toolkit/dwt-mac

-- 
/Jacob Carlborg
December 28, 2012
On Friday, 28 December 2012 at 14:09:27 UTC, Jacob Carlborg wrote:
> On 2012-12-28 13:05, Chris wrote:
>
>> I see. If you have a list or better a *description* of what has to be
>> done to finish the project and to update it to D2 (possibly with Phobos
>> integration) please send it to me. My email address is there I think.
>> Maybe I can have a look at it. I have some vague experience with
>> combining Ojective-C and D, also I know the Cocoa Framework (although
>> not the latest flashy additions that come with each new version of OS X,
>> I been outta touch for a while now).
>
> The current status is that everything compiles, but far from everything runs. I'm trying to collect a list of snippets that doesn't work and then try to fix them. I think the best approach is to try and fix as many snippets as possible before moving to D2.
>
> Here's the list of the status of the snippets I've tested:
>
> https://github.com/d-widget-toolkit/dwt-mac/blob/master/todo.taskpaper#L12
>
> The @run tag indicates the snippet doesn't crash but it seems somethings aren't working properly.
>
> The snippets I'm using are these:
>
> https://github.com/d-widget-toolkit/org.eclipse.swt.snippets
>
> They are actually for the D2 port but they're easy to adapt to D1. It's mostly just changing the import statements.
>
> I'm using DMD 1.072. I know for sure that version works with Tango. I'm only compiling 32bit for now. You can install DMD 1.072 and Tango using DVM:
>
> https://github.com/jacob-carlborg/dvm
>
> I've written a porting guide here:
>
> https://github.com/d-widget-toolkit/dwt-mac


Thanks a million. I will have a look. I am adamant to get on with DWT for Mac. What about moving to D2 right now instead of debugging for D1 & Tango first? Are there any reasons why debugging for D1 & Tango should be prioritized? Maybe it'd be better to get rid of old debts and start a new fork or branch with D2 Tango / Phobos.
December 28, 2012
On 2012-12-28 19:13, Chris wrote:

> Thanks a million. I will have a look. I am adamant to get on with DWT
> for Mac. What about moving to D2 right now instead of debugging for D1 &
> Tango first? Are there any reasons why debugging for D1 & Tango should
> be prioritized? Maybe it'd be better to get rid of old debts and start a
> new fork or branch with D2 Tango / Phobos.

I think that would be a bad idea. When something doesn't work it will be hard to figure out if it was a mistake porting Java to D or porting D1 to D2.

-- 
/Jacob Carlborg
December 28, 2012
On Friday, 28 December 2012 at 18:36:17 UTC, Jacob Carlborg wrote:
> On 2012-12-28 19:13, Chris wrote:
>
>> Thanks a million. I will have a look. I am adamant to get on with DWT
>> for Mac. What about moving to D2 right now instead of debugging for D1 &
>> Tango first? Are there any reasons why debugging for D1 & Tango should
>> be prioritized? Maybe it'd be better to get rid of old debts and start a
>> new fork or branch with D2 Tango / Phobos.
>
> I think that would be a bad idea. When something doesn't work it will be hard to figure out if it was a mistake porting Java to D or porting D1 to D2.

And starting from scratch with D2? How much would that take? Given that you already have the know-how. Anyway, I will have a look at the links you've posted. Alas that Mac users seem to be a minority among D users! I see so many people using Mac these days. Maybe Apple will include D one day.