Re: TDPL monthly sales at 12-month high

2012-03-07 Thread Bystroushaak
Yeah, its great book, probably the best I've read about programming. On 27.2.2012 14:16, MattCodr wrote: I started reading this book a couple of days ago and one thing that I liked on this book, is not only about D, but about design and implementation too.

Enhanced D syntax highlighting for Sublime Text 2

2012-03-07 Thread Alex Rønne Petersen
https://github.com/alexrp/st2-d I plan to have it merged into ST2 proper if I can somehow get in touch with the dev(s)... -- - Alex

Re: TDPL monthly sales at 12-month high

2012-03-07 Thread Andrei Alexandrescu
On 3/7/12 1:26 AM, Bystroushaak wrote: Yeah, its great book, probably the best I've read about programming. On 27.2.2012 14:16, MattCodr wrote: I started reading this book a couple of days ago and one thing that I liked on this book, is not only about D, but about design and implementation

D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread Zach the Mystic
Check it out: https://github.com/zachthemystic/ddmd-clean/ This program is an adaptation of the work done by the ddmd team: http://www.dsource.org/projects/ddmd I described most of it in the README. I hope it runs smoothly for you. I only ran it on MAC OSX, and I don't know much about github

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread Andrej Mitrovic
Hi, which version of the compiler can this be built with? I get this with 2.058: dmd\binExp.d(324): Error: function dmd.binExp.EqualExp.isBit of type bool() overrides but is not covariant with dmd.expression.Expression.isBit of type int() dmd\binExp.d(324): Error: function

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread Zach the Mystic
On Wednesday, 7 March 2012 at 20:46:40 UTC, Andrej Mitrovic wrote: Hi, which version of the compiler can this be built with? I get this with 2.058: dmd\binExp.d(324): Error: function dmd.binExp.EqualExp.isBit of type bool() overrides but is not covariant with dmd.expression.Expression.isBit

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread Zach the Mystic
On Wednesday, 7 March 2012 at 21:06:25 UTC, Zach the Mystic wrote: On Wednesday, 7 March 2012 at 20:46:40 UTC, Andrej Mitrovic wrote: Hi, which version of the compiler can this be built with? I get this with 2.058: dmd\binExp.d(324): Error: function dmd.binExp.EqualExp.isBit of type bool()

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread dnewbie
Zach the Mystic - I can't compile it. dmd\binExp.d(115): Error: function dmd.binExp.AndAndExp.isBit of type bool() overrides but is no t covariant with dmd.expression.Expression.isBit of type int() dmd\binExp.d(115): Error: function dmd.binExp.AndAndExp.isBit does not override any function On

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread Robert Clipsham
On 07/03/2012 20:02, Zach the Mystic wrote: Check it out: https://github.com/zachthemystic/ddmd-clean/ This program is an adaptation of the work done by the ddmd team: http://www.dsource.org/projects/ddmd I described most of it in the README. I hope it runs smoothly for you. I only ran it on

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread Andrej Mitrovic
You have a duplicate definition of: static int isTPL(Parameter[] arguments) in dmd.parameters.d

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread Andrej Mitrovic
After fixing that dup definition the project compiles and runs on Win7 x64. Nice! :)

std.log review extended until Feb 13

2012-03-07 Thread David Nadlinger
The review of Jose Armando Garcia Sancio's std.log library for inclusion into Phobos is currently in progress at the digitalmars.D news group [1]. It was scheduled to end yesterday, but as the discussion is still in progress on several design questions, the review period has been extended

Re: std.log review extended until Feb 13

2012-03-07 Thread Brad Anderson
On Wed, Mar 7, 2012 at 2:42 PM, David Nadlinger s...@klickverbot.at wrote: The review of Jose Armando Garcia Sancio's std.log library for inclusion into Phobos is currently in progress at the digitalmars.D news group [1]. It was scheduled to end yesterday, but as the discussion is still in

Re: std.log review extended until Feb 13

2012-03-07 Thread Jonathan M Davis
On Wednesday, March 07, 2012 22:42:51 David Nadlinger wrote: In total, it will then have lasted four weeks, similar to what we had for previous proposals. After that, a one-week vote (will be announced separately) is planned to take place. Actually, I think that most proposals have been

std.log review extended until March 13th

2012-03-07 Thread David Nadlinger
On Wednesday, 7 March 2012 at 21:47:56 UTC, Brad Anderson wrote: March 13th :P Oh, how embarrassing – must be the cold temperatures outside making me think we still have February… xD David

Re: std.log review extended until Feb 13

