Re: dlang.org slow?

2012-10-25 Thread Jacob Carlborg
On 2012-10-26 07:01, H. S. Teoh wrote: Is it just me, or has dlang.org been really slow today? Is something wrong with the site that needs our attention? It takes almost 2 whole minutes to load a page -- at first I thought my office network screwed up again, but now I'm at home and it's still lik

Re: Uri class and parser

2012-10-25 Thread Jacob Carlborg
On 2012-10-25 23:06, Jens Mueller wrote: I'd prefer the second option. Maybe write first some unittests for std.uri, if there are none. Then move it. Agree, but we want to minimize the code breakage. -- /Jacob Carlborg

Re: Travis CI - Continuous Integration Testing Server

2012-10-25 Thread Jacob Carlborg
On 2012-10-25 23:47, Jens Mueller wrote: I've been using cloudbees.com which offers a similar service based on Jenkins. Since Jenkins supports shell scripts to drive the build it was fairly easy to support D (see https://gluey.ci.cloudbees.com/job/ddl/). Travis supports "make" and it probably

Re: Travis CI - Continuous Integration Testing Server

2012-10-25 Thread Jacob Carlborg
On 2012-10-25 23:35, Paulo Pinto wrote: Personally I would rather use Jenkins as it is much more mature. Actually, maybe I should look into how to do a D CI system with Jenkins. What I like about Travis is that they will host the builds/tests for free. I think that's a huge difference and lo

Re: Travis CI - Continuous Integration Testing Server

2012-10-25 Thread Jacob Carlborg
On 2012-10-25 23:50, Alex Rønne Petersen wrote: You don't really have to do anything special other than set up build jobs that invoke : http://ci.lycus.org/ Cool, I know about Jenkis but I didn't know about this. What software is available on the machines? -- /Jacob Carlborg

Re: [RFC] ColorD

2012-10-25 Thread Robik
On Friday, 26 October 2012 at 01:35:43 UTC, Adam D. Ruppe wrote: On Thursday, 25 October 2012 at 22:27:52 UTC, Jens Mueller wrote: 5. setting the contents of the title bar The title bar of what? Here's how you do it on xterm: writefln("\033]0;%s\007", title); Yeah, the problem is it does

Re: dlang.org slow?

2012-10-25 Thread Jakob Ovrum
On Friday, 26 October 2012 at 04:59:07 UTC, H. S. Teoh wrote: Is it just me, or has dlang.org been really slow today? Is something wrong with the site that needs our attention? It takes almost 2 whole minutes to load a page -- at first I thought my office network screwed up again, but now I'm

Re: dlang.org slow?

2012-10-25 Thread H. S. Teoh
On Fri, Oct 26, 2012 at 07:02:09AM +0200, Alex Rønne Petersen wrote: > On 26-10-2012 07:01, H. S. Teoh wrote: > >Is it just me, or has dlang.org been really slow today? Is something > >wrong with the site that needs our attention? It takes almost 2 whole > >minutes to load a page -- at first I thou

Re: Why D is annoying =P

2012-10-25 Thread Ellery Newcomer
On 10/25/2012 09:19 PM, H. S. Teoh wrote: Hmph. This is what I don't like about the built-in ==. Its semantics are inconsistent once you leave the realm of ints and floats and other numerical types. I think this one is worthy of a bug report. Well, if nobody else is going to take it http://d

Re: dlang.org slow?

2012-10-25 Thread Alex Rønne Petersen
On 26-10-2012 07:01, H. S. Teoh wrote: Is it just me, or has dlang.org been really slow today? Is something wrong with the site that needs our attention? It takes almost 2 whole minutes to load a page -- at first I thought my office network screwed up again, but now I'm at home and it's still lik

dlang.org slow?

2012-10-25 Thread H. S. Teoh
Is it just me, or has dlang.org been really slow today? Is something wrong with the site that needs our attention? It takes almost 2 whole minutes to load a page -- at first I thought my office network screwed up again, but now I'm at home and it's still like that. T -- Change is inevitable, ex

Re: Why D is annoying =P

2012-10-25 Thread H. S. Teoh
On Thu, Oct 25, 2012 at 06:34:32PM -0700, Ellery Newcomer wrote: > On 10/24/2012 01:16 PM, Mehrdad wrote: > >On Wednesday, 24 October 2012 at 20:03:44 UTC, H. S. Teoh wrote: > >>What's wrong with RedBlackTree? You can just do something like: > >> > >>RedBlackTree!(RedBlackTree!MySet) setOfSets;

