Re: I'm back

2012-11-22 Thread Jacob Carlborg
On 2012-11-23 05:07, H. S. Teoh wrote: Or any documentation at all. I recall, with a shudder, how one fine day a high-priority Javascript project (high-priority as in, it was due the week before it was given to me) was dumped on my lap, consisting of a non-trivial class hierarchy and bunch of m

Re: I'm back

2012-11-22 Thread Jacob Carlborg
On 2012-11-23 00:43, Jonathan M Davis wrote: Or even more likely, no design documentation gets written at all... Example, this post is not threaded correctly for me. -- /Jacob Carlborg

Re: I'm back

2012-11-22 Thread Jacob Carlborg
On 2012-11-22 22:18, Jonathan M Davis wrote: It's threading just fine in my mail client. I do recall there being some issue with newsgroup vs mailing list threading though. Maybe what you're seeing is related to that. The threading is not fine on some of your posts in Thunderbird for me. -- /

Re: Array Operations: a[] + b[] etc.

2012-11-22 Thread monarch_dodra
On Friday, 23 November 2012 at 06:41:06 UTC, Walter Bright wrote: On 11/22/2012 6:11 PM, John Colvin wrote: An error. Is monarch_dodra correct in saying that one would have to compile druntime in non-release to see this error? That would be a pity, couldn't this be implemented somehow so tha

Re: Array Operations: a[] + b[] etc.

2012-11-22 Thread Walter Bright
On 11/22/2012 6:11 PM, John Colvin wrote: An error. Is monarch_dodra correct in saying that one would have to compile druntime in non-release to see this error? That would be a pity, couldn't this be implemented somehow so that it would depend on the user code being compiled non-release, not dr

Re: half datatype?

2012-11-22 Thread Walter Bright
On 11/22/2012 7:03 PM, xenon325 wrote: I would think it's actually not preferable. Imagine you developed and tuned all the code on x86 and everything is fine. Then run it on ARM and suddenly all computations are inaccurate. Floating point algorithms don't get less precise when precision is incr

Re: Ranges usages

2012-11-22 Thread Jonathan M Davis
On Friday, November 23, 2012 01:52:51 Timon Gehr wrote: > On 11/22/2012 11:25 AM, monarch_dodra wrote: > > On Thursday, 22 November 2012 at 06:52:55 UTC, Rob T wrote: > >> FYI > >> > >> I'm getting these compile errors, must be the compiler flags I'm using? > > > > Must be that bearophile and I a

Re: I'm back

2012-11-22 Thread H. S. Teoh
On Thu, Nov 22, 2012 at 03:43:24PM -0800, Jonathan M Davis wrote: > On Thursday, November 22, 2012 15:36:58 H. S. Teoh wrote: > > In theory, software is implemented according to the design that has > > been carefully worked out beforehand. In practice, design documents > > are written after the fac

Re: half datatype?

2012-11-22 Thread xenon325
On Monday, 19 November 2012 at 15:48:23 UTC, Manu wrote: This wouldn't strictly retain half precision though, it would be slightly higher precision since the intermediates were full precision (which is surely preferable?). I would think it's actually not preferable. Imagine you developed and

Re: popFrontExactly?

2012-11-22 Thread Kapps
On Thursday, 22 November 2012 at 13:08:56 UTC, Jonathan M Davis wrote: On Sunday, November 18, 2012 21:34:37 monarch_dodra wrote: Should I push a pull request adding such a function (and its friends) to phobos? How does the group feel about such functions? In principle, it's a good idea, but

Re: Array Operations: a[] + b[] etc.

2012-11-22 Thread Robert Jacques
On Thu, 22 Nov 2012 20:06:44 -0600, John Colvin wrote: On Thursday, 22 November 2012 at 21:37:19 UTC, Dmitry Olshansky wrote: Array ops supposed to be overhead-free loops transparently leveraging SIMD parallelism of modern CPUs. No more and no less. It's like auto-vectorization but it's gua

Re: DConf 2013 suggestion

