newCTFE Status July 2017

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Sun Jul 30 13:40:24 PDT 2017


On Thursday, 13 July 2017 at 12:45:19 UTC, Stefan Koch wrote:
> [ ... ]

Hello Guys,

The bug preventing newCTFE from executing bf_ctfe[1] correctly  
(a peculiarity in which for for and if statement-conditions  
other then 32bit integers where ignored) is now fixed.

newCTFE is about 5.7 times faster compiling bf_ctfe.
(compiling bf_ctfe includes a test where a brainfuck interpreter 
written in brainfuck executes the brainfuck hello-world programm)

Here are the numbers:

uplink at uplink-desktop:~/d/dmd$ time src/dmd ../bf-ctfe/source/*.d 
-c -o- > x
Hello World!

Hello World!

real	0m0.113s
user	0m0.104s
sys	0m0.008s
uplink at uplink-desktop:~/d/dmd$ time dmd ../bf-ctfe/source/*.d -c 
 > x
Hello World!

Hello World!

real	0m0.633s
user	0m0.600s
sys	0m0.028s

[1] https://github.com/UplinkCoder/bf_ctfe



More information about the Digitalmars-d mailing list