Re: dmd 1.071 and 2.056 release

2011-10-28 Thread Mike James
Walter Bright newshou...@digitalmars.com wrote in message news:j8c7gj$2ctn$2...@digitalmars.com... On 10/27/2011 7:00 AM, Mike James wrote: Yeh, a simple app I've written has gone from 514k to 1098k in release. Where has all the extra 'goodness' come from :-O Take a look at the .map file

Review of Jesse Phillips's CSV Parsing Library

2011-10-28 Thread dsimcha
Jesse Phillips's CSV parser is next in the review queue. Please go to digitalmars.D to review and comment on it.

Re: dmd 1.071 and 2.056 release

2011-10-28 Thread Vladimir Panteleev
On Fri, 28 Oct 2011 11:42:33 +0300, Mike James f...@bar.com wrote: More interestingly if you open up the executable in a hex editor there are huge chunks of the .exe padded with zeros... Most likely related to this issue: http://d.puremagic.com/issues/show_bug.cgi?id=2254 -- Best regards,

cuteDoc -New DDOC theme

2011-10-28 Thread Robik
Hi. I'd like to share with new theme for DDOC named CuteDoc. It can be found here: https://github.com/robik/cuteDoc . Live demo can be foudn here: http://cutedoc.dav1d.de/ . (Thanks to dav1d (from #d) for hosting it). -- Robik

Re: cuteDoc -New DDOC theme

2011-10-28 Thread Nick Sabalausky
Robik szad...@gmail.com wrote in message news:j8f14s$1o78$1...@digitalmars.com... Hi. I'd like to share with new theme for DDOC named CuteDoc. It can be found here: https://github.com/robik/cuteDoc . Live demo can be foudn here: http://cutedoc.dav1d.de/ . (Thanks to dav1d (from #d) for

Re: std.dateparse reincarnation

2011-10-28 Thread Jonathan M Davis
On Saturday, October 15, 2011 04:21:54 Steve Teale wrote: On Thu, 13 Oct 2011 22:09:39 +0300, Vladimir Panteleev wrote: On Thu, 13 Oct 2011 07:22:06 +0300, Jesse Phillips jessekphillip...@gmail.com wrote: Thought I would let everyone know that while std.dateparse is deprecated and will

Re: Free?

2011-10-28 Thread Chante
Steven Schveighoffer wrote: On Wed, 26 Oct 2011 19:18:14 -0400, Chante udontspa...@never.will.u wrote: Steven Schveighoffer schvei...@yahoo.com wrote in message news:op.v3yn2di8eav7ka@localhost.localdomain... 3. It is a very slippery slope to go down. Software is a purely *abstract*

Re: Free?

2011-10-28 Thread Chante
Steven Schveighoffer wrote: On Thu, 27 Oct 2011 16:09:52 -0400, Chante udontspa...@never.will.u wrote: Steven Schveighoffer schvei...@yahoo.com wrote in message news:op.v3zaemhyeav7ka@localhost.localdomain... On Wed, 26 Oct 2011 15:28:21 -0400, Kagamin s...@here.lot wrote: Steven

Re: Free?

2011-10-28 Thread Chante
Don wrote: On 26.10.2011 17:16, Jeff Nowakowski wrote: On 10/26/2011 12:51 AM, Nick Sabalausky wrote: Jeff Nowakowskij...@dilacero.org wrote in message Nitpicking? Are you serious? GPL has provided immense benefits and has been voluntarily adopted around the world, So have the non-viral

Re: Compiler patch for runtime reflection

2011-10-28 Thread Jacob Carlborg
On 2011-10-27 20:42, Adam Wilson wrote: On Thu, 27 Oct 2011 00:14:35 -0700, Jacob Carlborg d...@me.com wrote: Are you saying that you consider using D for this Horizon project? I can recommend you take a look at DWT: www.dsource.org/projects/dwt Somewhere down the road I've planed to create

Re: Compiler patch for runtime reflection

2011-10-28 Thread Gor Gyolchanyan
I think the compile-time reflection should be improved first, because run-time reflection can be built upon that. Currently D's compile-time reflection is not fully developed.

Re: Next in Review Queue? (October 2011)

