August 13, 2013
On Mon, 12 Aug 2013 17:37:51 -0700
Walter Bright <newshound2@digitalmars.com> wrote:

> On 8/12/2013 4:59 PM, Nick Sabalausky wrote:
> > Perhaps surprisingly though, I don't actually use ls on windows - but that's only because the win version doesn't give much (any?) visual distinction of directories vs files. Instead, I stuck an "ls.bat" in my windows directory that invokes "dir /w %*". Probably my #1 most used command, aside from maybe cd.
> 
> You can set the default switches that DIR uses by setting the DIRCMD environment variable:
> 
>      set DIRCMD=/w
> 

Cool, didn't know that. But typing "ls" quickly became second nature to me back when I started learning unix, and then I kept instinctively trying to type it whenever I came back to windows (this despite being primarily a windows guy). So I just made typing "ls" actually work. ;)

I keep trying to type "cp" on windows, too. I'm hesitant to make that one work though, or to put gnu's "cp" on my PATH, because I'm sure I'd end up slipping "cp" into my distributed batch files without thinking.

> I use:
> 
>      set DIRCMD=/O:D/P

Yea, I used to use /P, too. Back in the MS-DOS/Win3.1 days, I had a "wdir.bat" set up to run "dir /w /p". Back then, "dir" was practically useless without /P. But with the GUI-window terminals now, I find it easier to skip the /P feature and just use the scroll wheel. Or if I really need to (ex, really long output, or a unix vm without X, or ssh terminal via putty) then I'll just pipe into 'less' or redirect into a text file.

August 13, 2013
On Tuesday, 13 August 2013 at 01:09:41 UTC, Nick Sabalausky wrote:
> ex, really long output, or a unix vm without X,

Tip: try hitting shift + page up and shift + page down. Works in xterm and the text mode linux console to scroll the terminal.
August 13, 2013
Sorry if I missed the point, but wouldn't yet another build system be rewriting the wheel in D?

CMake allows to do alot more than compiling, all in a cross platform way and is very fast when coupled with Ninja instead of Make.

Even though D is nicer than the CMake language wouldn't it take quite a lot of work to redo its features in D, as well as the IDE support? (CMake is extremely well integrated in KDevelop for example)
August 13, 2013
Woops disregard that, I thought Jonathan was talking about a new build system, not just for DMD.

On Tuesday, 13 August 2013 at 01:27:28 UTC, Elie Morisse wrote:
> Sorry if I missed the point, but wouldn't yet another build system be rewriting the wheel in D?
>
> CMake allows to do alot more than compiling, all in a cross platform way and is very fast when coupled with Ninja instead of Make.
>
> Even though D is nicer than the CMake language wouldn't it take quite a lot of work to redo its features in D, as well as the IDE support? (CMake is extremely well integrated in KDevelop for example)
August 13, 2013
On Mon, 12 Aug 2013 17:42:26 -0700
Andrei Alexandrescu <SeeWebsiteForEmail@erdani.org> wrote:
> 
> Is is possible from a licensing standpoint to just distribute a copy of gmake built by gnuwin?
> 

I don't even pretend to understand one word of any version of the GPL, so I couldn't say. However, if it were my own project, what I would do is provide a trivial script to *download* gnuwin gmake binary directly from the official gnuwin servers (or another legitimate mirror).

I'm neither a lawyer nor a GPL expert, so I can't say 100% for *certain* (but then, what ever *is* 100% certain in US law without being individually tested in court?), but FWIW I would be very surprised if that approach would be objectionable, since we wouldn't actually be distributing it ourselves, just providing a tool that retrieves it from the actual distributor.

August 13, 2013
On Tue, 13 Aug 2013 03:12:21 +0200
"Adam D. Ruppe" <destructionator@gmail.com> wrote:

> On Tuesday, 13 August 2013 at 01:09:41 UTC, Nick Sabalausky wrote:
> > ex, really long output, or a unix vm without X,
> 
> Tip: try hitting shift + page up and shift + page down. Works in xterm and the text mode linux console to scroll the terminal.

Whoa, even in text-mode? That's cool. I'll have to also remember to try next time I boot my freebsd vm. I deliberately didn't put X on it, so that one's text mode only. Maybe that trick will work there, too.

August 13, 2013
On Tuesday, 13 August 2013 at 01:56:19 UTC, Nick Sabalausky wrote:
> Whoa, even in text-mode?

yep. You should try using text mode only for a while - it is amazingly usable.
August 13, 2013
On Monday, August 12, 2013 21:56:09 Nick Sabalausky wrote:
> On Tue, 13 Aug 2013 03:12:21 +0200
> 
> "Adam D. Ruppe" <destructionator@gmail.com> wrote:
> > On Tuesday, 13 August 2013 at 01:09:41 UTC, Nick Sabalausky wrote:
> > > ex, really long output, or a unix vm without X,
> > 
> > Tip: try hitting shift + page up and shift + page down. Works in xterm and the text mode linux console to scroll the terminal.
> 
> Whoa, even in text-mode? That's cool. I'll have to also remember to try next time I boot my freebsd vm. I deliberately didn't put X on it, so that one's text mode only. Maybe that trick will work there, too.

shift + page up and shift + page down works on the standard linux console you get if not in X and are in a tty (though it loses its history if you change to a different tty). I assume that it's the same with FreeBSD, but I don't know.

- Jonathan M Davis
August 13, 2013
On 2013-08-13 02:42, Andrei Alexandrescu wrote:

> Is is possible from a licensing standpoint to just distribute a copy of
> gmake built by gnuwin?

I don't see why we couldn't do that. It's a completely separate tool and shouldn't "infect" anything else. We might need to accompany it with a license file and a link to the source code to be on the safe side.

-- 
/Jacob Carlborg
August 13, 2013
On 2013-08-11 23:35, Anon wrote:

> Does pragma(lib, "curl") not work on Windows/DMD? I know it does in
> Linux (used in DMD and LDC, ignored under GDC),
> and was under the impression that that was the portable way to use
> pragma(lib).

No, it's not portable. Example, libraries on Posix are usually named "libfoo.a", on Windows they're named "foo.lib". As far as I know that is not handled by pragma(lib).

-- 
/Jacob Carlborg