Re: GtkD 1,4 released.

2011-03-29 Thread Andrei Alexandrescu
On 03/29/2011 12:47 AM, Andrei Alexandrescu wrote: On 3/28/11 11:47 PM, David Bryant wrote: On 29/03/11 06:28, Mike Wey wrote: Long overdue but finally here, the release of GtkD 1.4. GtkD is a D binding and OO wrapper of Gtk+ and is released on the LGPL license. New in this Release: * wraps

Re: GtkD 1,4 released.

2011-03-29 Thread Andrei Alexandrescu
On 03/29/2011 01:13 AM, Andrei Alexandrescu wrote: On 03/29/2011 12:47 AM, Andrei Alexandrescu wrote: On 3/28/11 11:47 PM, David Bryant wrote: On 29/03/11 06:28, Mike Wey wrote: Long overdue but finally here, the release of GtkD 1.4. GtkD is a D binding and OO wrapper of Gtk+ and is released

Re: GtkD 1,4 released.

2011-03-29 Thread Mike Wey
On 03/28/2011 11:53 PM, Andrej Mitrovic wrote: How is coding with GtkD like? Does it need any special treatment, like having to use RAII and taking care of resources by hand? IIRC Gtk is a C library and GtkD is a class-based wrapper around it? Anyhow that's great news! The Garbage Collector

Re: GtkD 1,4 released.