2011-10-28 Thread Jacob Carlborg
On 2011-10-27 22:11, dsimcha wrote: Dimitry's FReD library review looks to have been a success. (Not sure if voting is technically over but it doesn't exactly look like it's going to come down to the wire.) Congratulations, Dimitry. What's next in the review queue? From my memory of previous

Re: Free?

2011-10-28 Thread Chante
Steven Schveighoffer wrote: On Thu, 27 Oct 2011 16:02:03 -0400, Chante udontspa...@never.will.u wrote: Steven Schveighoffer schvei...@yahoo.com wrote compiled software (you meant, source code) OK, let's try this again. Source code is copyrightable. Compiled code *IS ALSO* copyrighted

Re: The CAPI Manifesto

2011-10-28 Thread Christophe Travert
Walter Bright , dans le message (digitalmars.D:146786), a écrit : If you want to add a layer on top of the C API, that would be fine. std.zlib is an example of that. But the idea of CAPI is NOT to add a layer. Not fix, extend, refactor, improve, etc. I definitely agree with that, no

Re: D Map Treemap viewer

2011-10-28 Thread Vladimir Panteleev
On Fri, 28 Oct 2011 04:50:59 +0300, Trass3r u...@known.com wrote: This tool attempts to answer the question Why the $#%!$@% hell is my binary so huge? in an intuitive way. Awesome! Another great tool after DustMite. Look at that: http://thecybershadow.net/d/mapview/view.php?id=4eaa05054b06f

Re: NULL indicator in Variant

2011-10-28 Thread Regan Heath
On Thu, 27 Oct 2011 19:06:47 +0100, Steve Teale steve.te...@britseyeview.com wrote: On Thu, 27 Oct 2011 13:58:54 -0400, Steven Schveighoffer wrote: Why wouldn't you just wrap variant if you want to introduce a nullable variant type? Why does Variant have to be muddied with requirements for

Re: Generalized switch statement (a la pattern matching)

2011-10-28 Thread bearophile
Norbert Nemec: Where is the fundamental advantage compared to the following? if(x == foo) writeln(got foo) else if(x == foo) writeln(got foo) else if(x == foo) writeln(got foo) else assert(false); The advantages are visible even with the D final switch, but are more generalized. The

Re: Why the hell doesn't foreach decode strings

2011-10-28 Thread Christophe Travert
Walter Bright , dans le message (digitalmars.D:147161), a écrit : On 10/20/2011 9:06 PM, Jonathan M Davis wrote: It's this very problem that leads some people to argue that string should be its own type which holds an array of code units (which can be accessed when needed) rather than doing

Re: Why the hell doesn't foreach decode strings

2011-10-28 Thread Christophe
Dmitry Olshansky , dans le message (digitalmars.D:147415), a écrit : Assuming language support stays on stage of codepoint is a character it's totaly expected to ignore modifiers and compare identically normalized UTF without decoding. Yes, it risks to hit certain issues. string being seen

Re: NULL indicator in Variant

2011-10-28 Thread Regan Heath
On Fri, 28 Oct 2011 10:23:03 +0100, Regan Heath re...@netmail.co.nz wrote: On Thu, 27 Oct 2011 19:06:47 +0100, Steve Teale steve.te...@britseyeview.com wrote: On Thu, 27 Oct 2011 13:58:54 -0400, Steven Schveighoffer wrote: Why wouldn't you just wrap variant if you want to introduce a

Re: How to alias for identity

2011-10-28 Thread Martin Nowak
On Wed, 26 Oct 2011 22:18:29 +0200, Timon Gehr timon.g...@gmx.ch wrote: On 10/26/2011 09:41 PM, Martin Nowak wrote: I was using some templates to declare different parameters sets. template unitA() {...} template unitB() {...} template unitC() {...} I have a generic function that is

Re: an old topic (pun intended)

2011-10-28 Thread kennytm
Davidson Corry davidsonco...@comcast.net wrote: On 10/27/2011 2:12 PM, Timon Gehr wrote: Yes, this design has indeed a keyword-issue that your proposal has not. I am all for not making it a keyword. The 'body' keyword imho should be removed too, there is only one place in the grammar where it

Re: D Map Treemap viewer

