Re: Help with a DMD patch

2013-03-19 Thread Jacob Carlborg
On 2013-03-18 22:10, Martin Nowak wrote: Yeah, that's why I wished more of this would move to druntime, but the current solution to stuff everything into object.di doesn't scale too well. Put it in some other file and add a public import to object.di. -- /Jacob Carlborg

Re: Help with a DMD patch

2013-03-18 Thread Vladimir Panteleev
On Saturday, 16 March 2013 at 18:15:06 UTC, Vladimir Panteleev wrote: Could a DMD guru have a look and tell me what I'm doing wrong? Gaaah! My test program doesn't compile even without my patches! I was fighting against pre-existing bugs in DMD... Even more embarrassing, is that I had found

Re: Help with a DMD patch

2013-03-18 Thread Martin Nowak
On 03/17/2013 03:35 AM, Daniel Murphy wrote: Not really the easiest part of dmd to hack on Yeah, that's why I wished more of this would move to druntime, but the current solution to stuff everything into object.di doesn't scale too well. Looking at a[] = b[] = memcpy might help.

Re: Help with a DMD patch

2013-03-18 Thread Vladimir Panteleev
https://github.com/D-Programming-Language/dmd/pull/1766

Re: Help with a DMD patch

2013-03-18 Thread Vladimir Panteleev
On Monday, 18 March 2013 at 21:10:15 UTC, Martin Nowak wrote: On 03/17/2013 03:35 AM, Daniel Murphy wrote: Not really the easiest part of dmd to hack on Yeah, that's why I wished more of this would move to druntime, but the current solution to stuff everything into object.di doesn't

Re: Help with a DMD patch

2013-03-17 Thread Vladimir Panteleev
On Sunday, 17 March 2013 at 02:35:30 UTC, Daniel Murphy wrote: Vladimir Panteleev vladi...@thecybershadow.net wrote in message news:pzqxkiigdvvicqkqa...@forum.dlang.org... I'm trying to cut my teeth on DMD hacking with a simple optimization ( http://d.puremagic.com/issues/show_bug.cgi?id=9477

Help with a DMD patch

2013-03-16 Thread Vladimir Panteleev
I'm trying to cut my teeth on DMD hacking with a simple optimization ( http://d.puremagic.com/issues/show_bug.cgi?id=9477 ), but not having much luck so far - the backend is rejecting my attempts with asserts here or there. Since the asserts have no error messages, and the code is very terse,

Re: Help with a DMD patch

2013-03-16 Thread Igor Stepanov
What do the lines el_combine? I do not see them in the code structure comparison.

Re: Help with a DMD patch

2013-03-16 Thread Vladimir Panteleev
On Saturday, 16 March 2013 at 21:15:32 UTC, Igor Stepanov wrote: What do the lines el_combine? I do not see them in the code structure comparison. Greetings Igor, The el_combine calls are supposed to ensure correct order of evaluation. I based that code from this fragment:

Re: Help with a DMD patch

2013-03-16 Thread Igor Stepanov
On Saturday, 16 March 2013 at 21:21:51 UTC, Vladimir Panteleev wrote: On Saturday, 16 March 2013 at 21:15:32 UTC, Igor Stepanov wrote: What do the lines el_combine? I do not see them in the code structure comparison. Greetings Igor, The el_combine calls are supposed to ensure correct order

Re: Help with a DMD patch

2013-03-16 Thread Vladimir Panteleev
On Saturday, 16 March 2013 at 21:42:31 UTC, Igor Stepanov wrote: On Saturday, 16 March 2013 at 21:21:51 UTC, Vladimir Panteleev wrote: On Saturday, 16 March 2013 at 21:15:32 UTC, Igor Stepanov wrote: What do the lines el_combine? I do not see them in the code structure comparison. Greetings

Re: Help with a DMD patch

2013-03-16 Thread Igor Stepanov
On Saturday, 16 March 2013 at 21:49:33 UTC, Vladimir Panteleev wrote: On Saturday, 16 March 2013 at 21:42:31 UTC, Igor Stepanov wrote: On Saturday, 16 March 2013 at 21:21:51 UTC, Vladimir Panteleev wrote: On Saturday, 16 March 2013 at 21:15:32 UTC, Igor Stepanov wrote: What do the lines

Re: Help with a DMD patch

2013-03-16 Thread Vladimir Panteleev
On Saturday, 16 March 2013 at 22:14:22 UTC, Igor Stepanov wrote: Probably a stupid question, but why do you want to use el_same? As I understand it, el_same creates a copy. Why not use the original, if we know that it will not change anything. As I understand, one elem can appear only once in

Re: Help with a DMD patch

2013-03-16 Thread Daniel Murphy
Vladimir Panteleev vladi...@thecybershadow.net wrote in message news:pzqxkiigdvvicqkqa...@forum.dlang.org... I'm trying to cut my teeth on DMD hacking with a simple optimization ( http://d.puremagic.com/issues/show_bug.cgi?id=9477 ), but not having much luck so far - the backend is rejecting