Re: If you're on an Windows XP or Vista box and live in the U.S...

2011-03-24 Thread Nick Sabalausky
"Bekenn" wrote in message news:imhbne$30et$1...@digitalmars.com... > On 3/24/2011 3:59 PM, Nick Sabalausky wrote: >> Since MS no longer offers legitimate copies of XP > > Windows 7 Professional (and above) comes with a full license for XP in a > virtual machine. That's how I got my results abov

Re: If you're on an Windows XP or Vista box and live in the U.S...

2011-03-24 Thread Bekenn
On 3/24/2011 3:59 PM, Nick Sabalausky wrote: Since MS no longer offers legitimate copies of XP Windows 7 Professional (and above) comes with a full license for XP in a virtual machine. That's how I got my results above. Reference: http://www.microsoft.com/windows/virtual-pc/default.aspx

Re: [GSOC] more ideas

2011-03-24 Thread Kagamin
Jonathan M Davis Wrote: > I wouldn't think that the GPL would be a problem for build tools. It (and > LGPL) _is_ a problem for libraries, but you're not linking with tools or > generally doing anything with their code. You're just using them. Well, if Digital Mars doesn't plan to redistribute t

Re: If you're on an Windows XP or Vista box and live in the U.S...

2011-03-24 Thread Kagamin
Steven Schveighoffer Wrote: > OEM copies are not transferrable, but those will only work on the vendor's > BIOS key anyways. So they are "technically" transferrable to another > system with the same vendor, but I don't think the license officially > permits it. I think, OEM copy can be tra

Re: "body" keyword is unnecessary

2011-03-24 Thread Bekenn
On 3/24/2011 12:55 PM, Steven Schveighoffer wrote: I wouldn't mind it becoming a contextual keyword (like C#'s get and set inside properties). This is exactly what it should be.

Re: "body" keyword is unnecessary

2011-03-24 Thread Bekenn
On 3/24/2011 12:55 PM, Steven Schveighoffer wrote: But I don't know that it's so terrible to have it as a keyword. Clearly there was a "free keyword love" period in D's past, but I think it takes a lot more than just "we could technically do this without a keyword" to remove it from the language.

Re: Factually inaccurate review of TDPL on Amazon

2011-03-24 Thread Andrei Alexandrescu
On 3/24/11 9:48 PM, Adrian Mercieca wrote: On Wed, 23 Mar 2011 08:15:14 -0700, Andrei Alexandrescu wrote: There's some odd review of TDPL on amazon.com that claims that (a) gdc only supports D1 and (b) dmd is "too expensive for students". Sigh. I'd appreciate it if you guys commented in respon

Re: [GSoC] RFC: Thrift project proposal (draft)

2011-03-24 Thread Robert Jacques
On Thu, 24 Mar 2011 19:46:39 -0400, David Nadlinger wrote: Hi all, I am putting together a Google Summer of Code project proposal regarding the Apache Thrift idea (see the ideas page[1]), which I intend to officially submit as soon as the application period opens. You can find my first

Re: Factually inaccurate review of TDPL on Amazon