2011-10-28 Thread Vladimir Panteleev
On Fri, 28 Oct 2011 04:50:59 +0300, Trass3r u...@known.com wrote: http://thecybershadow.net/d/mapview/view.php?id=4eaa05054b06f It's still a hack, but should be better now. -- Best regards, Vladimirmailto:vladi...@thecybershadow.net

Re: Why the hell doesn't foreach decode strings

2011-10-28 Thread Andrei Alexandrescu
On 10/28/11 4:41 AM, Christophe Travert wrote: I definitely agree with you, but I have a piece of news for you : The whole phobos alreaday treats strings as a dchar ranges, and IS inefficient for processing strings. The fact is: char[] is not char[] in phobos. It is Range!dchar. This is aweful

Review of Jesse Phillips's CSV Parser

2011-10-28 Thread dsimcha
Formal review of Jesse Phillips's CSV parser module begins today and runs through November . Following that, a vote will take place for one week. Please post any comments about this library in this thread. Docs: http://nascent.freeshell.org/programming/D/doc/phobos/std_csv.html Code:

Re: Review of Jesse Phillips's CSV Parser

2011-10-28 Thread Piotr Szturmaj
dsimcha wrote: Formal review of Jesse Phillips's CSV parser module begins today and runs through November . Following that, a vote will take place for one week. Please post any comments about this library in this thread. Docs: http://nascent.freeshell.org/programming/D/doc/phobos/std_csv.html

Re: Review of Jesse Phillips's CSV Parser

2011-10-28 Thread Vladimir Panteleev
On Fri, 28 Oct 2011 16:18:27 +0300, dsimcha dsim...@yahoo.com wrote: Docs: http://nascent.freeshell.org/programming/D/doc/phobos/std_csv.html Documentation should have examples of basic usage at the top. It should be possible to figure out how to use a CSV parser within 10 seconds of

Re: Review of Jesse Phillips's CSV Parser

2011-10-28 Thread dsimcha
On 10/28/2011 9:18 AM, dsimcha wrote: Formal review of Jesse Phillips's CSV parser module begins today and runs through November . Following that, a vote will take place for one week. Please post any comments about this library in this thread. Docs:

Re: Review of Jesse Phillips's CSV Parser

2011-10-28 Thread Jacob Carlborg
On 2011-10-28 15:25, Piotr Szturmaj wrote: dsimcha wrote: Formal review of Jesse Phillips's CSV parser module begins today and runs through November . Following that, a vote will take place for one week. Please post any comments about this library in this thread. Docs:

Re: Review of Jesse Phillips's CSV Parser

2011-10-28 Thread Jacob Carlborg
On 2011-10-28 15:18, dsimcha wrote: Formal review of Jesse Phillips's CSV parser module begins today and runs through November . Following that, a vote will take place for one week. Please post any comments about this library in this thread. Docs:

Re: Review of Jesse Phillips's CSV Parser

2011-10-28 Thread Piotr Szturmaj
Jacob Carlborg wrote: On 2011-10-28 15:25, Piotr Szturmaj wrote: dsimcha wrote: Formal review of Jesse Phillips's CSV parser module begins today and runs through November . Following that, a vote will take place for one week. Please post any comments about this library in this thread. Docs:

Re: NULL indicator in Variant

2011-10-28 Thread Steve Teale
On Fri, 28 Oct 2011 00:35:45 -0400, Robert Jacques wrote: On Thu, 27 Oct 2011 14:06:47 -0400, Steve Teale steve.te...@britseyeview.com wrote: On Thu, 27 Oct 2011 13:58:54 -0400, Steven Schveighoffer wrote: On Thu, 27 Oct 2011 13:53:02 -0400, Steve Teale steve.te...@britseyeview.com wrote:

Re: D Map Treemap viewer

2011-10-28 Thread Ary Manzana
On 10/27/11 9:09 PM, Vladimir Panteleev wrote: This tool attempts to answer the question Why the $#%!$@% hell is my binary so huge? in an intuitive way. Each rectangle is proportional in its area (relative to its siblings, and disregarding padding/captions - the entire layout) to the size of the

Re: NULL indicator in Variant

2011-10-28 Thread Steve Teale
On Fri, 28 Oct 2011 01:00:28 -0400, Kagamin wrote: SQL uses `NULL` for all types. Yes, but if you set a particular column value to NULL, it does not wipe away the column's meta-data. Did you try Algebraic - type-restricted version of Variant? SQL implementations tend to use structure types

