Re: DIP11: Automatic downloading of libraries

2011-06-22 Thread Jonathan M Davis
On 2011-06-21 07:17, Andrei Alexandrescu wrote: > On 6/21/11 9:14 AM, Lars T. Kyllingstad wrote: > > On Tue, 21 Jun 2011 08:21:57 -0500, Andrei Alexandrescu wrote: > >> On 6/21/11 1:58 AM, Lars T. Kyllingstad wrote: > >>> On Mon, 20 Jun 2011 17:32:32 -0500, Andrei Alexandrescu wrote: > On 6/20

Re: Strange behavior on shrinking a Dynamic Array -- Capacity reduces to 0

2011-06-22 Thread d coder
> > > Yes. Capacity is only non-zero for arrays which can safely be extended. If > you shrink an array from length 10 to length 5, the GC is smart enough to > know that that there may be a dangling reference to elements [5..10] and > thus if the length 5 array was appended to, it might stomp on som

Re: Strange behavior on shrinking a Dynamic Array -- Capacity reduces to 0

2011-06-22 Thread Steven Schveighoffer
On Wed, 22 Jun 2011 23:38:30 -0400, d coder wrote: Hello List As per TDPL and D documentation, shrinking a dynamic array should not relocate it. But that is exactly what is happening. On shrinking an array, its capacity is getting reduced to 0. Surprisingly the capacity after a shrink is even

Re: Strange behavior on shrinking a Dynamic Array -- Capacity reduces to 0

2011-06-22 Thread Ali Çehreli
On Wed, 22 Jun 2011 23:55:23 -0400, Robert Jacques wrote: > On Wed, 22 Jun 2011 23:38:30 -0400, d coder > wrote: > >> Hello List >> >> As per TDPL and D documentation, shrinking a dynamic array should not >> relocate it. But that is exactly what is happening. On shrinking an >> array, its capaci

Re: Strange behavior on shrinking a Dynamic Array -- Capacity reduces to 0

2011-06-22 Thread Robert Jacques
On Wed, 22 Jun 2011 23:38:30 -0400, d coder wrote: Hello List As per TDPL and D documentation, shrinking a dynamic array should not relocate it. But that is exactly what is happening. On shrinking an array, its capacity is getting reduced to 0. Surprisingly the capacity after a shrink is even

Strange behavior on shrinking a Dynamic Array -- Capacity reduces to 0

2011-06-22 Thread d coder
Hello List As per TDPL and D documentation, shrinking a dynamic array should not relocate it. But that is exactly what is happening. On shrinking an array, its capacity is getting reduced to 0. Surprisingly the capacity after a shrink is even less than the length of the array. As a result the arra

Re: [OffTopic] GitHub for Mac

2011-06-22 Thread Caligo
On Wed, Jun 22, 2011 at 6:51 PM, Andrej Mitrovic wrote: > Did github go down for anyone else? It seems to have gone down almost > instantly after I made a push in a new repo. :s > http://status.github.com/ """ 04:54 pm PST Everything is back and functional. We experienced high load on the DB ser

Re: D demangling filter tool?

2011-06-22 Thread Michel Fortin
On 2011-06-22 18:58:44 -0400, David Nadlinger said: Does anybody have a tool lying around which reads in some text (from a file or stdin) and replaces all mangled D names it comes across with the demangled text? I thought I would ask before quickly whipping together a short program myself…

Re: Web-news reader generates wrong links

2011-06-22 Thread Steven Schveighoffer
On Wed, 22 Jun 2011 14:41:21 -0400, Andrej Mitrovic wrote: On 6/22/11, Steven Schveighoffer wrote: On Wed, 22 Jun 2011 14:12:12 -0400, Andrej Mitrovic wrote: Example page: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=93706 If you click on the firs

Re: Web-news reader generates wrong links

2011-06-22 Thread Steven Schveighoffer
On Wed, 22 Jun 2011 14:44:42 -0400, bearophile wrote: Steven Schveighoffer: Try going to the main page (with all the threads), and then go back to that specific one, I think it will work. Is fixing the site an option, instead? The code is here: http://web-news.sourceforge.net/ so yes,

Re: [OffTopic] GitHub for Mac

2011-06-22 Thread Andrej Mitrovic
Also that GUI looks nice, I wonder how fast it is though. I don't think I'd personally venture into building something like that for Windows, mainly because I only use a minimal set of GIT/GitHub features. But I do have plenty of free time, as you can see. :p