Re: [RFC] ColorD

2012-10-25 Thread H. S. Teoh
On Fri, Oct 26, 2012 at 03:35:42AM +0200, Adam D. Ruppe wrote: > On Thursday, 25 October 2012 at 22:27:52 UTC, Jens Mueller wrote: > >>5. setting the contents of the title bar > >The title bar of what? > > Here's how you do it on xterm: > > writefln("\033]0;%s\007", title); > > On Windows it is

Re: [RFC] ColorD

2012-10-25 Thread Adam D. Ruppe
On Thursday, 25 October 2012 at 22:27:52 UTC, Jens Mueller wrote: 5. setting the contents of the title bar The title bar of what? Here's how you do it on xterm: writefln("\033]0;%s\007", title); On Windows it is an api function: http://msdn.microsoft.com/en-us/library/windows/desktop/ms6860

Re: Why D is annoying =P

2012-10-25 Thread Ellery Newcomer
On 10/24/2012 01:16 PM, Mehrdad wrote: On Wednesday, 24 October 2012 at 20:03:44 UTC, H. S. Teoh wrote: What's wrong with RedBlackTree? You can just do something like: RedBlackTree!(RedBlackTree!MySet) setOfSets; The last time I checked two RedBlackTrees for equality, they seemed to have

Re: [RFC] ColorD

2012-10-25 Thread H. S. Teoh
On Fri, Oct 26, 2012 at 12:27:38AM +0200, Jens Mueller wrote: > Walter Bright wrote: [...] > > A module that only sets the console color is a little too light to > > be a phobos entry. > > > > A more comprehensive module that included: > > > > 1. getting mouse input > > Anybody an idea how to th

Re: Normal/Gaussian random number generation for D

2012-10-25 Thread Joseph Rushton Wakeling
On 10/24/2012 11:23 PM, jerro wrote: I already have a NormalDist struct at https://github.com/jerro/phobos/blob/new-api/std/random.d#L2363 - converting that should be trivial. I'll have a go at this some time in the next days. :-) I have only tested a distribution of the output samples, which

Re: [RFC] ColorD

2012-10-25 Thread Jens Mueller
Walter Bright wrote: > On 10/22/2012 3:55 AM, Andrei Alexandrescu wrote:> On 10/22/12 9:47 > AM, Jens Mueller wrote: > >> This is probably interesting for Phobos. But I'm not the one to make a > >> decision. The core Phobos developers should decide. > >> Hopefully somebody is reading this. > > > >

Re: Travis CI - Continuous Integration Testing Server

2012-10-25 Thread Alex Rønne Petersen
On 25-10-2012 23:35, Paulo Pinto wrote: On Thursday, 25 October 2012 at 19:10:39 UTC, Jacob Carlborg wrote: I've recently got some experience of a project called Travis CI. As the title says it's a CI, Continuous Integration testing server for open source projects. They host all the building and

Re: Uri class and parser

2012-10-25 Thread Jens Mueller
Jonathan M Davis wrote: > On Thursday, October 25, 2012 23:05:14 Jens Mueller wrote: > > Jonathan M Davis wrote: > > > On Thursday, October 25, 2012 15:59:39 Jens Mueller wrote: > > > > * Should URIs be only movable? Then you should add > > > > @disable this(this); > > > > > > I'd be shocked if th

Re: Travis CI - Continuous Integration Testing Server

2012-10-25 Thread Jens Mueller
Jacob Carlborg wrote: > I've recently got some experience of a project called Travis CI. As > the title says it's a CI, Continuous Integration testing server for > open source projects. They host all the building and testing, you > just add a YAML configuration file and a github hook and then it ca

Re: Uri class and parser

2012-10-25 Thread Jonathan M Davis
On Thursday, October 25, 2012 23:05:14 Jens Mueller wrote: > Jonathan M Davis wrote: > > On Thursday, October 25, 2012 15:59:39 Jens Mueller wrote: > > > * Should URIs be only movable? Then you should add > > > @disable this(this); > > > > I'd be shocked if that were appropriate. Disabling the ini

Re: Travis CI - Continuous Integration Testing Server

2012-10-25 Thread Paulo Pinto
On Thursday, 25 October 2012 at 19:10:39 UTC, Jacob Carlborg wrote: I've recently got some experience of a project called Travis CI. As the title says it's a CI, Continuous Integration testing server for open source projects. They host all the building and testing, you just add a YAML configura

Re: Uri class and parser

