Re: There's new GIT instructions on Github now

2011-05-19 Thread Jacob Carlborg
On 2011-05-20 00:45, Nick Sabalausky wrote: "Andrej Mitrovic" wrote in message news:ir43p5$21q7$1...@digitalmars.com... I'm not sure when these came out, but the last time I've tried using git and github the instructions were a little bit messed up (i.e. windows instructions mixed up with linux

Re: libcurl

2011-05-19 Thread Jacob Carlborg
On 2011-05-19 23:45, Walter Bright wrote: On 5/19/2011 1:28 PM, jdrewsen wrote: It seems to be on digitalmars.com now so I guess you did it yourself :) http://www.digitalmars.com/d/2.0/phobos/etc_c_curl.html Wow!! The "Jump to" section fills up my entire screen. -- /Jacob Carlborg

Re: There's new GIT instructions on Github now

2011-05-19 Thread Nick Sabalausky
"Nick Sabalausky" wrote in message news:ir46pp$26h7$1...@digitalmars.com... > > Now if only the Dulwich people would quit pretending this was a minor > issue: https://bugs.launchpad.net/dulwich/+bug/670035 ...Then I'd > actually be able to start using hg-git/TortoiseHg instead of putting up

Re: There's new GIT instructions on Github now

2011-05-19 Thread Trass3r
Am 20.05.2011, 01:14 Uhr, schrieb Robert Clipsham : Mercurial has rebase too, just as an extension. Rebase is incredibly useful if you want to avoid having hundreds of "Merge from revision ..." commits everywhere. Of course, if you rebase commits that other people have already pulled you're

Re: There's new GIT instructions on Github now

2011-05-19 Thread Robert Clipsham
On 19/05/2011 23:45, Nick Sabalausky wrote: Now if only the Dulwich people would quit pretending this was a minor issue: https://bugs.launchpad.net/dulwich/+bug/670035 ...Then I'd actually be able to start using hg-git/TortoiseHg instead of putting up with the convoluted mess that git is...(Reb

Re: There's new GIT instructions on Github now

2011-05-19 Thread Nick Sabalausky
"Andrej Mitrovic" wrote in message news:ir43p5$21q7$1...@digitalmars.com... > I'm not sure when these came out, but the last time I've tried using git > and github the instructions were a little bit messed up (i.e. windows > instructions mixed up with linux instructions) and I couldn't really g

Re: Testable ddoc snippets?

2011-05-19 Thread Andrej Mitrovic
This could be a fantastic feature for a potential tutorial section on dpl.org. The user could learn things about D and try out his own code snippets on the fly.

There's new GIT instructions on Github now

2011-05-19 Thread Andrej Mitrovic
I'm not sure when these came out, but the last time I've tried using git and github the instructions were a little bit messed up (i.e. windows instructions mixed up with linux instructions) and I couldn't really get anything to work back then. But they've made new ones, with screenshots and the

Re: libcurl

2011-05-19 Thread Walter Bright
On 5/19/2011 1:28 PM, jdrewsen wrote: It seems to be on digitalmars.com now so I guess you did it yourself :) http://www.digitalmars.com/d/2.0/phobos/etc_c_curl.html I did pretty much a whack job on it, merely converting the existing comments to ddoc comments, just to fill the void. It coul

Re: Testable ddoc snippets?

2011-05-19 Thread Adam D. Ruppe
I screwed around on the github website and got to a point where I think it worked - you should have a pull request for it. The changes are really trivial, so should be easy to review manually. I kept the actual editable_code.js on the same domain as the example code runs because it was easier for

Re: libcurl

2011-05-19 Thread Andrei Alexandrescu
On 5/19/11 3:28 PM, jdrewsen wrote: [snip] Speaking of which, what's the status on recycling them buffers? :o) Andrei

Re: libcurl

2011-05-19 Thread Andrei Alexandrescu
On 5/19/11 3:28 PM, jdrewsen wrote: Den 19-05-2011 00:46, Andrei Alexandrescu skrev: On 5/18/11 5:34 PM, jdrewsen wrote: Den 18-05-2011 19:59, Walter Bright skrev: On 5/18/2011 10:50 AM, Andrei Alexandrescu wrote: I sat down to write an announcement to the libcurl mailing list that we have su

Re: libcurl

2011-05-19 Thread jdrewsen
Den 19-05-2011 00:46, Andrei Alexandrescu skrev: On 5/18/11 5:34 PM, jdrewsen wrote: Den 18-05-2011 19:59, Walter Bright skrev: On 5/18/2011 10:50 AM, Andrei Alexandrescu wrote: I sat down to write an announcement to the libcurl mailing list that we have support for it starting with 2.053. To

Re: " is not mutable" when using ref return type

2011-05-19 Thread Muffin
On 19/05/11 1:25 PM, %u wrote: Hi! Is this a bug, or is it intentional that this fails? I can't come up with any case where it would cause a problem, but the compiler doesn't like the fact that there's a const in the structure: struct Temp { const int a; int b; } auto ref foo(Temp* t

Re: Context sensitivity

2011-05-19 Thread Timon Gehr
> Bruno Medeiros: > > > I wasn't saying code conventions are good enough for all kinds of human > > errors, I was just talking about this particular one, of confusing and > > overlapping variable and type names. > > I think in this case some compiler strictness is better than code conventions. Few

Re: Context sensitivity

2011-05-19 Thread bearophile
Bruno Medeiros: > I wasn't saying code conventions are good enough for all kinds of human > errors, I was just talking about this particular one, of confusing and > overlapping variable and type names. I think in this case some compiler strictness is better than code conventions. Few days ago

