Re: Chocolatey Packages for DMD, LDC, and GDC

2017-11-30 Thread Manuel Maier via Digitalmars-d
On Thursday, 30 November 2017 at 10:53:02 UTC, Jacob Carlborg wrote: Done: https://github.com/jacob-carlborg/dvm#limitations That's great, thanks!

Re: Chocolatey Packages for DMD, LDC, and GDC

2017-11-30 Thread Jacob Carlborg via Digitalmars-d
On 2017-11-29 22:16, Manuel Maier wrote: That's the one nice thing about the dmd installer, it takes care of setting up the default environment for you if it detects Visual Studio to be installed. At one point DVM did modify the sc.ini/dmd.conf but for different reasons. But it turned out to

Re: Chocolatey Packages for DMD, LDC, and GDC

2017-11-30 Thread Jacob Carlborg via Digitalmars-d
On 2017-11-29 21:44, Manuel Maier wrote: Thanks for pointing this out! Maybe it would be worthwhile to add some kind of "FAQ" or "Troubleshooting" section to the GitHub README of dvm. Done: https://github.com/jacob-carlborg/dvm#limitations -- /Jacob Carlborg

Re: Chocolatey Packages for DMD, LDC, and GDC

2017-11-29 Thread Manuel Maier via Digitalmars-d
On Wednesday, 29 November 2017 at 16:04:04 UTC, Jacob Carlborg wrote: On 2017-11-28 20:04, Manuel Maier wrote: Another thing I don't think it does is patching the sc.ini with Visual Studio environment variables, like the dmd installer does. No, it basically only extracts the downloaded archiv

Re: Chocolatey Packages for DMD, LDC, and GDC

2017-11-29 Thread Manuel Maier via Digitalmars-d
On Wednesday, 29 November 2017 at 01:49:00 UTC, rjframe wrote: dvm works well with cmd; not so much with Powershell. Indeed, I was using powershell! Using cmd now and suddenly it all works. In Powershell, the current directory and working directory are separate; `cd` outside your home folde

Re: Chocolatey Packages for DMD, LDC, and GDC

2017-11-29 Thread Jacob Carlborg via Digitalmars-d
On 2017-11-28 20:04, Manuel Maier wrote: I didn't know about that tool yet, but I like the idea! However, when I played around with it just now, I ran into the "Cannot find dmd-2.0.x.x.bat file" issue [1]. And yes, I misread the installation instructions (thought it said "run install dmd"). T

Re: Chocolatey Packages for DMD, LDC, and GDC

2017-11-28 Thread rjframe via Digitalmars-d
On Tue, 28 Nov 2017 19:04:06 +, Manuel Maier wrote: > I didn't know about that tool yet, but I like the idea! However, when I > played around with it just now, I ran into the "Cannot find > dmd-2.0.x.x.bat file" issue [1]. And yes, I misread the installation > instructions (thought it said "ru

Re: Chocolatey Packages for DMD, LDC, and GDC

2017-11-28 Thread Manuel Maier via Digitalmars-d
On Tuesday, 28 November 2017 at 17:25:35 UTC, Jacob Carlborg wrote: On 2017-11-28 10:09, Atila Neves wrote: Thanks for the work. And ugh about the installer requiring user intervention, I was literally just about to write a script to install dmd on a Windows dev box, remembered I saw somethin

Re: Chocolatey Packages for DMD, LDC, and GDC

2017-11-28 Thread Jacob Carlborg via Digitalmars-d
On 2017-11-28 10:09, Atila Neves wrote: Thanks for the work. And ugh about the installer requiring user intervention, I was literally just about to write a script to install dmd on a Windows dev box, remembered I saw something about chocolatey in the NG, and came here to read. Not happy with t

Re: Chocolatey Packages for DMD, LDC, and GDC

2017-11-28 Thread Atila Neves via Digitalmars-d
On Saturday, 25 November 2017 at 23:38:06 UTC, Manuel Maier wrote: As some of you may know, there is a dmd package on the chocolatey community feed: https://chocolatey.org/packages/dmd [...] Thanks for the work. And ugh about the installer requiring user intervention, I was literally just ab

Chocolatey Packages for DMD, LDC, and GDC

2017-11-25 Thread Manuel Maier via Digitalmars-d
As some of you may know, there is a dmd package on the chocolatey community feed: https://chocolatey.org/packages/dmd This makes it as easy as saying... choco install dmd ... to get dmd on ones machine (once chocolatey is up and running). Unfortunately, this package is well behind the actual