2012-03-07 Thread David Nadlinger
On Wednesday, 7 March 2012 at 21:51:11 UTC, Jonathan M Davis wrote: Actually, I think that most proposals have been reviewed for only two weeks before voting, but regardless, clearly std.log needs more review. I had the four week for std.csv in mind when I wrote that, but yeah, I think it

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread Zach the Mystic
On Wednesday, 7 March 2012 at 21:15:46 UTC, dnewbie wrote: Zach the Mystic - I can't compile it. Still not working?

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread dnewbie
It's working.. Pretty cool :) On Thu, Mar 8, 2012, at 12:07 AM, Zach the Mystic wrote: On Wednesday, 7 March 2012 at 21:15:46 UTC, dnewbie wrote: Zach the Mystic - I can't compile it. Still not working?

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread Manfred Nowak
Zach the Mystic wrote: Check it out: Done. Congrats! -manfred

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread Daniel Murphy
Zach the Mystic reachminusthiszachgm...@dot.com wrote in message news:cibxxwrywnorlxwth...@forum.dlang.org... On Wednesday, 7 March 2012 at 20:46:40 UTC, Andrej Mitrovic wrote: Hi, which version of the compiler can this be built with? I get this with 2.058: dmd\binExp.d(324): Error:

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread Daniel Murphy
Zach the Mystic reachminusthiszachgm...@dot.com wrote in message news:afqmbmvuvizvgfooe...@forum.dlang.org... I'll gladly put a license on it if the leaders of the community tell me which one to use ( Artistic, libpng, Boost ). Zach It will need to be the same license as the frontend

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread Zach the Mystic
On Thursday, 8 March 2012 at 01:38:43 UTC, Daniel Murphy wrote: You should check, but I think isBit is dead code anyway. I think it is. I've left a number of dead codes because it helped me understand the whole system better. There's a lot of isXXX() functions which come in handy, so maybe

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread Zach the Mystic
On Thursday, 8 March 2012 at 01:43:26 UTC, Daniel Murphy wrote: Zach the Mystic reachminusthiszachgm...@dot.com wrote in message news:afqmbmvuvizvgfooe...@forum.dlang.org... I'll gladly put a license on it if the leaders of the community tell me which one to use ( Artistic, libpng, Boost ).

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread Daniel Murphy
Zach the Mystic reachminusthiszachgm...@dot.com wrote in message news:duefgfqidzxwcfvge...@forum.dlang.org... On Thursday, 8 March 2012 at 01:38:43 UTC, Daniel Murphy wrote: You should check, but I think isBit is dead code anyway. I think it is. I've left a number of dead codes because it

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread dolive
Zach the Mystic Wrote: Check it out: https://github.com/zachthemystic/ddmd-clean/ This program is an adaptation of the work done by the ddmd team: http://www.dsource.org/projects/ddmd I described most of it in the README. I hope it runs smoothly for you. I only ran it on MAC OSX, and I

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread Zach the Mystic
On Thursday, 8 March 2012 at 05:05:46 UTC, Daniel Murphy wrote: Zach the Mystic reachminusthiszachgm...@dot.com wrote in message news:duefgfqidzxwcfvge...@forum.dlang.org... On Thursday, 8 March 2012 at 01:38:43 UTC, Daniel Murphy wrote: You should check, but I think isBit is dead code

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread Zach the Mystic
On Thursday, 8 March 2012 at 04:56:07 UTC, Jonathan M Davis wrote: If you took it from ddmd, then it's definitely going to have to be GPL. Now, there is interest in having a D parser and lexer in Phobos. I don't know if your version will fit the bill (e.g. it must have a range-based API),

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread Zach the Mystic
On Thursday, 8 March 2012 at 05:41:46 UTC, dolive wrote: Great work ! Ask a few questions : Is there documentation? can it parse dmd c source file ? ( Auto- complete feature of the ide will involve dmd c source file ? ) thank's Dolive No documentation. Even the API is inconsistent

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread Jonathan M Davis
On Thursday, March 08, 2012 08:21:17 Zach the Mystic wrote: On Thursday, 8 March 2012 at 04:56:07 UTC, Jonathan M Davis wrote: If you took it from ddmd, then it's definitely going to have to be GPL. Now, there is interest in having a D parser and lexer in Phobos. I don't know if your

Re: D port of dmd: Lexer, Parser, AND CodeGenerator fully operational

