Re: Replacing Make for the DMD build

2017-06-22 Thread Russel Winder via Digitalmars-d
It is also worth noting for deployment purposes in package management systems, that it is important that all the build tools necessary have to be in the distribution in order for something to be accepted into the distribution. So for example Make is acceptable, but Reggae (at least currently)

Re: Replacing Make for the DMD build

2017-06-22 Thread Russel Winder via Digitalmars-d
On Wed, 2017-06-21 at 14:48 +, jmh530 via Digitalmars-d wrote: > […] > This is what I was thinking: start with a simple project, show  > how you can build it with dub or with reggae, then show a  > slightly more complicated project that dub cannot handle well and  > show how you can use

Re: Replacing Make for the DMD build

2017-06-22 Thread Russel Winder via Digitalmars-d
On Wed, 2017-06-21 at 14:11 +, Atila Neves via Digitalmars-d wrote: > […] > > I'm not the best at documentation. Funnily enough, I made an  > effort with reggae, which might just show how bad I am at this. Hopefully the era of programmers boasting how crap they are at documentation is over.

Re: Replacing Make for the DMD build

2017-06-22 Thread Russel Winder via Digitalmars-d
On Tue, 2017-06-20 at 15:06 -0400, Nick Sabalausky (Abscissa) via Digitalmars-d wrote: > […] > > I'm convinced a big part of that is because DUB is ubiquitous and  > incredibly helpful in the D world for package management, but plays > very  > poorly with any build system that isn't DUB's

Re: Replacing Make for the DMD build

2017-06-21 Thread jmh530 via Digitalmars-d
On Wednesday, 21 June 2017 at 14:11:58 UTC, Atila Neves wrote: I'm not the best at documentation. Funnily enough, I made an effort with reggae, which might just show how bad I am at this. Ha, well maybe ask one of the users then? There's not much to compare/constrast - dub is a package

Re: Replacing Make for the DMD build

2017-06-21 Thread Atila Neves via Digitalmars-d
On Tuesday, 20 June 2017 at 19:38:14 UTC, jmh530 wrote: On Tuesday, 20 June 2017 at 19:06:05 UTC, Nick Sabalausky (Abscissa) wrote: On 06/19/2017 04:06 AM, Russel Winder via Digitalmars-d wrote: Reggae is D's pitch in the CMake and Meson class of meta-build tools. Why aren't all the D

Re: Replacing Make for the DMD build

2017-06-20 Thread Joakim via Digitalmars-d
On Tuesday, 20 June 2017 at 21:26:02 UTC, Jonathan M Davis wrote: On Monday, June 19, 2017 1:45:27 PM MDT meppl via Digitalmars-d wrote: On Monday, 19 June 2017 at 09:19:32 UTC, Dejan Lekic wrote: > On Friday, 16 June 2017 at 06:30:01 UTC, Russel Winder wrote: >> A direct question to Walter and

Re: Replacing Make for the DMD build

2017-06-20 Thread Jonathan M Davis via Digitalmars-d
On Monday, June 19, 2017 1:45:27 PM MDT meppl via Digitalmars-d wrote: > On Monday, 19 June 2017 at 09:19:32 UTC, Dejan Lekic wrote: > > On Friday, 16 June 2017 at 06:30:01 UTC, Russel Winder wrote: > >> A direct question to Walter and Andrei really. > >> > >> If someone, let us say Russel Winder,

Re: Replacing Make for the DMD build

2017-06-20 Thread jmh530 via Digitalmars-d
On Tuesday, 20 June 2017 at 19:06:05 UTC, Nick Sabalausky (Abscissa) wrote: On 06/19/2017 04:06 AM, Russel Winder via Digitalmars-d wrote: Reggae is D's pitch in the CMake and Meson class of meta-build tools. Why aren't all the D compiler and tool developments using it? I'm convinced a big

Re: Replacing Make for the DMD build

2017-06-20 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 06/19/2017 04:06 AM, Russel Winder via Digitalmars-d wrote: Reggae is D's pitch in the CMake and Meson class of meta-build tools. Why aren't all the D compiler and tool developments using it? I'm convinced a big part of that is because DUB is ubiquitous and incredibly helpful in the D

Re: Replacing Make for the DMD build

2017-06-20 Thread Atila Neves via Digitalmars-d
On Tuesday, 20 June 2017 at 09:08:32 UTC, Vladimir Panteleev wrote: On Tuesday, 20 June 2017 at 07:24:26 UTC, Russel Winder wrote: [...] Yep; same as what was done with ddmd. [...] Sorry Russell, I thought I was replying to Atila :) But you are of course welcome on IRC. The D channel is