2012-10-25 Thread Jens Mueller
Mike van Dongen wrote: > On Thursday, 25 October 2012 at 13:59:59 UTC, Jens Mueller wrote: > >Just some small nit-picks. > > That's what I was hoping for :D > > > > in general checkout the Phobos style guide regarding function > >names > > etc. > > http://dlang.org/dstyle.html > > > add som

Re: Very simple SIMD programming

2012-10-25 Thread bearophile
Walter Bright: Making SIMD code that delivers performance turns out to be a highly quirky and subtle exercise, one that is resistant to formalization. I have written some SIMD code, with mixed results, so I understand part of such problems, despite my total experience on such things is limi

Re: Uri class and parser

2012-10-25 Thread Jens Mueller
Jacob Carlborg wrote: > On 2012-10-25 15:20, Mike van Dongen wrote: > > >It's a dirty job, but someone's gotta do it ;) > >I have commented all code that's not straightforward, but nothing for > >the Ddoc. > > If think the ddoc is the most important one. > > >Can you give me an example of how sp

Re: Uri class and parser

2012-10-25 Thread Jens Mueller
Jonathan M Davis wrote: > On Thursday, October 25, 2012 15:59:39 Jens Mueller wrote: > > * Should URIs be only movable? Then you should add > > @disable this(this); > > I'd be shocked if that were appropriate. Disabling the init property like > that > should be done extremely rarely and only if

Re: Why D is annoying =P

2012-10-25 Thread Philippe Sigaud
On Thu, Oct 25, 2012 at 7:51 AM, Mehrdad wrote: > Actually, I think I might as well send you a link to something I had in > C#... > > https://gist.github.com/203f8d65b60fe2d75339 > > > > Grab it before it's gone ;) I might delete it at some point. Thanks :)

Travis CI - Continuous Integration Testing Server

2012-10-25 Thread Jacob Carlborg
I've recently got some experience of a project called Travis CI. As the title says it's a CI, Continuous Integration testing server for open source projects. They host all the building and testing, you just add a YAML configuration file and a github hook and then it can build and run your tests

Re: Very simple SIMD programming

2012-10-25 Thread Walter Bright
On 10/25/2012 4:13 AM, bearophile wrote: > Manu: > >> I think this is far more convenient than any crazy 'if' syntax :) .. It's >> also perfectly optimal on all architectures I know aswell! > > You should show more respect for them and their work. Their ideas seem very far > from being crazy. The

Re: Uri class and parser

2012-10-25 Thread Jacob Carlborg
On 2012-10-25 15:20, Mike van Dongen wrote: It's a dirty job, but someone's gotta do it ;) I have commented all code that's not straightforward, but nothing for the Ddoc. If think the ddoc is the most important one. Can you give me an example of how specific I need to be in the documentation

Re: Uri class and parser

2012-10-25 Thread Mike van Dongen
On Thursday, 25 October 2012 at 13:59:59 UTC, Jens Mueller wrote: Just some small nit-picks. That's what I was hoping for :D in general checkout the Phobos style guide regarding function names etc. http://dlang.org/dstyle.html add some unittests. Thanks! I haven't read that pag

Re: Why D is annoying =P

2012-10-25 Thread Jonathan M Davis
On Wednesday, October 24, 2012 22:12:48 Jonathan M Davis wrote: > On Wednesday, October 24, 2012 13:31:14 Walter Bright wrote: > > The default compare for structs is a bit compare of the contents. > > Which definitely seems inherently broken. Doing that only works if the > struct only contains int

Re: [just talk] what if implicitly typed literals were disallowed

