Sorry

he_the_great jessekphillips+digitalmars at gmail.com
Wed Oct 25 17:11:08 PDT 2006


Now I am still new to programming, but I don't see the need to implement 
Java style anything. Why do we need easy translation from Java to D? D 
isn't trying to be an improvement on Java (eg C#), but an improvement on 
C. Not only that but Java is a bloated object only language.

I also have found, other than GUI stuff, Java is very easy to translate 
into D. I know I haven't programed anything extremely complicated, but 
the basics never really change.

I don't know much about what Sean has been doing with his DWT 
translation, but I would think the problem he is running into is the 
back-end (dealing with the displaying of graphics), and not what the end 
user sees. Since Java just has to make calls to the virtual machine it 
can be universal, but Sean would be working on what the virtual machine 
does to display the graphics.

Lastly if you want to have the ability to use basic data structures as 
Java does, you could always create a wrapper (I think thats what you'd 
call it).

Like I said I'm a fairly new programmer, maybe I'm missing something, 
but this is where I stand right now.

BLS wrote:
> ...writing a message frustated and in a bad mood never has been an good 
> idea. <<D not for me anymore>>
> 
> What I've said was too negative and at least not fair against all the 
> efforts allready made.
> 
> So, my apologies. Sorry!
> 
> Why this frustration : Simply because I have tried to translate some 
> Java code into D. I wasn't able to do that because even a small Java 
> programm allmost depends on java.util /*collections (Hashmap, 
> Hashset,Hashtable, ...) */ as well as Java array and strings.
> Due to the fact that phobos doesn't offer much support for these basic 
> data structures it is, at least, very difficult to translate Java into 
> D. (even by hand)
> 
> Meanwhile (today) I have seen that Mango offers something from 
> java.util.* (even if it is not part of the binary ditribution) *and* 
> listening to Walter's  RedBackTree query, I have some hope that mango 
> collections will find a way into phobos.
> 
> 
> Next : I am still convinced that a semi automatic  Java to D Translation 
> is possible if we just have these java-like collections, a compatible 
> Sting and Array??? class.
> 
> Some of you may have noticed that I spend some time on a translator tool 
> like that. What I'll publish here in the attachemenmt is a not my code. 
> The Code-Emitter attached is based on a Java Tree Parser.
> But you'll agreee : The following,attached  Java code can be adapted to 
> produce valid D code.
> 
> 
> 
> Björn



More information about the Digitalmars-d mailing list