Re: Replacing Make for the DMD build

2017-06-20 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 20 June 2017 at 07:24:26 UTC, Russel Winder wrote: The usual approach is to leave the old system in place, put the new system in place, and run in parallel. Then people can remove their dependency on the old system over time. Then you deprecate the old system, and then remove it.

Re: Replacing Make for the DMD build

2017-06-20 Thread Russel Winder via Digitalmars-d
On Mon, 2017-06-19 at 14:52 +, Vladimir Panteleev via Digitalmars-d wrote: > […] > We will likely need to continue providing shim makefiles which  > invoke the replacement build system for the foreseeable future.  > The big problem here is that all make targets are essentially  > part of

Re: Replacing Make for the DMD build

2017-06-19 Thread Vladimir Panteleev via Digitalmars-d
On Monday, 19 June 2017 at 14:15:22 UTC, Russel Winder wrote: On Mon, 2017-06-19 at 13:44 +, Vladimir Panteleev via Digitalmars-d wrote: […] DMD is insufficient, and is not the hardest makefile to port. Any serious proposal would need to cover all core repositories - dmd, druntime,

Re: Replacing Make for the DMD build

2017-06-19 Thread Russel Winder via Digitalmars-d
On Mon, 2017-06-19 at 13:44 +, Atila Neves via Digitalmars-d wrote: > […] > I replicated the _entirety_ [1] of Phobos's posix.mak (that > Makefile does a _lot_) with reggae and that never happened, so I > guess the answer is "vanishingly small". > In the end as long as the D front end,

Re: Replacing Make for the DMD build

2017-06-19 Thread rikki cattermole via Digitalmars-d
On 16/06/2017 7:30 AM, Russel Winder via Digitalmars-d wrote: A direct question to Walter and Andrei really. If someone, let us say Russel Winder, create a CMake/Ninja and/or Meson/Ninja build for DMD, is there any chance of it being allowed to replace the Make system? If the answer is no,

Re: Replacing Make for the DMD build

2017-06-19 Thread Russel Winder via Digitalmars-d
On Mon, 2017-06-19 at 13:44 +, Vladimir Panteleev via Digitalmars-d wrote: > […] > > DMD is insufficient, and is not the hardest makefile to port. Any > serious proposal would need to cover all core repositories - dmd, > druntime, phobos, tools, and dlang.org. We would need to evaluate >

Re: Replacing Make for the DMD build

2017-06-19 Thread meppl via Digitalmars-d
On Monday, 19 June 2017 at 09:19:32 UTC, Dejan Lekic wrote: On Friday, 16 June 2017 at 06:30:01 UTC, Russel Winder wrote: A direct question to Walter and Andrei really. If someone, let us say Russel Winder, create a CMake/Ninja and/or Meson/Ninja build for DMD, is there any chance of it

Re: Replacing Make for the DMD build