2012-11-22 Thread John Colvin
On Thursday, 22 November 2012 at 22:35:35 UTC, Walter Bright wrote: On 11/21/2012 5:33 AM, Joseph Rushton Wakeling wrote: Hello all, Now that we know that DConf 2013 is going to happen (congratulations and thanks to everyone!), I had a thought about how it might be possible to give some extra

Re: Array Operations: a[] + b[] etc.

2012-11-22 Thread John Colvin
On Thursday, 22 November 2012 at 20:58:25 UTC, Walter Bright wrote: On 11/22/2012 3:25 AM, John Colvin wrote: Anyway, this is a pretty trivial matter, I'd be more interested in seeing a definitive answer for what the correct behaviour for the statement a[] = b[] + c[] is when the arrays have d

Re: Array Operations: a[] + b[] etc.

2012-11-22 Thread John Colvin
On Thursday, 22 November 2012 at 21:37:19 UTC, Dmitry Olshansky wrote: Array ops supposed to be overhead-free loops transparently leveraging SIMD parallelism of modern CPUs. No more and no less. It's like auto-vectorization but it's guaranteed and obvious in the form. I disagree that array op

Re: Ranges usages

2012-11-22 Thread Timon Gehr
On 11/22/2012 11:25 AM, monarch_dodra wrote: On Thursday, 22 November 2012 at 06:52:55 UTC, Rob T wrote: FYI I'm getting these compile errors, must be the compiler flags I'm using? Must be that bearophile and I are on windows (ergo 32), so "length" is of type "size_t", which is a "uint". This

Re: D wiki

2012-11-22 Thread David Nadlinger
On Thursday, 22 November 2012 at 13:15:30 UTC, Vladimir Panteleev wrote: On Thursday, 22 November 2012 at 10:16:53 UTC, David Nadlinger Also, how »stable« can we expect that instance to be? As stable as forum.dlang.org. Do you make backups? Automatic daily incremental offsite backups are p

Re: I'm back

2012-11-22 Thread Jonathan M Davis
On Thursday, November 22, 2012 15:36:58 H. S. Teoh wrote: > In theory, software is implemented according to the design that has been > carefully worked out beforehand. In practice, design documents are > written after the fact to describe the sorry mess that has gone on > before. Or even more like

Re: I'm back

2012-11-22 Thread H. S. Teoh
On Thu, Nov 22, 2012 at 12:53:36PM -0800, Walter Bright wrote: > On 11/22/2012 8:07 AM, H. S. Teoh wrote: > >On Wed, Nov 21, 2012 at 10:10:51PM -0800, Jonathan M Davis wrote: > >>On Friday, November 16, 2012 18:09:44 H. S. Teoh wrote: > > The way you an Jonathan are replying is breaking the messag

Re: DConf 2013 suggestion

2012-11-22 Thread Walter Bright
On 11/21/2012 5:33 AM, Joseph Rushton Wakeling wrote: Hello all, Now that we know that DConf 2013 is going to happen (congratulations and thanks to everyone!), I had a thought about how it might be possible to give some extra involvement to those who can't physically make it on this occasion. S

Re: Array Operations: a[] + b[] etc.

2012-11-22 Thread Dmitry Olshansky
11/23/2012 1:02 AM, Walter Bright пишет: I'll be bold and predict what will happen if this proposal is implemented: "Array operations in D are cool but are incredibly slow. D sux." Few will notice that the hidden memory allocation can be easily removed, certainly not people casually look

Re: Array Operations: a[] + b[] etc.

2012-11-22 Thread Mike Wey
On 11/22/2012 01:10 PM, John Colvin wrote: On Wednesday, 21 November 2012 at 19:40:25 UTC, Mike Wey wrote: If you want to use this syntax with images, DMagick's ImageView might be interesting: http://dmagick.mikewey.eu/docs/ImageView.html I like it :) From what I can see it provides exactly w

Re: I'm back