Re: D Map Treemap viewer

2011-10-28 Thread Trass3r
http://thecybershadow.net/d/mapview/view.php?id=4eaa05054b06f It's still a hack, but should be better now. Nice. Still wondering about the sizes though. opencl.wrapper.CLObject is an empty struct and it shows 6928 bytes for the .init opencl.commandqueue.CLCommandQueue is a struct wrapping

Re: Review of Jesse Phillips's CSV Parser

2011-10-28 Thread deadalnix
Le 28/10/2011 16:09, Piotr Szturmaj a écrit : Jacob Carlborg wrote: On 2011-10-28 15:25, Piotr Szturmaj wrote: dsimcha wrote: Formal review of Jesse Phillips's CSV parser module begins today and runs through November . Following that, a vote will take place for one week. Please post any

Re: D Map Treemap viewer

2011-10-28 Thread Vladimir Panteleev
On Fri, 28 Oct 2011 17:39:26 +0300, Trass3r u...@known.com wrote: http://thecybershadow.net/d/mapview/view.php?id=4eaa05054b06f It's still a hack, but should be better now. Nice. Still wondering about the sizes though. opencl.wrapper.CLObject is an empty struct and it shows 6928 bytes for

Re: Review of Jesse Phillips's CSV Parser

2011-10-28 Thread Ary Manzana
On 10/28/11 10:18 AM, dsimcha wrote: Formal review of Jesse Phillips's CSV parser module begins today and runs through November . Following that, a vote will take place for one week. Please post any comments about this library in this thread. Docs:

Re: Software architecture support in D.

2011-10-28 Thread Jose Armando Garcia
On Tue, Oct 25, 2011 at 4:49 AM, Gor Gyolchanyan gor.f.gyolchan...@gmail.com wrote: It's unclear whether a particular solution is easier to implement in D,  or is easier to translate from C. You can translate zeromq's headers to D in 10 minute. I will give you a day to make a D wrapper. I doubt

Re: Review of Jesse Phillips's CSV Parser

2011-10-28 Thread Jesse Phillips
dsimcha Wrote: I'll kick this off with my review of the documentation (I'll review the implementation later): Header may be provided as first line in file - A header may be provided as first line in file? csvText: Shouldn't heading be a generic range of strings instead of a

Re: Review of Jesse Phillips's CSV Parser

2011-10-28 Thread Jesse Phillips
Piotr Szturmaj Wrote: dsimcha wrote: Formal review of Jesse Phillips's CSV parser module begins today and runs through November . Following that, a vote will take place for one week. Please post any comments about this library in this thread. Docs:

Re: Review of Jesse Phillips's CSV Parser

2011-10-28 Thread Jesse Phillips
Ary Manzana Wrote: I like the idea of reading a CSV into a struct, or treating all fields as ints. But, in my experience, CSVs are never perfect... because humans fill them, and humans aren't perfect or don't know Oh, of course I must fill only numbers in this column, otherwise programs

Re: Review of Jesse Phillips's CSV Parser

2011-10-28 Thread Jesse Phillips
Vladimir Panteleev Wrote: On Fri, 28 Oct 2011 16:18:27 +0300, dsimcha dsim...@yahoo.com wrote: Docs: http://nascent.freeshell.org/programming/D/doc/phobos/std_csv.html Documentation should have examples of basic usage at the top. It should be possible to figure out how to use a CSV

goto [variable], and address of code labels

2011-10-28 Thread Manu
Hi people. I'd like to propose support for taking the address of code labels, and supporting variable goto statements. This is a feature I have found extremely useful, implemented as a GCC specific extension. I've used this to get great speedups and simplify code while writing emulators/vm's.

Re: Review of Jesse Phillips's CSV Parser

2011-10-28 Thread Jesse Phillips
Forgot to answer one. dsimcha Wrote: Why should the order of the heading provided to csvText matter? csvText should simply rearrange its results. Because I do not store anymore information then requested. I must keep pumping out values as I receive them, so order can not be rearranged.

Re: Review of Jesse Phillips's CSV Parser

