www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Java Backend?

reply Andrea Fontana <advmail katamail.com> writes:
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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 next 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
next sibling parent reply maarten van damme <maartenvd1994 gmail.com> writes:
--f46d041704dd0b940b04b413acc8
Content-Type: text/plain; charset=ISO-8859-1

they've got c working on a jvm if I recall corectly so safeD should be
possible.
But then again, is it worth it?

--f46d041704dd0b940b04b413acc8
Content-Type: text/html; charset=ISO-8859-1

they&#39;ve got c working on a jvm if I recall corectly so safeD should be
possible.<br>But then again, is it worth it?<br>

--f46d041704dd0b940b04b413acc8--
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 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
prev sibling next sibling parent maarten van damme <maartenvd1994 gmail.com> writes:
--f46d04138ecde1aed504b41e9570
Content-Type: text/plain; charset=ISO-8859-1

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?

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 --f46d04138ecde1aed504b41e9570 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <br><div class=3D"gmail_quote">2011/12/15 Andrea Fontana <span dir=3D"ltr">= &lt;<a href=3D"mailto:advmail katamail.com">advmail katamail.com</a>&gt;</s= pan><br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border= -left:1px #ccc solid;padding-left:1ex"> <u></u> =20 =20 <div> Maybe a dalvik bytecode (not compatible with &quot;official&quot;=A0 jvm by= tecode) generator could help us developing apps for android?<br><br></div><= /blockquote><div><br></div><div>I&#39;ve been looking at beeing able to wri= te android apps in D. there is an ndk but it&#39;s c(++) only.</div> <div>I&#39;ve read a blog report here:=A0<a href=3D"http://interaxiom.blogs= pot.com/2011/07/running-d-programming-language-on.html">http://interaxiom.b= logspot.com/2011/07/running-d-programming-language-on.html</a>=A0with some = interesting stuff here :=A0<a href=3D"https://bitbucket.org/serotonin">http= s://bitbucket.org/serotonin</a></div> <div>never tried it though=A0</div></div> --f46d04138ecde1aed504b41e9570--
Dec 15 2011
prev sibling next sibling parent maarten van damme <maartenvd1994 gmail.com> writes:
--e89a8ff1bfa86954c304b4225b68
Content-Type: text/plain; charset=ISO-8859-1

no problem but tell me if it works :)

--e89a8ff1bfa86954c304b4225b68
Content-Type: text/html; charset=ISO-8859-1

no problem but tell me if it works :)<br>

--e89a8ff1bfa86954c304b4225b68--
Dec 15 2011
prev sibling next sibling parent Manu <turkeyman gmail.com> writes:
--20cf30334dc7d570b304b4225b5c
Content-Type: text/plain; charset=UTF-8

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?

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. --20cf30334dc7d570b304b4225b5c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div class=3D"gmail_quote">On 15 December 2011 12:02, maarten van damme <sp= an dir=3D"ltr">&lt;<a href=3D"mailto:maartenvd1994 gmail.com">maartenvd1994= gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style= =3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br><div class=3D"gmail_quote"><div class=3D"im">2011/12/15 Andrea Fontana = <span dir=3D"ltr">&lt;<a href=3D"mailto:advmail katamail.com" target=3D"_bl= ank">advmail katamail.com</a>&gt;</span><br><blockquote class=3D"gmail_quot= e" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <u></u> =20 =20 <div> Maybe a dalvik bytecode (not compatible with &quot;official&quot;=C2=A0 jvm= bytecode) generator could help us developing apps for android?<br><br></di= v></blockquote><div><br></div></div><div>I&#39;ve been looking at beeing ab= le to write android apps in D. there is an ndk but it&#39;s c(++) only.</di= v> <div>I&#39;ve read a blog report here:=C2=A0<a href=3D"http://interaxiom.bl= ogspot.com/2011/07/running-d-programming-language-on.html" target=3D"_blank= ">http://interaxiom.blogspot.com/2011/07/running-d-programming-language-on.= html</a>=C2=A0with some interesting stuff here :=C2=A0<a href=3D"https://bi= tbucket.org/serotonin" target=3D"_blank">https://bitbucket.org/serotonin</a=
</div>

<div>never tried it though=C2=A0</div></div> </blockquote></div><br><div>I&#39;ve been trying to get an Android toolchai= n happening, but I keep having troubles building it... I&#39;m not a buildi= ng-GCC export &gt;_&lt;</div><div>It would be a bit of fun to implement (wr= ap) the android libs in D.</div> --20cf30334dc7d570b304b4225b5c--
Dec 15 2011
prev sibling parent maarten van damme <maartenvd1994 gmail.com> writes:
--f46d04138ecdb7d20104b428b815
Content-Type: text/plain; charset=ISO-8859-1

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.

--f46d04138ecdb7d20104b428b815
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

How far did you got? if you have something you should post it on github.<br=
I think android could be one of those places where D really shines. <br>Yo=

ent where needed. It&#39;s imho superiour to java in any way.<br> --f46d04138ecdb7d20104b428b815--
Dec 15 2011
prev sibling parent Andrea Fontana <advmail katamail.com> writes:
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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