Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Alexander Suhoverhov
Steven Schveighoffer at Mon, 08 Mar 2010 15:23:51 -0500 wrote: SS On Mon, 08 Mar 2010 15:12:24 -0500, bearophile bearophileh...@lycos.com wrote: Steven Schveighoffer: Tell me how you would parse the following text serialization string for a string[]: hello world how are you What

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread biozic
Steven Schveighoffer Wrote: * shrinkToFit(T[] arr): This one is a bit tricky and technically unsafe. It reduces the size of the allocated length to fit the length of the array. The allocated length is the length that the runtime assumes is being used of the memory block. This is

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread grauzone
Robert Jacques wrote: On Mon, 08 Mar 2010 16:42:54 -0500, Philippe Sigaud philippe.sig...@gmail.com wrote: On Mon, Mar 8, 2010 at 14:22, Steven Schveighoffer schvei...@yahoo.comwrote: The shrinkToFit name is not my favorite, anyone care to submit a better name? minimize is out because it

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Fawzi Mohamed
On 2010-03-09 09:09:51 +0100, Alexander Suhoverhov alexan...@suhoverhov.selfip.net said: Steven Schveighoffer at Mon, 08 Mar 2010 15:23:51 -0500 wrote: SS On Mon, 08 Mar 2010 15:12:24 -0500, bearophile bearophileh...@lycos.com wrote: Steven Schveighoffer: Tell me how you would parse

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Steven Schveighoffer
On Mon, 08 Mar 2010 17:52:25 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Printing values with spaces between them is entirely fine for e.g. all numbers. You know what, you are right. Why should phobos cater to people wanting to print something as arcane as a

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Bernard Helyer
On 09/03/10 09:12, Walter Bright wrote: obj2asm tells the tale. (obj2asm is an incredibly useful tool, I don't know why nobody uses it.) Maybe a minor quibble, but obj2asm is really slow. If I'm going to disassemble something, I am never going to reach for obj2asm: `ds` is a dmdscript

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Fawzi Mohamed
On 9-mar-10, at 13:00, Steven Schveighoffer wrote: On Tue, 09 Mar 2010 03:09:51 -0500, Alexander Suhoverhov alexan...@suhoverhov.selfip.net wrote: Steven Schveighoffer at Mon, 08 Mar 2010 15:23:51 -0500 wrote: SS On Mon, 08 Mar 2010 15:12:24 -0500, bearophile bearophileh...@lycos.com

Re: dmd 1.057 and 2.041 release - operator overloading docs typo

2010-03-09 Thread Nick Treleaven
On Sun, 07 Mar 2010 22:54:12 -0800, Walter Bright wrote: http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.041.zip Great, thanks :) BTW on this page: http://www.digitalmars.com/d/2.0/operatoroverloading.html The 'Index Operator Overloading' link text at the top

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Steven Schveighoffer
On Tue, 09 Mar 2010 10:10:10 -0500, biozic bio...@free.fr wrote: Steven Schveighoffer Wrote: * shrinkToFit(T[] arr): This one is a bit tricky and technically unsafe. It reduces the size of the allocated length to fit the length of the array. The allocated length is the length that the

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Steven Schveighoffer
On Tue, 09 Mar 2010 03:09:51 -0500, Alexander Suhoverhov alexan...@suhoverhov.selfip.net wrote: Steven Schveighoffer at Mon, 08 Mar 2010 15:23:51 -0500 wrote: SS On Mon, 08 Mar 2010 15:12:24 -0500, bearophile bearophileh...@lycos.com wrote: Steven Schveighoffer: Tell me how you

Re: obj2asm

