www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Reinstalled Mac

reply Joel <joelcnz gmail.com> writes:
I've got my Mac reinstalled. I haven't installed D (dmd) yet. I 
would like to hear what people think.

I'm thinking using home brew. And install the latest Code X.
Sep 28 2016
next sibling parent reply Guillaume Piolat <first.last gmail.com> writes:
On Wednesday, 28 September 2016 at 08:18:40 UTC, Joel wrote:
 I'm thinking using home brew.
Use the DMD installer instead on dlang.org
Sep 28 2016
next sibling parent reply Mike Parker <aldacron gmail.com> writes:
On Wednesday, 28 September 2016 at 09:15:15 UTC, Guillaume Piolat 
wrote:
 On Wednesday, 28 September 2016 at 08:18:40 UTC, Joel wrote:
 I'm thinking using home brew.
Use the DMD installer instead on dlang.org
Any particular reason? I've been using homebrew for it. I like the simple command line update.
Sep 28 2016
parent Guillaume Piolat <first.last gmail.com> writes:
On Wednesday, 28 September 2016 at 09:34:23 UTC, Mike Parker 
wrote:
 Use the DMD installer instead on dlang.org
Any particular reason? I've been using homebrew for it. I like the simple command line update.
Not really. I didn't know it was up-to-date. Las time I tried it wasn't up-to-date for LDC and I tend to change compilers often, so I wrote if off.
Sep 28 2016
prev sibling parent Joel <joelcnz gmail.com> writes:
On Wednesday, 28 September 2016 at 09:15:15 UTC, Guillaume Piolat 
wrote:
 On Wednesday, 28 September 2016 at 08:18:40 UTC, Joel wrote:
 I'm thinking using home brew.
Use the DMD installer instead on dlang.org
What is the advantage from the site? Should I use home brew for every thing else?
Sep 28 2016
prev sibling parent reply Jacob Carlborg <doob me.com> writes:
On 2016-09-28 10:18, Joel wrote:
 I've got my Mac reinstalled. I haven't installed D (dmd) yet. I would
 like to hear what people think.

 I'm thinking using home brew. And install the latest Code X.
You need Xcode and I recommend installing using DVM [1]. It allows you to have multiple versions of DMD installed and you can easily switch between them [2]. [1] https://github.com/jacob-carlborg/dvm [2] http://dlang.org/blog/2016/08/17/inside-d-version-manager/ -- /Jacob Carlborg
Sep 28 2016
parent reply Joel <joelcnz gmail.com> writes:
On Wednesday, 28 September 2016 at 09:34:46 UTC, Jacob Carlborg 
wrote:
 On 2016-09-28 10:18, Joel wrote:
 I've got my Mac reinstalled. I haven't installed D (dmd) yet. 
 I would
 like to hear what people think.

 I'm thinking using home brew. And install the latest Code X.
You need Xcode and I recommend installing using DVM [1]. It allows you to have multiple versions of DMD installed and you can easily switch between them [2]. [1] https://github.com/jacob-carlborg/dvm [2] http://dlang.org/blog/2016/08/17/inside-d-version-manager/
Oops, I got confused and installed with homebrew. I was going to try DVM.
Sep 28 2016
next sibling parent reply David Nadlinger <code klickverbot.at> writes:
On Thursday, 29 September 2016 at 01:33:00 UTC, Joel wrote:
 Oops, I got confused and installed with homebrew. I was going 
 to try DVM.
Jacob is also the author of DVM, so he might be a bit biased. ;) I've had good experiences using Homebrew, although you sometimes have to wait a day or three for a new release to appear. — David
Sep 28 2016
parent reply Jacob Carlborg <doob me.com> writes:
On 2016-09-29 03:43, David Nadlinger wrote:

 Jacob is also the author of DVM, so he might be a bit biased. ;)
And you would never recommend LDC? ;)
 I've had good experiences using Homebrew, although you sometimes have to wait
 a day or three for a new release to appear. — David