2011-10-28 Thread Ary Manzana
On 10/28/11 1:14 PM, Jesse Phillips wrote: Ary Manzana Wrote: I like the idea of reading a CSV into a struct, or treating all fields as ints. But, in my experience, CSVs are never perfect... because humans fill them, and humans aren't perfect or don't know Oh, of course I must fill only

Re: Review of Jesse Phillips's CSV Parser

2011-10-28 Thread Jesse Phillips
Jacob Carlborg Wrote: If a header is specified, is it possible to iterate over the content as an associative array, something like this: string str = a,b,c\nHello,65,63.63\nWorld,123,3673.562; auto records = csvText(str, [b]); foreach (header, value ; records) {} Or accessing a value

Re: D Map Treemap viewer

2011-10-28 Thread Rainer Schuetze
On 28.10.2011 02:57, Vladimir Panteleev wrote: On Fri, 28 Oct 2011 03:45:11 +0300, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: This is awesome and I was just about to request for something like this too. Great job! What is not awesome is that DMD spits out map files with invalid code

Re: Review of Jesse Phillips's CSV Parser

2011-10-28 Thread Jesse Phillips
Ary Manzana Wrote: You are right. I see that you throw ConvException, because when some to!... fails it throws that. But you don't catch it. So you'd get something like Can't convert 'hello' to an int, but you loose the information of which row and column caused the problem. So maybe

Re: goto [variable], and address of code labels

2011-10-28 Thread Norbert Nemec
Have you considered how this mechanism should handle crossing of scope boundaries? On 28.10.2011 18:30, Manu wrote: Hi people. I'd like to propose support for taking the address of code labels, and supporting variable goto statements. This is a feature I have found extremely useful,

Re: Review of Jesse Phillips's CSV Parser

