[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Development announcement - Ravi/Lua Compiler project
- From: Dibyendu Majumdar <mobile@...>
- Date: Wed, 6 Jan 2021 00:14:33 +0000
On Wed, 6 Jan 2021 at 00:04, Egor Skriptunoff
<egor.skriptunoff@gmail.com> wrote:
>
> On Sat, Dec 12, 2020 at 11:26 PM Dibyendu Majumdar wrote:
>>
>> For examples see:
>> https://github.com/dibyendumajumdar/ravi-compiler/tree/master/examples
>
>
> Why do you write
> prime = i + i + 3;
> Is the compiler not clever enough to optimize (2*i) as (i+i) without your help?
I think I just copied that code from somewhere. 2*i should be fine.
Regards