2012-10-25 Thread H. S. Teoh
On Thu, Oct 25, 2012 at 01:40:19AM +0200, Adam D. Ruppe wrote: > BTW, bearophile, we've talked about runtime overflow checks before. > I'm generally against them, but if we had user defined basic types, > we could implement them in the library (already possible, though > some important optimization

Re: Uri class and parser

2012-10-25 Thread Jonathan M Davis
On Thursday, October 25, 2012 15:59:39 Jens Mueller wrote: > * Should URIs be only movable? Then you should add > @disable this(this); I'd be shocked if that were appropriate. Disabling the init property like that should be done extremely rarely and only if you need to. It's problematic that that

Re: Uri class and parser

2012-10-25 Thread Jens Mueller
Mike van Dongen wrote: > Hi all! > > I've been working on an URI parser which takes a string and then > separates the parts and puts them in the correct properties. > If a valid URI was provided, the (static) parser will return an > instance of Uri. > > I've commented all relevant lines of code a

Re: Why D is annoying =P

2012-10-25 Thread Dejan Lekic
On Thursday, 25 October 2012 at 02:12:58 UTC, Jonathan M Davis wrote: On Wednesday, October 24, 2012 13:31:14 Walter Bright wrote: The default compare for structs is a bit compare of the contents. Which definitely seems inherently broken. Doing that only works if the struct only contains inte

Re: Uri class and parser

2012-10-25 Thread Mike van Dongen
On Wednesday, 24 October 2012 at 12:47:15 UTC, Adam D. Ruppe wrote: BTW don't forget that this is legal: ?value&value=1&value=2 The appropriate type for the AA is string[][string] Thanks for the type! It's now implemented. uri = Uri.parse("http://dlang.org/?value&value=1&value=2";); assert(

Re: Very simple SIMD programming

2012-10-25 Thread Andrei Alexandrescu
On 10/25/12 7:13 AM, bearophile wrote: Manu: I think this is far more convenient than any crazy 'if' syntax :) .. It's also perfectly optimal on all architectures I know aswell! You should show more respect for them and their work. Their ideas seem very far from being crazy. They have also pr

Re: Very simple SIMD programming

2012-10-25 Thread Manu
On 25 October 2012 14:13, bearophile wrote: > Manu: > > > I think this is far more convenient than any crazy 'if' syntax :) .. It's >> also perfectly optimal on all architectures I know aswell! >> > > You should show more respect for them and their work. Their ideas seem > very far from being cr

Re: On D development

2012-10-25 Thread Jacob Carlborg
On 2012-10-25 13:32, xenon325 wrote: Adam Wilson: Coming Soon: Stable D Releases! http://forum.dlang.org/post/op.whi33qsp707...@invictus.skynet.com There it is, thank you. -- /Jacob Carlborg

Re: Uri class and parser

2012-10-25 Thread Jacob Carlborg
On 2012-10-25 13:24, Mike van Dongen wrote: Now it allows you to create/edit an URI. You can do so by using an array or string, whichever you prefer. I also added a toString() method and fixed the indentation to 4 spaces, instead of 1 tab. uri = new Uri(); uri.scheme = "foo"; uri.username = "us

Re: On D development

2012-10-25 Thread xenon325
On Wednesday, 24 October 2012 at 19:59:39 UTC, Jacob Carlborg wrote: There has been some talk about this. I think we pretty much all agreed that we should have a stable branch/repository which we would cherry-pick changes from the master branch. I don't remember who said he would be responsibl

Re: Uri class and parser

2012-10-25 Thread Mike van Dongen
On Wednesday, 24 October 2012 at 20:36:51 UTC, Adam D. Ruppe wrote: On Wednesday, 24 October 2012 at 19:54:54 UTC, Jacob Carlborg wrote: A nitpick, I'm not really an expert on URI's but is "fragment" really the correct name for that I would call the "hash"? That would be "nose" in the example b

Re: Very simple SIMD programming

2012-10-25 Thread bearophile
Manu: I think this is far more convenient than any crazy 'if' syntax :) .. It's also perfectly optimal on all architectures I know aswell! You should show more respect for them and their work. Their ideas seem very far from being crazy. They have also proved their type system to be sound. T

Re: Very simple SIMD programming

2012-10-25 Thread Manu
On 25 October 2012 13:38, Iain Buclaw wrote: > On 25 October 2012 09:36, Manu wrote: > > On 25 October 2012 02:18, Iain Buclaw wrote: > >> > >> On 25 October 2012 00:16, Manu wrote: > >> > On 25 October 2012 02:01, Iain Buclaw wrote: > >> >> > >> >> On 24 October 2012 23:46, Manu wrote: > >>

Re: Very simple SIMD programming

2012-10-25 Thread Iain Buclaw
On 25 October 2012 09:36, Manu wrote: > On 25 October 2012 02:18, Iain Buclaw wrote: >> >> On 25 October 2012 00:16, Manu wrote: >> > On 25 October 2012 02:01, Iain Buclaw wrote: >> >> >> >> On 24 October 2012 23:46, Manu wrote: >> >> >> >> > Let's consider your example above for instance, I w

Re: [just talk] what if implicitly typed literals were disallowed

2012-10-25 Thread BLM768
And what about _transparent substitution_ of AA literals for a custom hash implementation? That would also be an excellent way to sidestep the current issues with AAs. The AA code would have to be heavily refactored, which could clean up the mess and probably get rid of a lot of bugs. It c