2017-06-19 Thread Vladimir Panteleev via Digitalmars-d
On Monday, 19 June 2017 at 13:38:52 UTC, Russel Winder wrote: On Mon, 2017-06-19 at 09:53 +, Vladimir Panteleev via Digitalmars-d wrote: […] If you can present a replacement build infrastructure for D which satisfies our needs and shows dramatic, measurable improvements, I (and other

Re: Replacing Make for the DMD build

2017-06-19 Thread Atila Neves via Digitalmars-d
On Monday, 19 June 2017 at 13:38:52 UTC, Russel Winder wrote: On Mon, 2017-06-19 at 09:53 +, Vladimir Panteleev via Digitalmars-d wrote: […] If you can present a replacement build infrastructure for D which satisfies our needs and shows dramatic, measurable improvements, I (and other

Re: Replacing Make for the DMD build

2017-06-19 Thread Russel Winder via Digitalmars-d
On Mon, 2017-06-19 at 09:53 +, Vladimir Panteleev via Digitalmars-d wrote: > > […] > If you can present a replacement build infrastructure for D which > satisfies our needs and shows dramatic, measurable improvements, > I (and other contributors, I don't doubt) will help push it >

Re: Replacing Make for the DMD build

2017-06-19 Thread Atila Neves via Digitalmars-d
On Sunday, 18 June 2017 at 01:20:21 UTC, Vladimir Panteleev wrote: On Saturday, 17 June 2017 at 21:49:29 UTC, Walter Bright wrote: [...] Martin and Sebastian can correct me if I'm wrong, but unless I am, Martin, Sebastian, and myself spend a scary amount of time wrestling with makefiles. We

Re: Replacing Make for the DMD build

2017-06-19 Thread Vladimir Panteleev via Digitalmars-d
On Monday, 19 June 2017 at 08:06:54 UTC, Russel Winder wrote: On Sat, 2017-06-17 at 12:20 -0700, Walter Bright via Digitalmars-d wrote: […] It's highly unlikely it would be accepted: So it is highly unlikely I am going to offer to do any work on it then. If you can present a replacement

Re: Replacing Make for the DMD build

2017-06-19 Thread Jacob Carlborg via Digitalmars-d
On 2017-06-19 11:19, Dejan Lekic wrote: Why replacing a rock-stable Make with build-system-X that most likely adds another dependency. Where did you get the rock-stable part from? http://forum.dlang.org/post/euslavyxzcaclrpia...@forum.dlang.org -- /Jacob Carlborg

Re: Replacing Make for the DMD build

2017-06-19 Thread Dejan Lekic via Digitalmars-d
On Friday, 16 June 2017 at 06:30:01 UTC, Russel Winder wrote: A direct question to Walter and Andrei really. If someone, let us say Russel Winder, create a CMake/Ninja and/or Meson/Ninja build for DMD, is there any chance of it being allowed to replace the Make system? If the answer is no,

Re: Replacing Make for the DMD build

2017-06-19 Thread Russel Winder via Digitalmars-d
On Sun, 2017-06-18 at 02:31 -0700, Walter Bright via Digitalmars-d wrote: > […] > > The biggest issue with understanding the makefiles is a near total > lack of any > helpful comments. I stepped up a bit with this: Wrong diagnosis. The biggest issue with the makefiles is that they are hand

Re: Replacing Make for the DMD build

2017-06-19 Thread Russel Winder via Digitalmars-d
On Sat, 2017-06-17 at 12:20 -0700, Walter Bright via Digitalmars-d wrote: > […] > It's highly unlikely it would be accepted: So it is highly unlikely I am going to offer to do any work on it then. I am extremely disappointed in the attitude displayed by your reply, it shows a lack of interest

Re: Replacing Make for the DMD build

2017-06-18 Thread Mike B Johnson via Digitalmars-d
On Saturday, 17 June 2017 at 19:20:54 UTC, Walter Bright wrote: On 6/15/2017 11:30 PM, Russel Winder via Digitalmars-d wrote: A direct question to Walter and Andrei really. If someone, let us say Russel Winder, create a CMake/Ninja and/or Meson/Ninja build for DMD, is there any chance of it

Re: Replacing Make for the DMD build

2017-06-18 Thread Walter Bright via Digitalmars-d
On 6/17/2017 6:20 PM, Vladimir Panteleev wrote: On Saturday, 17 June 2017 at 21:49:29 UTC, Walter Bright wrote: It's not quite the same. I spend 99.99% of my time programming working with code, not makefiles. Martin and Sebastian can correct me if I'm wrong, but unless I am, Martin,

Re: Replacing Make for the DMD build

2017-06-17 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 17 June 2017 at 21:49:29 UTC, Walter Bright wrote: It's not quite the same. I spend 99.99% of my time programming working with code, not makefiles. Martin and Sebastian can correct me if I'm wrong, but unless I am, Martin, Sebastian, and myself spend a scary amount of time

Re: Replacing Make for the DMD build

2017-06-17 Thread Joakim via Digitalmars-d
On Saturday, 17 June 2017 at 21:49:29 UTC, Walter Bright wrote: On 6/17/2017 1:25 PM, Joakim wrote: A lot of this is simply saying Make is popular so we should just stick with it: I hate that mindset. It is the same mindset D has to combat with C or C++, and that was exhibited when you spoke

Re: Replacing Make for the DMD build

2017-06-17 Thread Adam D. Ruppe via Digitalmars-d
On Saturday, 17 June 2017 at 21:49:29 UTC, Walter Bright wrote: It's not quite the same. I spend 99.99% of my time programming working with code, not makefiles. I'd say somewhere around 10% of the time I've spent on D pull requests has been wasted because of the makefiles. It is a barrier to

Re: Replacing Make for the DMD build

2017-06-17 Thread Walter Bright via Digitalmars-d
On 6/17/2017 1:25 PM, Joakim wrote: A lot of this is simply saying Make is popular so we should just stick with it: I hate that mindset. It is the same mindset D has to combat with C or C++, and that was exhibited when you spoke against the SDL format for dub. It's not quite the same. I

Re: Replacing Make for the DMD build

2017-06-17 Thread Joakim via Digitalmars-d
On Saturday, 17 June 2017 at 19:20:54 UTC, Walter Bright wrote: On 6/15/2017 11:30 PM, Russel Winder via Digitalmars-d wrote: A direct question to Walter and Andrei really. If someone, let us say Russel Winder, create a CMake/Ninja and/or Meson/Ninja build for DMD, is there any chance of it

Re: Replacing Make for the DMD build

2017-06-17 Thread Walter Bright via Digitalmars-d
On 6/15/2017 11:30 PM, Russel Winder via Digitalmars-d wrote: A direct question to Walter and Andrei really. If someone, let us say Russel Winder, create a CMake/Ninja and/or Meson/Ninja build for DMD, is there any chance of it being allowed to replace the Make system? If the answer is no,

Re: Replacing Make for the DMD build

2017-06-17 Thread Russel Winder via Digitalmars-d
On Sat, 2017-06-17 at 00:07 +0200, Mike Wey via Digitalmars-d wrote: > On 06/16/2017 03:16 PM, Joakim wrote: > > As for Meson, never dealt with it much, do you have an example for > > D > > code we can look at? > > The meson files for tilix might be a good example: >

Re: Replacing Make for the DMD build

2017-06-17 Thread Russel Winder via Digitalmars-d
On Fri, 2017-06-16 at 19:20 +, Cym13 via Digitalmars-d wrote: > On Friday, 16 June 2017 at 13:16:06 UTC, Joakim wrote: > > One issue that came up is that whatever we replace Make with > > would have to generate Makefiles as a fallback, back in the > > previous thread about using Atila's

Re: Replacing Make for the DMD build

2017-06-16 Thread Mike Wey via Digitalmars-d
On 06/16/2017 03:16 PM, Joakim wrote: As for Meson, never dealt with it much, do you have an example for D code we can look at? The meson files for tilix might be a good example: https://github.com/gnunn1/tilix/tree/master/experimental/meson -- Mike Wey

Re: Replacing Make for the DMD build

2017-06-16 Thread Cym13 via Digitalmars-d
On Friday, 16 June 2017 at 13:16:06 UTC, Joakim wrote: One issue that came up is that whatever we replace Make with would have to generate Makefiles as a fallback, back in the previous thread about using Atila's build system, Reggae. I very much support this idea, Reggae is great. Also it

Re: Replacing Make for the DMD build

2017-06-16 Thread Suliman via Digitalmars-d
Also looks good https://github.com/jasonwhite/button

Re: Replacing Make for the DMD build

2017-06-16 Thread Joakim via Digitalmars-d
On Friday, 16 June 2017 at 06:30:01 UTC, Russel Winder wrote: A direct question to Walter and Andrei really. While they would ultimately decide this, it's more likely that something championed by the D contributors will get in. If someone, let us say Russel Winder, create a CMake/Ninja

Re: Replacing Make for the DMD build

2017-06-16 Thread Seb via Digitalmars-d
On Friday, 16 June 2017 at 07:00:10 UTC, Jacob Carlborg wrote: On 2017-06-16 08:30, Russel Winder via Digitalmars-d wrote: A direct question to Walter and Andrei really. If someone, let us say Russel Winder, create a CMake/Ninja and/or Meson/Ninja build for DMD, is there any chance of it

Re: Replacing Make for the DMD build

2017-06-16 Thread bachmeier via Digitalmars-d
On Friday, 16 June 2017 at 07:00:10 UTC, Jacob Carlborg wrote: On 2017-06-16 08:30, Russel Winder via Digitalmars-d wrote: A direct question to Walter and Andrei really. If someone, let us say Russel Winder, create a CMake/Ninja and/or Meson/Ninja build for DMD, is there any chance of it

Re: Replacing Make for the DMD build

2017-06-16 Thread Paolo Invernizzi via Digitalmars-d
On Friday, 16 June 2017 at 07:00:10 UTC, Jacob Carlborg wrote: On 2017-06-16 08:30, Russel Winder via Digitalmars-d wrote: A direct question to Walter and Andrei really. If someone, let us say Russel Winder, create a CMake/Ninja and/or Meson/Ninja build for DMD, is there any chance of it

Re: Replacing Make for the DMD build

2017-06-16 Thread Jacob Carlborg via Digitalmars-d
On 2017-06-16 08:30, Russel Winder via Digitalmars-d wrote: A direct question to Walter and Andrei really. If someone, let us say Russel Winder, create a CMake/Ninja and/or Meson/Ninja build for DMD, is there any chance of it being allowed to replace the Make system? If the answer is no, then