2011-10-28 Thread Jacob Carlborg
On 2011-10-28 19:07, Jesse Phillips wrote: Jacob Carlborg Wrote: If a header is specified, is it possible to iterate over the content as an associative array, something like this: string str = a,b,c\nHello,65,63.63\nWorld,123,3673.562; auto records = csvText(str, [b]); foreach (header, value

Re: D packages, include directories, and rdmd

2011-10-28 Thread Andrew Pennebaker
Nick, thanks for the in-depth explanation of compilation with C and D. Other shebanged languages *do* have the argument limitation problem. One way to deal with it is to use multiline shebangshttp://rosettacode.org/wiki/Multiline_shebang. They're especially helpful for doing scripted

Re: D Map Treemap viewer

2011-10-28 Thread Vladimir Panteleev
On Fri, 28 Oct 2011 20:15:21 +0300, Rainer Schuetze r.sagita...@gmx.de wrote: The map file generated by optlink is not UTF8, it uses compressed symbols, that can be expanded with demangle.decodeDmdString before demangling. Yeah, the code does that. Please also note that the map file is

Re: Review of Jesse Phillips's CSV Parser

2011-10-28 Thread Vladimir Panteleev
On Fri, 28 Oct 2011 19:41:35 +0300, Jesse Phillips jessekphillip...@gmail.com wrote: Vladimir Panteleev Wrote: On Fri, 28 Oct 2011 16:18:27 +0300, dsimcha dsim...@yahoo.com wrote: Docs: http://nascent.freeshell.org/programming/D/doc/phobos/std_csv.html Documentation should have examples

Re: goto [variable], and address of code labels

2011-10-28 Thread ponce
Provided some hairy conditions, the switch instruction will optimize to a jump table in GCC and probably most C compilers. In ICC, some static analysis is even used to optimize out the test before the switch. In D, final switch might enable such an optimization with statically checking for

Re: goto [variable], and address of code labels

2011-10-28 Thread Dmitry Olshansky
On 28.10.2011 20:30, Manu wrote: Hi people. I'd like to propose support for taking the address of code labels, and supporting variable goto statements. This is a feature I have found extremely useful, implemented as a GCC specific extension. I've used this to get great speedups and simplify

Re: Review of Jesse Phillips's CSV Parser

2011-10-28 Thread Walter Bright
On 10/28/2011 6:18 AM, dsimcha wrote: Formal review of Jesse Phillips's CSV parser module begins today and runs through November . Following that, a vote will take place for one week. Please post any comments about this library in this thread. Docs:

Re: goto [variable], and address of code labels

2011-10-28 Thread bearophile
ponce: Provided some hairy conditions, the switch instruction will optimize to a jump table in GCC and probably most C compilers. In ICC, some static analysis is even used to optimize out the test before the switch. In D, final switch might enable such an optimization with statically

Re: goto [variable], and address of code labels

2011-10-28 Thread Dmitry Olshansky
On 28.10.2011 22:57, ponce wrote: Provided some hairy conditions, the switch instruction will optimize to a jump table in GCC and probably most C compilers. They do, you have no guaranties. It will either fly or crawl, depending on sparseness of values. Even so it *usually* makes table, just

Re: Compiler patch for runtime reflection

2011-10-28 Thread Adam Wilson
On Fri, 28 Oct 2011 00:07:57 -0700, Jacob Carlborg d...@me.com wrote: On 2011-10-27 20:42, Adam Wilson wrote: On Thu, 27 Oct 2011 00:14:35 -0700, Jacob Carlborg d...@me.com wrote: Are you saying that you consider using D for this Horizon project? I can recommend you take a look at DWT:

Re: D Map Treemap viewer

2011-10-28 Thread Nick Sabalausky
Ary Manzana a...@esperanto.org.ar wrote in message news:j8edr5$mla$1...@digitalmars.com... On 10/27/11 9:09 PM, Vladimir Panteleev wrote: This tool attempts to answer the question Why the $#%!$@% hell is my binary so huge? in an intuitive way. Each rectangle is proportional in its area

Re: goto [variable], and address of code labels

2011-10-28 Thread Manu
On 28 October 2011 22:16, Dmitry Olshansky dmitry.o...@gmail.com wrote: On 28.10.2011 20:30, Manu wrote: Hi people. I'd like to propose support for taking the address of code labels, and supporting variable goto statements. This is a feature I have found extremely useful, implemented as a

Re: goto [variable], and address of code labels

2011-10-28 Thread Manu
On 28 October 2011 22:30, Dmitry Olshansky dmitry.o...@gmail.com wrote: On 28.10.2011 22:57, ponce wrote: Provided some hairy conditions, the switch instruction will optimize to a jump table in GCC and probably most C compilers. They do, you have no guaranties. It will either fly or crawl,

Re: D Map Treemap viewer

2011-10-28 Thread Walter Bright
On 10/27/2011 5:09 PM, Vladimir Panteleev wrote: This tool attempts to answer the question Why the $#%!$@% hell is my binary so huge? in an intuitive way. That is a neat idea and a neat project. I've thought of building another tool that will read the .obj files and be able to answer the

Re: queue container?

2011-10-28 Thread Steven Schveighoffer
On Thu, 27 Oct 2011 22:52:33 -0400, J Arrizza cppge...@gmail.com wrote: (BTW, as great as this thread has gone, I was wondering if someone could answer my original question about using existing Array container for a queue?) Using an array of any type as a queue is going to be awkward. I'd

Re: NULL indicator in Variant

2011-10-28 Thread Steven Schveighoffer
On Thu, 27 Oct 2011 14:06:47 -0400, Steve Teale steve.te...@britseyeview.com wrote: On Thu, 27 Oct 2011 13:58:54 -0400, Steven Schveighoffer wrote: On Thu, 27 Oct 2011 13:53:02 -0400, Steve Teale steve.te...@britseyeview.com wrote: On Thu, 27 Oct 2011 13:09:43 -0400, Steven Schveighoffer

Re: NULL indicator in Variant

2011-10-28 Thread Jonathan M Davis
On Friday, October 28, 2011 19:04 Steven Schveighoffer wrote: I don't like Variant having this behavior when it's only of specific use. Variant is not a database-only type. Agreed. Unless such a change has a real use case beyond databases, I do not think that it should be built into Variant.

Re: NULL indicator in Variant

2011-10-28 Thread Robert Jacques
On Fri, 28 Oct 2011 10:22:37 -0400, Steve Teale steve.te...@britseyeview.com wrote: On Fri, 28 Oct 2011 00:35:45 -0400, Robert Jacques wrote: [snip] Speaking as the one making over variant, let me see if I understand your use case. Similar to typecons.Nullable, you want to be able to test

Re: syntax definition language

2011-10-28 Thread bcs
On 10/23/2011 04:58 AM, Gor Gyolchanyan wrote: Hi, guys! Can anyone tell me what's the name of this syntax definition language, used here: http://www.d-programming-language.org/lex.htm ? You might find this interesting: http://dsource.org/projects/scrapple/browser/trunk/dparser It's way out

Re: GSoC Mentor Summit Observations and D Marketing

2011-10-28 Thread bcs
On 10/24/2011 08:19 PM, Walter Bright wrote: On 10/24/2011 6:52 PM, Brad Roberts wrote: On Mon, 24 Oct 2011, Walter Bright wrote: A pitch needs to be longer and more informative. You've got 20-30 seconds to convince the person to look deeper. It's enough to list a couple important points. Top

Re: Ada, HCSS and more

2011-10-28 Thread bcs
On 10/25/2011 08:16 PM, bearophile wrote: (Report after a mistake.) This looks mostly like Ada advertisement, but it's readable (May 2008): http://www.mil-embedded.com/articles/id/?3277 The Reddit thread about it:

Re: Early std.crypto

2011-10-28 Thread bcs
On 10/24/2011 05:10 PM, Piotr Szturmaj wrote: https://github.com/pszturmaj/phobos/tree/master/std/crypto This is some early work on std.crypto proposal. Currently only MD5, HMAC and all SHA family functions (excluding SHA0 which is very old, broken and no longer in use). I plan to add other

Re: FIFO stack

2011-10-28 Thread Dominic Jones
To conclude the matter regarding the absence of a FIFO stack in the standard library and the not so good alternative of arrays (in particular where there are a significant number of push-pops and the maximum length is not initially known): Does anyone in-the-know know if something like DList (a

Fake global associative array literals

2011-10-28 Thread bearophile
What do you think about a rewrite rule that changes code like: int[int] aa = [1:2, 3:4]; void main() {} Into: int[int] aa; static this() { aa = [1:2, 3:4]; } void main() {} Bye, bearophile

template expressions in C++ to an equivalent in D

2011-10-28 Thread Dominic Jones
Hello, I want to compute, for example d = a + b + c where a..d are of some derived type, without incurring the cost of temporaries for each overloaded operation. In a similar post a while ago, Walter Bright proposed using function literals instead of template expressions to do this. After

Re: template expressions in C++ to an equivalent in D

2011-10-28 Thread deadalnix
Le 28/10/2011 19:18, Dominic Jones a écrit : Hello, I want to compute, for example d = a + b + c where a..d are of some derived type, without incurring the cost of temporaries for each overloaded operation. In a similar post a while ago, Walter Bright proposed using function literals instead

Re: Fake global associative array literals

2011-10-28 Thread Nick Sabalausky
bearophile bearophileh...@lycos.com wrote in message news:j8eflp$q3o$1...@digitalmars.com... What do you think about a rewrite rule that changes code like: int[int] aa = [1:2, 3:4]; void main() {} Into: int[int] aa; static this() { aa = [1:2, 3:4]; } void main() {} You generally

Re: Fake global associative array literals

2011-10-28 Thread bearophile
Nick Sabalausky: So as nice as it would be to use AA initializers at the module-level, this carries a hidden danger which could be a royal PITA to debug (especially for D newbies), so I don't think it's a good thing to do. I see. Thank you for your answer. Bye, bearophile

[Issue 6860] New: isNumeric(immutable(char)) fails

2011-10-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6860 Summary: isNumeric(immutable(char)) fails Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component:

[Issue 6859] Segfault when abstract method uses with contract.

2011-10-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6859 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||patch, wrong-code ---

[Issue 5193] SList cannot have struct elements that have immutable members.

2011-10-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5193 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||patch --- Comment #2

[Issue 6861] New: Implicitly convert expression. const(immutable(char)[][string][string]) to const(string[string][string])

2011-10-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6861 Summary: Implicitly convert expression. const(immutable(char)[][string][string]) to const(string[string][string]) Product: D Version: D2 Platform: x86

[Issue 5076] std.algorithm.sorted / schwartzSorted

2011-10-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5076 --- Comment #12 from bearophile_h...@eml.cc 2011-10-28 17:33:16 PDT --- An use case for sorted(). I have to create a function foo() with a int[] argument. Unless foo() is performance-critical the usual API requirements ask for its arguments to