Re: [OffTopic] GitHub for Mac

2011-06-22 Thread Andrej Mitrovic
Did github go down for anyone else? It seems to have gone down almost instantly after I made a push in a new repo. :s

D demangling filter tool?

2011-06-22 Thread David Nadlinger
Does anybody have a tool lying around which reads in some text (from a file or stdin) and replaces all mangled D names it comes across with the demangled text? I thought I would ask before quickly whipping together a short program myself… David

Re: [OffTopic] GitHub for Mac

2011-06-22 Thread David Nadlinger
On 6/22/11 10:42 PM, Nick Sabalausky wrote: Wow, that looks awesome. GitHub without having to use some #*$^%!*$ &$^&*#$$&*@ %#&*# webapp. Hope a Windows version comes soon. […] I know that you probably don't have the time for that, but creating a Windows version yourself should be entirely pos

Re: Naming conventions for functions in similar modules

2011-06-22 Thread SimonM
On 2011/06/22 19:16 PM, Andrei Alexandrescu wrote: On 6/22/11 11:53 AM, Walter Bright wrote: On 6/22/2011 4:47 AM, Lars T. Kyllingstad wrote: One problem: std.uni only contains functions for dealing with upper/ lower case and for checking whether something is an alpha character. If you want the

Re: Associative array printing problems

2011-06-22 Thread bearophile
KennyTM~: > Basically this is a reiteration of > http://d.puremagic.com/issues/show_bug.cgi?id=4605 Thank you, I have added the note there. The notes show the problems when you want to print nested associative arrays. Bye, bearophile

Re: Naming conventions for functions in similar modules

2011-06-22 Thread Jonathan M Davis
On 2011-06-22 14:06, Jonathan M Davis wrote: > On 2011-06-22 13:30, Lars T. Kyllingstad wrote: > > On Wed, 22 Jun 2011 09:53:39 -0700, Walter Bright wrote: > > > On 6/22/2011 4:47 AM, Lars T. Kyllingstad wrote: > > >> One problem: std.uni only contains functions for dealing with upper/ > > >> lower

Re: Naming conventions for functions in similar modules

2011-06-22 Thread Jonathan M Davis
On 2011-06-22 13:30, Lars T. Kyllingstad wrote: > On Wed, 22 Jun 2011 09:53:39 -0700, Walter Bright wrote: > > On 6/22/2011 4:47 AM, Lars T. Kyllingstad wrote: > >> One problem: std.uni only contains functions for dealing with upper/ > >> lower case and for checking whether something is an alpha ch

Re: Naming conventions for functions in similar modules

2011-06-22 Thread Jonathan M Davis
On 2011-06-22 13:34, Timon Gehr wrote: > Lars T. Kyllingstad wrote: > > On Wed, 22 Jun 2011 09:53:39 -0700, Walter Bright wrote: > >> On 6/22/2011 4:47 AM, Lars T. Kyllingstad wrote: > >>> One problem: std.uni only contains functions for dealing with upper/ > >>> lower case and for checking whether

Re: Can you publicly alias a private type?

2011-06-22 Thread Nick Sabalausky
"Peter Alexander" wrote in message news:itsqov$1mnt$1...@digitalmars.com... > On 22/06/11 2:19 PM, Nick Sabalausky wrote: >> In your example, the user needs to be able to use the Foo symbol in order >> to >> get full use out of Foos. However, in my example, the user does *not* >> need >> to use

Re: [OffTopic] GitHub for Mac

2011-06-22 Thread Nick Sabalausky
"Robert Clipsham" wrote in message news:ittg0r$2tqm$1...@digitalmars.com... > GitHub have just released github for mac - handy tool if you're on a mac. > > Announcement: https://github.com/blog/878-announcing-github-for-mac > > Website: http://mac.github.com/ > > Doesn't do everything yet, eg bug

Re: Web-news reader generates wrong links

2011-06-22 Thread just me
Andrej Mitrovic Wrote: > On 6/22/11, Steven Schveighoffer wrote: > > On Wed, 22 Jun 2011 14:12:12 -0400, Andrej Mitrovic > > wrote: > > > >> Example page: > >> http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=93706 > >> > >> If you click on the first "Re" link

Re: Web-news reader generates wrong links

