Re: Translating Java into D

2019-11-16 Thread Jacob Carlborg via Digitalmars-d-learn
On 2019-11-14 20:50, NonNull wrote: Greetings, Java seems to be almost a subset of D in various ways. Has there been any work done to automatically translate Java source into D? Yes, I'm working on a tool, JPort [1], for automatically translating Java to D. It's not done yet and there's been

Re: Translating Java into D

2019-11-16 Thread Jacob Carlborg via Digitalmars-d-learn
On 2019-11-16 08:13, GreatSam4sure wrote: I am of the opinion that D is much more powerful than Java since I am familiar with the language to some extent. I am even to start a GUI app in java due to the fact I have no find a GUI toolkit in D that meet all my need. There's DWT [1], which is

Re: Translating Java into D

2019-11-16 Thread Alexandru Ermicioi via Digitalmars-d-learn
there been any work done to automatically translate Java source into D? We ported some projects in Java by hand. Regarding template member override. Generics in java are mainly compile time thing that boils down to auto generated casts when working with generic types (in bytecode

Re: Translating Java into D

2019-11-15 Thread GreatSam4sure via Digitalmars-d-learn
there been any work done to automatically translate Java source into D? We ported some projects in Java by hand. ? I really sure of this? Can this be true ? Pls I need more clarity on this by professional in this group. I am of the opinion that D is much more powerful than Java since I am

Re: Translating Java into D

2019-11-15 Thread DanielG via Digitalmars-d-learn
Potentially relevant old thread: https://forum.dlang.org/thread/ssdcoqhylmskfytfi...@forum.dlang.org

Re: Translating Java into D

2019-11-15 Thread Heromyth via Digitalmars-d-learn
-stringaslist https://www.baeldung.com/java-executor-service-tutorial Has there been any work done to automatically translate Java source into D? We ported some projects in Java by hand. With the compile time reflection capabilities of D you can build a runtime reflection system. Therefore I would say D

Re: Translating Java into D

2019-11-15 Thread Andre Pany via Digitalmars-d-learn
there been any work done to automatically translate Java source into D? We ported some projects in Java by hand. With the compile time reflection capabilities of D you can build a runtime reflection system. Therefore I would say D has reflection. The other points I do not have enough

Re: Translating Java into D

2019-11-14 Thread Heromyth via Digitalmars-d-learn
for a type in runtime, type deduction for a template, template member override. See: https://stackoverflow.com/questions/4829631/unusual-generic-syntax-arrays-stringaslist https://www.baeldung.com/java-executor-service-tutorial Has there been any work done to automatically translate Java source

Translating Java into D

2019-11-14 Thread NonNull via Digitalmars-d-learn
Greetings, Java seems to be almost a subset of D in various ways. Has there been any work done to automatically translate Java source into D?

Re: Java to D

2019-09-01 Thread GreatSam4sure via Digitalmars-d-learn
/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

Re: Java to D

2019-08-31 Thread Ernesto Castellotti via Digitalmars-d-learn
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. [...]

Re: Java to D

2019-08-31 Thread Patrick via Digitalmars-d-learn
. [...] 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

Re: Java to D

2019-08-28 Thread GreatSam4sure via Digitalmars-d-learn
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

Re: Java to D

2019-08-28 Thread Jacob Carlborg via Digitalmars-d-learn
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

Java to D

2019-08-28 Thread GreatSam4sure via Digitalmars-d-learn
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

Re: Switching from Java to D: Beginner questions, multiplatform issues, etc.

2014-02-28 Thread Bienlein
for application development to some extend (has a GC, fast build times and other things that result in good productivity). Someone like me who has spent his career with Smalltalk and Java and doesn't know a thing about systems programming can get along with D quite easily. Something like a D

Re: Switching from Java to D: Beginner questions, multiplatform issues, etc.

2014-02-28 Thread Jesse Phillips
programming can get along with D quite easily. Something like a D for Java developers user guide would make sense IMHO. Well, not exactly what you are after. But there have been Java related guides, which could use some updating and moving to the new wiki: http://wiki.dlang.org/Coming_From/Java

Switching from Java to D: Beginner questions, multiplatform issues, etc.

2014-02-27 Thread DS6
Though this post may seem long, my questions are indeed asked. I just kinda started typing and didn't stop; I guess this is both a question post and a vent post. Please bear with me. Hello, I'm a hobbyist programmer, and I'm tired of the way things are going. I'm looking for a change. I must

Re: Switching from Java to D: Beginner questions, multiplatform issues, etc.

2014-02-27 Thread John Colvin
On Thursday, 27 February 2014 at 10:23:40 UTC, DS6 wrote: Okay, down to the questions I have about D: - Why should I use D over another language? What general benefits does it provide me, in relation to the points I made about it above? Is it a solid base to build off of, but still simple in

Re: Switching from Java to D: Beginner questions, multiplatform issues, etc.

2014-02-27 Thread DS6
On Thursday, 27 February 2014 at 10:52:51 UTC, John Colvin wrote: It's a flexible, well designed language. Many things that are complex and/or slow in other languages can be written in a readable and performant manner, with fewer nasty surprises. I find I usually run into some nasty

Re: Switching from Java to D: Beginner questions, multiplatform issues, etc.

2014-02-27 Thread Jeremy DeHaan
On Thursday, 27 February 2014 at 22:40:36 UTC, DS6 wrote: What exactly is the difference between C and D headers? D does not have any separation between header and code files like C or C++. There are files with the .di extension which are similar, but not quite the same. What he meant is

Re: Switching from Java to D: Beginner questions, multiplatform issues, etc.

2014-02-27 Thread Ali Çehreli
On 02/27/2014 02:40 PM, DS6 wrote: What exactly is the difference between C and D headers? D code that needs to use a C library must use D bindings of that C library. Here is Deimos, a collection of D bindings of many C libraries: https://github.com/D-Programming-Deimos More information:

Re: Switching from Java to D: Beginner questions, multiplatform issues, etc.

2014-02-27 Thread Simon Bürger
What exactly is the difference between C and D headers? D itself does not use headers at all. But you will need D headers, if you want to call a C library from D. The translation is mostly syntatic and straight forward like: * replace #define-constants with enums * replace macros with

Re: Switching from Java to D: Beginner questions, multiplatform issues, etc.

2014-02-27 Thread DS6
On Thursday, 27 February 2014 at 22:58:40 UTC, Ali Çehreli wrote: But of course: :) Yeah I found that out already; I have schoolwork to do but D is really interesting and stuff and argh. I think one of the things I also like about D so far is the community. Most Java communities, when I

