Re: Running D in the Java VM

2013-11-24 Thread Paulo Pinto
Am 22.11.2013 17:15, schrieb John Colvin: On Friday, 22 November 2013 at 13:36:08 UTC, Paulo Pinto wrote: I don't have any issue with Java and do like the language, but it has lost its place if you care about portable code across mobile platforms. Ironic, much? :p Sadly yes. There is hope wi

Re: Running D in the Java VM

2013-11-23 Thread Rémy Mouëza
I haven't tried it, but here is an idea to target the JVM: - use ldc `-output-ll` option to generate LLVM IR. - use the LLJVM backend to generate some Jasmin assembly code from the LLVM IR ( as described on https://github.com/davidar/lljvm) - link with the LLJVM linker. This may produce some

Re: Running D in the Java VM

2013-11-22 Thread John Colvin
On Friday, 22 November 2013 at 13:36:08 UTC, Paulo Pinto wrote: I don't have any issue with Java and do like the language, but it has lost its place if you care about portable code across mobile platforms. Ironic, much? :p

Re: Running D in the Java VM

2013-11-22 Thread Paulo Pinto
On Friday, 22 November 2013 at 12:45:19 UTC, Jacob Carlborg wrote: On 2013-11-22 06:30, Paulo Pinto wrote: that Google leaves to the developers the effort of creating the JNI wrappers themselves, instead of providing a nice C++ API for them. I guess they want their developers to use Java. Ot

Re: Running D in the Java VM

2013-11-22 Thread Jacob Carlborg
On 2013-11-22 06:30, Paulo Pinto wrote: that Google leaves to the developers the effort of creating the JNI wrappers themselves, instead of providing a nice C++ API for them. I guess they want their developers to use Java. Otherwise they would have made C++ a first class citizens and not forc

Re: Running D in the Java VM

2013-11-22 Thread Paulo Pinto
On Friday, 22 November 2013 at 07:48:34 UTC, eles wrote: On Friday, 22 November 2013 at 05:30:00 UTC, Paulo Pinto wrote: Am 22.11.2013 00:52, schrieb John J: On 11/21/2013 05:02 PM, Paulo Pinto wrote: Am 21.11.2013 21:25, schrieb inout: On Thursday, 21 November 2013 at 07:35:01 UTC, Volcz wro

Re: Running D in the Java VM

2013-11-15 Thread Russel Winder
On Fri, 2013-11-15 at 09:44 +0200, Rory McGuire wrote: […] > Nice one, I have to use Java at work, it would be awesome if I didn't have > to. > Would be cool if you make it so that the outputs to java are just trasforms > of the AST that way people could write other types of output such as C. Just

Re: Running D in the Java VM

2013-11-15 Thread Rory McGuire
Surely the main requirements would be gui and networking? Which would be completely possible. On 15 Nov 2013 12:05, "John Colvin" wrote: > On Friday, 15 November 2013 at 08:50:14 UTC, Paulo Pinto wrote: > >> On Friday, 15 November 2013 at 07:13:34 UTC, Jeremy DeHaan wrote: >> >>> Hey everyone! >

Re: Running D in the Java VM

2013-11-15 Thread John Colvin
On Friday, 15 November 2013 at 08:50:14 UTC, Paulo Pinto wrote: On Friday, 15 November 2013 at 07:13:34 UTC, Jeremy DeHaan wrote: Hey everyone! I have been experimenting for the past couple of days with an idea I had, and since I recently made a little progress I thought I would share some of

Re: Running D in the Java VM

2013-11-15 Thread Paulo Pinto
On Friday, 15 November 2013 at 07:13:34 UTC, Jeremy DeHaan wrote: Hey everyone! I have been experimenting for the past couple of days with an idea I had, and since I recently made a little progress I thought I would share some of what I have been doing with you. What I have done, in a nutshel

Re: Running D in the Java VM

2013-11-14 Thread Jeremy DeHaan
On Friday, 15 November 2013 at 07:30:07 UTC, Timur Gafarov wrote: Maybe it would be better to compile D directly into JVM/Dalvik bytecode? Oh, absolutely. Like I said though, I don't really know that much about compilers so I decided to go this route. Also, it's actually been a pretty fun p

Re: Running D in the Java VM

2013-11-14 Thread Rory McGuire
On Fri, Nov 15, 2013 at 9:13 AM, Jeremy DeHaan wrote: > > I can, and would love to go in to more detail about this, but it is > getting late and this post is already quite long. Maybe I should start a > blog about my D escapades? Anyways, I would love to hear feedback on this > idea! Thanks for yo

Re: Running D in the Java VM

2013-11-14 Thread Timur Gafarov
15.11.2013 10:13, Jeremy DeHaan пишет: Hey everyone! I have been experimenting for the past couple of days with an idea I had, and since I recently made a little progress I thought I would share some of what I have been doing with you. What I have done, in a nutshell, is began the process for a