Re: Context sensitivity

2011-05-19 Thread Bruno Medeiros
On 06/05/2011 17:52, bearophile wrote: Bruno Medeiros, Software Engineer: This is why there are code conventions that have different rules for naming variables/fields and types, so you don't confuse them... Walter has just shown slides in D.announce that explain why sometimes code convention

Re: Curl wrapper

2011-05-19 Thread jdrewsen
Den 19-05-2011 00:54, Andrei Alexandrescu skrev: On 5/18/11 5:29 PM, jdrewsen wrote: Den 18-05-2011 16:53, Andrei Alexandrescu skrev: On 5/18/11 6:07 AM, Jonas Drewsen wrote: Select will wait for data to be ready and ask curl to handle the data chunk. Curl in turn calls back to a registered ca

Re: [Article Contest, first draft] D Slices

2011-05-19 Thread Steven Schveighoffer
On Thu, 19 May 2011 00:27:51 -0400, Jonathan M Davis wrote: On 2011-05-18 21:09, Jesse Phillips wrote: Jonathan M Davis Wrote: > The huge advantage of assert over writeln is that it shows you what the > result is supposed to be. If you're reading the code or documentation, > that's extrem

Re: Builtin regex (Was: How to complex switch?)

2011-05-19 Thread Timon Gehr
Andrei Alexandrescu wrote: > Timon Gehr wrote: > > > > 1. Deprecate using CommaExpression inside ParanthesizedExpression. (This > > does not > > affect most code that uses the comma operator!) > > 2. Wait a few releases. > > 3. Introduce straightforward, built-in tuples: > [snip] > > We've been th

Re: [Article Contest, first draft] D Slices

2011-05-19 Thread Steven Schveighoffer
On Thu, 19 May 2011 07:42:57 -0400, Lars T. Kyllingstad wrote: On Wed, 18 May 2011 14:03:05 -0400, Steven Schveighoffer wrote: Having seen quite a few incorrect descriptions of how D slices work (particularly regarding appending), I wrote an article that tries to describe how D slices work,

Re: [Article Contest, first draft] D Slices

2011-05-19 Thread Lars T. Kyllingstad
On Wed, 18 May 2011 14:03:05 -0400, Steven Schveighoffer wrote: > Having seen quite a few incorrect descriptions of how D slices work > (particularly regarding appending), I wrote an article that tries to > describe how D slices work, and why they behave the way they do. > > Being one of the only

Re: " is not mutable" when using ref return type

2011-05-19 Thread Steven Schveighoffer
On Thu, 19 May 2011 00:22:42 -0400, Jonathan M Davis wrote: On 2011-05-18 20:55, %u wrote: Hi! Is this a bug, or is it intentional that this fails? I can't come up with any case where it would cause a problem, but the compiler doesn't like the fact that there's a const in the structure:

Re: Testable ddoc snippets?

2011-05-19 Thread Steven Schveighoffer
On Wed, 18 May 2011 21:07:21 -0400, Adam D. Ruppe wrote: I haven't spent the time to figure out github yet! I highly recommend http://progit.org I haven't touched git in so long though, I'll probably have to skim through it again the next time I do git! -Steve

Re: Generators in D

2011-05-19 Thread Piotr Szturmaj
Sean Kelly wrote: On May 18, 2011, at 5:21 PM, Piotr Szturmaj wrote: Jose Armando Garcia wrote: If serialization will be clever enough, these fibers could even be shared across different servers! This is really a requirement in load balanced environments. A very old research paper (I think

Re: Generators in D

2011-05-19 Thread Piotr Szturmaj
Sean Kelly wrote: On May 18, 2011, at 5:07 PM, Piotr Szturmaj wrote: Sean Kelly wrote: On May 18, 2011, at 8:00 AM, Piotr Szturmaj wrote: Sean Kelly wrote: On May 17, 2011, at 2:37 PM, Piotr Szturmaj wrote: But couldn't Fiber's stack be scanned for references to itself and readjusted?

Re: Best build tool for D projects

2011-05-19 Thread Chris Molozian
Your test was a good one, the build fails on even a simple hello world program. I'm using the dmd2-complete package from the AUR (archlinux user repository). Where should the phobos/druntime libraries be placed on the system? On 18/05/11 18:48, Jesse Phillips wrote: Can you build a simple hel

Re: Implementing std.log

2011-05-19 Thread Andrei Alexandrescu
On 5/19/11 2:56 AM, Jens Mueller wrote: Andrei Alexandrescu wrote: * The way I see a nice implementation would be (inspired from Jens' work) via a class that defines the client-level methods as final, and has 2-3 extension methods that do the work. That way there's no need for awkward extra name

Re: Implementing std.log

2011-05-19 Thread Jens Mueller
Andrei Alexandrescu wrote: > On 5/18/11 8:00 AM, Jose Armando Garcia wrote: > >I also think that having competing logging module is a good thing. > >This process will result in a better module for phobos and as a result > >a better module for the user. > > Clearly there are advantages to competing

Re: Alias templates and anonymous delegates in pipe/map

2011-05-19 Thread Adrien Chauve
Thanks! Indeed it would make sense but I really agree it seems unintuitive. Adrien On Wed, May 18, 2011 at 21:44, Steven Schveighoffer wrote: > On Wed, 18 May 2011 15:11:56 -0400, Adrien Chauve > wrote: > > Hi, >> >> anyone on the alias difference? >> > > I have a feeling that alias needs to b