www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Java Backend?

reply Andrea Fontana <advmail katamail.com> writes:
Does it exist a project to use D as frontend to generate Java bytecode?
Something like Jython / Python...
Dec 14 2011
next sibling parent =?UTF-8?B?QWxleCBSw7hubmUgUGV0ZXJzZW4=?= <xtzgzorex gmail.com> writes:
On 14-12-2011 14:48, Andrea Fontana wrote:
 Does it exist a project to use D as frontend to generate Java bytecode?
 Something like Jython / Python...
Not that I know. Besides, the JVM is completely unusable for compiling D code. The instruction set is *way* too limited. - Alex
Dec 14 2011
prev sibling parent reply Dejan Lekic <dejan.lekic gmail.com> writes:
Andrea Fontana wrote:

 Does it exist a project to use D as frontend to generate Java bytecode?
 Something like Jython / Python...
I have plans on starting such project for the SafeD subset of the language. I believe not all SafeD features are possible but if I decide to start such a project, I will strive for as much as possible.
Dec 14 2011
parent reply maarten van damme <maartenvd1994 gmail.com> writes:
they've got c working on a jvm if I recall corectly so safeD should be
possible.
But then again, is it worth it?
Dec 14 2011
next sibling parent Dejan Lekic <dejan.lekic gmail.com> writes:
maarten van damme wrote:

 they've got c working on a jvm if I recall corectly so safeD should be
 possible.
 But then again, is it worth it?
I have professional reasons for doing this anyway. My company does lots of Java, and will do more Java in the future...
Dec 14 2011
prev sibling parent reply Andrea Fontana <advmail katamail.com> writes:
Maybe a dalvik bytecode (not compatible with "official"  jvm bytecode)
generator could help us developing apps for android?

Il giorno mer, 14/12/2011 alle 22.01 +0100, maarten van damme ha
scritto:

 they've got c working on a jvm if I recall corectly so safeD should be
 possible.
 But then again, is it worth it?
Dec 15 2011
next sibling parent reply maarten van damme <maartenvd1994 gmail.com> writes:
2011/12/15 Andrea Fontana <advmail katamail.com>

 **
 Maybe a dalvik bytecode (not compatible with "official"  jvm bytecode)
 generator could help us developing apps for android?
I've been looking at beeing able to write android apps in D. there is an ndk but it's c(++) only. I've read a blog report here: http://interaxiom.blogspot.com/2011/07/running-d-programming-language-on.html with some interesting stuff here : https://bitbucket.org/serotonin never tried it though
Dec 15 2011
parent reply Chad J <chadjoan __spam.is.bad__gmail.com> writes:
On 12/15/2011 05:02 AM, maarten van damme wrote:
 
 2011/12/15 Andrea Fontana <advmail katamail.com
 <mailto:advmail katamail.com>>
 
     __
     Maybe a dalvik bytecode (not compatible with "official"  jvm
     bytecode) generator could help us developing apps for android?
 
 
 I've been looking at beeing able to write android apps in D. there is an
 ndk but it's c(++) only.
 I've read a blog report
 here: http://interaxiom.blogspot.com/2011/07/running-d-programm
ng-language-on.html with
 some interesting stuff here : https://bitbucket.org/serotonin
 never tried it though 
Fuck. Yes. I really want this. Thank you!
Dec 15 2011
parent maarten van damme <maartenvd1994 gmail.com> writes:
no problem but tell me if it works :)
Dec 15 2011
prev sibling next sibling parent Manu <turkeyman gmail.com> writes:
On 15 December 2011 12:02, maarten van damme <maartenvd1994 gmail.com>wrote:

 2011/12/15 Andrea Fontana <advmail katamail.com>

 **
 Maybe a dalvik bytecode (not compatible with "official"  jvm bytecode)
 generator could help us developing apps for android?
I've been looking at beeing able to write android apps in D. there is an ndk but it's c(++) only. I've read a blog report here: http://interaxiom.blogspot.com/2011/07/running-d-programming-language-on.html with some interesting stuff here : https://bitbucket.org/serotonin never tried it though
I've been trying to get an Android toolchain happening, but I keep having troubles building it... I'm not a building-GCC export >_< It would be a bit of fun to implement (wrap) the android libs in D.
Dec 15 2011
prev sibling parent maarten van damme <maartenvd1994 gmail.com> writes:
How far did you got? if you have something you should post it on github.
I think android could be one of those places where D really shines.
You have the speed of native code without added complexity and memory
management where needed. It's imho superiour to java in any way.
Dec 15 2011