Re: Inexplicable LDC vs GDC speed difference

2013-02-13 Thread jerro
On Wednesday, 13 February 2013 at 15:07:04 UTC, Joseph Rushton Wakeling wrote: Following some code posted in d.learn, I've observed a bizarre and (to me) inexplicable difference in code speed depending on whether LDC or GDC is used as the compiler: http://forum.dlang.org/post/mailman.1239.13607

Re: To POD or not to POD

2013-02-13 Thread Iain Buclaw
On Feb 13, 2013 6:55 PM, "Johannes Pfau" wrote: > > Am Wed, 13 Feb 2013 17:17:06 + > schrieb Iain Buclaw : > > > On 13 February 2013 15:20, Iain Buclaw wrote: > > > > >> > > >> Complete test case: > > >> https://gist.github.com/jpf91/4944999 > > >> > > >> - > > >> > > >> ../../objdir-4.7/

Re: To POD or not to POD

2013-02-13 Thread Iain Buclaw
On Feb 13, 2013 6:55 PM, "Johannes Pfau" wrote: > > Am Wed, 13 Feb 2013 17:17:06 + > schrieb Iain Buclaw : > > > On 13 February 2013 15:20, Iain Buclaw wrote: > > > > >> > > >> Complete test case: > > >> https://gist.github.com/jpf91/4944999 > > >> > > >> - > > >> > > >> ../../objdir-4.7/

Re: To POD or not to POD

2013-02-13 Thread Johannes Pfau
Am Wed, 13 Feb 2013 17:17:06 + schrieb Iain Buclaw : > On 13 February 2013 15:20, Iain Buclaw wrote: > > >> > >> Complete test case: > >> https://gist.github.com/jpf91/4944999 > >> > >> - > >> > >> ../../objdir-4.7/x86_64-unknown-linux-gnu/libphobos/dm-test.reduced/datetime2.d:22: > >> i

Re: To POD or not to POD

2013-02-13 Thread Iain Buclaw
On 13 February 2013 15:20, Iain Buclaw wrote: > On 13 February 2013 14:35, Johannes Pfau wrote: > >> Am Wed, 13 Feb 2013 14:10:26 + >> schrieb Iain Buclaw : >> >> > On 13 February 2013 13:26, Johannes Pfau wrote: >> > >> > > Am Tue, 12 Feb 2013 18:16:31 + >> > > schrieb Iain Buclaw : >>

[Issue 31] ICE in getVThis

2013-02-13 Thread gdc-bugzilla
http://gdcproject.org/bugzilla/show_bug.cgi?id=31 Johannes Pfau changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

Re: To POD or not to POD

2013-02-13 Thread Iain Buclaw
On 13 February 2013 14:35, Johannes Pfau wrote: > Am Wed, 13 Feb 2013 14:10:26 + > schrieb Iain Buclaw : > > > On 13 February 2013 13:26, Johannes Pfau wrote: > > > > > Am Tue, 12 Feb 2013 18:16:31 + > > > schrieb Iain Buclaw : > > > > > > > TREE_ADDRESSABLE should be sufficient. I can'

Inexplicable LDC vs GDC speed difference

2013-02-13 Thread Joseph Rushton Wakeling
Following some code posted in d.learn, I've observed a bizarre and (to me) inexplicable difference in code speed depending on whether LDC or GDC is used as the compiler: http://forum.dlang.org/post/mailman.1239.1360764028.22503.digitalmars-d-le...@puremagic.com I'm using latest-from-GitHub vers

Re: To POD or not to POD

2013-02-13 Thread Johannes Pfau
Am Wed, 13 Feb 2013 15:14:36 +0100 schrieb "David Nadlinger" : > On Tuesday, 12 February 2013 at 17:45:11 UTC, Johannes Pfau wrote: > > OT: I think a simple constructor shouldn't prevent a type from > > being a > > POD, but that should be defined by dmd /frontend. > > I wouldn't spend too much t

Re: To POD or not to POD

2013-02-13 Thread Johannes Pfau
Am Wed, 13 Feb 2013 14:10:26 + schrieb Iain Buclaw : > On 13 February 2013 13:26, Johannes Pfau wrote: > > > Am Tue, 12 Feb 2013 18:16:31 + > > schrieb Iain Buclaw : > > > > > TREE_ADDRESSABLE should be sufficient. I can't think any reason > > > off the top of my head why not. > > > > >

Re: To POD or not to POD

2013-02-13 Thread Iain Buclaw
On 13 February 2013 14:10, Iain Buclaw wrote: > On 13 February 2013 13:26, Johannes Pfau wrote: > >> Am Tue, 12 Feb 2013 18:16:31 + >> schrieb Iain Buclaw : >> >> > TREE_ADDRESSABLE should be sufficient. I can't think any reason off >> > the top of my head why not. >> > >> >> maybe TREE_ADD

Re: To POD or not to POD

2013-02-13 Thread Iain Buclaw
On 13 February 2013 13:26, Johannes Pfau wrote: > Am Tue, 12 Feb 2013 18:16:31 + > schrieb Iain Buclaw : > > > TREE_ADDRESSABLE should be sufficient. I can't think any reason off > > the top of my head why not. > > > > maybe TREE_ADDRESSABLE is too strong: It generates errors in the > backen

Re: To POD or not to POD

2013-02-13 Thread David Nadlinger
On Tuesday, 12 February 2013 at 17:45:11 UTC, Johannes Pfau wrote: OT: I think a simple constructor shouldn't prevent a type from being a POD, but that should be defined by dmd /frontend. I wouldn't spend too much time on implementing the old behavior - I think I managed to convince Walter th

Re: To POD or not to POD

2013-02-13 Thread Johannes Pfau
Am Tue, 12 Feb 2013 18:16:31 + schrieb Iain Buclaw : > TREE_ADDRESSABLE should be sufficient. I can't think any reason off > the top of my head why not. > maybe TREE_ADDRESSABLE is too strong: It generates errors in the backend if the frontend produces non-lvalues: --- auto b = Date();