Proposal for SentinelInputRange
deadalnix
deadalnix at gmail.com
Sun Mar 24 04:32:28 PDT 2013
On Thursday, 28 February 2013 at 22:00:11 UTC, Walter Bright
wrote:
> On 2/28/2013 9:25 AM, Steven Schveighoffer wrote:
>> On Thu, 28 Feb 2013 12:00:48 -0500, Walter Bright
>> <newshound2 at digitalmars.com>
>> wrote:
>>
>>> On 2/28/2013 6:31 AM, Steven Schveighoffer wrote:
>>>> If this doesn't translate to the same code, I don't know why
>>>> not.
>>>
>>> Try it and see with your favorite C compiler.
>>
>> A sample case of 1 does not prove it's not possible, or
>> explain why those
>> optimizers don't take that step. A valid response would be to
>> give a case why
>> an optimizer COULDN'T make that leap.
>
> No, it is not. DMD is compiled with real compilers, not
> abstract "sufficiently smart compilers".
>
I finally decided to write a post about such imaginary
"sufficiently smart compilers" that clearly don't exists today,
never will and so we have to clutter the language :
http://www.deadalnix.me/2013/03/23/a-story-about-optimization-llvm-and-the-sentinelinputrange/
I really hope that someone wrote this imaginary LLVM thing
everybody is talking about !
More information about the Digitalmars-d
mailing list