2012-03-07 Thread Jonathan M Davis
On Thursday, March 08, 2012 08:45:13 Zach the Mystic wrote: On Thursday, 8 March 2012 at 07:21:19 UTC, Zach the Mystic wrote: On Thursday, 8 March 2012 at 04:56:07 UTC, Jonathan M Davis wrote: If you took it from ddmd, then it's definitely going to have to be GPL. Now, there is

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Jacob Carlborg
On 2012-03-07 01:01, Ary Manzana wrote: On 3/6/12 8:58 PM, Ary Manzana wrote: On 3/6/12 8:43 PM, Jonathan M Davis wrote: On Tuesday, March 06, 2012 17:38:09 Adam D. Ruppe wrote: writeln(time.toISOExtendedString()); // bzzt, wrong, but this used to work! Yes, and it was quickly changed to

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Jacob Carlborg
On 2012-03-07 03:18, Nick Sabalausky wrote: Jonathan M Davisjmdavisp...@gmx.com wrote in message news:mailman.110.1331077432.4860.digitalmar...@puremagic.com... On Tuesday, March 06, 2012 17:38:09 Adam D. Ruppe wrote: Nope, apparently, I meant dur. Ridiculous. A Duration needs to be

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Jacob Carlborg
On 2012-03-07 04:46, Nick Sabalausky wrote: Adam D. Ruppedestructiona...@gmail.com wrote in message news:bwqkuqhyiygvgqswi...@forum.dlang.org... On Wednesday, 7 March 2012 at 03:24:23 UTC, Jonathan M Davis wrote: I don't understand this complaint at all. curr is an incredibly common

Re: John Carmack applauds D's pure attribute

2012-03-07 Thread Peter Alexander
On Wednesday, 7 March 2012 at 02:25:41 UTC, Walter Bright wrote: On 3/6/2012 4:27 AM, Manu wrote: On 26 February 2012 00:55, Walter Bright newshou...@digitalmars.com Most straight up GC vs malloc/free benchmarks miss something crucial. A GC allows one to do substantially *fewer*

Re: Extend vector ops to boolean operators?

2012-03-07 Thread Timon Gehr
On 03/06/2012 09:58 PM, H. S. Teoh wrote: On Tue, Mar 06, 2012 at 09:35:11PM +0100, Timon Gehr wrote: On 03/06/2012 09:30 PM, H. S. Teoh wrote: It'd be really cool if I could do this: void func(int[] vector, int[] bounds) { assert(vector[]= 0 vector[] bounds[]);

Re: Extend vector ops to boolean operators?

2012-03-07 Thread Timon Gehr
On 03/06/2012 10:10 PM, Simen Kjærås wrote: On Tue, 06 Mar 2012 21:35:11 +0100, Timon Gehr timon.g...@gmx.ch wrote: On 03/06/2012 09:30 PM, H. S. Teoh wrote: It'd be really cool if I could do this: void func(int[] vector, int[] bounds) { assert(vector[]= 0 vector[] bounds[]); ... } Is there

Re: dereferencing null

2012-03-07 Thread Timon Gehr
On 03/07/2012 02:40 AM, Chad J wrote: On 03/06/2012 12:19 PM, Timon Gehr wrote: ... For example: http://pm.inf.ethz.ch/publications/getpdf.php/bibname/Own/id/SummersMuellerTR11.pdf CTFE and static constructors solve that issue for static data. I can't seem to download the PDF... it always

Re: dereferencing null