DVM doesn't have that problem :). How easy is it to have multiple versions of DMD installed using Homebrew? -- /Jacob Carlborg
Sep 28 2016
next sibling parent reply Paolo Invernizzi <paolo.invernizzi no.address> writes:
On Thursday, 29 September 2016 at 06:24:08 UTC, Jacob Carlborg 
wrote:
 On 2016-09-29 03:43, David Nadlinger wrote:
 I've had good experiences using Homebrew, although you 
 sometimes have to wait
 a day or three for a new release to appear. — David
DVM doesn't have that problem :). How easy is it to have multiple versions of DMD installed using Homebrew?
It seems simple: --- hw0062:~ pinver$ brew info dmd dmd: stable 2.071.2 (bottled), HEAD D programming language compiler for OS X https://dlang.org/ /usr/local/Cellar/dmd/2.071.0_1 (561 files, 65.0M) Poured from bottle on 2016-06-23 at 14:51:10 /usr/local/Cellar/dmd/2.071.1 (561 files, 65.0M) Poured from bottle on 2016-07-06 at 09:48:40 /usr/local/Cellar/dmd/2.071.2 (561 files, 65.0M) * Poured from bottle on 2016-09-26 at 11:50:45 From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/dmd.rb hw0062:~ pinver$ dmd --version DMD64 D Compiler v2.071.2 Copyright (c) 1999-2015 by Digital Mars written by Walter Bright hw0062:~ pinver$ brew switch dmd 2.071.0_1 Cleaning /usr/local/Cellar/dmd/2.071.0_1 Cleaning /usr/local/Cellar/dmd/2.071.1 Cleaning /usr/local/Cellar/dmd/2.071.2 13 links created for /usr/local/Cellar/dmd/2.071.0_1 hw0062:~ pinver$ dmd --version DMD64 D Compiler v2.071.0 Copyright (c) 1999-2015 by Digital Mars written by Walter Bright --- /Paolo
Sep 29 2016
parent reply Jacob Carlborg <doob me.com> writes:
On 2016-09-29 10:29, Paolo Invernizzi wrote:

 It seems simple:

 ---
 hw0062:~ pinver$ brew info dmd
 dmd: stable 2.071.2 (bottled), HEAD
 D programming language compiler for OS X
 https://dlang.org/
 /usr/local/Cellar/dmd/2.071.0_1 (561 files, 65.0M)
   Poured from bottle on 2016-06-23 at 14:51:10
 /usr/local/Cellar/dmd/2.071.1 (561 files, 65.0M)
   Poured from bottle on 2016-07-06 at 09:48:40
 /usr/local/Cellar/dmd/2.071.2 (561 files, 65.0M) *
   Poured from bottle on 2016-09-26 at 11:50:45
 From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/dmd.rb

 hw0062:~ pinver$ dmd --version
 DMD64 D Compiler v2.071.2
 Copyright (c) 1999-2015 by Digital Mars written by Walter Bright

 hw0062:~ pinver$ brew switch dmd 2.071.0_1
 Cleaning /usr/local/Cellar/dmd/2.071.0_1
 Cleaning /usr/local/Cellar/dmd/2.071.1
 Cleaning /usr/local/Cellar/dmd/2.071.2
 13 links created for /usr/local/Cellar/dmd/2.071.0_1

 hw0062:~ pinver$ dmd --version
 DMD64 D Compiler v2.071.0
 Copyright (c) 1999-2015 by Digital Mars written by Walter Bright
 ---
Cool, what if I want to use different versions in different sessions, i.e. I have two tabs open in my terminal? -- /Jacob Carlborg
Sep 29 2016
parent reply Paolo Invernizzi <paolo.invernizzi no.address> writes:
On Thursday, 29 September 2016 at 11:43:32 UTC, Jacob Carlborg 
wrote:
 Cool, what if I want to use different versions in different 
 sessions, i.e. I have two tabs open in my terminal?
