Re: Battle-plan for CTFE

2016-09-05 Thread Stefan Koch via Digitalmars-d-announce

FunctionCall support is done. (with a lot of room for improvement)
you can already return strings.
now I just have to finish string-comparison and string-concat 
support to make it usable.


And of course the correct translation of logical-expressions...


Re: Battle-plan for CTFE

2016-09-05 Thread Rory McGuire via Digitalmars-d-announce
On Mon, Sep 5, 2016 at 1:39 PM, Stefan Koch via Digitalmars-d-announce <
digitalmars-d-announce@puremagic.com> wrote:

> FunctionCall support is done. (with a lot of room for improvement)
> you can already return strings.
> now I just have to finish string-comparison and string-concat support to
> make it usable.
>
> And of course the correct translation of logical-expressions...
>


Great news! Any chance you post the commit link in your announcements?
Would be really interested in being able to do a quick scan of what changed.

For that latest commit I just see the below. Is this all the changes? :)
what does it mean? (you replaced the old ctfe for functions with your new
one?)

% git show 4ba35de160cdb82bb289ad2860cf5163e1636ab5
commit 4ba35de160cdb82bb289ad2860cf5163e1636ab5
Author: Stefan Koch 
Date:   Mon Sep 5 13:35:26 2016 +0200

hack in ability to do function calls

diff --git a/src/ctfe_bc.d b/src/ctfe_bc.d
index 2e9d0fa..a96d37c 100644
--- a/src/ctfe_bc.d
+++ b/src/ctfe_bc.d
@@ -143,6 +143,7 @@ else static if (UsePrinterBackend)
 else
 {
 import ddmd.ctfe.bc;
+import ddmd.dinterpret;

 alias BCGenT = BCGen;

@@ -2252,6 +2253,10 @@ public:
 IGaveUp = true;
 return;
 }
+import ddmd.dinterpret;
+ctfeInterpret(ce).accept(this);
+return ;
+/*
 auto fn = _sharedCtfeState.getFunctionIndex(ce.f);
 if (!fn)
 {
@@ -2296,6 +2301,8 @@ public:
 assert(0, "Could not gen Function: " ~ ce.f.toString);
 IGaveUp = true;
 }
+*/
+
 }

 override void visit(ReturnStatement rs)




BTW: thanks for all the work!


Re: Poodinis (DI framework) 7.0.0 released

2016-09-05 Thread dom via Digitalmars-d-announce
cool! i really like poodinis. it powers one of my projects and is 
very intuitive and simple to me :)


Re: [OT] LLVM 3.9 released - you can try the release already with LDC!

2016-09-05 Thread Kai Nacke via Digitalmars-d-announce
On Monday, 5 September 2016 at 05:07:25 UTC, Emre Temelkuran 
wrote:

On Sunday, 4 September 2016 at 17:18:10 UTC, Kai Nacke wrote:

Hi all!

LLVM 3.9 has been released! See the release notes here: 
http://www.llvm.org/releases/3.9.0/docs/ReleaseNotes.html

Downloads: http://www.llvm.org/releases/download.html#3.9.0

Also note that LDC is mentioned in the release notes as the 
only external project who is already supporting LLVM 3.9: 
http://www.llvm.org/releases/3.9.0/docs/ReleaseNotes.html#ldc-the-llvm-based-d-compiler
There are still surfacing some problems with LLVM 3.9, but you 
can try for yourself: Just recompile LDC using master or 
ltsmaster branch from GitHub to use this new LLVM release.


This is the 9th time that LDC and D are mentioned in the LLVM 
release notes!


Regards,
Kai


K-A-I R-U-L-E-Z
K-A-I R-U-L-E-Z
K-A-I R-U-L-E-Z


Thanks! It is the LDC team which which rulez! I am just trying to 
advocate LDC and D a bit...


Kai