2011-03-29 Thread Mike Wey
On 03/29/2011 01:30 AM, dsimcha wrote: On 3/28/2011 3:58 PM, Mike Wey wrote: Long overdue but finally here, the release of GtkD 1.4. GtkD is a D binding and OO wrapper of Gtk+ and is released on the LGPL license. New in this Release: * wraps GTK+ 2.20.x series api (and relative libraries:

Re: GtkD 1,4 released.

2011-03-29 Thread Mike Wey
On 03/29/2011 05:37 PM, Andrei Alexandrescu wrote: On 03/29/2011 01:13 AM, Andrei Alexandrescu wrote: On 03/29/2011 12:47 AM, Andrei Alexandrescu wrote: On 3/28/11 11:47 PM, David Bryant wrote: On 29/03/11 06:28, Mike Wey wrote: Long overdue but finally here, the release of GtkD 1.4. GtkD

Re: GtkD 1,4 released.

2011-03-29 Thread Andrej Mitrovic
On 3/29/11, Mike Wey mike-...@example.com wrote: There used to be a video editor named Pihlaja but i don't know if it's still maintained. Looks like this is it: http://vimeo.com/471546 and some `Rae` gui library: http://vimeo.com/6918620 It looks quite nice.

D Article Contest - win an iPad2

2011-03-29 Thread Walter Bright
D Article Contest! First Prize: iPad 2 wifi 16Gb Write an article about the D programming language. The articles submitted will be voted on by the participants in the digitalmars.D newsgroup. Vote tallies determine the winners! Article submission deadline: before June 1, 2011, GMT Voting

Re: Is D more complex than C++?

2011-03-29 Thread Don
ToNyTeCh wrote: Seriously, I wanna know. How many lines of compiler code does it take for each (Walt should have the best handle on this, surely)? The LOC is one parameter, but I don't want just that -- it just came to mind while typing the overall question. The intricacy of the compiler is

Re: Is D rejected for the company it keeps?

2011-03-29 Thread Andrew Wiley
On Tue, Mar 29, 2011 at 12:01 AM, ToNyTeCh t...@nospam.net wrote: It feels kinda icky. D needs to deal with its characters. It's a community. It has characters. The fact is that, for any programming language, the community isn't a bunch of people sitting around waiting to answer your questions,

Re: Complete D grammar

2011-03-29 Thread Rainer Schuetze
Having written a D2 parser a few month ago in the hope it will be helpful to Visual D (just finds it way into the plugin right now), I've noticed quite some inaccuracies in the official grammar on the website. Some of these are probably already in bugzilla, some of them might be personal

Re: GCC 4.6

2011-03-29 Thread Russel Winder
On Mon, 2011-03-28 at 17:31 -0400, bearophile wrote: Walter: There's a lot of money and manpower behind Python. If this were true, why hasn't this technology been done for Python? It has been and is being. The problem is complicated by the GIL, so it is not a simple situation. It was

Re: GCC 4.6

2011-03-29 Thread Russel Winder
On Tue, 2011-03-29 at 05:41 +0800, KennyTM~ wrote: [ . . . ] Psyco? (http://psyco.sourceforge.net/, though it seems to be stuck at 2.6) If I remember correctly the author of Psyco explicitly stopped work on it exactly because he moved to doing the JIT for PyPy . . . PyPy also supports JITting

Re: [GSoC Proposal] Statically Checked Measurement Units

2011-03-29 Thread Don
Cristi Cobzarenco wrote: First, let me apologize for this very late entry, it's the end of university and it's been a very busy period, I hope you will still consider it. Note this email is best read using a fixed font. PS: I'm really sorry if this is the wrong mailing list to post and I

Re: Is D more complex than C++?

2011-03-29 Thread ToNyTeCh
Don wrote: ToNyTeCh wrote: Seriously, I wanna know. How many lines of compiler code does it take for each (Walt should have the best handle on this, surely)? The LOC is one parameter, but I don't want just that -- it just came to mind while typing the overall question. The intricacy of the

Re: Request for review: std.net.isemail

2011-03-29 Thread Jacob Carlborg
On 2011-03-28 07:36, Walter Bright wrote: On 3/22/2011 3: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. I think it looks nice. I'd add a note saying it is derived from Dominic's

Re: Complete D grammar

2011-03-29 Thread Walter Bright
On 3/28/2011 11:46 PM, Rainer Schuetze wrote: Having written a D2 parser a few month ago in the hope it will be helpful to Visual D (just finds it way into the plugin right now), I've noticed quite some inaccuracies in the official grammar on the website. Some of these are probably already in

Re: The D Community

2011-03-29 Thread Kagamin
ToNyTeCh Wrote: How many? Anyone have a nifty global pinpoint chart? Seriously, I really wanna know. Wanna know? No problem, learn it: http://en.wikipedia.org/wiki/Research

Re: Is D more complex than C++?

2011-03-29 Thread Francisco Almeida
ToNyTeCh Wrote: Nick Sabalausky wrote: ToNyTeCh t...@nospam.net wrote in message news:imri5l$1ahi$1...@digitalmars.com... Seriously, I wanna know. How many lines of compiler code does it take for each (Walt should have the best handle on this, surely)? The LOC is one parameter, but I

Re: Is D more complex than C++?

2011-03-29 Thread ToNyTeCh
Francisco Almeida wrote: ToNyTeCh Wrote: Nick Sabalausky wrote: ToNyTeCh t...@nospam.net wrote in message news:imri5l$1ahi$1...@digitalmars.com... Seriously, I wanna know. How many lines of compiler code does it take for each (Walt should have the best handle on this, surely)? The LOC is

Re: Is D more complex than C++?

2011-03-29 Thread Francisco Almeida
== Quote from ToNyTeCh (t...@nospam.net)'s article It doesn't matter to me. I was just posting when I wasn't drunk. Good for you. It certainly explains a lot.

Re: [GSOC] Database API

2011-03-29 Thread Daniel Gibson
Am 29.03.2011 01:18, schrieb Masahiro Nakagawa: On Sun, 27 Mar 2011 07:11:01 +0900, David Nadlinger s...@klickverbot.at wrote: On 3/26/11 12:44 AM, Masahiro Nakagawa wrote: Currently, many databases exist. * SQL based: MySQL, PostgresSQL, SQLite, etc.. * KVS: Cassandra, HBase, Kumofs, Redis,

Re: [GSoC Proposal] Statically Checked Measurement Units

2011-03-29 Thread Cristi Cobzarenco
To Don: That is a very good point and I agree that one shouldn't implement features just because they're popular. There don't seem to be many (if any projects) using Boost.Units and only a few that use the feature in F#. But, I think the reason Boost.Units isn't use hasn't got much to do with the

Re: Is D more complex than C++?

2011-03-29 Thread ToNyTeCh
Francisco Almeida wrote: == Quote from ToNyTeCh (t...@nospam.net)'s article It doesn't matter to me. I was just posting when I wasn't drunk. Good for you. It certainly explains a lot. fuck you

Re: Is D more complex than C++?

2011-03-29 Thread Emil Madsen
On 29 March 2011 11:30, ToNyTeCh t...@nospam.net wrote: Francisco Almeida wrote: == Quote from ToNyTeCh (t...@nospam.net)'s article It doesn't matter to me. I was just posting when I wasn't drunk. Good for you. It certainly explains a lot. fuck you Can we keep the mailing list in

Re: i like cakes

2011-03-29 Thread Daniel Gibson
Am 28.03.2011 03:45, schrieb Gary Whatmore: Hello again I've stayed quiet for a long time because people started accusing me of trolling. But now, I REALLY HATE THIS IDIOT IN REDDIT HE IS DRIVING ME CRAZY. ASSHOLE ASSWIPE SHITHOLE LUNATIC. I HATE HIM. BASHING D JUST BECAUSE HE'S SOME

Re: [GSOC idea] enhance regular expressions?

2011-03-29 Thread bearophile
Dmitry Olshansky: Others (except (?Pname) and (?P=name) ) also considered common extensions and I planed to add them plus regex comment (#...) where all of ... simply have no effect on matching. Beside the (#...) comments in Python you have also the verbose regex, that allow to put

Re: Complete D grammar

2011-03-29 Thread Trass3r
Rainer Schuetze wrote: I've extracted the website grammar using some combination of scripts from the ddoc sources, so if there is interest, I can dig them up... Yep, please make them publicly available so they don't get lost. Though I think we should have an extra official page with the

Re: [GSoC Proposal] Statically Checked Measurement Units

2011-03-29 Thread David Nadlinger
I am in a slight dilemma, because although I would love to share my work and ideas with you, right now this would automatically weaken my own units proposal in comparison to yours. However, as this would be grossly against the open source spirit, and the point of GSoC certainly can't be to

Re: Using map instead of iteration

2011-03-29 Thread Don
bearophile wrote: Russel Winder: Perhaps this needs review. All modern language now have this as an integral way of describing a sequence of values. We have discussed about this not too much time ago. See the enhancement request: http://d.puremagic.com/issues/show_bug.cgi?id=5395 D

Re: Is D more complex than C++?

2011-03-29 Thread Don
ToNyTeCh wrote: Don wrote: ToNyTeCh wrote: Seriously, I wanna know. How many lines of compiler code does it take for each (Walt should have the best handle on this, surely)? The LOC is one parameter, but I don't want just that -- it just came to mind while typing the overall question. The

Re: Bruno Medeiros has been accepted as a GSoC 2011 mentor for Digital Mars

2011-03-29 Thread Bruno Medeiros
On 27/03/2011 19:57, Andrei Alexandrescu wrote: Bruno Medeiros from Google has been accepted as a mentor for the Google Summer of Code 2011 program for Digital Mars. Please join me in congratulating and wishing the best to Bruno. We have three mentors and two pending applications. We are

Re: GSoC-2011 project:: Containers

2011-03-29 Thread Steven Schveighoffer
On Tue, 29 Mar 2011 01:45:02 -0400, Ishan Thilina ishanthil...@gmail.com wrote: I'm glad that you are willing to be a mentor for this project. I'll try my best to come up with a solid project proposal :) I can try to answer your questions, but I have not applied to be an official

Re: i like cakes

2011-03-29 Thread Bruno Medeiros
On 28/03/2011 10:03, Alix Pexton wrote: try this? Dealing with Internet Trolls - the Cognitive Therapy Approach http://unarmed.shlomifish.org/909.html A... Ha, I saw that article recently, I think it may work for overly excited fanboys, or for people involved in a flame war, but not for

Re: GCC 4.6

2011-03-29 Thread Steven Schveighoffer
On Mon, 28 Mar 2011 21:54:27 -0400, jasonw u...@webmails.org wrote: tastelessI can't keep wondering if he has Asperger syndrome/tasteless. I have no tolerance for this. I think the community shares this opinion. Please please, instead of tagging stuff like this, just remove it. Thanks

Re: [GSOC idea] enhance regular expressions?

2011-03-29 Thread KennyTM~
On Mar 29, 11 18:56, bearophile wrote: Dmitry Olshansky: Others (except (?Pname) and (?P=name) ) also considered common extensions and I planed to add them plus regex comment (#...) where all of ... simply have no effect on matching. Beside the (#...) comments in Python you have also the

Re: expression templates

2011-03-29 Thread enuhtac
Am 28.03.2011 02:19, schrieb Robert Jacques: Hmm... I don't know you're use case exactly, but it sounds like a case of operator overload abuse. The design of opCmp was inspired by the amount of bug prone repetition that happens with C++ style comparison operators. Furthermore, both opCmp and

Re: [GSoC Proposal] Statically Checked Measurement Units

2011-03-29 Thread Cristi Cobzarenco
Surely, .mangleof returns unique strings? Thanks for your offer, but in my prototype I already have sorting and operators working. You're right, again, about the scope of the types, I have a few ideas on how to work around that, but I don't like any of them too much, I'll play around with them and

Re: [GSoC Proposal] Statically Checked Measurement Units

2011-03-29 Thread Don
Cristi Cobzarenco wrote: To Don: That is a very good point and I agree that one shouldn't implement features just because they're popular. There don't seem to be many (if any projects) using Boost.Units and only a few that use the feature in F#. But, I think the reason Boost.Units isn't use

Re: Complete D grammar

2011-03-29 Thread spir
On 03/29/2011 01:02 PM, Trass3r wrote: Rainer Schuetze wrote: I've extracted the website grammar using some combination of scripts from the ddoc sources, so if there is interest, I can dig them up... Yep, please make them publicly available so they don't get lost. Though I think we should

Re: Complete D grammar

2011-03-29 Thread Lutger Blijdestijn
Nick Sabalausky wrote: ... Yea, I remember that too. Someone took all the BNF sections from D's docs on digitalmars.com, put them together, and filled in some missing/erroneous parts. Maybe it's on wiki4d? Not sure if this is what you meant, but Jascha Wetzel had made a D grammar used by

Re: Complete D grammar

2011-03-29 Thread Bruno Medeiros
On 28/03/2011 18:19, Luca Boasso wrote: You can find an ANTLR grammar for D v1 at http://www.dsource.org/projects/antlrd/browser/toys/v3d/parsed.g (by Ellery Newcomer) The syntax is similar to EBNF, check the ANTLR documentation for details. I hope this might help you. Luca Boasso Indeed,

Re: GCC 4.6

2011-03-29 Thread spir
On 03/29/2011 07:47 AM, Don wrote: dsimcha wrote: On 3/28/2011 9:54 PM, jasonw wrote: Listen kid, you're some biology student, right? You're just coding for fun. And more importantly, you haven't participated in any long term real world systems programming projects. This kind of work

Re: GCC 4.6

2011-03-29 Thread dsimcha
On 3/29/2011 3:00 AM, Russel Winder wrote: Which leads to the real point as to why Python is becoming the leading language for scientific computing, it is a dynamic language for coordinating C/C++/Fortran computations and providing GUI front ends. Performance of Python is thus a side issue since

Re: [GSOC idea] enhance regular expressions?

2011-03-29 Thread spir
On 03/29/2011 02:16 PM, KennyTM~ wrote: On Mar 29, 11 18:56, bearophile wrote: Dmitry Olshansky: Others (except (?Pname) and (?P=name) ) also considered common extensions and I planed to add them plus regex comment (#...) where all of ... simply have no effect on matching. Beside the (#...)

Re: [GSOC idea] enhance regular expressions?

2011-03-29 Thread spir
On 03/29/2011 12:56 PM, bearophile wrote: Dmitry Olshansky: Others (except (?Pname) and (?P=name) ) also considered common extensions and I planed to add them plus regex comment (#...) where all of ... simply have no effect on matching. Beside the (#...) comments in Python you have also

Re: Bruno Medeiros has been accepted as a GSoC 2011 mentor for Digital Mars

2011-03-29 Thread Bruno Medeiros
On 29/03/2011 13:46, Steven Schveighoffer wrote: On Tue, 29 Mar 2011 08:04:00 -0400, Bruno Medeiros brunodomedeiros+spam@com.gmail wrote: On 27/03/2011 19:57, Andrei Alexandrescu wrote: Bruno Medeiros from Google has been accepted as a mentor for the Google Summer of Code 2011 program for

Re: Complete D grammar

2011-03-29 Thread Trass3r
spir Wrote: Sure, and this grammar should be the actual startpoint of actual parsers, so that we know it's correct ;-) (else, it's just some more blowing in the wind) Exactly!

Re: [GSoC Proposal] Statically Checked Measurement Units

2011-03-29 Thread Cristi Cobzarenco
To David: Ok, right now, I got two working versions, one sorting by .mangleof and one performing a double-inclusion test on the tuples. Both work, I can't see any performance increase in the .mangleof one, but if .mangleof returns unique string, I say we use it this way. Regarding my string little

Re: Complete D grammar

2011-03-29 Thread Trass3r
Rainer Schuetze Wrote: I've set up a comparison with some notes here: http://www.dsource.org/projects/visuald/wiki/GrammarComparison Very nice comparison style. What would be an appropriate way to discuss grammar changes? I think many things should be simplified/clarified. For example, isn't

Re: Is D more complex than C++?

2011-03-29 Thread Andrej Mitrovic
This is obviously the same old D troll. Stop feeding him guys.

Re: GCC 4.6

2011-03-29 Thread dsimcha
== Quote from Don (nos...@nospam.com)'s article dsimcha wrote: On 3/28/2011 9:54 PM, jasonw wrote: Listen kid, you're some biology student, right? You're just coding for fun. And more importantly, you haven't participated in any long term real world systems programming projects. This kind

Re: [GSoC Proposal] Statically Checked Measurement Units

2011-03-29 Thread Andrei Alexandrescu
On 03/29/2011 02:06 AM, Don wrote: Cristi Cobzarenco wrote: First, let me apologize for this very late entry, it's the end of university and it's been a very busy period, I hope you will still consider it. Note this email is best read using a fixed font. PS: I'm really sorry if this is the

Re: [GSOC Draft Proposal] ANTLR and Java based D parser for IDE usage

2011-03-29 Thread Bruno Medeiros
On 28/03/2011 01:52, Luca Boasso wrote: Sorry for my late draft proposal, I'm currently moving so I didn't have enough time this days. I would be glad to have your opinion. Thank you DRAFT PROPOSAL Rationale - There are different IDEs for the D programming language. The purpose of

Re: Bruno Medeiros has been accepted as a GSoC 2011 mentor for Digital Mars

2011-03-29 Thread Andrei Alexandrescu
On 03/29/2011 07:04 AM, Bruno Medeiros wrote: On 27/03/2011 19:57, Andrei Alexandrescu wrote: Bruno Medeiros from Google has been accepted as a mentor for the Google Summer of Code 2011 program for Digital Mars. Please join me in congratulating and wishing the best to Bruno. We have three

Re: Pretty please: Named arguments

2011-03-29 Thread Bruno Medeiros
On 24/03/2011 20:23, Steven Schveighoffer wrote: P.S. I've tried two D ides in the past for about 10 minutes (descent and code::blocks), could not get either of them to work right. And it was *not* trivial to set them up. I must invite you try out DDT :D , even you don't stick to using it

Re: i like cakes

2011-03-29 Thread Andrei Alexandrescu
On 03/29/2011 07:14 AM, Bruno Medeiros wrote: On 28/03/2011 10:03, Alix Pexton wrote: try this? Dealing with Internet Trolls - the Cognitive Therapy Approach http://unarmed.shlomifish.org/909.html A... Ha, I saw that article recently, I think it may work for overly excited fanboys, or for

Re: [GSoC Proposal] Statically Checked Measurement Units

2011-03-29 Thread Andrei Alexandrescu
On 03/29/2011 07:36 AM, Don wrote: I'm a physicist and most of my programming involves quantities which have units. Yet, I can't really imagine myself using a units library. A few observations from my own code: * For each dimension, choose a unit, and use it throughout the code. For example, my

Re: Bruno Medeiros has been accepted as a GSoC 2011 mentor for Digital Mars

2011-03-29 Thread Andrei Alexandrescu
On 03/29/2011 07:46 AM, Steven Schveighoffer wrote: On Tue, 29 Mar 2011 08:04:00 -0400, Bruno Medeiros brunodomedeiros+spam@com.gmail wrote: On 27/03/2011 19:57, Andrei Alexandrescu wrote: Bruno Medeiros from Google has been accepted as a mentor for the Google Summer of Code 2011 program for

Re: Curl support RFC

2011-03-29 Thread Johannes Pfau
Jonas Drewsen wrote: This is a nice protocol parser. I would very much like it to be used with the curl API but without it being a dependency. This is already possible now using the onReceiveHeader callback and this would decouple the two. At least until std.protocol.http is in phobos as well -

Re: expression templates

2011-03-29 Thread Robert Jacques
On Tue, 29 Mar 2011 08:24:01 -0400, enuhtac enuhtac_li...@gmx.de wrote: Am 28.03.2011 02:19, schrieb Robert Jacques: Hmm... I don't know you're use case exactly, but it sounds like a case of operator overload abuse. The design of opCmp was inspired by the amount of bug prone repetition that

Re: CTFE Overhaul (Was: RFC: Thrift project proposal (draft))

2011-03-29 Thread Andrej Mitrovic
On 3/27/11, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: I remember a few months ago I've tried using CTFE and import expressions to load a .def file and generate at compile-time a runtime DLL loading mechanism in a class which would load a DLL file and create wrapper functions for DLL

Re: expression templates

2011-03-29 Thread Caligo
enuhtac, may I ask what you are going to use the expression templates for? linear algebra library? is it an open source project?

Re: GSoC-2011 project:: Containers

2011-03-29 Thread Ishan Thilina
I can try to answer your questions, but I have not applied to be an official mentor. Just want to make that clear. My previous message was I would be a mentor for this, but (reasons why I will not) Sorry if that is not what you read. -Steve That's ok, You have given me enough encouragement to

Re: expression templates

2011-03-29 Thread enuhtac
Am 29.03.2011 20:16, schrieb Caligo: enuhtac, may I ask what you are going to use the expression templates for? linear algebra library? is it an open source project? Hi Caligo, I'm going to use the expression templates for CFD (computational fluid dynamics) computations. In this context I need

Re: [GSOC Draft Proposal] ANTLR and Java based D parser for IDE usage

2011-03-29 Thread Luca Boasso
Hello, thank you very much for your useful comments. I have updated the proposal version in the www.google-melange.com. I post here the changes and the updated version. Changes: - There are different IDEs for the D programming language. The purpose of this project proposal is to write a parser

Re: expression templates

2011-03-29 Thread bearophile
enuhtac: As there are no answers related to opCmp I assume I have to use one of my ugly workarounds... The operator overloading done with opCmp is too much coarse even if you want to implement sets with operators like = = == for subset, etc. So are two use cases enough to question the

Re: [GSoC Proposal] Statically Checked Measurement Units

2011-03-29 Thread David Nadlinger
On 3/29/11 2:33 PM, Cristi Cobzarenco wrote: Surely, .mangleof returns unique strings? Yes, .mangleof returns unique strings for types. The stringof property which was suggested by other people here on the NG, however, is not unique. […] Thanks a lot for your feedback, I feel this

Re: Is D more complex than C++?

2011-03-29 Thread Don
Andrej Mitrovic wrote: This is obviously the same old D troll. Stop feeding him guys. This one was a good question. Actually a very good one. Regardless of the motivation behind it.

Re: expression templates

2011-03-29 Thread dsimcha
== Quote from bearophile (bearophileh...@lycos.com)'s article The operator overloading done with opCmp is too much coarse even if you want to implement sets with operators like = = == for subset, etc. Can you please give an example of where =, , etc. are useful for representing set

Re: [GSoC Proposal] Statically Checked Measurement Units

2011-03-29 Thread spir
On 03/29/2011 03:49 PM, Cristi Cobzarenco wrote: To David: Ok, right now, I got two working versions, one sorting by .mangleof and one performing a double-inclusion test on the tuples. Both work, I can't see any performance increase in the .mangleof one, but if .mangleof returns unique string, I

Re: [GSoC Proposal] Statically Checked Measurement Units

2011-03-29 Thread spir
On 03/29/2011 04:45 PM, Andrei Alexandrescu wrote: On 03/29/2011 02:06 AM, Don wrote: Cristi Cobzarenco wrote: First, let me apologize for this very late entry, it's the end of university and it's been a very busy period, I hope you will still consider it. Note this email is best read using a

Re: Is D more complex than C++?

2011-03-29 Thread Steven Schveighoffer
On Tue, 29 Mar 2011 15:09:38 -0400, Don nos...@nospam.com wrote: Andrej Mitrovic wrote: This is obviously the same old D troll. Stop feeding him guys. This one was a good question. Actually a very good one. Regardless of the motivation behind it. Every once in a while, a troll outwits

Re: Bruno Medeiros has been accepted as a GSoC 2011 mentor for Digital Mars

2011-03-29 Thread spir
On 03/29/2011 03:21 PM, Bruno Medeiros wrote: On 29/03/2011 13:46, Steven Schveighoffer wrote: On Tue, 29 Mar 2011 08:04:00 -0400, Bruno Medeiros brunodomedeiros+spam@com.gmail wrote: On 27/03/2011 19:57, Andrei Alexandrescu wrote: Bruno Medeiros from Google has been accepted as a mentor for

Re: GSoC-2011 project:: Containers

2011-03-29 Thread spir
On 03/29/2011 08:34 PM, Ishan Thilina wrote: I can try to answer your questions, but I have not applied to be an official mentor. Just want to make that clear. My previous message was I would be a mentor for this, but (reasons why I will not) Sorry if that is not what you read. -Steve

Re: expression templates

2011-03-29 Thread bearophile
dsimcha: Can you please give an example of where =, , etc. are useful for representing set operations? My naive opinion (i.e. without understanding your use case) is that using comparison operators to represent anything besides partial or total ordering is a severe abuse of operator

Re: expression templates

2011-03-29 Thread spir
On 03/29/2011 09:15 PM, dsimcha wrote: == Quote from bearophile (bearophileh...@lycos.com)'s article The operator overloading done with opCmp is too much coarse even if you want to implement sets with operators like== == for subset, etc. Can you please give an example of where=,, etc. are

Re: Is D more complex than C++?

2011-03-29 Thread spir
On 03/29/2011 09:17 PM, Steven Schveighoffer wrote: On Tue, 29 Mar 2011 15:09:38 -0400, Don nos...@nospam.com wrote: Andrej Mitrovic wrote: This is obviously the same old D troll. Stop feeding him guys. This one was a good question. Actually a very good one. Regardless of the motivation

Re: expression templates

2011-03-29 Thread dsimcha
== Quote from bearophile (bearophileh...@lycos.com)'s article This is not terrible, because for those two operations I define only the method with English name, but this is a small limit of opCmp. In expression templates you are able to use the same solution. Is this usage for the set API

Re: Is D more complex than C++?

2011-03-29 Thread Nick Sabalausky
spir denis.s...@gmail.com wrote in message news:mailman.2896.1301428213.4748.digitalmar...@puremagic.com... On 03/29/2011 09:17 PM, Steven Schveighoffer wrote: On Tue, 29 Mar 2011 15:09:38 -0400, Don nos...@nospam.com wrote: Andrej Mitrovic wrote: This is obviously the same old D troll. Stop

Re: expression templates

2011-03-29 Thread Andrej Mitrovic
Oh my, the C++ streams syntax. I hated that thing.

Re: expression templates

2011-03-29 Thread KennyTM~
On Mar 30, 11 03:15, dsimcha wrote: == Quote from bearophile (bearophileh...@lycos.com)'s article The operator overloading done with opCmp is too much coarse even if you want to implement sets with operators like== == for subset, etc. Can you please give an example of where=,, etc. are

Re: expression templates

2011-03-29 Thread dsimcha
== Quote from KennyTM~ (kenn...@gmail.com)'s article On Mar 30, 11 03:15, dsimcha wrote: == Quote from bearophile (bearophileh...@lycos.com)'s article The operator overloading done with opCmp is too much coarse even if you want to implement sets with operators like== == for subset,

Re: expression templates

2011-03-29 Thread bearophile
dsimcha: Reasonable people can disagree on this, but I say definitely yes. I think the Python set API was designed by the great Raymond Hettinger, one of the best Python developers regarding data structures, algorithms, etc, and a person able to write the most elegant and clean C code, I

Re: GSoC-2011 project:: Containers

2011-03-29 Thread Fawzi Mohamed
On 29-mar-11, at 21:32, spir wrote: On 03/29/2011 08:34 PM, Ishan Thilina wrote: I can try to answer your questions, but I have not applied to be an official mentor. Just want to make that clear. My previous message was I would be a mentor for this, but (reasons why I will not) Sorry if

Review of std.net.isemail part 2

2011-03-29 Thread Jacob Carlborg
I've made a few minor changes: * Renamed EmailStatusCode.Off - None and On - Any * Added and clarified the documentation for EmailStatusCode.Any and None * Updated the documentation Github: https://github.com/jacob-carlborg/phobos/tree/isemail Docs: http://dl.dropbox.com/u/18386187/isemail.html

A case for valueless AA's?

2011-03-29 Thread Andrej Mitrovic
Here's a little benchmark of Associative Arrays and Dynamic Arrays. I'm showing traversal and lookup speed. The `static this()` is used to create a random collection of words which get stored in the two arrays: https://gist.github.com/893340 Hash lookups are naturally very fast. So I am

Re: A case for valueless AA's?

2011-03-29 Thread dsimcha
== Quote from Andrej Mitrovic (n...@none.none)'s article Here's a little benchmark of Associative Arrays and Dynamic Arrays. I'm showing traversal and lookup speed. The `static this()` is used to create a random collection of words which get stored in the two arrays:

Re: GSoC-2011 project:: Containers

2011-03-29 Thread Jonathan M Davis
On 2011-03-29 12:32, spir wrote: On 03/29/2011 08:34 PM, Ishan Thilina wrote: I can try to answer your questions, but I have not applied to be an official mentor. Just want to make that clear. My previous message was I would be a mentor for this, but (reasons why I will not)

Re: GSoC-2011 project:: Containers

2011-03-29 Thread bearophile
Fawzi Mohamed: Also variations of those presented in Purely Functional Data Structures of Chris Okasaki, would be nice to have. A finger tree seems useful. Bye, bearophile

Re: A case for valueless AA's?

2011-03-29 Thread Piotr Szturmaj
Andrej Mitrovic wrote: 1. I'm wasting memory. I don't need the values, I only need the keys. But I can't declare a void[string] hash. But I don't know how to get rid of the values, which leaves the issue #1. Maybe static array of zero length? From documentation: A static array with a

Re: GCC 4.6

2011-03-29 Thread so
Listen kid, you're some biology student, right? You're just coding for fun. And more importantly, you haven't participated in any long term real world systems programming projects. This kind of work experience doesn't give you the competence to evaluate the knowledge and work of people

Re: A case for valueless AA's?

2011-03-29 Thread Andrej Mitrovic
A use case for this could be a file system search: void[string] names; // unique names to find string[] results; foreach (string name; dirEntries(curdir, SpanMode.deep)) { if (name.basename in names) results ~= name; } With string arrays the `if` check

Re: A case for valueless AA's?

2011-03-29 Thread Andrej Mitrovic
Oh there's a container? I'll take a look, thanks guys.

Re: [GSoC Proposal] Statically Checked Measurement Units

2011-03-29 Thread David Nadlinger
On 3/29/11 3:49 PM, Cristi Cobzarenco wrote: To David: Ok, right now, I got two working versions, one sorting by .mangleof and one performing a double-inclusion test on the tuples. Both work, I can't see any performance increase in the .mangleof one, but if .mangleof returns unique string, I say

Re: A case for valueless AA's?

2011-03-29 Thread Andrej Mitrovic
Looks like not. I've misread Piotr'es post. :)

Re: GSoC-2011 project:: Containers

2011-03-29 Thread dsimcha
== Quote from Jonathan M Davis (jmdavisp...@gmx.com)'s article The fancier stuff would be nice, but we don't even have a doubly-linked list yet. We should get the simpler stuff sorted out before we get particularly fancy, not to mention that it's usually the simple stuff that gets heavily

Re: Complete D grammar

2011-03-29 Thread Rainer Schuetze
Walter Bright wrote: On 3/28/2011 11:46 PM, Rainer Schuetze wrote: I've set up a comparison with some notes here: http://www.dsource.org/projects/visuald/wiki/GrammarComparison I thought I fixed the grammar issues listed in Bugzilla. The comparison is from the time I wrote the parser,

Re: constexpr and CTFE

2011-03-29 Thread so
On Sun, 27 Mar 2011 17:50:00 +0300, bearophile bearophileh...@lycos.com wrote: This first question is mostly for D.learn, but below I show a partially related link too, so I put both of them here. If you have library code, and the users of your library run one of your functions at

Re: Complete D grammar

2011-03-29 Thread Rainer Schuetze
Trass3r wrote: Rainer Schuetze wrote: I've extracted the website grammar using some combination of scripts from the ddoc sources, so if there is interest, I can dig them up... Yep, please make them publicly available so they don't get lost. Though I think we should have an extra official

std.signals

2011-03-29 Thread teo
I did some refactoring of the std.signals module and would like to hear your comments on it. Where is the appropriate place for posting the source code?

  1   2   >