Re: DMD is faster than LDC and GDC

2015-11-14 Thread Marc Schütz via Digitalmars-d
On Saturday, 14 November 2015 at 00:37:51 UTC, Manu wrote: In the meantime, there probably needs to be strong warnings about violating attributes, and if patterns have emerged that rely on violating such attributes, we should publish a recommended alternative. One pattern that comes to mind i

Re: DMD is faster than LDC and GDC

2015-11-13 Thread cym13 via Digitalmars-d
On Friday, 13 November 2015 at 19:59:51 UTC, Ali Çehreli wrote: On 11/12/2015 11:50 AM, Ali Çehreli wrote: I would love to be convinced. :) Can someone come up with a reduced example please? On 11/12/2015 03:59 AM, Daniel Kozak wrote: > for (i=0; i < 100; ++i) { > fmttable

Re: DMD is faster than LDC and GDC

2015-11-13 Thread Manu via Digitalmars-d
On 13 November 2015 at 08:38, Iain Buclaw via Digitalmars-d wrote: > On 12 Nov 2015 10:25 pm, "David Nadlinger via Digitalmars-d" > wrote: >> >> On Thursday, 12 November 2015 at 21:16:25 UTC, Walter Bright wrote: >>> >>> It's more than that - dmd's optimizer is designed to make use of the >>> gua

Re: DMD is faster than LDC and GDC

2015-11-13 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 12 November 2015 at 21:24:30 UTC, David Nadlinger wrote: On Thursday, 12 November 2015 at 21:16:25 UTC, Walter Bright wrote: [...] Oh, GCC has had similar notions as a non-standard attribute for ages, and LLVM since its inception. At least for LDC, the reason why we do not curr

Re: DMD is faster than LDC and GDC

2015-11-13 Thread Ali Çehreli via Digitalmars-d
On 11/12/2015 11:50 AM, Ali Çehreli wrote: I would love to be convinced. :) Can someone come up with a reduced example please? On 11/12/2015 03:59 AM, Daniel Kozak wrote: > for (i=0; i < 100; ++i) { > fmttable(table); > } I think what we are seeing here is more due to

Re: DMD is faster than LDC and GDC

2015-11-12 Thread rsw0x via Digitalmars-d
On Thursday, 12 November 2015 at 21:16:25 UTC, Walter Bright wrote: On 11/12/2015 6:44 AM, John Colvin wrote: dmd is being clever and spotting that fmttable is pure, it would be good if ldc/gdc could spot this to. It's more than that - dmd's optimizer is designed to make use of the guarantee

Re: DMD is faster than LDC and GDC

2015-11-12 Thread Iain Buclaw via Digitalmars-d
On 12 Nov 2015 10:25 pm, "David Nadlinger via Digitalmars-d" < digitalmars-d@puremagic.com> wrote: > > On Thursday, 12 November 2015 at 21:16:25 UTC, Walter Bright wrote: >> >> It's more than that - dmd's optimizer is designed to make use of the guarantees of a pure function. Since C/C++ do not hav

Re: DMD is faster than LDC and GDC

2015-11-12 Thread David Nadlinger via Digitalmars-d
On Thursday, 12 November 2015 at 21:16:25 UTC, Walter Bright wrote: It's more than that - dmd's optimizer is designed to make use of the guarantees of a pure function. Since C/C++ do not have pure functions, ldc/gdc's optimizer may not have that capability. Oh, GCC has had similar notions as

Re: DMD is faster than LDC and GDC

2015-11-12 Thread Walter Bright via Digitalmars-d
On 11/12/2015 6:44 AM, John Colvin wrote: dmd is being clever and spotting that fmttable is pure, it would be good if ldc/gdc could spot this to. It's more than that - dmd's optimizer is designed to make use of the guarantees of a pure function. Since C/C++ do not have pure functions, ldc/gdc'

Re: DMD is faster than LDC and GDC

2015-11-12 Thread Ali Çehreli via Digitalmars-d
I would love to be convinced. :) Can someone come up with a reduced example please? On 11/12/2015 03:59 AM, Daniel Kozak wrote: > for (i=0; i < 100; ++i) { > fmttable(table); > } I think what we are seeing here is more due to the unused side-effect in the loop, where co

Re: DMD is faster than LDC and GDC