2012-03-07 Thread Timon Gehr
On 03/07/2012 02:40 AM, Chad J wrote: But to initialize non-null fields, I suspect we would need to be able to do stuff like this: class Foo { int dummy; } class Bar { Foo foo = new Foo(); this() { foo.dummy = 5; } } Which would be lowered by the compiler into this: class Bar { // Assume

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Timon Gehr
On 03/06/2012 10:30 PM, deadalnix wrote: auto helps too. This remark was explicitly about _Java_ code style.

Re: John Carmack applauds D's pure attribute

2012-03-07 Thread Walter Bright
On 3/6/2012 9:59 PM, Sean Kelly wrote: Slice ten bytes out of the middle of a ten MB buffer and the entire buffer sticks around. True.

Re: Review of Jose Armando Garcia Sancio's std.log

2012-03-07 Thread Steven Schveighoffer
On Tue, 06 Mar 2012 14:32:37 -0500, Jose Armando Garcia jsan...@gmail.com wrote: On Mon, Mar 5, 2012 at 5:30 PM, Steven Schveighoffer schvei...@yahoo.com wrote: Except 'info', 'error', 'warning' are all common names, likely to be a very attractive name for something that has nothing to do

Re: Review of Jose Armando Garcia Sancio's std.log

2012-03-07 Thread Steven Schveighoffer
On Tue, 06 Mar 2012 14:39:28 -0500, Jose Armando Garcia jsan...@gmail.com wrote: On Tue, Mar 6, 2012 at 12:25 AM, Jonathan M Davis jmdavisp...@gmx.com wrote: On Tuesday, March 06, 2012 09:14:16 so wrote: On Tuesday, 6 March 2012 at 07:46:14 UTC, Jacob Carlborg wrote: On 2012-03-06 02:32,

Re: Review of Jose Armando Garcia Sancio's std.log

2012-03-07 Thread Steven Schveighoffer
On Tue, 06 Mar 2012 19:59:09 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 3/6/12 4:31 PM, Geoffrey Biggs wrote: On 07/03/12 09:25, Jonathan M Davis wrote: On Tuesday, March 06, 2012 13:08:42 Brad Roberts wrote: On Tue, 6 Mar 2012, Jose Armando Garcia wrote: Fix now:

Re: Review of Jose Armando Garcia Sancio's std.log

2012-03-07 Thread Steven Schveighoffer
On Tue, 06 Mar 2012 23:10:58 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 3/6/12 7:43 PM, Jonathan M Davis wrote: Because the level that you log something at and what you want to do in terms of exceptions aren't necessarily related at all. It could easily be that you

Re: Review of Jose Armando Garcia Sancio's std.log

2012-03-07 Thread Steven Schveighoffer
On Tue, 06 Mar 2012 22:54:39 -0500, James Miller ja...@aatch.net wrote: Surprisingly, I agree with the idea that fatal and critical shouldn't throw, or at least shouldn't throw by default, maybe a configuration option would allow for that functionality. Logging probably shouldn't affect program

Re: Review of Jose Armando Garcia Sancio's std.log

2012-03-07 Thread Steven Schveighoffer
On Wed, 07 Mar 2012 02:33:05 -0500, Dmitry Olshansky dmitry.o...@gmail.com wrote: Exception is a graceful shutdown, as it calls destructors finally blocks while unrolling the stack. You're assuming the program uses finally/scope exit blocks to do shutdown logic. This is not always the

Re: dereferencing null

2012-03-07 Thread Steven Schveighoffer
On Mon, 05 Mar 2012 22:51:28 -0500, Jonathan M Davis jmdavisp...@gmx.com wrote: On Monday, March 05, 2012 21:04:20 Steven Schveighoffer wrote: On Mon, 05 Mar 2012 20:17:32 -0500, Michel Fortin michel.for...@michelf.com wrote: That said, throwing an exception might not be a better response

Re: dereferencing null

2012-03-07 Thread Steven Schveighoffer
On Tue, 06 Mar 2012 23:07:24 -0500, Walter Bright newshou...@digitalmars.com wrote: On 3/6/2012 8:05 PM, Walter Bright wrote: What I'm talking about is the idea that one can recover from seg faults resulting from program bugs. I've written about this before, but I want to emphasize that

Re: NNTP rules, news.digitalmars.com sucks

2012-03-07 Thread Stewart Gordon
On 06/03/2012 10:30, Vladimir Panteleev wrote: snip (An alternative explanation might be that your client might be placing the message in the outbox and retrying automatically in the background.) It's a plausible explanation if it's the kind of error that happens _only_ on posting. But no

Re: dereferencing null

2012-03-07 Thread Steven Schveighoffer
On Mon, 05 Mar 2012 23:58:48 -0500, Chad J chadjoan@__spam.is.bad__gmail.com wrote: On 03/05/2012 11:27 PM, Jonathan M Davis wrote: On Tuesday, March 06, 2012 05:11:30 Martin Nowak wrote: There are two independent discussions being conflated here. One about getting more information out of

Re: NNTP rules, news.digitalmars.com sucks

2012-03-07 Thread Steven Schveighoffer
On Tue, 06 Mar 2012 05:30:00 -0500, Vladimir Panteleev vladi...@thecybershadow.net wrote: On Tuesday, 6 March 2012 at 10:22:15 UTC, Gour wrote: On Mon, 05 Mar 2012 17:33:24 -0500 Steven Schveighoffer schvei...@yahoo.com wrote: Is this a common problem with news servers? Is there some way

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Stewart Gordon
On 06/03/2012 20:20, Derek wrote: snip Should we use American or English spelling? Color verses Colour, for example? Make one an alias of the other. Stewart.

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Stewart Gordon
On 06/03/2012 18:49, Nick Sabalausky wrote: snip Five times quantity seven plus three end of quantity Look! It's just normal English! And the editor can highlight it properly! No need to remember arbitrary symbols that aren't spelled-out! I mean, shit, how does a vertical and horizontal line

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Steven Schveighoffer
On Tue, 06 Mar 2012 11:38:09 -0500, Adam D. Ruppe destructiona...@gmail.com wrote: One of the stumbling blocks on using std.datetime is how many bizarre abbreviations it has. auto time = Clock.currentTime(); // bzzt, wrong I would have guessed Clock.now(); if(time - something

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Steven Schveighoffer
On Tue, 06 Mar 2012 12:09:47 -0500, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: I'll never forgive std.datetime for this mistake: auto sw = StopWatch(AutoStart.yes); writeln(sw.peek.hnsecs); writeln(sw.peek.nsecs); writeln(sw.peek.usecs); writeln(sw.peek.msecs); writeln(sw.peek.secs);

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Marco Leise
Am 06.03.2012, 23:50 Uhr, schrieb James Miller ja...@aatch.net: On 7 March 2012 10:30, deadalnix deadal...@gmail.com wrote: Le 06/03/2012 21:00, Timon Gehr a écrit : On 03/06/2012 07:13 PM, Alex Rønne Petersen wrote: (Also, seriously, I think you're over-dramatizing the Java variable

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Marco Leise
P.S.: ... I don't need to repeat the negative aspects of verbose names, but the benefit is a consistent naming style. Considering ArrayBuffer and OutputStream, ArrayBufferOutputStream is a natural blend, whereas ArrBufOStr would be shorter, but difficult to remember.

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Marco Leise
Am 07.03.2012, 07:17 Uhr, schrieb Daniel Murphy yebbl...@nospamgmail.com: Derek ddparn...@bigpond.com wrote in message news:op.warmsnem34mv3i@red-beast... On Wed, 07 Mar 2012 03:38:09 +1100, Adam D. Ruppe destructiona...@gmail.com wrote: Why aren't we using real words here? Real words are

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Andrej Mitrovic
On 3/7/12, Steven Schveighoffer schvei...@yahoo.com wrote: I'll see if I can do a pull request. For my own purposes what I did was wrap StopWatch in a custom struct and used alias this to overwrite some of its functions. It's one of the things that makes D so great, I can basically rewrite an

Re: Review of Jose Armando Garcia Sancio's std.log

2012-03-07 Thread Steven Schveighoffer
On Tue, 06 Mar 2012 14:27:17 -0500, Jose Armando Garcia jsan...@gmail.com wrote: On Mon, Mar 5, 2012 at 5:32 PM, Jonathan M Davis jmdavisp...@gmx.com wrote: On Tuesday, March 06, 2012 02:22:05 so wrote: That is not a counter-argument to something related to this library but everything that

Re: Review of Jose Armando Garcia Sancio's std.log

2012-03-07 Thread Steven Schveighoffer
On Wed, 07 Mar 2012 07:09:17 -0500, Steven Schveighoffer schvei...@yahoo.com wrote: On Tue, 06 Mar 2012 14:39:28 -0500, Jose Armando Garcia jsan...@gmail.com wrote: On Tue, Mar 6, 2012 at 12:25 AM, Jonathan M Davis jmdavisp...@gmx.com wrote: On Tuesday, March 06, 2012 09:14:16 so wrote:

Re: D Wiki - Why is it in such shambles?

2012-03-07 Thread Bruno Medeiros
On 03/03/2012 01:55, Jesse Phillips wrote: On Friday, 2 March 2012 at 14:49:54 UTC, Robert Rouse wrote: I'm relatively new to D, so I'm looking at everything I can. The D wiki linked from the D site has so much outdated information and entries that are more talk pages than actual entries (e.g.

Re: Review of Jose Armando Garcia Sancio's std.log

2012-03-07 Thread Steven Schveighoffer
On Tue, 06 Mar 2012 14:19:27 -0500, Jose Armando Garcia jsan...@gmail.com wrote: On Mon, Mar 5, 2012 at 1:55 PM, Steven Schveighoffer schvei...@yahoo.com wrote: On Mon, 13 Feb 2012 10:50:04 -0500, David Nadlinger s...@klickverbot.at wrote: There are several modules in the review queue right

Re: dereferencing null

2012-03-07 Thread Steven Schveighoffer
On Wed, 07 Mar 2012 09:22:27 -0500, Chad J chadjoan@__spam.is.bad__gmail.com wrote: On 03/07/2012 07:57 AM, Steven Schveighoffer wrote: On Mon, 05 Mar 2012 23:58:48 -0500, Chad J chadjoan@__spam.is.bad__gmail.com wrote: Why is it fatal? A segmentation fault indicates that a program

Re: dereferencing null

2012-03-07 Thread Chad J
On Wednesday, 7 March 2012 at 14:23:18 UTC, Chad J wrote: On 03/07/2012 07:57 AM, Steven Schveighoffer wrote: On Mon, 05 Mar 2012 23:58:48 -0500, Chad J chadjoan@__spam.is.bad__gmail.com wrote: Why is it fatal? A segmentation fault indicates that a program tried to access memory that is

Re: dereferencing null

2012-03-07 Thread Chad J
On Wednesday, 7 March 2012 at 14:23:18 UTC, Chad J wrote: On 03/07/2012 07:57 AM, Steven Schveighoffer wrote: On Mon, 05 Mar 2012 23:58:48 -0500, Chad J chadjoan@__spam.is.bad__gmail.com wrote: Why is it fatal? A segmentation fault indicates that a program tried to access memory that is

Re: Review of Jose Armando Garcia Sancio's std.log

2012-03-07 Thread Robert Jacques
On Tue, 06 Mar 2012 21:22:21 -0600, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 3/6/12 6:05 PM, Geoffrey Biggs wrote: That approach means that if I actually do have a fatal error, I can't mark it as such. Use log.fatal for those. Andrei But fatal Logs a fatal severity

Re: dereferencing null

2012-03-07 Thread Steven Schveighoffer
On Wed, 07 Mar 2012 10:10:32 -0500, Chad J chadjoan@__spam.is.bad__gmail.com wrote: On Wednesday, 7 March 2012 at 14:23:18 UTC, Chad J wrote: On 03/07/2012 07:57 AM, Steven Schveighoffer wrote: On Mon, 05 Mar 2012 23:58:48 -0500, Chad J chadjoan@__spam.is.bad__gmail.com wrote: Why is it

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Steven Schveighoffer
On Wed, 07 Mar 2012 08:47:48 -0500, Steven Schveighoffer schvei...@yahoo.com wrote: I'll see if I can do a pull request. Almost done, need to test: https://github.com/schveiguy/druntime/commit/cf9d1ba4f5498c447d91497cb5edbd735d2b4c7e Actually cleans up a lot of the template constraints

Re: D Wiki - Why is it in such shambles?

2012-03-07 Thread Justin C Calvarese
On Wednesday, 7 March 2012 at 14:43:59 UTC, Bruno Medeiros wrote: On 03/03/2012 01:55, Jesse Phillips wrote: On Friday, 2 March 2012 at 14:49:54 UTC, Robert Rouse wrote: I'm relatively new to D, so I'm looking at everything I can. The D wiki linked from the D site has so much outdated

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread H. S. Teoh
On Wed, Mar 07, 2012 at 03:30:15PM +0100, Andrej Mitrovic wrote: On 3/7/12, Steven Schveighoffer schvei...@yahoo.com wrote: I'll see if I can do a pull request. For my own purposes what I did was wrap StopWatch in a custom struct and used alias this to overwrite some of its functions. It's

Re: John Carmack applauds D's pure attribute

2012-03-07 Thread H. S. Teoh
On Wed, Mar 07, 2012 at 02:26:28AM -0800, Walter Bright wrote: On 3/6/2012 9:59 PM, Sean Kelly wrote: Slice ten bytes out of the middle of a ten MB buffer and the entire buffer sticks around. [...] Isn't there some way of dealing with this? I mean, if the GC marks the highest lowest pointers

Re: inout and function/delegate parameters

2012-03-07 Thread Steven Schveighoffer
On Tue, 06 Mar 2012 05:11:34 -0500, Timon Gehr timon.g...@gmx.ch wrote: On 03/06/2012 12:27 AM, Steven Schveighoffer wrote: ... There are two parts to inout, one is that it can be one function called 3 different ways, the other is that you know it's constant during function execution. Some

Re: Review of Jose Armando Garcia Sancio's std.log

2012-03-07 Thread David Gileadi
On 3/6/12 5:39 PM, H. S. Teoh wrote: I don't like the current state of dlang.org docs either. There is little or no intro paragraph to explain what on earth the module is used for or why you should bother reading the rest of the page for the next hour or so. It also doesn't give any motivating

Re: dereferencing null

2012-03-07 Thread H. S. Teoh
On Wed, Mar 07, 2012 at 09:22:27AM -0500, Chad J wrote: On 03/07/2012 07:57 AM, Steven Schveighoffer wrote: [...] However, there are several causes of seg faults: 1. You forgot to initialize a variable. 2. Your memory has been corrupted, and some corrupted pointer now points into no-mem

Re: Review of Jose Armando Garcia Sancio's std.log

2012-03-07 Thread Dmitry Olshansky
On 07.03.2012 16:34, Steven Schveighoffer wrote: On Wed, 07 Mar 2012 02:33:05 -0500, Dmitry Olshansky dmitry.o...@gmail.com wrote: Exception is a graceful shutdown, as it calls destructors finally blocks while unrolling the stack. You're assuming the program uses finally/scope exit blocks

Re: NNTP rules, news.digitalmars.com sucks

2012-03-07 Thread H. S. Teoh
On Wed, Mar 07, 2012 at 08:01:48AM -0500, Steven Schveighoffer wrote: On Tue, 06 Mar 2012 05:30:00 -0500, Vladimir Panteleev vladi...@thecybershadow.net wrote: On Tuesday, 6 March 2012 at 10:22:15 UTC, Gour wrote: On Mon, 05 Mar 2012 17:33:24 -0500 Steven Schveighoffer schvei...@yahoo.com

Re: NNTP rules, news.digitalmars.com sucks

2012-03-07 Thread Vladimir Panteleev
On Wednesday, 7 March 2012 at 13:01:48 UTC, Steven Schveighoffer wrote: Do you mean a well known NNTP problem or just for our newsgroups? Just the DigitalMars NNTP server. The server will refuse to accept new connections when the system load is above a certain threshold.

Re: D Wiki - Why is it in such shambles?

2012-03-07 Thread Brad Anderson
On Wed, Mar 7, 2012 at 8:33 AM, Justin C Calvarese jccalvares...@gmail.comwrote: On Wednesday, 7 March 2012 at 14:43:59 UTC, Bruno Medeiros wrote: On 03/03/2012 01:55, Jesse Phillips wrote: On Friday, 2 March 2012 at 14:49:54 UTC, Robert Rouse wrote: I'm relatively new to D, so I'm looking

Re: D Wiki - Why is it in such shambles?

2012-03-07 Thread Andrej Mitrovic
On 3/7/12, Brad Anderson e...@gnuk.net wrote: - Do we even want a moderated wiki? Given the current state of the wiki it could be a good thing but given the current rate of pull request merging it could be a bad thing. FWIW pull requests for dpl.org seem to be merged much faster than pulls for

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Nick Sabalausky
Marco Leise marco.le...@gmx.de wrote in message news:op.waszojl09y6py2@marco-pc.local... I have used Java commercially in Eclipse and I have to make a point for the combination of IDE and language here. What you really *type* for that is (cs meaning ctrl+space): SCVEFWcs?enter cs???enter = new

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:sgmfyzmrfygshlmfq...@forum.dlang.org... On Tuesday, 6 March 2012 at 20:20:47 UTC, Derek wrote: Should we use American or English spelling? Color verses Colour, for example? I can go either way. I lean toward English spelling

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Nick Sabalausky
Jacob Carlborg d...@me.com wrote in message news:jj755f$r7u$1...@digitalmars.com... On 2012-03-07 04:46, Nick Sabalausky wrote: Adam D. Ruppedestructiona...@gmail.com wrote in message news:bwqkuqhyiygvgqswi...@forum.dlang.org... On Wednesday, 7 March 2012 at 03:24:23 UTC, Jonathan M Davis

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread H. S. Teoh
On Wed, Mar 07, 2012 at 01:24:03PM -0500, Nick Sabalausky wrote: [...] My thoughts on secs vs seconds: 1. I don't feel real strongly either way. 2. I like the suggestion someone had of allowing both secs and seconds. Normally I'd be against accepting alternate names (except as a

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Nick Sabalausky
Jacob Carlborg d...@me.com wrote in message news:jj74p4$n9r$3...@digitalmars.com... On 2012-03-07 03:18, Nick Sabalausky wrote: Jonathan M Davisjmdavisp...@gmx.com wrote in message news:mailman.110.1331077432.4860.digitalmar...@puremagic.com... On Tuesday, March 06, 2012 17:38:09 Adam D.

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread H. S. Teoh
On Wed, Mar 07, 2012 at 01:38:08PM -0500, Nick Sabalausky wrote: Adam D. Ruppe destructiona...@gmail.com wrote in message news:sgmfyzmrfygshlmfq...@forum.dlang.org... [[...] But, either option is better than Clr or Col. clr is the verb clear and col is column :) [...] clr == common

Re: dereferencing null

2012-03-07 Thread Jonathan M Davis
On Wednesday, March 07, 2012 07:55:35 H. S. Teoh wrote: It's not that the null pointer itself corrupts memory. It's that the null pointer is a sign that something may have corrupted memory *before* you got to that point. The point is, it's impossible to tell whether the null pointer was

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread H. S. Teoh
On Wed, Mar 07, 2012 at 01:50:03PM -0500, Nick Sabalausky wrote: Jacob Carlborg d...@me.com wrote in message news:jj74p4$n9r$3...@digitalmars.com... On 2012-03-07 03:18, Nick Sabalausky wrote: [...] I say fuck it: Let's just toss this into core.time (or std.datetime or whatever) and be

Re: Is it bad for object.di to depend on core.exception?

2012-03-07 Thread H. S. Teoh
On Sun, Mar 04, 2012 at 07:31:49AM +0100, Martin Nowak wrote: Wasn't the latest proposal that we add a working AA implementation to the runtime and switch the compiler after that has settled? Is somebody working on that? If not, I may take a crack at doing it. And by runtime you mean

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Jonathan M Davis
On Wednesday, March 07, 2012 08:47:48 Steven Schveighoffer wrote: On Tue, 06 Mar 2012 12:09:47 -0500, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: I'll never forgive std.datetime for this mistake: auto sw = StopWatch(AutoStart.yes); writeln(sw.peek.hnsecs);

Re: NNTP rules, news.digitalmars.com sucks

2012-03-07 Thread Gour
On Wed, 7 Mar 2012 07:59:10 -0800 H. S. Teoh hst...@quickfur.ath.cx wrote: ROTFLMAO!!! That would certainly be the day, when D forums can lay claims to being the largest NNTP community online. That would be when D takes over the world. :D Well, at the moment digitalmars.D is the biggest

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Andrej Mitrovic
On 3/7/12, H. S. Teoh hst...@quickfur.ath.cx wrote: The human brain is highly capable of inferring intention from context I don't think our brains should be wasted on decyphering abbreviations. Too much abbreviations could drive a sane person nuts. E.g.:

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Jonathan M Davis
On Tuesday, March 06, 2012 21:56:38 H. S. Teoh wrote: On Tue, Mar 06, 2012 at 07:48:37PM -0800, Jonathan M Davis wrote: On Tuesday, March 06, 2012 19:35:29 Andrei Alexandrescu wrote: In fact there is no such thing as a top level in D. (I was quite surprised to learn that a few years ago,

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread foobar
On Tuesday, 6 March 2012 at 18:22:03 UTC, deadalnix wrote: Le 06/03/2012 19:08, H. S. Teoh a écrit : On Tue, Mar 06, 2012 at 05:38:09PM +0100, Adam D. Ruppe wrote: One of the stumbling blocks on using std.datetime is how many bizarre abbreviations it has. auto time = Clock.currentTime(); //

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread foobar
On Tuesday, 6 March 2012 at 18:36:08 UTC, Adam D. Ruppe wrote: On Tuesday, 6 March 2012 at 18:06:46 UTC, H. S. Teoh wrote: I have to disagree on this one. If it was actually gratuitouslyOverlongFullySpelledOutVariableNames I might agree, but curr vs current is a whole other story.

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread foobar
On Wednesday, 7 March 2012 at 10:08:53 UTC, Timon Gehr wrote: On 03/06/2012 10:30 PM, deadalnix wrote: auto helps too. This remark was explicitly about _Java_ code style. Wrong. This is an issue with the *language*, NOT the naming convention.

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Nick Sabalausky
Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message news:mailman.179.1331149059.4860.digitalmar...@puremagic.com... On 3/7/12, H. S. Teoh hst...@quickfur.ath.cx wrote: The human brain is highly capable of inferring intention from context I don't think our brains should be wasted on

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Nick Sabalausky
Jonathan M Davis jmdavisp...@gmx.com wrote in message news:mailman.180.1331149159.4860.digitalmar...@puremagic.com... On Tuesday, March 06, 2012 21:56:38 H. S. Teoh wrote: On Tue, Mar 06, 2012 at 07:48:37PM -0800, Jonathan M Davis wrote: On Tuesday, March 06, 2012 19:35:29 Andrei Alexandrescu

Re: Review of Jose Armando Garcia Sancio's std.log

2012-03-07 Thread kennytm
Richard van Scheijen dl...@mesadu.net wrote: When logging the severity level should convey a certain insight that the developer has about the code. This can be done with a 3 bit field. These are: known-cause, known-effect and breaks-flow. This creates the following matrix: KC KE BF

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Timon Gehr
On 03/07/2012 09:04 PM, foobar wrote: On Wednesday, 7 March 2012 at 10:08:53 UTC, Timon Gehr wrote: On 03/06/2012 10:30 PM, deadalnix wrote: auto helps too. This remark was explicitly about _Java_ code style. Wrong. This is an issue with the *language*, NOT the naming convention. It is

  1   2   3   >