www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Compiler Page - Request for review

reply Jesse Phillips <jessekphillips+d gmail.com> writes:
I've created a small overview page of the available compilers on Wiki4D. The
idea is not to contain much concrete information, but point users in the
correct direction. However, for the information that is there I want to make
sure that it is correct and clear what is being stated.

Thank you

http://www.prowiki.org/wiki4d/wiki.cgi?D__Tutorial/StartingWithD/Compiler
Jul 13 2009
next sibling parent reply Lutger <lutger.blijdestijn gmail.com> writes:
Some comments:

dil is not yet able to compile D as far as I know, which is what the page 
suggest ("There are a number of compilers that can be used for D")

The dmd table could suggest that it supports D2 with Tango, I recommend 
formatting it like this:

language version   D1.x           D2.x
runtime library    phobos, tango  phobos
                   
LDC comes with Tango by default, but I assume phobos or at least tangobos 
can be used with it? 

About GDC, iirc the latest (which is quite old) version can be used with a 
version of D, although I don't remember which one.

Perhaps it would be useful to enumerate which OS and arch the various 
compilers support?
Jul 13 2009
next sibling parent Lutger <lutger.blijdestijn gmail.com> writes:
... 
 About GDC, iirc the latest (which is quite old) version can be used with a
 version of D, although I don't remember which one.

a version of *D2*
Jul 13 2009
prev sibling next sibling parent reply Robert Clipsham <robert octarineparrot.com> writes:
Lutger wrote:
 Some comments:
 
 dil is not yet able to compile D as far as I know, which is what the page 
 suggest ("There are a number of compilers that can be used for D")

That's correct, it's lacking in the semantic analysis required to be a complete frontend, and even then it still needs a backend.
 The dmd table could suggest that it supports D2 with Tango, I recommend 
 formatting it like this:
 
 language version   D1.x           D2.x
 runtime library    phobos, tango  phobos

I agree it needs changing, and that looks like a reasonable layout to me.
 LDC comes with Tango by default, but I assume phobos or at least tangobos 
 can be used with it? 

Phobos does not work with LDC, due to the runtime not being compatible. With a few tweaks it should work, but I don't know exactly how much effort will be required to get it fully working. As for tangobos, I believe it works with LDC, I'm unsure of whether it works with the latest versions of tango though. If not you're out of luck for phobos with ldc.
 About GDC, iirc the latest (which is quite old) version can be used with a 
 version of D, although I don't remember which one.

I think the latest svn revision is at 1.030 and the latest stable release at 1.02x.
 Perhaps it would be useful to enumerate which OS and arch the various 
 compilers support?

Agreed.
Jul 13 2009
parent Leandro Lucarella <llucax gmail.com> writes:
Robert Clipsham, el 14 de julio a las 00:43 me escribiste:
 Lutger wrote:
Some comments: dil is not yet able to compile D as far as I know, which
is what the page suggest ("There are a number of compilers that can be
used for D")

That's correct, it's lacking in the semantic analysis required to be a complete frontend, and even then it still needs a backend.
The dmd table could suggest that it supports D2 with Tango, I recommend
formatting it like this: language version   D1.x           D2.x runtime
library    phobos, tango  phobos

I agree it needs changing, and that looks like a reasonable layout to me.
LDC comes with Tango by default, but I assume phobos or at least
tangobos can be used with it? 

Phobos does not work with LDC, due to the runtime not being compatible. With a few tweaks it should work, but I don't know exactly how much effort will be required to get it fully working. As for tangobos, I believe it works with LDC, I'm unsure of whether it works with the latest versions of tango though. If not you're out of luck for phobos with ldc.

Last time I checked, Tangobos won't work with LDC because Phobos has plenty DMD specific version() statements. AFAIK, nobody has worked on Tangobos since I checked, so I guess you have to be *very* lucky if it works... -- Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/ ---------------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ---------------------------------------------------------------------------- Oiganmen ñatos de corazón, es más posible que un potus florezca en primavera a que un ángel pase con una remera. -- Peperino Pómoro
Jul 13 2009
prev sibling parent Jesse Phillips <jessekphillips gmail.com> writes:
On Tue, 14 Jul 2009 00:48:56 +0200, Lutger wrote:

 Some comments:
 
 dil is not yet able to compile D as far as I know, which is what the
 page suggest ("There are a number of compilers that can be used for D")

Good point, I want to include it in the list since it is active and attempts to us D.
 
 The dmd table could suggest that it supports D2 with Tango, I recommend
 formatting it like this:
 
 language version   D1.x           D2.x runtime library    phobos, tango 
 phobos
                 

Done
 LDC comes with Tango by default, but I assume phobos or at least
 tangobos can be used with it?

This is one of the main reasons for this page. There doesn't seem to be any listing of LDC's incompatibility with Phobos.
 About GDC, iirc the latest (which is quite old) version can be used with
 a version of D, although I don't remember which one.
 
 Perhaps it would be useful to enumerate which OS and arch the various
 compilers support?

This is a good idea, but there is a major issue with doing this. Wiki4D does not get updated with the latest information. Once an architecture is supported it isn't likely to be rescinded, but if one supported isn't listed that can be just as bad. My objective was to point the user to the page maintained by the project owner containing the information. If however Wiki4D has a good number of users that can keep this information up-to-date, then yes it should have that information.
Jul 13 2009
prev sibling next sibling parent reply Robert Clipsham <robert octarineparrot.com> writes:
Jesse Phillips wrote:
 I've created a small overview page of the available compilers on Wiki4D. The
idea is not to contain much concrete information, but point users in the
correct direction. However, for the information that is there I want to make
sure that it is correct and clear what is being stated.
 
 Thank you
 
 http://www.prowiki.org/wiki4d/wiki.cgi?D__Tutorial/StartingWithD/Compiler

http://docs.google.com/Doc?id=dghphd83_43ffpdbtcc might help with that page (although it's slightly out of date now). I find the tables slightly confusing, I read that as dmd 2 using tango as its runtime library, it'd be nice if it was rearranged slightly (don't ask me how, I'm not sure). It would also be good to add a list of supported architectures/operating systems to the tables too.
Jul 13 2009
parent Jesse Phillips <jessekphillips gmail.com> writes:
On Tue, 14 Jul 2009 00:17:52 +0100, Robert Clipsham wrote:

 http://docs.google.com/Doc?id=dghphd83_43ffpdbtcc might help with that
 page (although it's slightly out of date now). I find the tables
 slightly confusing, I read that as dmd 2 using tango as its runtime
 library, it'd be nice if it was rearranged slightly (don't ask me how,
 I'm not sure). It would also be good to add a list of supported
 architectures/operating systems to the tables too.

If the author would like to merge that into the Wiki that would be great. FYI to the author the last heading, "I liek D2." need I say more?
Jul 13 2009
prev sibling next sibling parent reply Tim Matthews <tim.matthews7 gmail.com> writes:
Jesse Phillips wrote:
 I've created a small overview page of the available compilers on Wiki4D. The
idea is not to contain much concrete information, but point users in the
correct direction. However, for the information that is there I want to make
sure that it is correct and clear what is being stated.
 
 Thank you
 
 http://www.prowiki.org/wiki4d/wiki.cgi?D__Tutorial/StartingWithD/Compiler

Dil is probably not at a very usable state. Maybe you could divide into compilers and other parsers which will also be the location for any compilers that cannot yet turn a hello world .d into an executable. Also should dang have a spot there too http://dsource.org/projects/dang
Jul 13 2009
parent Jesse Phillips <jessekphillips gmail.com> writes:
On Tue, 14 Jul 2009 12:42:53 +1200, Tim Matthews wrote:

 Jesse Phillips wrote:
 I've created a small overview page of the available compilers on
 Wiki4D. The idea is not to contain much concrete information, but point
 users in the correct direction. However, for the information that is
 there I want to make sure that it is correct and clear what is being
 stated.
 
 Thank you
 
 http://www.prowiki.org/wiki4d/wiki.cgi?D__Tutorial/StartingWithD/


 
 Dil is probably not at a very usable state. Maybe you could divide into
 compilers and other parsers which will also be the location for any
 compilers that cannot yet turn a hello world .d into an executable. Also
 should dang have a spot there too http://dsource.org/projects/dang

I have made appropriate corrections to this. The reason dil was placed on the page is because it has had recent changes. If the own of dang feels as though he is still active on the project, he is free to add it himself (nothing wrong with promoting your own project). If dil's development stops, it should be removed from the page unless it can compile D source.
Jul 13 2009
prev sibling parent reply Robert Clipsham <robert octarineparrot.com> writes:
Jesse Phillips wrote:
 I've created a small overview page of the available compilers on Wiki4D. The
idea is not to contain much concrete information, but point users in the
correct direction. However, for the information that is there I want to make
sure that it is correct and clear what is being stated.
 
 Thank you
 
 http://www.prowiki.org/wiki4d/wiki.cgi?D__Tutorial/StartingWithD/Compiler

Thanks for updating the page! It seems a lot better now, but I noticed you've put gdc down as supporting D2/Phobos. It was my impression that it didn't function at all, I could be wrong though. What is the actual status of it?
Jul 14 2009
parent Jesse Phillips <jessekphillips gmail.com> writes:
On Tue, 14 Jul 2009 15:03:15 +0100, Robert Clipsham wrote:

 Jesse Phillips wrote:
 I've created a small overview page of the available compilers on
 Wiki4D. The idea is not to contain much concrete information, but point
 users in the correct direction. However, for the information that is
 there I want to make sure that it is correct and clear what is being
 stated.
 
 Thank you
 
 http://www.prowiki.org/wiki4d/wiki.cgi?D__Tutorial/StartingWithD/


 
 Thanks for updating the page! It seems a lot better now, but I noticed
 you've put gdc down as supporting D2/Phobos. It was my impression that
 it didn't function at all, I could be wrong though. What is the actual
 status of it?

I don't really know. My understanding is that GDC doesn't work with either version of D without work from the user. If GDC can be made to work with D2.x with some effort then it should be listed or neither should be. If anyone knows the state of GDC hopefully they can make the appropriate change.
Jul 14 2009