www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - dmd2

reply Chad J <chadjoan __spam.is.bad__gmail.com> writes:
Hey guys,

I know this is a bit late given the deprecation of D1 and all, but why 
did we name the D2 compiler dmd instead of dmd2?

It's rather annoyed me when trying to work with multiple D projects of 
mixed kind in the same environment.  Using the same compiler name for 
two different programming languages seems like a Bad Idea.

- Chad
Jan 29 2012
next sibling parent Robert Clipsham <robert octarineparrot.com> writes:
On 29/01/2012 16:24, Chad J wrote:
 Hey guys,

 I know this is a bit late given the deprecation of D1 and all, but why
 did we name the D2 compiler dmd instead of dmd2?

 It's rather annoyed me when trying to work with multiple D projects of
 mixed kind in the same environment. Using the same compiler name for two
 different programming languages seems like a Bad Idea.

 - Chad
Check out dvm, it's really useful in this kind of situation. https://bitbucket.org/doob/dvm/wiki/Home You can simply do: dvm use 1.072 dvm use 2.057 etc to switch to the relevant toolchain. -- Robert http://octarineparrot.com/
Jan 29 2012
prev sibling next sibling parent "Peter Alexander" <peter.alexander.au gmail.com> writes:
On Sunday, 29 January 2012 at 16:25:00 UTC, Chad J wrote:
 Hey guys,

 I know this is a bit late given the deprecation of D1 and all, 
 but why did we name the D2 compiler dmd instead of dmd2?

 It's rather annoyed me when trying to work with multiple D 
 projects of mixed kind in the same environment.  Using the same 
 compiler name for two different programming languages seems 
 like a Bad Idea.

 - Chad
I suspect the reason is because the two languages aren't really meant to co-exist together. D2 and D1 are just different versions of D. It's like C++11 and C++03, it's *not* like C++ and C, which are different languages.
Jan 29 2012
prev sibling next sibling parent "Martin Nowak" <dawg dawgfoto.de> writes:
On Sun, 29 Jan 2012 17:24:43 +0100, Chad J  
<chadjoan __spam.is.bad__gmail.com> wrote:

 Hey guys,

 I know this is a bit late given the deprecation of D1 and all, but why  
 did we name the D2 compiler dmd instead of dmd2?

 It's rather annoyed me when trying to work with multiple D projects of  
 mixed kind in the same environment.  Using the same compiler name for  
 two different programming languages seems like a Bad Idea.

 - Chad
The FreeBSD port does installs it as dmd2.
Jan 29 2012
prev sibling next sibling parent reply Stewart Gordon <smjg_1998 yahoo.com> writes:
On 29/01/2012 16:24, Chad J wrote:
 Hey guys,

 I know this is a bit late given the deprecation of D1 and all, but why did we
name the D2
 compiler dmd instead of dmd2?
I'm not sure. Was D2 originally planned to be backward compatible with D1?
 It's rather annoyed me when trying to work with multiple D projects of mixed
kind in the
 same environment. Using the same compiler name for two different programming
languages
 seems like a Bad Idea.
If they are versions of one language (such that version 1 code generally works under version 2 just the same), it can be annoying to have to type in a version number in order to launch the compiler from the command line. But I suppose D1 and D2 are now sufficiently incompatible with each other to be considered different languages. So the compilers probably ought to have different names. I have both D1 and D2 installed, and while working mainly with D1 I have been known to use a batch file called dmd2 to run the compiler for that language on the odd occasions I want it. Now that I'm migrating my projects to D2, I may well start doing the reverse.... Stewart.
Jan 29 2012
parent reply Jonathan M Davis <jmdavisProg gmx.com> writes:
On Sunday, January 29, 2012 17:48:04 Stewart Gordon wrote:
 On 29/01/2012 16:24, Chad J wrote:
 Hey guys,
 
 I know this is a bit late given the deprecation of D1 and all, but why
 did we name the D2 compiler dmd instead of dmd2?
I'm not sure. Was D2 originally planned to be backward compatible with D1?
No. They determined that they were going to redesign the language based on what was learned with D1 and make something better. I suppose that it's a bit like python 2 and 3 in that regard, except that D1 has never had the user base that python 2 has had (python being much older than D, if nothing else). But in both cases, the next version of the language is supposed to supplant the previous one. It just takes time to do that.
 It's rather annoyed me when trying to work with multiple D projects of
 mixed kind in the same environment. Using the same compiler name for
 two different programming languages seems like a Bad Idea.
