Battle-plan for CTFE

Stefan Koch via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Thu Jun 30 02:43:56 PDT 2016


On Thursday, 30 June 2016 at 07:15:30 UTC, Nordlöw wrote:
> On Thursday, 30 June 2016 at 03:17:38 UTC, Stefan Koch wrote:
>> Until then you can see my progress at 
>> https://github.com/UplinkCoder/dmd/tree/newCTFE
>> I will try to always keep the branch in a healthy state.
>
> I can't wait to see the benchmarks.
>
> Keep up the good work!

Currently the interpreter is about 10x-15x slower then native 
execution.
and about 2x-4000x faster then the old Interpreter :)

code I can currently compile :

uint test2(int x) {
	uint r = 0;
	const uint end = 9;
	for(int i = 0;i < end;++i) {
		for(int j = 0;j < 9;++j) {
			r += j;
			r += i;
		}
	}

	return r;
}

dmd's interpreter and mine return the same value :)


More information about the Digitalmars-d-announce mailing list