www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Java to D

reply GreatSam4sure <greatsam4sure gmail.com> writes:
Good day everyone.

DWT is a library for creating cross-platform GUI applications. 
It's a port of the SWT Java library from Eclipse. Currently 
supported platforms are Windows, using Win32 and Linux, using GTK.

What are the tools and step involved in converting a java GUI 
toolkit to D2? Is it possible in D2? What are the tools and steps 
involved? Is there any tutorial involve? Can one get a mentor for 
such a program in the forum

I am thinking if it is possible to port JavaFX to D(i.e. DFx). 
That will be nice for the D language. Javafx is a nice GUI 
toolkit.

I am basically interested in GUI desktop app that connects to the 
web for the now.

I can do that on Java but I would love to use D if it is possible.


I will be happy to be linked to material, tools, and tutorial 
that will be of help
Aug 28 2019
next sibling parent reply Jacob Carlborg <doob me.com> writes:
On 2019-08-28 10:14, GreatSam4sure wrote:
 Good day everyone.
 
 DWT is a library for creating cross-platform GUI applications. It's a 
 port of the SWT Java library from Eclipse. Currently supported platforms 
 are Windows, using Win32 and Linux, using GTK.
 
 What are the tools and step involved in converting a java GUI toolkit to 
 D2? Is it possible in D2? What are the tools and steps involved? Is 
 there any tutorial involve? Can one get a mentor for such a program in 
 the forum
DWT is ported manually from Java. Here's a very short guide [1]. That guide is probably written for D1.
 I am thinking if it is possible to port JavaFX to D(i.e. DFx). That will 
 be nice for the D language. Javafx is a nice GUI toolkit.
 
 I am basically interested in GUI desktop app that connects to the web 
 for the now.
 
 I can do that on Java but I would love to use D if it is possible.
 
 
 I will be happy to be linked to material, tools, and tutorial that will 
 be of help
I'm working on a tool do be able to automatically convert Java code to D code [2]. It's been a while since I did any actual work on that project. As far as I can remember, it can do a syntactic translation of most Java code. What's remaining is the semantic translation. [1] http://dsource.org/projects/dwt/wiki/Porting [2] https://github.com/d-widget-toolkit/jport/tree/dev -- /Jacob Carlborg
Aug 28 2019
parent reply GreatSam4sure <greatsam4sure gmail.com> writes:
On Wednesday, 28 August 2019 at 09:35:55 UTC, Jacob Carlborg 
wrote:
 On 2019-08-28 10:14, GreatSam4sure wrote:
 [...]
DWT is ported manually from Java. Here's a very short guide [1]. That guide is probably written for D1.
 [...]
I'm working on a tool do be able to automatically convert Java code to D code [2]. It's been a while since I did any actual work on that project. As far as I can remember, it can do a syntactic translation of most Java code. What's remaining is the semantic translation. [1] http://dsource.org/projects/dwt/wiki/Porting [2] https://github.com/d-widget-toolkit/jport/tree/dev
Thanks i will check it up
Aug 28 2019
parent reply Patrick <tengai650 gmail.com> writes:
On Wednesday, 28 August 2019 at 10:33:33 UTC, GreatSam4sure wrote:
 On Wednesday, 28 August 2019 at 09:35:55 UTC, Jacob Carlborg 
 wrote:
 On 2019-08-28 10:14, GreatSam4sure wrote:
 [...]
DWT is ported manually from Java. Here's a very short guide [1]. That guide is probably written for D1.
 [...]
I'm working on a tool do be able to automatically convert Java code to D code [2]. It's been a while since I did any actual work on that project. As far as I can remember, it can do a syntactic translation of most Java code. What's remaining is the semantic translation. [1] http://dsource.org/projects/dwt/wiki/Porting [2] https://github.com/d-widget-toolkit/jport/tree/dev
Thanks i will check it up
Take a look at JavacTo https://sourceforge.net/projects/javacto/ This is a java tool that uses the javac compiler to translate java to another language. And includes a java to D code set. It is a very visual tool and has great animation during translation and works well while using the java debugger. I include “How to get started with Eclipse”. You can find more translations statistics at this post: https://forum.dlang.org/thread/yuamvgsdfshgrbesmjlt forum.dlang.org#post-yuamvgsdfshgrbesmjlt:40forum.dlang.org Hope this helps.... Patrick
Aug 31 2019
parent GreatSam4sure <greatsam4sure gmail.com> writes:
On Saturday, 31 August 2019 at 16:44:01 UTC, Patrick wrote:
 On Wednesday, 28 August 2019 at 10:33:33 UTC, GreatSam4sure 
 wrote:
 On Wednesday, 28 August 2019 at 09:35:55 UTC, Jacob Carlborg 
 wrote:
 [...]
Thanks i will check it up
Take a look at JavacTo https://sourceforge.net/projects/javacto/ This is a java tool that uses the javac compiler to translate java to another language. And includes a java to D code set. It is a very visual tool and has great animation during translation and works well while using the java debugger. I include “How to get started with Eclipse”. You can find more translations statistics at this post: https://forum.dlang.org/thread/yuamvgsdfshgrbesmjlt forum.dlang.org#post-yuamvgsdfshgrbesmjlt:40forum.dlang.org Hope this helps.... Patrick
Thanks a lot. I will dive in soon. I am in the mid of a project now
Aug 31 2019
prev sibling parent Ernesto Castellotti <erny.castell gmail.com> writes:
On Wednesday, 28 August 2019 at 08:14:25 UTC, GreatSam4sure wrote:
 Good day everyone.

 DWT is a library for creating cross-platform GUI applications. 
 It's a port of the SWT Java library from Eclipse. Currently 
 supported platforms are Windows, using Win32 and Linux, using 
 GTK.

 [...]
Perhaps this tool could be useful https://github.com/jtransc/jtransc
Aug 31 2019