If they are versions of one language (such that version 1 code generally works under version 2 just the same), it can be annoying to have to type in a version number in order to launch the compiler from the command line. But I suppose D1 and D2 are now sufficiently incompatible with each other to be considered different languages. So the compilers probably ought to have different names. I have both D1 and D2 installed, and while working mainly with D1 I have been known to use a batch file called dmd2 to run the compiler for that language on the odd occasions I want it. Now that I'm migrating my projects to D2, I may well start doing the reverse....
D2 has always been intended to replace D1. I don't think that Walter ever planned for them to coexist in the long term (though he's not against anyone continuing to use D1 if they want to). So, none of the decisions (such as keeping the compiler named dmd rather than dmd2) really seemed to have been made with the idea of promoting coexistance. - Jonathan M Davis
Jan 29 2012
parent Don Clugston <dac nospam.com> writes:
On 29/01/12 23:41, Jonathan M Davis wrote:
 On Sunday, January 29, 2012 17:48:04 Stewart Gordon wrote:
 On 29/01/2012 16:24, Chad J wrote:
 Hey guys,

 I know this is a bit late given the deprecation of D1 and all, but why
 did we name the D2 compiler dmd instead of dmd2?
I'm not sure. Was D2 originally planned to be backward compatible with D1?
No. They determined that they were going to redesign the language based on what was learned with D1 and make something better. I suppose that it's a bit like python 2 and 3 in that regard, except that D1 has never had the user base that python 2 has had (python being much older than D, if nothing else). But in both cases, the next version of the language is supposed to supplant the previous one. It just takes time to do that.
This seems to be a common misconception. There never was a language "D1". What happened was, development of D was progressing in a continuous fashion. But, the rate of change was so high that the language was too unstable to be usable. So, a snapshot was made at an essentially random point in time. This became "D1, the stability branch". The development continued as before on the D2 branch. Splitting off the stable branch allowed us to concentrate on the unstable, experimental features. The const system took such a long time to work that the D2 branch wasn't really usable for much at all for quite a long time. Points to note: (1) D2 is not forked off D1, rather D1 is a snapshot of D2. (2) D1 was NOT a planned language. It was simply frozen at a particular moment in time, with essentially no warning. (3) If there ever is a D3, it will not have the same relationship to D2 that D2 has to D1. I suspect that even Andrei doesn't know this. I think it happened just before he became heavily involved in the language.
Jan 30 2012
prev sibling parent reply Sean Cavanaugh <WorksOnMyMachine gmail.com> writes:
On 1/29/2012 10:24 AM, Chad J wrote:
 Hey guys,

 I know this is a bit late given the deprecation of D1 and all, but why
 did we name the D2 compiler dmd instead of dmd2?

 It's rather annoyed me when trying to work with multiple D projects of
 mixed kind in the same environment. Using the same compiler name for two
 different programming languages seems like a Bad Idea.

 - Chad
On an unrelated note it looks like D would have to get to 14 or 15 hit without additional keywords :)
Jan 29 2012
parent reply Timon Gehr <timon.gehr gmx.ch> writes:
On 01/29/2012 06:55 PM, Sean Cavanaugh wrote:
 On 1/29/2012 10:24 AM, Chad J wrote:
 Hey guys,

 I know this is a bit late given the deprecation of D1 and all, but why
 did we name the D2 compiler dmd instead of dmd2?

 It's rather annoyed me when trying to work with multiple D projects of
 mixed kind in the same environment. Using the same compiler name for two
 different programming languages seems like a Bad Idea.

 - Chad
On an unrelated note it looks like D would have to get to 14 or 15 hit without additional keywords :)
??? http://www.google.com/search?q=d
Jan 29 2012
next sibling parent reply Sean Cavanaugh <WorksOnMyMachine gmail.com> writes:
On 1/29/2012 3:37 PM, Timon Gehr wrote:
 On 01/29/2012 06:55 PM, Sean Cavanaugh wrote:
 On 1/29/2012 10:24 AM, Chad J wrote:
 Hey guys,

 I know this is a bit late given the deprecation of D1 and all, but why
 did we name the D2 compiler dmd instead of dmd2?

 It's rather annoyed me when trying to work with multiple D projects of
 mixed kind in the same environment. Using the same compiler name for two
 different programming languages seems like a Bad Idea.

 - Chad