2015-11-12 Thread John Colvin via Digitalmars-d
On Thursday, 12 November 2015 at 19:11:25 UTC, tired_eyes wrote: On Thursday, 12 November 2015 at 14:44:49 UTC, John Colvin wrote: To test the speed of fmttable itself I split fmttable and main in to different modules, made fmttable extern(C) so I could just prototype it in the main module (n

Re: DMD is faster than LDC and GDC

2015-11-12 Thread tired_eyes via Digitalmars-d
On Thursday, 12 November 2015 at 14:44:49 UTC, John Colvin wrote: To test the speed of fmttable itself I split fmttable and main in to different modules, made fmttable extern(C) so I could just prototype it in the main module (no import), then compiled them separately before linking. This sho

Re: DMD is faster than LDC and GDC

2015-11-12 Thread Artur Skawina via Digitalmars-d
On 11/12/15 13:22, Daniel Kozak via Digitalmars-d wrote: >>> timings: >>> > > >>> > > DMD (-O -release -inline -boundscheck=off): >>> > > real0m0.003s >>> > > user0m0.000s >>> > > sys 0m0.000s >>> > > >>> > > LDMD2-ldc2 (-O -release -inline -boundscheck=off): >>> > > real0m1.071s >>

Re: DMD is faster than LDC and GDC

2015-11-12 Thread jmh530 via Digitalmars-d
On Thursday, 12 November 2015 at 14:44:49 UTC, John Colvin wrote: dmd is being clever and spotting that fmttable is pure, it would be good if ldc/gdc could spot this to. I don't recall seeing anything in the 2.069.0 change log about improved attribute inference for auto functions. If you can

Re: DMD is faster than LDC and GDC

2015-11-12 Thread John Colvin via Digitalmars-d
On Thursday, 12 November 2015 at 11:59:50 UTC, Daniel Kozak wrote: code: import std.stdio; auto fmttable(immutable(string[][]) table) { import std.array : appender, uninitializedArray; import std.range : take, repeat; import std.exception : assumeUnique; auto res = appender(un

Re: DMD is faster than LDC and GDC

2015-11-12 Thread Daniel Kozak via Digitalmars-d
V Thu, 12 Nov 2015 12:38:47 + John Colvin via Digitalmars-d napsáno: > On Thursday, 12 November 2015 at 12:23:11 UTC, Daniel Kozak wrote: > > V Thu, 12 Nov 2015 12:10:30 + > > John Colvin via Digitalmars-d > > napsáno: > > > >> On Thursday, 12 November 2015 at 11:59:50 UTC, Daniel Koz

Re: DMD is faster than LDC and GDC

2015-11-12 Thread Daniel Kozak via Digitalmars-d
V Thu, 12 Nov 2015 13:37:28 +0100 Iain Buclaw via Digitalmars-d napsáno: > On 12 November 2015 at 12:59, Daniel Kozak via Digitalmars-d < > digitalmars-d@puremagic.com> wrote: > > > code: > > > > > > > > > > > GDC (-O3 -finline -frelease -fno-bounds-check): > > real0m0.724s > > user0m

Re: DMD is faster than LDC and GDC

2015-11-12 Thread John Colvin via Digitalmars-d
On Thursday, 12 November 2015 at 12:23:11 UTC, Daniel Kozak wrote: V Thu, 12 Nov 2015 12:10:30 + John Colvin via Digitalmars-d napsáno: On Thursday, 12 November 2015 at 11:59:50 UTC, Daniel Kozak wrote: > [...] What versions of these compilers? I suspect the majority (maybe 80%-ish) o

Re: DMD is faster than LDC and GDC

2015-11-12 Thread Iain Buclaw via Digitalmars-d
On 12 November 2015 at 12:59, Daniel Kozak via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > code: > > > > GDC (-O3 -finline -frelease -fno-bounds-check): > real0m0.724s > user0m0.720s > sys 0m0.003s > > Not to be pedantic, but -finline does nothing (what you really want is

Re: DMD is faster than LDC and GDC

2015-11-12 Thread Daniel Kozak via Digitalmars-d
V Thu, 12 Nov 2015 12:10:30 + John Colvin via Digitalmars-d napsáno: > On Thursday, 12 November 2015 at 11:59:50 UTC, Daniel Kozak wrote: > > code: > > > > import std.stdio; > > > > auto fmttable(immutable(string[][]) table) { > > > > import std.array : appender, uninitializedArray; > >

Re: DMD is faster than LDC and GDC

2015-11-12 Thread John Colvin via Digitalmars-d
On Thursday, 12 November 2015 at 11:59:50 UTC, Daniel Kozak wrote: code: import std.stdio; auto fmttable(immutable(string[][]) table) { import std.array : appender, uninitializedArray; import std.range : take, repeat; import std.exception : assumeUnique; auto res = appender(un

DMD is faster than LDC and GDC

2015-11-12 Thread Daniel Kozak via Digitalmars-d
code: import std.stdio; auto fmttable(immutable(string[][]) table) { import std.array : appender, uninitializedArray; import std.range : take, repeat; import std.exception : assumeUnique; auto res = appender(uninitializedArray!(char[])(128)); res.clear(); if (table.len

Re: ldc and gdc

2011-08-06 Thread Christian Manning
On 06/08/2011 12:02, Marco Leise wrote: Am 06.08.2011, 11:16 Uhr, schrieb Jacob Carlborg : On 2011-08-05 11:53, Marco Leise wrote: I have noticed DVM around. The situation on Gentoo is typically that when there are different versions of the same package, that can be installed in different 'slo

Re: ldc and gdc

2011-08-06 Thread Marco Leise
Am 06.08.2011, 11:16 Uhr, schrieb Jacob Carlborg : On 2011-08-05 11:53, Marco Leise wrote: I have noticed DVM around. The situation on Gentoo is typically that when there are different versions of the same package, that can be installed in different 'slots'. A dependency of these packages is a

Re: ldc and gdc

2011-08-06 Thread Jacob Carlborg
On 2011-08-05 11:53, Marco Leise wrote: I have noticed DVM around. The situation on Gentoo is typically that when there are different versions of the same package, that can be installed in different 'slots'. A dependency of these packages is a control file for eselect, a tool to switch between th

Re: ldc and gdc

2011-08-05 Thread Marco Leise
Am 05.08.2011, 08:35 Uhr, schrieb Jacob Carlborg : On 2011-08-04 22:37, Marco Leise wrote: Am 04.08.2011, 19:34 Uhr, schrieb Jonathan M Davis : By the way... the druntime and phobos patches for LDC - are they applicable to GDC and DMD as well? I'm asking because I could imagine installing d

Re: ldc and gdc

2011-08-05 Thread Marco Leise
Am 04.08.2011, 23:14 Uhr, schrieb Jonathan M Davis : Am 04.08.2011, 19:34 Uhr, schrieb Jonathan M Davis : >> By the way... the druntime and phobos patches for LDC - are they >> applicable to GDC and DMD as well? I'm asking because I could imagine >> installing druntime, phobos, DMD, GDC and LD

Re: ldc and gdc

2011-08-04 Thread Jacob Carlborg
On 2011-08-04 22:37, Marco Leise wrote: Am 04.08.2011, 19:34 Uhr, schrieb Jonathan M Davis : By the way... the druntime and phobos patches for LDC - are they applicable to GDC and DMD as well? I'm asking because I could imagine installing druntime, phobos, DMD, GDC and LDC and all three compile

Re: ldc and gdc

2011-08-04 Thread Kagamin
David Nadlinger Wrote: > On 8/4/11 8:18 PM, Christian Kamm wrote: > > So I don't think clang can do exceptions on Windows. > > The last time I checked, x86_64 SEH support (not for 32 bit) was in the > works by some clang guy, but I didn't have a closer look at the changes. > > David http://lis

Re: ldc and gdc

2011-08-04 Thread Caligo
On Thu, Aug 4, 2011 at 9:09 AM, Alex Rønne Petersen wrote: > On 04-08-2011 15:43, Adam Ruppe wrote: > >> LDC and GDC are both alive and pretty well up to date with D2. They >> have some advantages that make them favored to some people. >> >> But, they are kinda h

Re: ldc and gdc

2011-08-04 Thread Jonathan M Davis
> Am 04.08.2011, 19:34 Uhr, schrieb Jonathan M Davis : > >> By the way... the druntime and phobos patches for LDC - are they > >> applicable to GDC and DMD as well? I'm asking because I could imagine > >> installing druntime, phobos, DMD, GDC and LDC and all three compilers > >> would use the same

Re: ldc and gdc

2011-08-04 Thread Marco Leise
Am 04.08.2011, 19:34 Uhr, schrieb Jonathan M Davis : By the way... the druntime and phobos patches for LDC - are they applicable to GDC and DMD as well? I'm asking because I could imagine installing druntime, phobos, DMD, GDC and LDC and all three compilers would use the same installation of the

Re: ldc and gdc

2011-08-04 Thread David Nadlinger
On 8/4/11 8:18 PM, Christian Kamm wrote: So I don't think clang can do exceptions on Windows. The last time I checked, x86_64 SEH support (not for 32 bit) was in the works by some clang guy, but I didn't have a closer look at the changes. David

Re: ldc and gdc

2011-08-04 Thread bearophile
Christian Kamm: > So I don't think clang can do exceptions on Windows. The LLVM 3.0 changelog (that's not finished yet) says "LLVM 3.0 will be the last release of llvm-gcc.". So I presume to compile C++ code on Windows with LLVM you will only be able to use dragonegg (I am not sure dragonegg su

Re: ldc and gdc

2011-08-04 Thread Christian Kamm
Kagamin wrote: > Last I checked LDC stood for "Linux D compiler". It was due to some > complications with exceptions in llvm on windows, but I'm almost sure > clang does it. I've wondered about that for a while and just checked it: Running the clang 2.9 Mingw32 binaries through wine on a simple ex

Re: ldc and gdc

2011-08-04 Thread Jonathan M Davis
> By the way... the druntime and phobos patches for LDC - are they > applicable to GDC and DMD as well? I'm asking because I could imagine > installing druntime, phobos, DMD, GDC and LDC and all three compilers > would use the same installation of the standard library. They _can't_ all use the sam

Re: ldc and gdc

2011-08-04 Thread Kagamin
Adam Ruppe Wrote: > Are there binary packages available for their D2 builds, complete > with phobos and druntime, for both Windows and Linux? Last I checked LDC stood for "Linux D compiler". It was due to some complications with exceptions in llvm on windows, but I'm almost sure clang does it.

Re: ldc and gdc

2011-08-04 Thread Marco Leise
By the way... the druntime and phobos patches for LDC - are they applicable to GDC and DMD as well? I'm asking because I could imagine installing druntime, phobos, DMD, GDC and LDC and all three compilers would use the same installation of the standard library.

Re: ldc and gdc

2011-08-04 Thread Adam Ruppe
Trass3r wrote: > phobos is automatically compiled as part of the build process (and > installed as well). For whatever reason, it didn't work on my box :S

Re: ldc and gdc

2011-08-04 Thread Trass3r
I don't know... the gdc itself wasn't so bad (aside from taking forever, just waiting on tar zxf for gcc was a huge huge wait) but the Make sure you only download the gcc-core package to avoid all the other frontends. instructions didn't even mention the runtime and phobos. I had some weird

Re: ldc and gdc

2011-08-04 Thread Adam Ruppe
Trass3r wrote: > GDC packages are available for Windoze thx to Daniel Green Fantastic! Can we get them linked on the main site's download page? > Compiling it on Linux is really straightforward, just follow the build > instructions. I don't know... the gdc itself wasn't so bad (aside from taking

Re: ldc and gdc

2011-08-04 Thread Trass3r
Am 04.08.2011, 16:17 Uhr, schrieb Trass3r : Compiling GDC on Linux is really straightforward, just follow the build instructions. Don't know if there's a need for prebuilt packages. Also I guess most people would expect a proper Linux package like a PPA for Ubuntu with automatic updates rat

Re: ldc and gdc

2011-08-04 Thread Trass3r
Are there binary packages available for their D2 builds, complete with phobos and druntime, for both Windows and Linux? I'd really like to see binary zips of them comparable to dmd in ease of use. GDC packages are available for Windoze thx to Daniel Green (and that's really helpful, compiling

Re: ldc and gdc

2011-08-04 Thread Alex Rønne Petersen
On 04-08-2011 15:43, Adam Ruppe wrote: LDC and GDC are both alive and pretty well up to date with D2. They have some advantages that make them favored to some people. But, they are kinda hard to find and get to a point where you can use them. dmd is trivially easy to "install" and use

ldc and gdc

2011-08-04 Thread Adam Ruppe
LDC and GDC are both alive and pretty well up to date with D2. They have some advantages that make them favored to some people. But, they are kinda hard to find and get to a point where you can use them. dmd is trivially easy to "install" and use. You just download it and run, and it