Ummm... All the installed stuff is pretty well organised inside `/usr/local`, so this works... --- hw0062:~ pinver$ /usr/local/Cellar/dmd/2.071.2/bin/dmd --version DMD64 D Compiler v2.071.2 Copyright (c) 1999-2015 by Digital Mars written by Walter Bright hw0062:~ pinver$ /usr/local/Cellar/dmd/2.071./bin/dmd --version 2.071.0_1/ 2.071.1/ 2.071.2/ hw0062:~ pinver$ /usr/local/Cellar/dmd/2.071.0_1/bin/dmd --version DMD64 D Compiler v2.071.0 Copyright (c) 1999-2015 by Digital Mars written by Walter Bright --- /Paolo
Sep 29 2016
parent Jacob Carlborg <doob me.com> writes:
On 2016-09-29 18:28, Paolo Invernizzi wrote:

 Ummm...
 All the installed stuff is pretty well organised inside `/usr/local`, so
 this works...

 ---
 hw0062:~ pinver$ /usr/local/Cellar/dmd/2.071.2/bin/dmd --version
 DMD64 D Compiler v2.071.2
 Copyright (c) 1999-2015 by Digital Mars written by Walter Bright
 hw0062:~ pinver$ /usr/local/Cellar/dmd/2.071./bin/dmd --version
 2.071.0_1/ 2.071.1/   2.071.2/
 hw0062:~ pinver$ /usr/local/Cellar/dmd/2.071.0_1/bin/dmd --version
 DMD64 D Compiler v2.071.0
 Copyright (c) 1999-2015 by Digital Mars written by Walter Bright
 ---
The advantage of DVM is that you don't have to modify any build scripts, makefiles or similar. Invoking just "dmd" in a build script will invoke whatever version the user has set for the current session. -- /Jacob Carlborg
Sep 30 2016
prev sibling parent reply Guillaume Piolat <first.last gmail.com> writes:
On Thursday, 29 September 2016 at 06:24:08 UTC, Jacob Carlborg 
wrote:
 On 2016-09-29 03:43, David Nadlinger wrote:

 Jacob is also the author of DVM, so he might be a bit biased. 
 ;)
And you would never recommend LDC? ;)
More or less related: it would be nice if DVM supports LDC fetching and switching. The use case I see is that you often want one DMD and one LDC.
Sep 29 2016
parent reply Jacob Carlborg <doob me.com> writes:
On 2016-09-29 14:59, Guillaume Piolat wrote:

 More or less related: it would be nice if DVM supports LDC fetching and
 switching.
 The use case I see is that you often want one DMD and one LDC.
Yeah, that would be nice. Would it be interesting to have "dmd" point to "ldmd2" when LDC is selected as the current compiler? Or is that just confusing. -- /Jacob Carlborg
Sep 30 2016
parent reply Guillaume Piolat <first.last gmail.com> writes:
On Friday, 30 September 2016 at 07:36:58 UTC, Jacob Carlborg 
wrote:
 Yeah, that would be nice. Would it be interesting to have "dmd" 
 point to "ldmd2" when LDC is selected as the current compiler? 
 Or is that just confusing.
Confusing. For me it's much more common to want a current DMD compiler and a current LDC compiler.
Sep 30 2016
parent Jacob Carlborg <doob me.com> writes:
On 2016-09-30 16:17, Guillaume Piolat wrote:

 Confusing. For me it's much more common to want a current DMD compiler
 and a current LDC compiler.
My idea was that this would allow to compile using LDC for a build script that was only designed with DMD in mind. Of course the "ldc2" and "ldmd2" binaries would be available as well. -- /Jacob Carlborg
Oct 01 2016
prev sibling parent Jacob Carlborg <doob me.com> writes:
On 2016-09-29 03:33, Joel wrote:

 Oops, I got confused and installed with homebrew. I was going to try DVM.
You can install using DVM as well, it will take precedence. -- /Jacob Carlborg
Sep 28 2016