On an unrelated note it looks like D would have to get to 14 or 15 hit without additional keywords :)
??? http://www.google.com/search?q=d
Jan 29 2012
parent "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
On Sun, Jan 29, 2012 at 07:22:24PM -0600, Sean Cavanaugh wrote:
 On 1/29/2012 3:37 PM, Timon Gehr wrote:
[...]
http://www.google.com/search?q=d
Huh? I guess google must be returning location-specific results. I get T -- Государство делает вид, что платит нам зарплату, а мы делаем вид, что работаем.
Jan 29 2012
prev sibling parent reply Kapps <Kapps NotValidEmail.com> writes:
Google gives you location-specific results. On a side note, I think 
duckduckgo is actually a fair bit nicer for this kind of stuff, as it 
gives you hints as to what the different things that D means is. Like, 
letter, language, grade, etc, and adjust search for which you select.

I get DPL and Wikipedia on D for the top two results of Google with a 
browser I've never used Google with. But it's still returning location 
specific results too and it probably has nothing location specific for D 
here.

On 29/01/2012 3:37 PM, Timon Gehr wrote:
 On 01/29/2012 06:55 PM, Sean Cavanaugh wrote:
 On 1/29/2012 10:24 AM, Chad J wrote:
 Hey guys,

 I know this is a bit late given the deprecation of D1 and all, but why
 did we name the D2 compiler dmd instead of dmd2?

 It's rather annoyed me when trying to work with multiple D projects of
 mixed kind in the same environment. Using the same compiler name for two
 different programming languages seems like a Bad Idea.

 - Chad
On an unrelated note it looks like D would have to get to 14 or 15 hit without additional keywords :)
??? http://www.google.com/search?q=d
Jan 31 2012
parent reply "Marco Leise" <Marco.Leise gmx.de> writes:
Am 31.01.2012, 14:05 Uhr, schrieb Kapps <Kapps notvalidemail.com>:

 Google gives you location-specific results. On a side note, I think  
 duckduckgo is actually a fair bit nicer for this kind of stuff, as it  
 gives you hints as to what the different things that D means is. Like,  
 letter, language, grade, etc, and adjust search for which you select.

 I get DPL and Wikipedia on D for the top two results of Google with a  
 browser I've never used Google with. But it's still returning location  
 specific results too and it probably has nothing location specific for D  
 here.
I am fairly impressed by the results for 'D'. It's just right to ask the user what he/she meant exactly and not print a list of 10000000 results for everything with D in the text. In that sense it is much like the disambiguation on Wikipedia (probably inspired by that?). What puzzles me is how they generate the one line description. It's not a copy from Wikipedia as far as I can tell. Do they have little monkeys that write descriptions for everything on the planet?
Jan 31 2012
next sibling parent "Marco Leise" <Marco.Leise gmx.de> writes:
Am 31.01.2012, 20:00 Uhr, schrieb Marco Leise <Marco.Leise gmx.de>:

 What puzzles me is how they generate the one line description. It's not  
 a copy from Wikipedia as far as I can tell. Do they have little monkeys  
 that write descriptions for everything on the planet?
P.S.: I mean the ones in the disambiguation section: "D (programming language), a C++-like programming language developed by Walter Bright"
Jan 31 2012
prev sibling parent "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
On Tue, Jan 31, 2012 at 08:00:36PM +0100, Marco Leise wrote:
[...]
 I am fairly impressed by the results for 'D'. It's just right to ask
 the user what he/she meant exactly and not print a list of 10000000
 results for everything with D in the text. In that sense it is much
 like the disambiguation on Wikipedia (probably inspired by that?).
 
 What puzzles me is how they generate the one line description. It's
 not a copy from Wikipedia as far as I can tell. Do they have little
 monkeys that write descriptions for everything on the planet?
It's probably a copy from an older version of the Wikipedia article. T -- ASCII stupid question, getty stupid ANSI.
Jan 31 2012