2012-11-22 Thread Jonathan M Davis
On Thursday, November 22, 2012 12:53:36 Walter Bright wrote: > On 11/22/2012 8:07 AM, H. S. Teoh wrote: > > On Wed, Nov 21, 2012 at 10:10:51PM -0800, Jonathan M Davis wrote: > >> On Friday, November 16, 2012 18:09:44 H. S. Teoh wrote: > The way you an Jonathan are replying is breaking the message

Re: D wiki

2012-11-22 Thread Jacob Carlborg
On 2012-11-22 20:35, Vladimir Panteleev wrote: Do code examples on Wikipedia look fine for you (e.g. http://en.wikipedia.org/wiki/D_(programming_language)#Metaprogramming )? Yes, they do. I'm now looking at the "computed" font size in firebug. On wikipedia it says 12.8px. On the new D wiki pa

Re: Array Operations: a[] + b[] etc.

2012-11-22 Thread Walter Bright
On 11/22/2012 3:25 AM, John Colvin wrote: c[] = a[] + b[]; fast, in place array operation, the cost of allocation happens earlier in the code. but also c = a[] + b[]; a much slower, memory assigning array operation, pretty much just shorthand for c = new T[a.length]; c[] = a[] + b[]; You could

Re: Array Operations: a[] + b[] etc.

2012-11-22 Thread Walter Bright
On 11/22/2012 3:25 AM, John Colvin wrote: Anyway, this is a pretty trivial matter, I'd be more interested in seeing a definitive answer for what the correct behaviour for the statement a[] = b[] + c[] is when the arrays have different lengths. An error.

Re: I'm back

2012-11-22 Thread Walter Bright
On 11/22/2012 8:07 AM, H. S. Teoh wrote: On Wed, Nov 21, 2012 at 10:10:51PM -0800, Jonathan M Davis wrote: On Friday, November 16, 2012 18:09:44 H. S. Teoh wrote: The way you an Jonathan are replying is breaking the message threading model. How are you doing it?

Re: Bulding latest DMD and associated projects from github master

2012-11-22 Thread Jonathan M Davis
On Thursday, November 22, 2012 14:51:14 Joseph Rushton Wakeling wrote: > On 11/19/2012 08:02 PM, Alex Rønne Petersen wrote: > > Updated the blog post, thanks. > > The one other issue I had with those instructions -- you talk of copying > dmd.conf into /etc, but I've never come across a dmd.conf an

Re: D wiki

2012-11-22 Thread Vladimir Panteleev
On Thursday, 22 November 2012 at 18:13:10 UTC, Jacob Carlborg wrote: On 2012-11-22 15:52, Vladimir Panteleev wrote: That would be because your browser is using Courier New for the monospace CSS font family, which is notable for being smaller than other fonts at the same font sizes. I've over

Re: D wiki

2012-11-22 Thread Andrej Mitrovic
On 11/22/12, Jacob Carlborg wrote: > It looks really small in Firefox on Mac OS X as well. It has the > following style according to firebug: On Chrome (on win32) it looks ok though.

Re: D wiki

2012-11-22 Thread Jacob Carlborg
On 2012-11-22 15:52, Vladimir Panteleev wrote: That would be because your browser is using Courier New for the monospace CSS font family, which is notable for being smaller than other fonts at the same font sizes. I've overridden the definition to use the same CSS as the forum (basically, try "

Re: dmd demangling

2012-11-22 Thread Jacob Carlborg
On 2012-11-22 11:20, David Nadlinger wrote: That's likely to be about digitalmars.D.bugs, which is only used for Bugzilla issue updates. digitalmars.D.bug is only used for that. dmd-internals is used both for communication and git commit messages. -- /Jacob Carlborg

Re: Array Operations: a[] + b[] etc.

2012-11-22 Thread Robert Jacques
On Thu, 22 Nov 2012 06:10:04 -0600, John Colvin wrote: On Wednesday, 21 November 2012 at 19:40:25 UTC, Mike Wey wrote: If you want to use this syntax with images, DMagick's ImageView might be interesting: http://dmagick.mikewey.eu/docs/ImageView.html I like it :) From what I can see it

Re: I'm back

2012-11-22 Thread H. S. Teoh
On Wed, Nov 21, 2012 at 10:10:51PM -0800, Jonathan M Davis wrote: > On Friday, November 16, 2012 18:09:44 H. S. Teoh wrote: > > On Fri, Nov 16, 2012 at 08:52:39PM -0500, Jonathan M Davis wrote: [...] > > > The problem is that supporting transience complicates ranges even > > > further, and they're

Re: D wiki

2012-11-22 Thread Vladimir Panteleev
On Thursday, 22 November 2012 at 15:18:24 UTC, Andrej Mitrovic wrote: On 11/22/12, Vladimir Panteleev wrote: Does it look better now? Nope, still the same. Can you try a force-refresh or clearing the browser cache? What web browser and operating system do you use?

Re: D wiki

2012-11-22 Thread Andrej Mitrovic
On 11/22/12, Vladimir Panteleev wrote: > Does it look better now? Nope, still the same. On 11/22/12, Vladimir Panteleev wrote: > That would be because your browser is using Courier New for the > monospace CSS font family, which is notable for being smaller > than other fonts at the same font si

Re: Bulding latest DMD and associated projects from github master

2012-11-22 Thread Jordi Sayol
Al 22/11/12 15:47, En/na Joseph Rushton Wakeling ha escrit: > On 11/22/2012 03:26 PM, Jordi Sayol wrote: >> Al 22/11/12 14:51, En/na Joseph Rushton Wakeling ha escrit: >>> Also, am I right that there are also man-files for dmd included in the >>> source? Might be worth including a note on how to b

Re: dmd demangling

2012-11-22 Thread Adam D. Ruppe
On Thursday, 22 November 2012 at 06:36:48 UTC, Nathan M. Swan wrote: (I'm working on automatic demangling for linker error messages) BTW did you see this post from a few days ago? http://forum.dlang.org/thread/vvkckjmvyfdtxqdqx...@forum.dlang.org#post-rdjerzfmfcpfxrpcujmx:40forum.dlang.org It

Re: D wiki

2012-11-22 Thread Vladimir Panteleev
On Thursday, 22 November 2012 at 10:41:33 UTC, Andrej Mitrovic wrote: On 11/22/12, r_m_r wrote: I just modified the Main_Page and added the WhySwitch page (content copied from the old wiki: http://www.prowiki.org/wiki4d/wiki.cgi). Is it possible to increase the default font size for D syntax

Re: Bulding latest DMD and associated projects from github master

2012-11-22 Thread Joseph Rushton Wakeling
On 11/22/2012 03:26 PM, Jordi Sayol wrote: Al 22/11/12 14:51, En/na Joseph Rushton Wakeling ha escrit: Also, am I right that there are also man-files for dmd included in the source? Might be worth including a note on how to build and install those. man file should be copied as follow: *.1 fil

Re: Bulding latest DMD and associated projects from github master

2012-11-22 Thread Jordi Sayol
Al 22/11/12 14:51, En/na Joseph Rushton Wakeling ha escrit: > Also, am I right that there are also man-files for dmd included in the > source? Might be worth including a note on how to build and install those. man file should be copied as follow: *.1 files at /usr/share/man/man1 or /usr/local/sha

Re: Bulding latest DMD and associated projects from github master

2012-11-22 Thread Alex Rønne Petersen
On 22-11-2012 14:51, Joseph Rushton Wakeling wrote: On 11/19/2012 08:02 PM, Alex Rønne Petersen wrote: Updated the blog post, thanks. The one other issue I had with those instructions -- you talk of copying dmd.conf into /etc, but I've never come across a dmd.conf anywhere in the dmd source tr

Your review matters.

2012-11-22 Thread Alex Rønne Petersen
Hi folks, This is just a reminder that code reviews are invaluable. The various repos on GitHub (see https://github.com/D-Programming-Language) get many pull requests and we can always use an extra hand in doing code reviews of them. Your input is very appreciated even if you are not a committ

Re: Bulding latest DMD and associated projects from github master

2012-11-22 Thread Joseph Rushton Wakeling
On 11/19/2012 08:02 PM, Alex Rønne Petersen wrote: Updated the blog post, thanks. The one other issue I had with those instructions -- you talk of copying dmd.conf into /etc, but I've never come across a dmd.conf anywhere in the dmd source tree. I created one manually following instructions

Re: Bulding latest DMD and associated projects from github master

2012-11-22 Thread Joseph Rushton Wakeling
On 11/19/2012 02:41 AM, Jonathan M Davis wrote: So that it uses the dmd that you just built instead of the one in your path. Presumably if you just copied your newly-built dmd over the top of that one, you won't have that problem? ;-) I've used purely from-source builds of dmd ever since dis

Re: Ranges usages

2012-11-22 Thread Artur Skawina
On 11/22/12 02:14, bearophile wrote: > In the following program there are two versions of the compress function, > that implement the same bare-bones version of the LZW > (http://en.wikipedia.org/wiki/Lempel-Ziv-Welch ) compression algorithm. > > compress1 is the simpler version, while compress2

Re: DConf 2013 suggestion

2012-11-22 Thread Joseph Rushton Wakeling
On 11/21/2012 04:21 PM, bearophile wrote: how about also making it possible for non-attendees to submit video presentations? ... A second possibility would be to allow people (whether attending or not) to submit proceedings articles. Those seem nice ideas. no other thoughts or comments f

Re: Downloadable spec for D version 2

2012-11-22 Thread Edward Diener
On 11/20/2012 10:04 PM, G. wrote: On Tuesday, 20 November 2012 at 02:27:08 UTC, Edward Diener wrote: Is there a downloadable spec for the D version 2 language, in either PDF or HTML format ? The HTML version is in the ZIP with dmd... Thanks !

Re: D wiki

2012-11-22 Thread Vladimir Panteleev
On Thursday, 22 November 2012 at 10:16:53 UTC, David Nadlinger wrote: On Wednesday, 21 November 2012 at 22:22:02 UTC, Vladimir Panteleev wrote: Here's something to start with: http://dwiki.kimsufi.thecybershadow.net/ Could you please set up a robots.txt which disables indexing until this has

Re: popFrontExactly?

2012-11-22 Thread Jonathan M Davis
On Sunday, November 18, 2012 21:34:37 monarch_dodra wrote: > Should I push a pull request adding such a function (and its > friends) to phobos? How does the group feel about such functions? In principle, it's a good idea, but I also worry about a proliferation of such functions. Personally, I thi

Re: Array Operations: a[] + b[] etc.

2012-11-22 Thread monarch_dodra
On Thursday, 22 November 2012 at 11:25:31 UTC, John Colvin wrote: Anyway, this is a pretty trivial matter, I'd be more interested in seeing a definitive answer for what the correct behaviour for the statement a[] = b[] + c[] is when the arrays have different lengths. I'd say the same as for

Re: Array Operations: a[] + b[] etc.

2012-11-22 Thread John Colvin
On Wednesday, 21 November 2012 at 19:40:25 UTC, Mike Wey wrote: If you want to use this syntax with images, DMagick's ImageView might be interesting: http://dmagick.mikewey.eu/docs/ImageView.html I like it :) From what I can see it provides exactly what i'm talking about for 2D. I haven't loo

Re: D wiki

2012-11-22 Thread Andrej Mitrovic
On 11/22/12, r_m_r wrote: > I don't think I can change the font size directly. Sorry, I should have quoted Vladimir, not you. On 11/22/12, r_m_r wrote: > BTW The code displays fine on my browser. Which browser? It displays the same for me on Firefox and Chrome. On 11/22/12, r_m_r wrote: > Ma

Re: D wiki

2012-11-22 Thread r_m_r
On Thursday, 22 November 2012 at 10:41:33 UTC, Andrej Mitrovic wrote: Is it possible to increase the default font size for D syntax highlighting? I don't think I can change the font size directly. The CSS style for that tag is generated by the SyntaxHighlight GeSHi extension as shown belo

Re: Array Operations: a[] + b[] etc.

2012-11-22 Thread John Colvin
On Wednesday, 21 November 2012 at 20:16:59 UTC, Walter Bright wrote: On 11/21/2012 10:41 AM, John Colvin wrote: In what way does it become a performance problem? Allocating memory is always much, much slower than not allocating memory. A design that forces allocating new memory and discardi

Re: Talk proposal (kinda): D Programming in D (Or: Writing idiomatic D code)

2012-11-22 Thread Joseph Rushton Wakeling
On 11/22/2012 03:13 AM, Era Scarecrow wrote: Perhaps a part on how to properly use D without involving the GC. ... perhaps a part on keeping memory use effectively under control _with_ the GC? (Avoiding all those dangling references, etc...:-)

Re: D wiki

2012-11-22 Thread Andrej Mitrovic
On 11/22/12, r_m_r wrote: > I just modified the Main_Page > and added the WhySwitch page (content copied from the old wiki: > http://www.prowiki.org/wiki4d/wiki.cgi). Is it possible to increase the default font size for D syntax highlighting? This is what it looks like, it's almost unreadable: h

Re: Ranges usages

2012-11-22 Thread monarch_dodra
On Thursday, 22 November 2012 at 06:52:55 UTC, Rob T wrote: FYI I'm getting these compile errors, must be the compiler flags I'm using? Must be that bearophile and I are on windows (ergo 32), so "length" is of type "size_t", which is a "uint". This matches the key of the dictionary. If yo

Re: dmd demangling

2012-11-22 Thread David Nadlinger
On Thursday, 22 November 2012 at 08:39:03 UTC, Nathan M. Swan wrote: I'd read somewhere that it was only to be used for the automatic commit logs. That's likely to be about digitalmars.D.bugs, which is only used for Bugzilla issue updates. David

Re: D wiki

2012-11-22 Thread David Nadlinger
On Wednesday, 21 November 2012 at 22:22:02 UTC, Vladimir Panteleev wrote: Here's something to start with: http://dwiki.kimsufi.thecybershadow.net/ Could you please set up a robots.txt which disables indexing until this has become officially adopted, and moved to its final address? Also, ho

Re: I'm back

2012-11-22 Thread Jonathan M Davis
On Friday, November 16, 2012 18:09:44 H. S. Teoh wrote: > On Fri, Nov 16, 2012 at 08:52:39PM -0500, Jonathan M Davis wrote: > > On Friday, November 16, 2012 13:55:31 H. S. Teoh wrote: > > > I don't like the prospect of having to duplicate parts of > > > std.algorithm just because I have some code t

Re: Ranges usages

2012-11-22 Thread monarch_dodra
On Thursday, 22 November 2012 at 01:14:23 UTC, bearophile wrote: [SNIP] Thank you, bye, bearophile I'd argue that your first "compress1" isn't range correct either anyways, because "w ~ ch;" (which will allocate) is not part of the range interface. Neither is "w = [ch];" (which will also

Re: dmd demangling

2012-11-22 Thread Nathan M. Swan
On Thursday, 22 November 2012 at 08:00:41 UTC, Brad Roberts wrote: On 11/21/2012 10:36 PM, Nathan M. Swan wrote: We can't post to dmd-internals anymore, so I assume I should post here. Um... what? The list hasn't changed configs since it was setup. Anyone can subscribe, all new members go t

Re: dmd demangling

2012-11-22 Thread Brad Roberts
On 11/21/2012 10:36 PM, Nathan M. Swan wrote: > We can't post to dmd-internals anymore, so I assume I should post here. Um... what? The list hasn't changed configs since it was setup. Anyone can subscribe, all new members go through moderation once (robots that are smart enough to subscribe do