2010-03-09 Thread grauzone
Walter Bright wrote: Trass3r wrote: obj2asm tells the tale. (obj2asm is an incredibly useful tool, I don't know why nobody uses it.) Maybe because it's not free (and not much advertised). obconv also supports disassembling various object file formats + conversion between them and it's open

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Michal Minich
On Tue, 09 Mar 2010 10:23:07 -0500, Steven Schveighoffer wrote: I want to focus more on the fact that you are declaring the data after the slice as being no longer used. kind of assumeUnique ... assumeNoArrayReference ?

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Ellery Newcomer
On 03/09/2010 05:53 AM, Steven Schveighoffer wrote: On Mon, 08 Mar 2010 17:52:25 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Printing values with spaces between them is entirely fine for e.g. all numbers. You know what, you are right. Why should phobos cater to people

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Andrei Alexandrescu
Ellery Newcomer wrote: On 03/09/2010 05:53 AM, Steven Schveighoffer wrote: On Mon, 08 Mar 2010 17:52:25 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Printing values with spaces between them is entirely fine for e.g. all numbers. You know what, you are right. Why should

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Steven Schveighoffer
On Tue, 09 Mar 2010 12:33:01 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: In wake of printing multi-dimensional arrays, I agree that start and end delimiters should be present by default. If delimiters are present, it only makes sense to make the array look like a D

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Lutger
Michal Minich wrote: On Tue, 09 Mar 2010 10:23:07 -0500, Steven Schveighoffer wrote: I want to focus more on the fact that you are declaring the data after the slice as being no longer used. kind of assumeUnique ... assumeNoArrayReference ? I like that. Or assumeNoMemoryAliasing. It

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread bearophile
Lutger: Or assumeNoMemoryAliasing. It should be clear that it is a potentially very unsafe function. This is getting there :-) Bye, bearophile

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Walter Bright
Bernard Helyer wrote: On 09/03/10 09:12, Walter Bright wrote: obj2asm tells the tale. (obj2asm is an incredibly useful tool, I don't know why nobody uses it.) Maybe a minor quibble, but obj2asm is really slow. If I'm going to disassemble something, I am never going to reach for obj2asm:

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Fawzi Mohamed
On 9-mar-10, at 18:56, Steven Schveighoffer wrote: On Tue, 09 Mar 2010 12:33:01 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: In wake of printing multi-dimensional arrays, I agree that start and end delimiters should be present by default. If delimiters are present, it

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Fawzi Mohamed
On 2010-03-09 20:15:44 +0100, Fawzi Mohamed fa...@gmx.ch said: [...] some html spam sorry about that...

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Bernard Helyer
On 10/03/10 07:54, Walter Bright wrote: Hmm, I never noticed it being slow at all. I wonder what's going on. Obviously, I can't tell from here, but I can tell you what my system says obliquely. It spends that minute at 100% CPU, and about 100 megs resident (which it allocates quickly,

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Bernard Helyer
On 10/03/10 08:57, Bernard Helyer wrote: On 10/03/10 07:54, Walter Bright wrote: Hmm, I never noticed it being slow at all. I wonder what's going on. Obviously, I can't tell from here, but I can tell you what my system says obliquely. It spends that minute at 100% CPU, and about 100 megs

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Steven Schveighoffer
On Tue, 09 Mar 2010 14:54:11 -0500, David Gileadi f...@bar.com wrote: On 3/9/2010 12:44 PM, Steven Schveighoffer wrote: On Tue, 09 Mar 2010 14:36:41 -0500, Michal Minich michal.min...@gmail.com wrote: assumeNoArrayReference does not express that there can be references to the original array

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Walter Bright
Bernard Helyer wrote: On 10/03/10 08:57, Bernard Helyer wrote: On 10/03/10 07:54, Walter Bright wrote: Hmm, I never noticed it being slow at all. I wonder what's going on. Obviously, I can't tell from here, but I can tell you what my system says obliquely. It spends that minute at 100%

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Philippe Sigaud
On Tue, Mar 9, 2010 at 11:29, grauzone n...@example.net wrote: Many of these names (including shrinkToFit) suggest that memory usage is reduced by freeing the left over memory after the array. This is not true: the function just enables stomping of the memory past the slice passed to the

dmd 1.057 and 2.041 deb packages

2010-03-09 Thread Walter Bright
are now up thanks to Jordi Sayol http://www.digitalmars.com/d/download.html

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Don
Steven Schveighoffer wrote: On Tue, 09 Mar 2010 14:54:11 -0500, David Gileadi f...@bar.com wrote: On 3/9/2010 12:44 PM, Steven Schveighoffer wrote: On Tue, 09 Mar 2010 14:36:41 -0500, Michal Minich michal.min...@gmail.com wrote: assumeNoArrayReference does not express that there can be

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Steven Schveighoffer
On Tue, 09 Mar 2010 15:29:04 -0500, Don nos...@nospam.com wrote: Steven Schveighoffer wrote: On Tue, 09 Mar 2010 14:54:11 -0500, David Gileadi f...@bar.com wrote: As long as we're bikeshedding, maybe assumeUnreferencedAfter? This is exactly the semantic meaning we are going for. I'd like

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Nick Sabalausky
Philippe Sigaud philippe.sig...@gmail.com wrote in message news:mailman.119.1268166534.4461.digitalmars-d-annou...@puremagic.com... On Tue, Mar 9, 2010 at 11:29, grauzone n...@example.net wrote: Many of these names (including shrinkToFit) suggest that memory usage is reduced by freeing the

April 13th: Presenting D at the Beijing Linux User Group

2010-03-09 Thread Lionello Lunesu
I'll be presenting the D Programming Language at the next monthly BLUG meeting. It'll mostly be for people who haven't heard of D yet. There'll be a fair chunk of D1 in there, but I'm hoping to touch some of D2's new features as well. These meetings are free for everyone to attend, so come by if

Re: April 13th: Presenting D at the Beijing Linux User Group

2010-03-09 Thread Walter Bright
Lionello Lunesu wrote: I'll be presenting the D Programming Language at the next monthly BLUG meeting. It'll mostly be for people who haven't heard of D yet. There'll be a fair chunk of D1 in there, but I'm hoping to touch some of D2's new features as well. Awesome! (I'm fairly new to

Re: April 13th: Presenting D at the Beijing Linux User Group

2010-03-09 Thread Moritz Warning
On Wed, 10 Mar 2010 08:47:00 +0800, Lionello Lunesu wrote: On 10-3-2010 8:35, Walter Bright wrote: Lionello Lunesu wrote: I'll be presenting the D Programming Language at the next monthly BLUG meeting. It'll mostly be for people who haven't heard of D yet. There'll be a fair chunk of D1 in

Re: April 13th: Presenting D at the Beijing Linux User Group

2010-03-09 Thread Andrei Alexandrescu
Lionello Lunesu wrote: On 10-3-2010 8:35, Walter Bright wrote: Lionello Lunesu wrote: I'll be presenting the D Programming Language at the next monthly BLUG meeting. It'll mostly be for people who haven't heard of D yet. There'll be a fair chunk of D1 in there, but I'm hoping to touch some of

Re: April 13th: Presenting D at the Beijing Linux User Group

2010-03-09 Thread Walter Bright
Lionello Lunesu wrote: Good tip, thanks. welcs I'm wondering: should I do the 'scrolling HTML', in true D style? The lazy part of me says yes :)) I've abandoned it in favor of pdf: 1. HTML rendering sucks compared with pdf rendering. I don't know why, but when it gets blown up on a big

Re: April 13th: Presenting D at the Beijing Linux User Group

2010-03-09 Thread bearophile
Walter Bright: I've abandoned it in favor of pdf: I've also found it worthwhile to bring along a laser pointer. I do all you do for the reasons you do. I just lack the laser pointer :-) Bye, bearophile

Re: April 13th: Presenting D at the Beijing Linux User Group

2010-03-09 Thread Lionello Lunesu
On 10-3-2010 10:01, Moritz Warning wrote: On Wed, 10 Mar 2010 08:47:00 +0800, Lionello Lunesu wrote: On 10-3-2010 8:35, Walter Bright wrote: Lionello Lunesu wrote: I'll be presenting the D Programming Language at the next monthly BLUG meeting. It'll mostly be for people who haven't heard of