2011-06-22 Thread Jesse Phillips
Andrej Mitrovic Wrote: > Example page: > http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=93706 > > If you click on the first "Re" link, you'll get redirected here: > http://www.digitalmars.com/webnews/newsgroups.php?art_group=D.gnu&article_id=93711 > > But th

Re: Naming conventions for functions in similar modules

2011-06-22 Thread Timon Gehr
Lars T. Kyllingstad wrote: > On Wed, 22 Jun 2011 09:53:39 -0700, Walter Bright wrote: > >> On 6/22/2011 4:47 AM, Lars T. Kyllingstad wrote: >>> One problem: std.uni only contains functions for dealing with upper/ >>> lower case and for checking whether something is an alpha character. >>> If you w

Re: Naming conventions for functions in similar modules

2011-06-22 Thread Lars T. Kyllingstad
On Wed, 22 Jun 2011 09:53:39 -0700, Walter Bright wrote: > On 6/22/2011 4:47 AM, Lars T. Kyllingstad wrote: >> One problem: std.uni only contains functions for dealing with upper/ >> lower case and for checking whether something is an alpha character. >> If you want the other functions, such as

Re: Curl wrapper round two

2011-06-22 Thread jdrewsen
Den 22-06-2011 12:08, Dmitry Olshansky skrev: On 22.06.2011 14:02, Jonas Drewsen wrote: On 22/06/11 06.11, Jose Armando Garcia wrote: Hi Jonas, Was reading your implementation but I had to context switch. Only go to line 145 :(. I see that you are refcounting by sharing a uint* but what about

[OffTopic] GitHub for Mac

2011-06-22 Thread Robert Clipsham
GitHub have just released github for mac - handy tool if you're on a mac. Announcement: https://github.com/blog/878-announcing-github-for-mac Website: http://mac.github.com/ Doesn't do everything yet, eg bug reports, it does allow you to push/pull/view diffs/work with branches/view history/rev

Re: Curl wrapper round two

2011-06-22 Thread jdrewsen
Den 22-06-2011 17:34, Jose Armando Garcia skrev: Em 22/06/2011, às 07:02, Jonas Drewsen escreveu: On 22/06/11 06.11, Jose Armando Garcia wrote: Hi Jonas, Was reading your implementation but I had to context switch. Only go to line 145 :(. I see that you are refcounting by sharing a uint* but

Re: Associative array printing problems

2011-06-22 Thread KennyTM~
On Jun 23, 11 02:45, bearophile wrote: Printing associative arrays in a decent way is not a luxury, it's a basic skill I expect D writeln to have. This is reduced from a program related to the coding Kata Nineteen, Word Chains. The problem asks to create the longest chain of words. This functi

Re: Curl wrapper round two

2011-06-22 Thread jdrewsen
Den 22-06-2011 10:25, Johannes Pfau skrev: jdrewsen wrote: Den 21-06-2011 12:55, Johannes Pfau skrev: jdrewsen wrote: Den 18-06-2011 22:36, jdrewsen skrev: Hi, I've finally got through all the very constructive comments from the last review of the curl wrapper and performed the needed change

Re: State of curl wrapper?

2011-06-22 Thread jdrewsen
Den 22-06-2011 05:05, Jonathan M Davis skrev: Is the curl wrapper at about the point that we could look at doing a formal review of it followed by voting for inclusion in Phobos, or does it need more bake time? It's fine either way. I'd just like to know where it sits. If it's ready for review,

Re: Associative array printing problems

2011-06-22 Thread KennyTM~
On Jun 23, 11 02:45, bearophile wrote: Printing associative arrays in a decent way is not a luxury, it's a basic skill I expect D writeln to have. This is reduced from a program related to the coding Kata Nineteen, Word Chains. The problem asks to create the longest chain of words. This functi

Associative array printing problems

2011-06-22 Thread bearophile
Printing associative arrays in a decent way is not a luxury, it's a basic skill I expect D writeln to have. This is reduced from a program related to the coding Kata Nineteen, Word Chains. The problem asks to create the longest chain of words. This function creates an associative array where th

Re: Web-news reader generates wrong links

2011-06-22 Thread Andrej Mitrovic
On 6/22/11, bearophile wrote: > Since about two months the online web interface doesn't allow me to go past > the first page of the main D newsgroup: > http://www.digitalmars.com/webnews/newsgroups.php?search_txt=&group=digitalmars.D I can recreate this too.

Re: Web-news reader generates wrong links

2011-06-22 Thread Andrej Mitrovic
On 6/22/11, Steven Schveighoffer wrote: > On Wed, 22 Jun 2011 14:12:12 -0400, Andrej Mitrovic > wrote: > >> Example page: >> http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=93706 >> >> If you click on the first "Re" link, you'll get redirected here: >> http://

Re: Web-news reader generates wrong links

2011-06-22 Thread bearophile
Steven Schveighoffer: > Try going to the main page (with all the threads), and then go back to > that specific one, I think it will work. Is fixing the site an option, instead? Since about two months the online web interface doesn't allow me to go past the first page of the main D newsgroup:

Re: Web-news reader generates wrong links

2011-06-22 Thread Steven Schveighoffer
On Wed, 22 Jun 2011 14:12:12 -0400, Andrej Mitrovic wrote: Example page: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=93706 If you click on the first "Re" link, you'll get redirected here: http://www.digitalmars.com/webnews/newsgroups.php?art_group=D.g

Web-news reader generates wrong links

2011-06-22 Thread Andrej Mitrovic
Example page: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=93706 If you click on the first "Re" link, you'll get redirected here: http://www.digitalmars.com/webnews/newsgroups.php?art_group=D.gnu&article_id=93711 But that link should be: http://www.digitalm

Re: Naming conventions for functions in similar modules

2011-06-22 Thread bearophile
Andrei: > One improvement would be to relax package lookup such that > ascii.tolower() is a synonym for std.ascii.tolower. That way everything > works reasonably nice out of the box. Every time you mud the semantics for a little convenience, later something will come to bite your rump. Shortcu

Re: Naming conventions for functions in similar modules

2011-06-22 Thread KennyTM~
On Jun 23, 11 01:16, Andrei Alexandrescu wrote: On 6/22/11 11:53 AM, Walter Bright wrote: On 6/22/2011 4:47 AM, Lars T. Kyllingstad wrote: One problem: std.uni only contains functions for dealing with upper/ lower case and for checking whether something is an alpha character. If you want the ot

Re: Naming conventions for functions in similar modules

2011-06-22 Thread so
On Wed, 22 Jun 2011 20:16:43 +0300, Andrei Alexandrescu wrote: One improvement would be to relax package lookup such that ascii.tolower() is a synonym for std.ascii.tolower. That way everything works reasonably nice out of the box. Andrei I suggested that on another reply but there is

Re: Naming conventions for functions in similar modules

2011-06-22 Thread Andrej Mitrovic
Also, I've found yet another with bug: import std.stdio; static import std.string; void main() { with (std.string) writeln(entab("")); } OPTLINK (R) for Win32 Release 8.00.12 Copyright (C) Digital Mars 1989-2010 All rights reserved. http://www.digitalmars.com/ctg/optlink.html C:\DOCUME

Re: Naming conventions for functions in similar modules

2011-06-22 Thread Andrej Mitrovic
On 6/22/11, Andrei Alexandrescu wrote: > One improvement would be to relax package lookup such that > ascii.tolower() is a synonym for std.ascii.tolower. That way everything > works reasonably nice out of the box. What would help is if the with statement could be used like an attribute. Currently

Re: Naming conventions for functions in similar modules

2011-06-22 Thread Andrei Alexandrescu
On 6/22/11 11:53 AM, Walter Bright wrote: On 6/22/2011 4:47 AM, Lars T. Kyllingstad wrote: One problem: std.uni only contains functions for dealing with upper/ lower case and for checking whether something is an alpha character. If you want the other functions, such as isDigit(), isPunctuation()

Re: Naming conventions for functions in similar modules

2011-06-22 Thread Chris Molozian
I'm mostly a listener on the mailing list but I very much agree with Walter. Personally I think arguments about typing length are daft in an age with IDEs and language tooling. The most important aspect of the naming convention IMHO is readability and intuitiveness. I like the idea of naming th

Re: Naming conventions for functions in similar modules

2011-06-22 Thread Walter Bright
On 6/22/2011 4:47 AM, Lars T. Kyllingstad wrote: One problem: std.uni only contains functions for dealing with upper/ lower case and for checking whether something is an alpha character. If you want the other functions, such as isDigit(), isPunctuation(), etc. you still have to import std.ascii

Re: Naming conventions for functions in similar modules

2011-06-22 Thread Andrej Mitrovic
On 6/22/11, Kagamin wrote: > Did you try renamed imports? I guess that could work. I'm forgetting how many features we have in D. :p

Re: Naming conventions for functions in similar modules

2011-06-22 Thread Jonathan M Davis
On 2011-06-22 04:47, Lars T. Kyllingstad wrote: > On Tue, 21 Jun 2011 23:30:49 -0700, Walter Bright wrote: > > On 6/21/2011 10:38 PM, Jonathan M Davis wrote: > >> For example, should we have > >> > std.ascii.toLower and std.uni.toLower or std.ascii.toAsciiLower and > std.uni.toUniLower?

Re: Curl wrapper round two

2011-06-22 Thread Jose Armando Garcia
Em 22/06/2011, às 07:02, Jonas Drewsen escreveu: On 22/06/11 06.11, Jose Armando Garcia wrote: Hi Jonas, Was reading your implementation but I had to context switch. Only go to line 145 :(. I see that you are refcounting by sharing a uint* but what about all the other private fields? What

Re: [GSoC] Strange struct destructor-postblit-writeln interaction bug.

2011-06-22 Thread Andrei Alexandrescu
On 6/22/11 10:13 AM, dsimcha wrote: == Quote from Cristi Cobzarenco (cristi.cobzare...@gmail.com)'s article --bcaec520ef999f971804a64e04e4 Content-Type: text/plain; charset=ISO-8859-1 While working on my project, I ran into a very hard to trace bug that I finally managed to isolate and reproduce

Re: Naming conventions for functions in similar modules

2011-06-22 Thread Andrej Mitrovic
On 6/22/11, so wrote: > I am confused, you said typing module names tedious and now you are saying > it is fine typing taskPool.reduce every time. It's less to type, that's what I mean.

Re: [GSoC] Strange struct destructor-postblit-writeln interaction bug.

2011-06-22 Thread dsimcha
== Quote from Cristi Cobzarenco (cristi.cobzare...@gmail.com)'s article > --bcaec520ef999f971804a64e04e4 > Content-Type: text/plain; charset=ISO-8859-1 > While working on my project, I ran into a very hard to trace bug that I > finally managed to isolate and reproduce on a small scale. > The code:

[GSoC] Strange struct destructor-postblit-writeln interaction bug.

2011-06-22 Thread Cristi Cobzarenco
While working on my project, I ran into a very hard to trace bug that I finally managed to isolate and reproduce on a small scale. The code: import std.stdio; import std.conv; struct Test { int x; this( int m ) { x = m; } this( this ) { writeln( "Postblit: ", x ); } ~this()

Re: Naming conventions for functions in similar modules

2011-06-22 Thread KennyTM~
On Jun 22, 11 19:47, Lars T. Kyllingstad wrote: On Tue, 21 Jun 2011 23:30:49 -0700, Walter Bright wrote: On 6/21/2011 10:38 PM, Jonathan M Davis wrote: For example, should we have std.ascii.toLower and std.uni.toLower or std.ascii.toAsciiLower and std.uni.toUniLower? I think we've failed i

Re: Programming language benchmark

2011-06-22 Thread Andrei Alexandrescu
On 6/22/11 6:52 AM, Dmitry Olshansky wrote: for (q = buf; *q; ++q); if (q > buf) *(q-1) = 0;//was that triming '\n'? Now that's an interesting line. Andrei

Re: strange Variant bug...

2011-06-22 Thread Andrei Alexandrescu
On 6/22/11 5:02 AM, Lloyd Dupont wrote: Hi Andrei, Thanks for the quick fix and work around! :) Mm.. unfortunately Variant.init can be on either side of the equality, depending on the circumstances... I'll have to learn how to get the latest D compiler from the sources.. :~ Is there a wiki HowT

Re: Naming conventions for functions in similar modules

2011-06-22 Thread Andrei Alexandrescu
On 6/22/11 1:30 AM, Walter Bright wrote: On 6/21/2011 10:38 PM, Jonathan M Davis wrote: For example, should we have std.ascii.toLower and std.uni.toLower or std.ascii.toAsciiLower and std.uni.toUniLower? I think we've failed if we have to name things std.ascii.toAsciiLower, i.e. having to re

Re: Naming conventions for functions in similar modules

2011-06-22 Thread so
On Wed, 22 Jun 2011 09:17:56 +0300, Andrej Mitrovic wrote: Another example is std.parallelism.taskPool. It's nice to see code like this: taskPool.reduce!"a + b * b"(0.0, nums); I'll never mistake that for std.algorithm.reduce. And it's not too hard to type. I am confused, you said typi

Re: Can you publicly alias a private type?

2011-06-22 Thread Peter Alexander
On 22/06/11 2:19 PM, Nick Sabalausky wrote: In your example, the user needs to be able to use the Foo symbol in order to get full use out of Foos. However, in my example, the user does *not* need to use the Foo symbol in order to get full use out of Bar. They can just use Bar in place of Foo. The

Re: Can you publicly alias a private type?

2011-06-22 Thread so
On Wed, 22 Jun 2011 14:52:52 +0300, Peter Alexander wrote: // module A private class Foo; public alias Foo[] Foos; // module B void main() { Foos fs; // Legal? Seems so. Foo f = fs[0]; // Clearly can't use Foo here, it's private. auto f2 = fs[0]; // Legal? fs[0].memFun();

Re: Can you publicly alias a private type?

2011-06-22 Thread Nick Sabalausky
"Peter Alexander" wrote in message news:itsp16$1jl5$1...@digitalmars.com... > On 22/06/11 1:41 PM, Nick Sabalausky wrote: >> "Peter Alexander" wrote in message >> news:itsl71$1cnq$1...@digitalmars.com... >>> On 21/06/11 7:59 PM, Nick Sabalausky wrote: "Peter Alexander" wrote in message >>

Re: Naming conventions for functions in similar modules

2011-06-22 Thread Jacob Carlborg
On 2011-06-22 13:47, Lars T. Kyllingstad wrote: On Tue, 21 Jun 2011 23:30:49 -0700, Walter Bright wrote: On 6/21/2011 10:38 PM, Jonathan M Davis wrote: For example, should we have std.ascii.toLower and std.uni.toLower or std.ascii.toAsciiLower and std.uni.toUniLower? I think we've failed i

Re: Can you publicly alias a private type?

2011-06-22 Thread Peter Alexander
On 22/06/11 1:41 PM, Nick Sabalausky wrote: "Peter Alexander" wrote in message news:itsl71$1cnq$1...@digitalmars.com... On 21/06/11 7:59 PM, Nick Sabalausky wrote: "Peter Alexander" wrote in message news:itq945$2ag0$1...@digitalmars.com... Is the following legal D? // module A private clas

Re: Can you publicly alias a private type?

2011-06-22 Thread Nick Sabalausky
"Peter Alexander" wrote in message news:itsl71$1cnq$1...@digitalmars.com... > On 21/06/11 7:59 PM, Nick Sabalausky wrote: >> "Peter Alexander" wrote in message >> news:itq945$2ag0$1...@digitalmars.com... >>> Is the following legal D? >>> >>> // module A >>> private class Foo; >>> public alias Fo

Re: Can you publicly alias a private type?

2011-06-22 Thread Peter Alexander
On 21/06/11 7:59 PM, Nick Sabalausky wrote: "Peter Alexander" wrote in message news:itq945$2ag0$1...@digitalmars.com... Is the following legal D? // module A private class Foo; public alias Foo Bar; // module B import A; Bar b; // I can't use Foo, but can I use Bar? I'm adding module level

Re: Programming language benchmark

2011-06-22 Thread Dmitry Olshansky
On 22.06.2011 15:41, bearophile wrote: Piotr Szturmaj: I don't know why there's no DMD flavor, though. The author of that bench has said: I have not evaluated DMD because I am running the programs on a Linux server I have no control of. The “libc” is quite old and incompatible with the binar

Re: Naming conventions for functions in similar modules

2011-06-22 Thread Lars T. Kyllingstad
On Tue, 21 Jun 2011 23:30:49 -0700, Walter Bright wrote: > On 6/21/2011 10:38 PM, Jonathan M Davis wrote: >> For example, should we have std.ascii.toLower and std.uni.toLower or std.ascii.toAsciiLower and std.uni.toUniLower? > > > I think we've failed if we have to name things std.asci

Re: Programming language benchmark

2011-06-22 Thread bearophile
Piotr Szturmaj: > I don't know why there's no DMD flavor, though. The author of that bench has said: >I have not evaluated DMD because I am running the programs on a Linux server I >have no control of. The “libc” is quite old and incompatible with the binary >release of dmd.< > It clearly sho

Re: Curl wrapper round two

2011-06-22 Thread Jacob Carlborg
On 2011-06-18 22:36, jdrewsen wrote: Hi, I've finally got through all the very constructive comments from the last review of the curl wrapper and performed the needed changes. Here is the github branch: https://github.com/jcd/phobos/tree/curl-wrapper And the generated docs: http://freeze.steam

Programming language benchmark

2011-06-22 Thread Piotr Szturmaj
Hi, I've just found this benchmark which includes GDC and LDC compilers. I don't know why there's no DMD flavor, though. Here's the link: http://attractivechaos.wordpress.com/2011/06/22/my-programming-language-benchmark-analyses/ It clearly shows that D is really fast (comparable to C) which

Re: Curl wrapper round two

2011-06-22 Thread Dmitry Olshansky
On 22.06.2011 14:02, Jonas Drewsen wrote: On 22/06/11 06.11, Jose Armando Garcia wrote: Hi Jonas, Was reading your implementation but I had to context switch. Only go to line 145 :(. I see that you are refcounting by sharing a uint* but what about all the other private fields? What happens if y

Re: Curl wrapper round two

2011-06-22 Thread Jonas Drewsen
On 22/06/11 06.11, Jose Armando Garcia wrote: Hi Jonas, Was reading your implementation but I had to context switch. Only go to line 145 :(. I see that you are refcounting by sharing a uint* but what about all the other private fields? What happens if you pass the Curl object around functions an

Re: strange Variant bug...

2011-06-22 Thread Lloyd Dupont
Hi Andrei, Thanks for the quick fix and work around! :) Mm.. unfortunately Variant.init can be on either side of the equality, depending on the circumstances... I'll have to learn how to get the latest D compiler from the sources.. :~ Is there a wiki HowTo somewhere? "Andrei Alexandrescu" wr

Re: Curl wrapper round two

2011-06-22 Thread Jacob Carlborg
On 2011-06-22 11:08, Johannes Pfau wrote: Wonder if there's a good free way to spellcheck a website, that could be quite useful for the phobos reviews. Doesn't most text editors have a spell check feature? Even vim has it. -- /Jacob Carlborg

Re: Naming conventions for functions in similar modules

2011-06-22 Thread Kagamin
> > > something in their name to distinguish them. For example, should we have > > > std.ascii.toLower and std.uni.toLower or std.ascii.toAsciiLower and > > > std.uni.toUniLower? toAsciiLower seems to be an optimization so it should be valid to import it statically or give it an ugly name because

Re: Naming conventions for functions in similar modules

2011-06-22 Thread Kagamin
Andrej Mitrovic Wrote: > Yeah I'm getting a little tired of naming clashes. > import std.foo; > import std.bar : doo; > > import std.foo; > import std.bar; > alias std.bar.doo doo; > > import std.foo; > static import std.bar; // woops, now we have to prepend std.bar >

Re: Curl wrapper round two

2011-06-22 Thread Johannes Pfau
jdrewsen wrote: >Den 21-06-2011 12:49, Johannes Pfau skrev: >> jdrewsen wrote: >>> Den 18-06-2011 22:36, jdrewsen skrev: Hi, I've finally got through all the very constructive comments from the last review of the curl wrapper and performed the needed changes. Here

Re: Curl wrapper round two

2011-06-22 Thread Johannes Pfau
jdrewsen wrote: >Den 21-06-2011 12:55, Johannes Pfau skrev: >> jdrewsen wrote: >>> Den 18-06-2011 22:36, jdrewsen skrev: Hi, I've finally got through all the very constructive comments from the last review of the curl wrapper and performed the needed changes. Here

Re: DIP11: Automatic downloading of libraries

2011-06-22 Thread Jacob Carlborg
On 2011-06-22 06:13, Nick Sabalausky wrote: "Jacob Carlborg" wrote in message news:itpn8m$1c1i$1...@digitalmars.com... "target" works like this: 1. You call "target" passing in the name of the target and a block 2. "target" then call the block passing in an instance of a Target class (or sim

Re: DIP11: Automatic downloading of libraries

2011-06-22 Thread Jacob Carlborg
On 2011-06-21 23:27, Byakkun wrote: On Tue, 21 Jun 2011 21:01:07 +0300, Jacob Carlborg wrote: On 2011-06-21 19:36, Jonathan M Davis wrote: On 2011-06-21 10:17, Jacob Carlborg wrote: Maybe I was a bit too harsh saying that std.benchmark maybe wasn't worth adding. On the other hand isn't this