Re: Digital Mars has been accepted for Google Summer of Code 2011

2011-03-23 Thread Bruno Medeiros
On 18/03/2011 20:01, Andrei Alexandrescu wrote: We have just got word from Google - Digital Mars has been accepted as a mentoring organization for Google Summer of Code 2011. Thanks to Trass3r for bringing up this idea, to Jens Mueller for reiterating it, and to the people who added to the

Re: Digital Mars has been accepted for Google Summer of Code 2011

2011-03-23 Thread Andrei Alexandrescu
On 3/23/11 7:19 AM, Don wrote: Andrei Alexandrescu wrote: We have just got word from Google - Digital Mars has been accepted as a mentoring organization for Google Summer of Code 2011. Thanks to Trass3r for bringing up this idea, to Jens Mueller for reiterating it, and to the people who added

Mentors sought for GsoC 2011

2011-03-23 Thread Andrei Alexandrescu
Walter and I will be mentors for students participating to GsoC 2011. It's quite likely more mentors will be needed. Please read on if you are interested in becoming a mentor. Requirements include solid experience in the industry/academia and good knowledge of D. Participants to dmd and

Re: Release: GDC for Windows

2011-03-23 Thread Jérôme M. Berger
dsimcha wrote: On 3/22/2011 8:22 PM, Daniel Green wrote: D2 has been released for testing. Now in a zip file. https://bitbucket.org/goshawk/gdc/downloads gcc-4.5.1-tdm-1-gdc-r499-20110322.zip From here on out, D1 and D2 will be combined into a single release. Since D1 appears more stable

Re: Release: GDC for Windows

2011-03-23 Thread dsimcha
On 3/23/2011 3:46 PM, Jérôme M. Berger wrote: dsimcha wrote: On 3/22/2011 8:22 PM, Daniel Green wrote: D2 has been released for testing. Now in a zip file. https://bitbucket.org/goshawk/gdc/downloads gcc-4.5.1-tdm-1-gdc-r499-20110322.zip From here on out, D1 and D2 will be combined into a

Re: Release: GDC for Windows

2011-03-23 Thread Daniel Green
On 3/23/2011 7:15 PM, dsimcha wrote: Ok, did that and moved the GDC binaries into the bin/ directory of this installation. Now, I get: gdc.exe: CreateProcess: No such file or directory Did you move any of the files in libexec? You may want to extract the zip file to your TDM installation.

Re: Release: GDC for Windows

2011-03-23 Thread Andrej Mitrovic
I think you need to add GDC's /bin to path.

Re: likely keyword for D?