Re: Switching from Java to D: Beginner questions, multiplatform issues, etc.

2014-02-27 Thread DS6
Also *3: Not having to make an account to post here is also nice. I don't really like signing up for things.

Re: Switching from Java to D: Beginner questions, multiplatform issues, etc.

2014-02-27 Thread Ali Çehreli
On 02/27/2014 03:09 PM, DS6 wrote: Also *3: Not having to make an account to post here is also nice. I don't really like signing up for things. Because this is actually a newsgroup (i.e. NNTP), pretending to be a forum. :) Ali

Re: Switching from Java to D: Beginner questions, multiplatform issues, etc.

2014-02-27 Thread DS6
On Thursday, 27 February 2014 at 23:12:16 UTC, Ali Çehreli wrote: Because this is actually a newsgroup (i.e. NNTP), pretending to be a forum. :) I could kinda tell from both the URL and the Posting to digitalmars.D.learn line. I've never used a newsgroup before, cool.

Re: Communication between Java and D application

2013-09-15 Thread Anton Alexeev
I meant that the programs are running. So there is a runnung program in D and a running program in Java. What is the best way to communicate between them?

Re: Communication between Java and D application

2013-09-15 Thread Jonathan M Davis
On Sunday, September 15, 2013 14:47:24 Anton Alexeev wrote: I meant that the programs are running. So there is a runnung program in D and a running program in Java. What is the best way to communicate between them? Have them communicate via sockets just like you'd talk to a program on another

Re: Communication between Java and D application

2013-09-15 Thread Michael
Pipes or sockets

Re: Communication between Java and D application

2013-09-14 Thread Dejan Lekic
On Fri, 13 Sep 2013 22:04:24 +0200, Anton Alexeev wrote: I have a method in a D program which I want to call from a Java program. What is the best way to do this? What you need is Java JNI: http://en.wikipedia.org/wiki/ Java_Native_Interface . There are many examples how to do this in C or C+

Communication between Java and D application

2013-09-13 Thread Anton Alexeev
I have a method in a D program which I want to call from a Java program. What is the best way to do this?

Re: Communication between Java and D application

2013-09-13 Thread Jonathan M Davis
On Friday, September 13, 2013 22:04:24 Anton Alexeev wrote: I have a method in a D program which I want to call from a Java program. What is the best way to do this? Usually, to have two languages talk to each other, you have to have a C layer in between. So, AFAIK, that's what you have to do,