September 29, 2016
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

September 29, 2016
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
September 29, 2016
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.
September 29, 2016
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

September 30, 2016
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
September 30, 2016
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
September 30, 2016
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.
October 01, 2016
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
1 2
Next ›   Last »