2011-03-24 Thread Adrian Mercieca
On Wed, 23 Mar 2011 08:15:14 -0700, Andrei Alexandrescu wrote: > There's some odd review of TDPL on amazon.com that claims that (a) gdc > only supports D1 and (b) dmd is "too expensive for students". Sigh. > > I'd appreciate it if you guys commented in response to that post (as > David Simcha did

Re: std.parallelism changes done

2011-03-24 Thread dsimcha
On 3/24/2011 10:21 PM, Sönke Ludwig wrote: Indeed this pattern solves the problem to wait for the completion of a specific task. It also avoids a huge potential of deadlocks that a general yield() that does not take a task would have. However, it will not solve the general problem of one task wai

Re: Pretty please: Named arguments

2011-03-24 Thread Andrew Wiley
On Thu, Mar 24, 2011 at 3:23 PM, Steven Schveighoffer wrote: > On Thu, 24 Mar 2011 10:33:28 -0400, Bruno Medeiros > wrote: > >> Well, now we go back to discussion of the discussion of whether one thinks >> it's worthwhile to use and IDE or not (for general development, not just >> code reviews).

Re: std.parallelism changes done

2011-03-24 Thread dsimcha
On 3/24/2011 10:31 PM, Sönke Ludwig wrote: Well what can I say.. things can become more complex and you cannot always say this is parallelism and this is concurrency ore something. It's just nice when the libary does not get in the way when you are in a situation where eg. throughput and responsi

Re: std.parallelism changes done

2011-03-24 Thread Sönke Ludwig
Am 25.03.2011 02:51, schrieb dsimcha: On 3/24/2011 9:15 PM, Sönke Ludwig wrote: Am 24.03.2011 13:03, schrieb Michel Fortin: On 2011-03-24 03:00:01 -0400, Sönke Ludwig said: Am 24.03.2011 05:32, schrieb dsimcha: In addition to improving the documentation, I added Task.executeInNewThread() to

Re: std.parallelism changes done

2011-03-24 Thread Sönke Ludwig
Am 25.03.2011 02:17, schrieb dsimcha: On 3/24/2011 9:05 PM, Sönke Ludwig wrote: This may not be an issue in the std.parallelism design. A TaskPool task can safely wait on other tasks. What prevents this from causing a deadlock is that calling yieldForce, spinForce, or waitForce on a task that ha

Re: [GSOC] more ideas

2011-03-24 Thread Trass3r
Am 25.03.2011, 00:52 Uhr, schrieb Iain Buclaw : == Quote from Trass3r (u...@known.com)'s article I don't want to edit the ideas wiki page without getting another opinion, so what about: - helping with getting dmd produce x64 code on Windows. To quote Walter: "To do 64 bits on Windows requires:

Re: "body" keyword is unnecessary

2011-03-24 Thread Ary Manzana
On 3/24/11 4:02 AM, Bekenn wrote: Interestingly, you don't even have to remove "body" from the syntax to remove it as a keyword, as it's only used in this context (that I know of), where no other symbols make sense. And oh so many keywords could be removed from the language if the compiler is

Re: std.parallelism changes done

2011-03-24 Thread dsimcha
On 3/24/2011 9:15 PM, Sönke Ludwig wrote: Am 24.03.2011 13:03, schrieb Michel Fortin: On 2011-03-24 03:00:01 -0400, Sönke Ludwig said: Am 24.03.2011 05:32, schrieb dsimcha: In addition to improving the documentation, I added Task.executeInNewThread() to allow Task to be useful without a Task

Re: std.parallelism changes done

2011-03-24 Thread Sönke Ludwig
Am 24.03.2011 13:03, schrieb Michel Fortin: On 2011-03-24 03:00:01 -0400, Sönke Ludwig said: Am 24.03.2011 05:32, schrieb dsimcha: In addition to improving the documentation, I added Task.executeInNewThread() to allow Task to be useful without a TaskPool. (Should this have a less verbose name

Re: std.parallelism changes done

2011-03-24 Thread dsimcha
On 3/24/2011 9:05 PM, Sönke Ludwig wrote: This may not be an issue in the std.parallelism design. A TaskPool task can safely wait on other tasks. What prevents this from causing a deadlock is that calling yieldForce, spinForce, or waitForce on a task that has not started executing yet will execut

Re: std.parallelism changes done

2011-03-24 Thread Sönke Ludwig
Am 24.03.2011 14:25, schrieb dsimcha: On 3/24/2011 3:00 AM, Sönke Ludwig wrote: Am 24.03.2011 05:32, schrieb dsimcha: In addition to improving the documentation, I added Task.executeInNewThread() to allow Task to be useful without a TaskPool. (Should this have a less verbose name?) The thread

Re: std.parallelism changes done

2011-03-24 Thread dsimcha
On 3/24/2011 1:34 PM, spir wrote: On 03/24/2011 05:32 PM, bearophile wrote: I tried to keep it as consistent as possible with std.algorithm. OK. Then the question is why std.algorithm uses normal strings instead of q{} ones. And regarding consistency with std.algorithm, a more important factor

Re: Strategies for resolving cyclic dependencies in static ctors

2011-03-24 Thread Graham St Jack
On 25/03/11 06:09, Steven Schveighoffer wrote: On Thu, 24 Mar 2011 00:17:03 -0400, Graham St Jack wrote: Regarding unit tests - I have never been a fan of putting unit test code into the modules being tested because: * Doing so introduces stacks of unnecessary imports, and bloats the module.

[GSoC] RFC: Thrift project proposal (draft)

2011-03-24 Thread David Nadlinger
Hi all, I am putting together a Google Summer of Code project proposal regarding the Apache Thrift idea (see the ideas page[1]), which I intend to officially submit as soon as the application period opens. You can find my first draft at http://klickverbot.at/code/gsoc/thrift/. While I would

Re: [GSOC] more ideas

2011-03-24 Thread Iain Buclaw
== Quote from Trass3r (u...@known.com)'s article > I don't want to edit the ideas wiki page without getting another opinion, > so what about: > - helping with getting dmd produce x64 code on Windows. > To quote Walter: > "To do 64 bits on Windows requires: > 1. 64 bit OMF > 2. 64 bit librarian > 3.

Re: [GSOC] more ideas

2011-03-24 Thread dsimcha
On 3/24/2011 7:26 PM, Jonathan M Davis wrote: On 2011-03-24 15:04:45, David Nadlinger wrote: On 3/24/11 10:31 PM, Kagamin wrote: The first step would be to examine if MinGW's tools could be used. No way. They're GPL. So? I wouldn't think that the GPL would be a problem for build tools. It

Re: "body" keyword is unnecessary

2011-03-24 Thread Jonathan M Davis
On 2011-03-24 16:23:40, Andrej Mitrovic wrote: > On 3/24/11, Jonathan M Davis wrote: > > Now, string is pretty bad on the whole, but then again, there are plenty > > of cases where you just don't care about what a string is for. > > You don't care now, but you'll care later when its time to fix a

Re: If you're on an Windows XP or Vista box and live in the U.S...

2011-03-24 Thread Steven Schveighoffer
On Thu, 24 Mar 2011 18:59:16 -0400, Nick Sabalausky wrote: "Steven Schveighoffer" wrote in message news:op.vsvckfcpeav7ka@steve-laptop... On Thu, 24 Mar 2011 18:02:05 -0400, Jonathan M Davis wrote: Given that the other posts list XP with having 23:00 on the day before rather than at 00:0

Re: If you're on an Windows XP or Vista box and live in the U.S...

2011-03-24 Thread Nick Sabalausky
"dsimcha" wrote in message news:imgjhb$1ort$1...@digitalmars.com... > On 3/24/2011 6:59 PM, Nick Sabalausky wrote: >> Windows licenses are non-transferable > > Apparently Microsoft has never heard of the First-Sale Doctrine. > (http://en.wikipedia.org/wiki/First_Sale_Doctrine) WTF That's t

Re: [GSOC] more ideas

2011-03-24 Thread Jonathan M Davis
On 2011-03-24 15:04:45, David Nadlinger wrote: > On 3/24/11 10:31 PM, Kagamin wrote: > >> The first step would be to examine if MinGW's tools could be used. > > > > No way. They're GPL. > > So? I wouldn't think that the GPL would be a problem for build tools. It (and LGPL) _is_ a problem for li

Re: "body" keyword is unnecessary

2011-03-24 Thread Andrej Mitrovic
On 3/24/11, Jonathan M Davis wrote: > Now, string is pretty bad on the whole, but then again, there are plenty of > cases where you just don't care about what a string is for. You don't care now, but you'll care later when its time to fix a bug. Sometimes, its obvious what a name is by looking at

Re: If you're on an Windows XP or Vista box and live in the U.S...

2011-03-24 Thread dsimcha
On 3/24/2011 6:59 PM, Nick Sabalausky wrote: Windows licenses are non-transferable Apparently Microsoft has never heard of the First-Sale Doctrine. (http://en.wikipedia.org/wiki/First_Sale_Doctrine) WTF

Re: If you're on an Windows XP or Vista box and live in the U.S...

2011-03-24 Thread Nick Sabalausky
"Steven Schveighoffer" wrote in message news:op.vsvckfcpeav7ka@steve-laptop... > On Thu, 24 Mar 2011 18:02:05 -0400, Jonathan M Davis > wrote: > >> Given that the other posts list XP with having 23:00 on the day before >> rather >> than at 00:00 for the dates in the middle, it looks like XP ha

Re: If you're on an Windows XP or Vista box and live in the U.S...

2011-03-24 Thread Jonathan M Davis
> Given that the other posts list XP with having 23:00 on the day before > rather than at 00:00 for the dates in the middle, it looks like XP has the > same behavior as XP. Ouch. Wasn't that profound. I meant that "it looks like XP has the same behaviour as _Windows 7." - Jonathan M Davis

Re: "body" keyword is unnecessary

2011-03-24 Thread Jonathan M Davis
> I definitely had "in" as a problem. Its because some people like to > use that in C code. (Qt being the most recent example). > > I've also had issues with "string". That one can be common in C code. > Its a pretty bad habit of naming your variables for what type they are > instead of their purp

Re: If you're on an Windows XP or Vista box and live in the U.S...

2011-03-24 Thread Steven Schveighoffer
On Thu, 24 Mar 2011 18:02:05 -0400, Jonathan M Davis wrote: Given that the other posts list XP with having 23:00 on the day before rather than at 00:00 for the dates in the middle, it looks like XP has the same behavior as XP. However, it looks like whatever time zone you have your computer

Re: More than one main

2011-03-24 Thread Jonathan M Davis
> Jonathan M Davis: > > But honestly, what you're trying to do just strikes me as plain weird. > > Maybe it's a typical thing to do in scripting languages, but it > > definitely isn't in compiled languages. > > It's very common in well designed Python modules. Probably you don't see it > in compil

Re: std.parallelism changes done

2011-03-24 Thread Jonathan M Davis
> On 3/24/2011 8:35 AM, spir wrote: > > On 03/24/2011 05:32 AM, dsimcha wrote: > >> [...] > >> > >> The new docs are at > >> http://cis.jhu.edu/~dsimcha/d/phobos/std_parallelism.html . > > > > About the doc: very good. I could understand most of it, while knowing > > nearly nothing about parallel

Re: [GSOC] more ideas

2011-03-24 Thread Simon
On 24/03/2011 21:35, Jacob Carlborg wrote: On 2011-03-24 22:16, Simon wrote: On 24/03/2011 19:39, Vladimir Panteleev wrote: On Thu, 24 Mar 2011 20:54:56 +0200, Trass3r wrote: I don't want to edit the ideas wiki page without getting another opinion, so what about: Me too - how about an imag

Re: [GSOC] more ideas

2011-03-24 Thread David Nadlinger
On 3/24/11 10:31 PM, Kagamin wrote: The first step would be to examine if MinGW's tools could be used. No way. They're GPL. So? David

Re: If you're on an Windows XP or Vista box and live in the U.S...

2011-03-24 Thread Jonathan M Davis
> I have no idea which 3 of the 4 continental US time zones you consider the > "primary" ones, but I'm in Cleveland, which is the Eastern time zone (and > the same as New York). I have no idea if it's currently daylight savings > time or not - I can never remember which is which (But I do know we >

Re: [GSOC] more ideas

2011-03-24 Thread Jacob Carlborg
On 2011-03-24 22:16, Simon wrote: On 24/03/2011 19:39, Vladimir Panteleev wrote: On Thu, 24 Mar 2011 20:54:56 +0200, Trass3r wrote: I don't want to edit the ideas wiki page without getting another opinion, so what about: Me too - how about an image library? Being able to load/save popular i

Re: [GSOC] more ideas

2011-03-24 Thread Kagamin
Trass3r Wrote: > 1. 64 bit OMF > 2. 64 bit librarian > 3. 64 bit generating dmd > 4. 64 bit C compiler > 5. 64 bit symbolic debug info > 6. 64 bit debugger > 7. 64 bit C runtime" > > The first step would be to examine if MinGW's tools could be used. No way. They're GPL. > GDC and LDC theoretica

Re: More than one main

2011-03-24 Thread Kagamin
bearophile Wrote: > I have explained Walter why that's not good: > http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=132693 > Specific tasks are done with specific tools. If such a tool is adopted there will be no discrepancy.

Re: If you're on an Windows XP or Vista box and live in the U.S...

2011-03-24 Thread Nick Sabalausky
I have no idea which 3 of the 4 continental US time zones you consider the "primary" ones, but I'm in Cleveland, which is the Eastern time zone (and the same as New York). I have no idea if it's currently daylight savings time or not - I can never remember which is which (But I do know we recent

Re: [GSOC] more ideas

2011-03-24 Thread Simon
On 24/03/2011 19:39, Vladimir Panteleev wrote: On Thu, 24 Mar 2011 20:54:56 +0200, Trass3r wrote: I don't want to edit the ideas wiki page without getting another opinion, so what about: Me too - how about an image library? Being able to load/save popular image formats from/to RGB pixel arra

Re: Strategies for resolving cyclic dependencies in static ctors

2011-03-24 Thread Nick Sabalausky
"Graham St Jack" wrote in message news:imem32$o4d$1...@digitalmars.com... > > I would be interested to hear some success stories for the > unittest-keyword approach. So far I can't see any up-side. > If it weren't for the unittests working the way they do, I probably never would have gotten ar

Re: "body" keyword is unnecessary

2011-03-24 Thread Andrej Mitrovic
I definitely had "in" as a problem. Its because some people like to use that in C code. (Qt being the most recent example). I've also had issues with "string". That one can be common in C code. Its a pretty bad habit of naming your variables for what type they are instead of their purpose. I guess

Re: More than one main

2011-03-24 Thread bearophile
Kagamin: > you can switch on version matching the module name, or something similar that > will be easy to switch in a makefile. > > module modu; > version(modu) > void main() > { > //... > } I have explained Walter why that's not good: http://www.digitalmars.com/webnews/newsgroups.php?art_gr

Re: "body" keyword is unnecessary

2011-03-24 Thread Nick Sabalausky
"Sönke Ludwig" wrote in message news:imeqnd$12ss$1...@digitalmars.com... > I'm all for this change. > > Since there are already similar differences between 1.0 and 2.0 (e.g. > invariant()) and projects can be fixed by a more or less simple search and > replace, this would be a cheap way to clea

Re: Pretty please: Named arguments

2011-03-24 Thread Steven Schveighoffer
On Thu, 24 Mar 2011 10:33:28 -0400, Bruno Medeiros wrote: Well, now we go back to discussion of the discussion of whether one thinks it's worthwhile to use and IDE or not (for general development, not just code reviews). I don't want to go into this discussion again, at least not now so so

Re: "body" keyword is unnecessary

2011-03-24 Thread Steven Schveighoffer
On Wed, 23 Mar 2011 18:17:32 -0400, Alvaro wrote: D already has a long list of keywords, reserved words can't be used as identifiers, which can be annoying. "body" in particular is a common noun that programmers would gladly use as a variable name in physics simulation, astronomy, mechan

Re: Library Development: What to finish/flesh out?

2011-03-24 Thread dsimcha
== Quote from Sean Kelly (s...@invisibleduck.org)'s article > On Mar 17, 2011, at 11:56 PM, Don wrote: > > dsimcha wrote: > >> I've accumulated a bunch of little libraries via various evening and > weekend > >> hacking projects over the past year or so, in various states of > completion. > >> Most

Re: More than one main

2011-03-24 Thread Kagamin
bearophile Wrote: > Kagamin: > > > unittests should be able to be a demo code for the module. Sometimes they > > say that unittests do demonstrate, how the module should work.< > > For me the code inside unittests and the demo code inside the main (and the > functions called just by the main)

Re: Library Development: What to finish/flesh out?

2011-03-24 Thread dsimcha
== Quote from Sean Kelly (s...@invisibleduck.org)'s article > On Mar 17, 2011, at 11:56 PM, Don wrote: > > dsimcha wrote: > >> I've accumulated a bunch of little libraries via various evening and > weekend > >> hacking projects over the past year or so, in various states of > completion. > >> Most

Re: Strategies for resolving cyclic dependencies in static ctors

2011-03-24 Thread Steven Schveighoffer
On Thu, 24 Mar 2011 00:17:03 -0400, Graham St Jack wrote: Regarding unit tests - I have never been a fan of putting unit test code into the modules being tested because: * Doing so introduces stacks of unnecessary imports, and bloats the module. As Jonathan says, version(unittest) works.

Re: [GSOC] more ideas

2011-03-24 Thread Vladimir Panteleev
On Thu, 24 Mar 2011 20:54:56 +0200, Trass3r wrote: I don't want to edit the ideas wiki page without getting another opinion, so what about: Me too - how about an image library? Being able to load/save popular image formats from/to RGB pixel arrays would be a great start, with everything

Re: Library Development: What to finish/flesh out?

2011-03-24 Thread Sean Kelly
On Mar 17, 2011, at 11:56 PM, Don wrote: > dsimcha wrote: >> I've accumulated a bunch of little libraries via various evening and weekend >> hacking projects over the past year or so, in various states of completion. >> Most are things I'm at least half-considering for Phobos, though some belong >

Re: More than one main

2011-03-24 Thread bearophile
Walter: > rdmd takes command line switches, which you can use to set the version for > which > main you want. You are missing the point still, I was talking about a single standard version that works in all cases. Here is an example. I have a project (program) P, it contains many modules, its

Re: GSOC 2011

2011-03-24 Thread Luca Boasso
Hello, I'm new in the D community so I don't have a fully understanding of the short term needs of the community itself. After reading the posts at [http://www.digitalmars.com/d/archives/digitalmars/D/ide/Future_of_Descent_and_D_Eclipse_IDE_635.html] I agree with Bruno that an ANTLR parser could b

Re: If you're on an Windows XP or Vista box and live in the U.S...

2011-03-24 Thread Walter Bright
On 3/23/2011 11:27 PM, Jonathan M Davis wrote: If you're on an Windows XP box and live in the continental U.S., I'd very much appreciate if you could run this program and post the output: XP: 1999-Mar-01 00:00:00 1999-Mar-08 00:00:00 1999-Mar-14 00:00:00 1999-Mar-14 01:00:00 1999-Mar-14 01:00:

[GSOC] more ideas

2011-03-24 Thread Trass3r
I don't want to edit the ideas wiki page without getting another opinion, so what about: - helping with getting dmd produce x64 code on Windows. To quote Walter: "To do 64 bits on Windows requires: 1. 64 bit OMF 2. 64 bit librarian 3. 64 bit generating dmd 4. 64 bit C compiler 5. 64 bit sym

Re: More than one main

2011-03-24 Thread Walter Bright
On 3/24/2011 11:47 AM, bearophile wrote: I too have suggested to use the version() statement, but My_Demo is not a _standard_ version generated automatically by tools like rdmd. In a project you usually use many modules, and some of them have demo code in their main. If you use rdmd or similar to

Re: More than one main

2011-03-24 Thread bearophile
Jonathan M Davis: > But honestly, what you're trying to do just strikes me as plain weird. Maybe > it's a typical thing to do in scripting languages, but it definitely isn't in > compiled languages. It's very common in well designed Python modules. Probably you don't see it in compiled languages

Re: More than one main

2011-03-24 Thread Walter Bright
On 3/24/2011 4:07 AM, bearophile wrote: I receive an error like: OPTLINK (R) for Win32 Release 8.00.12 Copyright (C) Digital Mars 1989-2010 All rights reserved. http://www.digitalmars.com/ctg/optlink.html ... Offset 00137H Record Type 00C3 Error 1: Previous Definition Different : __Dmain ---

Re: [GSOC] Database API

2011-03-24 Thread Trass3r
Has this idea/project been assigned a mentor? I'd like to ask them and the list, what's the best thing for me to do right now to prepare for this? You could also have a look at http://dsource.org/projects/ddbi This shows some past efforts to create database interfaces.

[GSOC] Database API

2011-03-24 Thread Christian Manning
Hi, I'm a second year student at De Montfort University studying Computer Science. I am very much interested in working on the database API idea that is proposed at http://prowiki.org/wiki4d/wiki.cgi?GSOC_2011_Ideas#DatabaseAPI (I was also quite interested in the containers idea, but it looks

Re: std.parallelism changes done

2011-03-24 Thread dsimcha
== Quote from spir (denis.s...@gmail.com)'s article > On 03/24/2011 06:04 PM, dsimcha wrote: > > Hmm, you do have a point there. Two reasons: > > > > 1. map() was there first and at the time I didn't feel like renaming it. > > > > 2. I think map() is much more frequently useful than lazyMap() an

Re: std.parallelism changes done

2011-03-24 Thread dsimcha
== Quote from Russel Winder (rus...@russel.org.uk)'s article > Is there actually any point in having a lazy parallel map? It's for pipelining. Please read the API documentation for details about how it works. It's actually only semi-lazy. > > > Unfortunately I don't have access to this kind of

Re: "body" keyword is unnecessary

2011-03-24 Thread piotrek
On Fri, 25 Mar 2011 00:50:56 +0800, KennyTM~ wrote: > On Mar 24, 11 22:25, piotrek wrote: >> On Thu, 24 Mar 2011 21:37:12 +0800, KennyTM~ wrote: >> >>> On Mar 24, 11 19:00, sclytrack wrote: == Quote from piotrek (star...@tlen.pl)'s article > On Wed, 23 Mar 2011 23:17:32 +0100, Alvaro wrot

Re: std.parallelism changes done

2011-03-24 Thread Russel Winder
On Thu, 2011-03-24 at 12:32 -0400, bearophile wrote: > dsimcha: > > > I tried to keep it as consistent as possible with std.algorithm. > > OK. Then the question is why std.algorithm uses normal strings instead of q{} > ones. Actually the question why user strings at all, why not have a lambda f

Re: std.parallelism changes done

2011-03-24 Thread spir
On 03/24/2011 06:04 PM, dsimcha wrote: Hmm, you do have a point there. Two reasons: 1. map() was there first and at the time I didn't feel like renaming it. 2. I think map() is much more frequently useful than lazyMap() and name verbosity should be inversely proportional to usage frequency.

Re: std.parallelism changes done

2011-03-24 Thread spir
On 03/24/2011 05:32 PM, bearophile wrote: I tried to keep it as consistent as possible with std.algorithm. OK. Then the question is why std.algorithm uses normal strings instead of q{} ones. And regarding consistency with std.algorithm, a more important factor is that std.algorithm.map is laz

Re: Free Software needs Free Documentation

2011-03-24 Thread spir
On 03/24/2011 04:58 PM, Daniel Gibson wrote: Am 24.03.2011 16:22, schrieb Don: spir wrote: http://www.gnu.org/philosophy/free-doc.html I think this applies directly to D2. Note: this post is no offence to Andrei's great work. Just a report we /also/ need a free/copyleft D2 manual; or that TDP

Re: std.parallelism changes done

2011-03-24 Thread bearophile
dsimcha: > 2. I think map() is much more frequently useful than lazyMap() and name > verbosity > should be inversely proportional to usage frequency. I agree, but I have suggested to replace "map" => "amap" and "lazyMap" => "map" (and to add a fully eager amap to std.algorithm). The increase o

Re: More than one main

2011-03-24 Thread Jonathan M Davis
> I have discussed this is little problem about three years ago; in the > meantime the situation is changed (rdmd has appeared, DMD has grown the > -deps switch, etc). > > I have a little module named "modu": > > module modu; > import std.stdio; > int foo() { > return 0; > } > int main() { >

Re: std.parallelism changes done

2011-03-24 Thread dsimcha
== Quote from bearophile (bearophileh...@lycos.com)'s article > dsimcha: > > I tried to keep it as consistent as possible with std.algorithm. > OK. Then the question is why std.algorithm uses normal strings instead of q{} > ones. I personally think "" strings look nicer for simple cases like "a +

Re: is expression: library reference

2011-03-24 Thread Jonathan M Davis
> The library refernce has the following text concerning the is expression: > > 5. is ( Type Identifier : TypeSpecialization ) > > The condition is satisfied if Type is the same as TypeSpecialization, or if > Type is a class and TypeSpecialization is a base class or base interface of > it. The Id

Re: "body" keyword is unnecessary

2011-03-24 Thread KennyTM~
On Mar 24, 11 22:25, piotrek wrote: On Thu, 24 Mar 2011 21:37:12 +0800, KennyTM~ wrote: On Mar 24, 11 19:00, sclytrack wrote: == Quote from piotrek (star...@tlen.pl)'s article On Wed, 23 Mar 2011 23:17:32 +0100, Alvaro wrote: D already has a long list of keywords, reserved words can't be use

Re: More than one main

2011-03-24 Thread bearophile
spir: >Very annoying esp. during development since running unittests on a module, or >set of modules, requires a main() func.< This is not so bad, because rdmd has a --main switch. >* the linker automatically adds an empty main() to the first module if needed< The linker probably has zero kno

Re: Purity

2011-03-24 Thread bearophile
Bruno Medeiros: > I think that the concession that pure will be allowed to allocate memory > does inescapably remove some of the guarantees that pure functions offer > (like that one that the return value depends only on the arguments). > One possible fix to this would be to say that the allocat

Re: "body" keyword is unnecessary

2011-03-24 Thread piotrek
On Thu, 24 Mar 2011 16:04:25 +0100, Don wrote: > piotrek wrote: >> On Thu, 24 Mar 2011 21:37:12 +0800, KennyTM~ wrote: >> >>> On Mar 24, 11 19:00, sclytrack wrote: == Quote from piotrek (star...@tlen.pl)'s article > On Wed, 23 Mar 2011 23:17:32 +0100, Alvaro wrote: >> D already has a

Re: std.parallelism changes done

2011-03-24 Thread bearophile
dsimcha: > I tried to keep it as consistent as possible with std.algorithm. OK. Then the question is why std.algorithm uses normal strings instead of q{} ones. And regarding consistency with std.algorithm, a more important factor is that std.algorithm.map is lazy, while you have a eager map, a

Re: Interested in a GSoC project idea

2011-03-24 Thread %u Ishan Thilina
== Repost the article of Jens Mueller (jens.k.muel...@gmx.de) == Posted at 2011/03/22 05:48 to digitalmars.D %u Ishan Thilina wrote: >> Well, The biggest question in my mind is that how many container types >> that I should implement? >Sorry to answer with a question: In which are you interested?

Re: Free Software needs Free Documentation

2011-03-24 Thread Vladimir Panteleev
On Thu, 24 Mar 2011 17:22:10 +0200, Don wrote: I would say that what we really need is tutorials, rather than a refernce work. Most urgently we need to make sure that the existing tutorials that contain errors or refer to obsolete/removed features, get pulled down. Something of interest:

Re: Free Software needs Free Documentation

2011-03-24 Thread Daniel Gibson
Am 24.03.2011 16:22, schrieb Don: spir wrote: http://www.gnu.org/philosophy/free-doc.html I think this applies directly to D2. Note: this post is no offence to Andrei's great work. Just a report we /also/ need a free/copyleft D2 manual; or that TDPL's content becomes free in a short while. Eve

Re: Against enforce()

2011-03-24 Thread Jonathan M Davis
> So how do you solve the problem? > > - > > > > This is a good example of why it's difficult to decide what "user > > > input" is. One could consider that the 'user' in this case is the > > > developer using the library, but I don't think that's the right > > > choice. > > > > > > I'd

Re: std.parallelism changes done

2011-03-24 Thread dsimcha
On 3/24/2011 11:00 AM, Michel Fortin wrote: What it adds is a task pool, where you have a fixed number of threads for an unlimited number of tasks. Spawning 10,000 threads because you have 10,000 parallelizable tasks generally isn't a good idea. That said, perhaps std.concurrency's "spawn" sh

Re: Free Software needs Free Documentation

2011-03-24 Thread Don
spir wrote: http://www.gnu.org/philosophy/free-doc.html I think this applies directly to D2. Note: this post is no offence to Andrei's great work. Just a report we /also/ need a free/copyleft D2 manual; or that TDPL's content becomes free in a short while. Even more since TDPL was kind of a p

Re: Free Software needs Free Documentation

2011-03-24 Thread Andrej Mitrovic
So write some documentation then. We don't need any more philosophical topics on what should/should not be done.

Free Software needs Free Documentation

2011-03-24 Thread spir
http://www.gnu.org/philosophy/free-doc.html I think this applies directly to D2. Note: this post is no offence to Andrei's great work. Just a report we /also/ need a free/copyleft D2 manual; or that TDPL's content becomes free in a short while. Even more since TDPL was kind of a premature publ

Re: GSOC 2011

2011-03-24 Thread Bruno Medeiros
On 24/03/2011 04:30, Andrei Alexandrescu wrote: On 3/23/11 11:42 AM, Luca Boasso wrote: Sorry for the late reply, even tough I'm not an ANTLR expert, given my previous experience with the tool and having read most of the official book, I could help more on this GSOC idea. I have looked at http:

Re: "body" keyword is unnecessary

2011-03-24 Thread Don
piotrek wrote: On Thu, 24 Mar 2011 21:37:12 +0800, KennyTM~ wrote: On Mar 24, 11 19:00, sclytrack wrote: == Quote from piotrek (star...@tlen.pl)'s article On Wed, 23 Mar 2011 23:17:32 +0100, Alvaro wrote: D already has a long list of keywords, reserved words can't be used as identifiers, whi

Re: std.parallelism changes done

2011-03-24 Thread Michel Fortin
On 2011-03-24 10:43:08 -0400, dsimcha said: Sounds like a good plan. In general, I've tried to keep the design of std.parallelism simple but composable. I have no intention of re-implementing any kind of message system when std.concurrency already does this well. If this is what you want t

Re: std.parallelism changes done

2011-03-24 Thread dsimcha
On 3/24/2011 10:34 AM, Michel Fortin wrote: One thing I'd want to be sure however is that you can use a parallel foreach from within a task. So if you have one or two tasks that could benefit from data parallelism it won't bring the whole system down. From the API I don't think it'll be a proble

Re: std.parallelism changes done

2011-03-24 Thread Michel Fortin
On 2011-03-24 09:46:01 -0400, dsimcha said: Please review the changes carefully, then, because this is a use case I know next to nothing about and didn't design for. Well, it's practically the same thing except you never want to execute a task in the main thread, because the main thread acts

Re: Pretty please: Named arguments

2011-03-24 Thread Bruno Medeiros
On 24/03/2011 06:36, Bekenn wrote: On 3/23/2011 9:12 AM, Bruno Medeiros wrote: Now that is an argument. Although I still don't agree: it really shouldn't take that long to setup an IDE (if Netbeans and/or its PHP plugin are crappy, don't use that to blame all IDEs :P ). But in any case this is

Re: "body" keyword is unnecessary

2011-03-24 Thread piotrek
On Thu, 24 Mar 2011 21:37:12 +0800, KennyTM~ wrote: > On Mar 24, 11 19:00, sclytrack wrote: >> == Quote from piotrek (star...@tlen.pl)'s article >>> On Wed, 23 Mar 2011 23:17:32 +0100, Alvaro wrote: D already has a long list of keywords, reserved words can't be used as identifiers, which

Re: More than one main

2011-03-24 Thread Jacob Carlborg
On 2011-03-24 14:05, spir wrote: On 03/24/2011 12:07 PM, bearophile wrote: I have discussed this is little problem about three years ago; in the meantime the situation is changed (rdmd has appeared, DMD has grown the -deps switch, etc). I have a little module named "modu": module modu; import

Re: More than one main

2011-03-24 Thread Kagamin
bearophile Wrote: > I put in their main() some demo code that shows what this module does (and a > main is useful to run unittests too, rdmd has the --main switch for this). > Most of my Python modules have such demo main code, that runs only if you run > them as main modules. > unittests sho

Re: std.parallelism changes done

2011-03-24 Thread dsimcha
On 3/24/2011 8:03 AM, Michel Fortin wrote: On 2011-03-24 03:29:52 -0400, Sönke Ludwig said: Hm depending on the way the pool is used, it might be a better default to have the number of threads equal the number of cpu cores. In my experience the control thread is mostly either waiting for tasks

  1   2   >