2011-03-23 Thread Peter Alexander
On 23/03/11 4:59 AM, %u wrote: I just thought of a (crazy) idea: Should D implement a likely keyword for if statements? Something like: if likely (x == 2) { //do something } This would allow the compiler to generate branch prediction code for the program, allowing the programmer to

Re: likely keyword for D?

2011-03-23 Thread Don
Peter Alexander wrote: On 23/03/11 4:59 AM, %u wrote: I just thought of a (crazy) idea: Should D implement a likely keyword for if statements? Something like: if likely (x == 2) { //do something } This would allow the compiler to generate branch prediction code for the program, allowing

Re: D Tools Special Interest Group (SIG)

2011-03-23 Thread bioinfornatics
They are my tool who generate makefille for make or ninja (need test it) - make: http://www.gnu.org/software/make/ - ninja: http://neugierig.org/software/chromium/notes/2011/02/ninja.html web page: http://gitorious.org/dmake/dmake wiki for dmake: http://gitorious.org/dmake/pages/Home dmake is

Re: [GSoC’11] Lexing and parsing

2011-03-23 Thread BlazingWhitester
On 2011-03-23 00:27:51 +0200, Ilya Pupatenko said: Hi, First of all, I want to be polite so I have to introduce myself (you can skip this paragraph if you feel tired of newcomer-students’ posts). My name is Ilya, I’m a Master student of IT department of Novosibirsk State University

Re: Anything in the review queue?

2011-03-23 Thread Don
dsimcha wrote: On 3/22/2011 1:25 AM, Don wrote: There are a few approaches we can take from here. One is to define certain traits that differentiate BigInt from other integrals (e.g. preferAdditionToMultiplication or whatnot), and then design Rational to use those traits. Another is of course

Re: Strategies for resolving cyclic dependencies in static ctors

2011-03-23 Thread Don
Graham St Jack wrote: On 23/03/11 15:12, Nick Sabalausky wrote: Graham St Jackgraham.stj...@internode.on.net wrote in message news:imbai9$2jb9$1...@digitalmars.com... My own solution to this problem is to never have circular imports at all. The build system I use prohibits them, so any

Re: Request for review: std.net.isemail

2011-03-23 Thread Jacob Carlborg
On 2011-03-22 23:21, dsimcha wrote: On 3/22/2011 6:04 PM, Jacob Carlborg wrote: I've now finished the port of Dominic Sayers' PHP is_email function (http://www.dominicsayers.com/isemail) and sending it for review. A few comments: * Due to limitations in std.regex some unit tests fail and are

Re: Request for review: std.net.isemail

2011-03-23 Thread Nick Sabalausky
Jacob Carlborg d...@me.com wrote in message news:imcgim$1sk4$1...@digitalmars.com... On 2011-03-22 23:21, dsimcha wrote: 3. What are EmailStatusCode.On and EmailStatusCode.Off? I had some problem figuring out how I wanted to solve this. In the PHP version the function takes a parameter,

Array expression for multi dimensional arrays

2011-03-23 Thread Madhav
Hi, I tried to do the following: auto arr = new int[2][2]; arr[] = 1; // using array expressions // The above gives - Error: cannot implicitly convert expression (1) of type int to const(int[2u][]) This was the first step to try out if array arithmetic that worked with single dimensional arrays

Re: D Tools Special Interest Group (SIG)

2011-03-23 Thread spir
On 03/23/2011 12:41 AM, Jonas Drewsen wrote: Hi, It seems that every now and then a discussion about build tools or D package management pops up in this group. Many people on this list have a huge amount of experience and knowledge in this area. Some has even created their own tools for D.

Re: Strategies for resolving cyclic dependencies in static ctors

2011-03-23 Thread spir
On 03/23/2011 12:12 AM, Graham St Jack wrote: Avoiding circularities has plenty of advantages, like progressive development, testing and integration. Maybe it depends on your app domain or whatnot; there are lots of cases, I guess, where circularities are inevitable, if not direct expression

Re: Array expression for multi dimensional arrays

2011-03-23 Thread spir
On 03/23/2011 12:01 PM, Madhav wrote: Hi, I tried to do the following: auto arr = new int[2][2]; arr[] = 1; // using array expressions // The above gives - Error: cannot implicitly convert expression (1) of type int to const(int[2u][]) This was the first step to try out if array arithmetic

Re: [GSoC’11] Lexing and parsing

2011-03-23 Thread spir
On 03/22/2011 11:27 PM, Ilya Pupatenko wrote: As I understand, the library should allow programmer to write grammar directly in D (ideally, the syntax should be somehow similar to EBNF) and the resulting parser will be generated by D compiler while compiling the program. This method allows

Re: Array expression for multi dimensional arrays

2011-03-23 Thread Madhav
== Quote from spir (denis.s...@gmail.com)'s article On 03/23/2011 12:01 PM, Madhav wrote: Hi, I tried to do the following: auto arr = new int[2][2]; arr[] = 1; // using array expressions // The above gives - Error: cannot implicitly convert expression (1) of type int to

Re: [GSoC’11] Lexing and parsing

2011-03-23 Thread spir
On 03/23/2011 05:39 AM, Robert Jacques wrote: On Tue, 22 Mar 2011 18:27:51 -0400, Ilya Pupatenko pupate...@gmail.com wrote: Hi, First of all, I want to be polite so I have to introduce myself (you can skip this paragraph if you feel tired of newcomer-students’ posts). My name is Ilya, I’m a

Re: Array expression for multi dimensional arrays

2011-03-23 Thread Don
Madhav wrote: == Quote from spir (denis.s...@gmail.com)'s article On 03/23/2011 12:01 PM, Madhav wrote: Hi, I tried to do the following: auto arr = new int[2][2]; arr[] = 1; // using array expressions // The above gives - Error: cannot implicitly convert expression (1) of type int to

Re: What To Do About Shared?

2011-03-23 Thread Jason House
dsimcha Wrote: Some discussions about std.parallelism have prompted an examination of how far D's guarantees against low level data races should extend and how safety and practicality should be balanced. I didn't follow the review of std.parallelism, can you give some specific examples?

Re: Anything in the review queue?

2011-03-23 Thread bearophile
Don: However, the other case which is interesting is when BigInt is replaced with FixedInt!n (maybe someone can come up with a better name for this?) -- an integer with a length of a fixed number of ints. Unlike BigInt, this has basically the same semantics as built-in integer types. In

Re: GSOC 2011

2011-03-23 Thread Bruno Medeiros
On 22/03/2011 17:47, Luca Boasso wrote: Hello, I am Luca and I am finishing my master in computer engineering. I am currently an intern at Panasonic in Cupertino. My great passion has been always programming language design and implementation and I am studying the D programming language. I

Re: Google Summer of Code 2011 application

2011-03-23 Thread Bruno Medeiros
On 09/03/2011 16:12, Andrej Mitrovic wrote: On 3/9/11, Bruno Medeirosbrunodomedeiros+spam@com.gmail wrote: but that requires compiling and using GDC, which apparently has a host of issues and problems as well; It doesn't have much building problems anymore. There's a couple of patches that

Re: What To Do About Shared?

2011-03-23 Thread dsimcha
On 3/23/2011 9:09 AM, Jason House wrote: dsimcha Wrote: Some discussions about std.parallelism have prompted an examination of how far D's guarantees against low level data races should extend and how safety and practicality should be balanced. I didn't follow the review of std.parallelism,

Re: D Tools Special Interest Group (SIG)

2011-03-23 Thread Jacob Carlborg
On 2011-03-23 00:41, Jonas Drewsen wrote: Hi, It seems that every now and then a discussion about build tools or D package management pops up in this group. Many people on this list have a huge amount of experience and knowledge in this area. Some has even created their own tools for D.

Re: GSOC 2011

2011-03-23 Thread Jesse Phillips
Bruno Medeiros Wrote: Of course, all of this is my personal opinion, and doesn't necessarily reflect the opinion of the rest of the community, or the D GSoC umbrella organization. If a student is really interested in learning more about language parsing and apply skills they have already

Re: Anything in the review queue?

2011-03-23 Thread Don
bearophile wrote: Don: However, the other case which is interesting is when BigInt is replaced with FixedInt!n (maybe someone can come up with a better name for this?) -- an integer with a length of a fixed number of ints. Unlike BigInt, this has basically the same semantics as built-in

Re: [GSoC’11] Lexing and parsing

2011-03-23 Thread Robert Jacques
On Wed, 23 Mar 2011 08:22:10 -0400, spir denis.s...@gmail.com wrote: On 03/23/2011 05:39 AM, Robert Jacques wrote: On Tue, 22 Mar 2011 18:27:51 -0400, Ilya Pupatenko pupate...@gmail.com wrote: Hi, First of all, I want to be polite so I have to introduce myself (you can skip this

Re: Purity

2011-03-23 Thread Bruno Medeiros
result1 ==On 11/02/2011 22:51, Simen kjaeraas wrote: Bruno Medeiros brunodomedeiros+spam@com.gmail wrote: In this code sample if the optimization is applied on the second call to func, it would cause different code with be executed: the else clause instead of the then clause. Obviously this is

Re: GSOC 2011

2011-03-23 Thread spir
On 03/23/2011 02:40 PM, Bruno Medeiros wrote: The first two items (LexingandParsing, ANTLRandJavabasedDparserforIDEusage) are fairly concrete ideas. The last one, D Tools in D is far more general, and can involve a lot of different things It is instead more specific: The aim is to boost the

Re: 64bit phobos on Windows?

2011-03-23 Thread Bruno Medeiros
On 19/02/2011 23:53, Nick Sabalausky wrote: But even though I hate Win7 (if I wanted my OS to be like OSX I'd still be using OSX - although it looks like http://classicshell.sourceforge.net; might fix some of my Win7 complaints), Linux still isn't quite to the point where I'm ready to switch to

Re: Uh... destructors?

2011-03-23 Thread Bruno Medeiros
On 09/03/2011 13:32, Steven Schveighoffer wrote: On Tue, 08 Mar 2011 18:33:31 -0500, Bruno Medeiros brunodomedeiros+spam@com.gmail wrote: I'm not saying all pointer arithmetic and manipulation should be illegal. It could be allowed, but only so long as the coder maintains the contract of the

Factually inaccurate review of TDPL on Amazon

2011-03-23 Thread Andrei Alexandrescu
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) and/or clicked the report abuse button. If enough clicks are

Re: Request for review: std.net.isemail

2011-03-23 Thread Jacob Carlborg
On 2011-03-23 11:46, Nick Sabalausky wrote: Jacob Carlborgd...@me.com wrote in message news:imcgim$1sk4$1...@digitalmars.com... On 2011-03-22 23:21, dsimcha wrote: 3. What are EmailStatusCode.On and EmailStatusCode.Off? I had some problem figuring out how I wanted to solve this. In the PHP

Re: Uh... destructors?

2011-03-23 Thread Bruno Medeiros
On 12/03/2011 20:21, Don wrote: Bruno Medeiros wrote: On 23/02/2011 17:47, Steven Schveighoffer wrote: On Wed, 23 Feb 2011 12:28:33 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 2/23/11 11:16 AM, Steven Schveighoffer wrote: Just because a function is not marked @safe

Re: Pretty please: Named arguments

2011-03-23 Thread Bruno Medeiros
On 09/03/2011 17:20, Steven Schveighoffer wrote: On Wed, 09 Mar 2011 09:02:14 -0500, Bruno Medeiros brunodomedeiros+spam@com.gmail wrote: Although in the particular cased of named arguments, I still don't feel it is worthwhile. Not unless it could be done in a very orthogonal way (both in

Re: Pretty please: Named arguments

2011-03-23 Thread Bruno Medeiros
On 23/03/2011 16:12, Bruno Medeiros wrote: But for bigger changes (in fact even for smaller ones as well) it might be worthwhile to use an IDE tool, because it can offer a lot of help in navigation and other stuff related to reviewing the code. I mean, the named arguments only address a very

Re: What To Do About Shared?

2011-03-23 Thread dsimcha
== Quote from dsimcha (dsim...@yahoo.com)'s article On 3/23/2011 9:09 AM, Jason House wrote: dsimcha Wrote: Some discussions about std.parallelism have prompted an examination of how far D's guarantees against low level data races should extend and how safety and practicality should be

Re: GSOC 2011

2011-03-23 Thread Bruno Medeiros
On 23/03/2011 14:59, spir wrote: On 03/23/2011 02:40 PM, Bruno Medeiros wrote: The first two items (LexingandParsing, ANTLRandJavabasedDparserforIDEusage) are fairly concrete ideas. The last one, D Tools in D is far more general, and can involve a lot of different things It is instead more

Re: Interested in a GSoC project idea

2011-03-23 Thread Ishan Thilina
Sorry for being this much late to reply( and thanks to all of you for replying this much quickly), I was really busy with my semester end exams. Now that it's over I can concentrate fully on this project. I implemented a stack using D in the little time I had to study D. And currently I'm looking

Re: Request for review: std.net.isemail

2011-03-23 Thread Jonathan M Davis
On 2011-03-22 23:21, dsimcha wrote: On 3/22/2011 6:04 PM, Jacob Carlborg wrote: I've now finished the port of Dominic Sayers' PHP is_email function (http://www.dominicsayers.com/isemail) and sending it for review. A few comments: * Due to limitations in std.regex some unit tests

Re: Interested in a GSoC project idea

2011-03-23 Thread Andrei Alexandrescu
On 3/23/11 10:03 AM, Ishan Thilina wrote: Sorry for being this much late to reply( and thanks to all of you for replying this much quickly), I was really busy with my semester end exams. Now that it's over I can concentrate fully on this project. I implemented a stack using D in the little time

Re: What To Do About Shared?

2011-03-23 Thread Don
dsimcha wrote: == Quote from dsimcha (dsim...@yahoo.com)'s article On 3/23/2011 9:09 AM, Jason House wrote: dsimcha Wrote: Some discussions about std.parallelism have prompted an examination of how far D's guarantees against low level data races should extend and how safety and practicality

Re: [GSoC’11] Lexing and parsing

2011-03-23 Thread Ilya Pupatenko
I'm not qualified to speak on Spirits internal architecture; I've only used it once for something very simple and ran into a one-liner bug which remains unfixed 7+ years later. But the basic API of Spirit would be wrong for D. “it is possible to write a highly-integrated lexer/perser generator in

Re: What To Do About Shared?

2011-03-23 Thread dsimcha
== Quote from Don (nos...@nospam.com)'s article Seems to me, that you're making use of some primitive that I'll call a 'DivisableArray' -- an array that can be sliced up (into other DivisibleArrays), and different DivisableArrays can be sent to different threads. You can extract a normal array

Re: Anything in the review queue?

2011-03-23 Thread Andrei Alexandrescu
On 3/21/11 10:25 PM, Don wrote: Andrei Alexandrescu wrote: I think by and large failure to define rational for BigInt in a way that has many commonalities with rational for built-in integrals reflects a failure of BigInt. By its very design, BigInt is supposed to transparently replace

Re: What To Do About Shared?

2011-03-23 Thread Andrei Alexandrescu
On 3/23/11 10:22 AM, Don wrote: dsimcha wrote: == Quote from dsimcha (dsim...@yahoo.com)'s article On 3/23/2011 9:09 AM, Jason House wrote: dsimcha Wrote: Some discussions about std.parallelism have prompted an examination of how far D's guarantees against low level data races should extend

Re: Anything in the review queue?

2011-03-23 Thread Andrei Alexandrescu
On 3/21/11 10:25 PM, Don wrote: Andrei Alexandrescu wrote: I think by and large failure to define rational for BigInt in a way that has many commonalities with rational for built-in integrals reflects a failure of BigInt. By its very design, BigInt is supposed to transparently replace

Re: GSOC 2011

2011-03-23 Thread Luca Boasso
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://www.antlr.org/grammar/list and on google and I could not find any recent ANTLR grammar

Re: D Tools Special Interest Group (SIG)

2011-03-23 Thread Jonas Drewsen
On 23/03/11 15.07, Jacob Carlborg wrote: On 2011-03-23 00:41, Jonas Drewsen wrote: Hi, It seems that every now and then a discussion about build tools or D package management pops up in this group. Many people on this list have a huge amount of experience and knowledge in this area. Some has

Re: What To Do About Shared?

2011-03-23 Thread Don
dsimcha wrote: == Quote from Don (nos...@nospam.com)'s article Seems to me, that you're making use of some primitive that I'll call a 'DivisableArray' -- an array that can be sliced up (into other DivisibleArrays), and different DivisableArrays can be sent to different threads. You can extract

Re: Strategies for resolving cyclic dependencies in static ctors

2011-03-23 Thread Nick Sabalausky
spir denis.s...@gmail.com wrote in message news:mailman.2690.1300879902.4748.digitalmar...@puremagic.com... On 03/23/2011 12:12 AM, Graham St Jack wrote: Avoiding circularities has plenty of advantages, like progressive development, testing and integration. Maybe it depends on your app

DMD crash

2011-03-23 Thread Magnus Lie Hetland
When compiling a project I now get the following error from dmd (2.052, Mac OS X): Assertion failed: (!vthis-csym), function toObjFile, file glue.c, line 703. (No traceback.) I've been able to locate the problem -- a call to topN. However, when I've tried to isolate and compile the relevant

Re: Request for review: std.net.isemail

2011-03-23 Thread Dmitry Olshansky
On 23.03.2011 1:04, Jacob Carlborg wrote: I've now finished the port of Dominic Sayers' PHP is_email function (http://www.dominicsayers.com/isemail) and sending it for review. A few comments: * Due to limitations in std.regex some unit tests fail and are out commented I have tried that

Re: DMD crash

2011-03-23 Thread Magnus Lie Hetland
On 2011-03-23 21:51:17 +0100, Magnus Lie Hetland said: When compiling a project I now get the following error from dmd (2.052, Mac OS X): Assertion failed: (!vthis-csym), function toObjFile, file glue.c, line 703. [snip] OK, I've managed to simplify thing down about as far as they can go,

body keyword is unnecessary

2011-03-23 Thread Alvaro
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, mechanics, games, health, etc. I think body can be removed from

Re: body keyword is unnecessary

2011-03-23 Thread Trass3r
Yep, this has been brought up at least once before. Nothing has happened so far.

Re: DMD crash

2011-03-23 Thread KennyTM~
On Mar 24, 11 05:46, Magnus Lie Hetland wrote: On 2011-03-23 21:51:17 +0100, Magnus Lie Hetland said: When compiling a project I now get the following error from dmd (2.052, Mac OS X): Assertion failed: (!vthis-csym), function toObjFile, file glue.c, line 703. [snip] OK, I've managed to

Re: Request for review: std.net.isemail

2011-03-23 Thread Jonathan M Davis
On 23.03.2011 1:04, Jacob Carlborg wrote: I've now finished the port of Dominic Sayers' PHP is_email function (http://www.dominicsayers.com/isemail) and sending it for review. A few comments: * Due to limitations in std.regex some unit tests fail and are out commented I have

Re: Array expression for multi dimensional arrays

2011-03-23 Thread Jonathan M Davis
Hi, I tried to do the following: auto arr = new int[2][2]; arr[] = 1; // using array expressions // The above gives - Error: cannot implicitly convert expression (1) of type int to const(int[2u][]) This was the first step to try out if array arithmetic that worked with single

Re: [GSoC’11] Lexing and parsing

2011-03-23 Thread Robert Jacques
On Wed, 23 Mar 2011 13:31:04 -0400, Ilya Pupatenko pupate...@gmail.com wrote: I'm not qualified to speak on Spirits internal architecture; I've only used it once for something very simple and ran into a one-liner bug which remains unfixed 7+ years later. But the basic API of Spirit would be

Re: Array expression for multi dimensional arrays

2011-03-23 Thread Daniel Green
On 3/23/2011 7:01 AM, Madhav wrote: Hi, I tried to do the following: auto arr = new int[2][2]; arr[] = 1; // using array expressions // The above gives - Error: cannot implicitly convert expression (1) of type int to const(int[2u][]) This was the first step to try out if array arithmetic that

Re: GSOC 2011

2011-03-23 Thread spir
On 03/23/2011 05:44 PM, Bruno Medeiros wrote: On 23/03/2011 14:59, spir wrote: On 03/23/2011 02:40 PM, Bruno Medeiros wrote: The first two items (LexingandParsing, ANTLRandJavabasedDparserforIDEusage) are fairly concrete ideas. The last one, D Tools in D is far more general, and can involve a

Re: Strategies for resolving cyclic dependencies in static ctors

2011-03-23 Thread Graham St Jack
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. * Executing the unittests happens during execution rather than during the build. All unittests (as in the

Re: GSOC 2011

2011-03-23 Thread Andrei Alexandrescu
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://www.antlr.org/grammar/list and on google and I

std.parallelism changes done

2011-03-23 Thread dsimcha
I've finished all of the changes that were discussed in the initial std.parallelism review. I know I said I needed more time than this, but honestly, I hit a best-case scenario. I had more time than I anticipated to work on it *and* the changes (especially fixing the exception handling

Re: Strategies for resolving cyclic dependencies in static ctors

2011-03-23 Thread Jonathan M Davis
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. * Executing the unittests happens during execution rather than during the build. All unittests (as in

Re: Strategies for resolving cyclic dependencies in static ctors

2011-03-23 Thread Graham St Jack
On 24/03/11 15:19, Jonathan M Davis 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. * Executing the unittests happens during execution rather than

Re: std.parallelism changes done

2011-03-23 Thread Simen kjaeraas
On Thu, 24 Mar 2011 05:32:26 +0100, dsimcha dsim...@yahoo.com wrote: 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?) spawnAndRun? -- Simen

isVariantN - is expression doesn't match

2011-03-23 Thread Piotr Szturmaj
I wrote simple template to test VariantN type (and thus Algebraic and Variant). template isVariantN(T) { static if (is(T X == VariantN!(N, Types), uint N, Types...)) enum isVariantN = true; else enum isVariantN = false; } but testing against

Re: fun with properties

2011-03-23 Thread teo
On Wed, 23 Mar 2011 08:28:46 -0600, Kai Meyer wrote: On 03/23/2011 06:48 AM, teo wrote: How can I use properties with increment/decrement and +=/-= operators? I did following tests (the errors are from dmd v2.052): class T { private int _x; @property public int x() {

Re: fun with properties

2011-03-23 Thread Kai Meyer
On 03/23/2011 10:09 AM, teo wrote: On Wed, 23 Mar 2011 08:28:46 -0600, Kai Meyer wrote: On 03/23/2011 06:48 AM, teo wrote: How can I use properties with increment/decrement and +=/-= operators? I did following tests (the errors are from dmd v2.052): class T { private int _x;

A small function wrapping writeln and writefln

2011-03-23 Thread Andrej Mitrovic
This is just something I was experimenting with: import std.stdio; import std.algorithm; void echo(T...)(T args) { static if (!T.length) { writeln(); } else { static if (is(T[0] : string)) { if (canFind(args[0], %)) {

Re: TDPL 6.4.3 Overriding Is Only Voluntary

2011-03-23 Thread Jesse Phillips
Caligo Wrote: The override keyword in the signature of Friend.bgColor is required, (193) This code compiles: class Contact{ string bgColor(){ return ; } } class Friend : Contact{ string bgColor(){ return LightGreen; } } So how is 'override' required? Can I get an example of

Re: Bug w/tuple of custom types?

2011-03-23 Thread Magnus Lie Hetland
On 2011-03-21 18:40:07 +0100, Steven Schveighoffer said: If you looked and couldn't find it, it doesn't hurt to add it. Worst case -- it gets marked as a duplicate. OK. Perhaps I should just start doing that, rather than asking here about every bug I find. (I seem to come across new ones

Re: Bug w/tuple of custom types?

2011-03-23 Thread bearophile
Magnus Lie Hetland: Any way to do that without (to be deprecated) typedef? At the moment with a struct that contains an alias this, I presume... Bye, bearophile

Re: Want to help DMD bugfixing? Write a simple utility.

2011-03-23 Thread Jonathan M Davis
On 03/23/2011 09:16 AM, Jonathan M Davis wrote: On Sun, 20 Mar 2011 07:50:10 -, Jonathan M Davisjmdavisp...@gmx.com wrote: Jonathan M Davis wrote: On Saturday 19 March 2011 18:04:57 Don wrote: Jonathan M Davis wrote: On Saturday 19 March 2011 17:11:56 Don wrote: Here's the

Re: Want to help DMD bugfixing? Write a simple utility.

2011-03-23 Thread Jonathan M Davis
On 3/23/11, Jonathan M Davis jmdavisp...@gmx.com wrote: That would require a full-blown D lexer and parser. - Jonathan M Davis Isn't DDMD written in D? I'm not sure about how finished it is though. Yes, but the lexer and parser in ddmd are not only GPL (which would be a problem for

Re: Want to help DMD bugfixing? Write a simple utility.

2011-03-23 Thread Andrej Mitrovic
On 3/23/11, Jonathan M Davis jmdavisp...@gmx.com wrote: On 3/23/11, Jonathan M Davis jmdavisp...@gmx.com wrote: That would require a full-blown D lexer and parser. - Jonathan M Davis Isn't DDMD written in D? I'm not sure about how finished it is though. Yes, but the lexer and parser in

Re: Want to help DMD bugfixing? Write a simple utility.

2011-03-23 Thread Andrej Mitrovic
What about the artistic license, the front-end can be used with that license. Is that less restrictive than GPL?

Re: Want to help DMD bugfixing? Write a simple utility.

2011-03-23 Thread Jonathan M Davis
What about the artistic license, the front-end can be used with that license. Is that less restrictive than GPL? I don't know what the exact licensing situation is. However, as I understand it, the C++ front-end is under the GPL, and therefore because ddmd is based on the C++ front-end, it is

Re: Using D libs in C

2011-03-23 Thread Daniel Green
On 3/23/2011 3:22 AM, Dainius (GreatEmerald) wrote: Though I find it quite odd that I need workarounds like those to compile on Linux, but ah well, it works, at least. Also odd that I can't link using GCC on Linux, it gives me a long list of undefined references (it seems that they are all

[Issue 1001] print stack trace (in debug mode) when program die

2011-03-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1001 --- Comment #37 from Benjamin Thaut c...@benjamin-thaut.de 2011-03-23 00:56:13 PDT --- (In reply to comment #36) What's the status of Windows stack trace integration? Note that Benjamin's code needs to be updated by adding an opApply

[Issue 5765] ^^ and with BigInts

2011-03-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5765 --- Comment #3 from Don clugd...@yahoo.com.au 2011-03-23 03:42:32 PDT --- OK, although I don't think that the case with Ackermann code is so bad. It's basically giving you a compile-time warning that the function blows up very, very easily.

[Issue 5769] New: struct elaborate constructor should make rvalue

2011-03-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5769 Summary: struct elaborate constructor should make rvalue Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2

[Issue 5769] struct elaborate constructor should make rvalue

2011-03-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5769 --- Comment #1 from Kenji Hara k.hara...@gmail.com 2011-03-23 05:47:01 PDT --- Fixing thi bug is difficult for me. DMD internally behavior is... 1.Elaborate constructor returns this reference internally. - see CtorDeclaration::semantic()

[Issue 5765] ^^ and with BigInts

2011-03-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5765 --- Comment #4 from bearophile_h...@eml.cc 2011-03-23 05:55:03 PDT --- (In reply to comment #3) The thing I'm really worried about is this: BigInt a, b, c; a = (a ^^ b) % c; This is an attempt to do modular exponentiation, which comes up

[Issue 5770] New: Template constructor bypass access check

2011-03-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5770 Summary: Template constructor bypass access check Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2

[Issue 5765] ^^ and with BigInts

2011-03-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5765 --- Comment #5 from Don clugd...@yahoo.com.au 2011-03-23 06:57:19 PDT --- (In reply to comment #4) (In reply to comment #3) The thing I'm really worried about is this: BigInt a, b, c; a = (a ^^ b) % c; This is an attempt to do

[Issue 5771] New: Template constructor auto ref and do not work

2011-03-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5771 Summary: Template constructor auto ref and do not work Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2

[Issue 5765] ^^ and with BigInts

2011-03-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5765 --- Comment #6 from bearophile_h...@eml.cc 2011-03-23 10:55:03 PDT --- (In reply to comment #5) That's a false consistency. T ^^ int is the common operation, not T ^^ T. Really. BigInt ^^ BigInt isn't a BigInt. It's too big to be

[Issue 5772] New: Tuple containing typedefed value causes error in format.d

2011-03-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5772 Summary: Tuple containing typedefed value causes error in format.d Product: D Version: D2 Platform: Other OS/Version: Mac OS X Status: NEW Severity:

[Issue 5773] sort() and topN() fail on sliced/resized array of tuples

2011-03-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5773 --- Comment #1 from Magnus Lie Hetland mag...@hetland.org 2011-03-23 13:17:29 PDT --- Perhaps this is just me being stupid -- trying to sort things that can't be compared? However, if I use a custom struct (instead of a tuple) I get an

[Issue 5765] ^^ and with BigInts

2011-03-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5765 --- Comment #7 from Don clugd...@yahoo.com.au 2011-03-23 13:35:05 PDT --- (In reply to comment #6) (In reply to comment #5) That's a false consistency. T ^^ int is the common operation, not T ^^ T. Really. BigInt ^^ BigInt isn't a

[Issue 5774] New: [64 bit] relocation truncated to fit with __gshared array, while(), and $

2011-03-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5774 Summary: [64 bit] relocation truncated to fit with __gshared array, while(), and $ Product: D Version: D2 Platform: x86_64 OS/Version: Linux Status: NEW

[Issue 5775] New: body keyword is unnecessary

2011-03-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5775 Summary: body keyword is unnecessary Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD

  1   2   >