Add CTFE execute function

2012-05-26 Thread Chang Long
CTFE execute will be very useful on web develop, for example It is very hard to create a CTFE version template engine with rich feature. But we can use execute call to transe template file to d code string, then mixed it to application. The vibed project is very cool and I want to add my Jade

Re: Add CTFE execute function

2012-05-27 Thread Chang Long
On Saturday, 26 May 2012 at 15:56:38 UTC, Chang Long wrote: CTFE execute will be very useful on web develop, for example It is very hard to create a CTFE version template engine with rich feature. But we can use execute call to transe template file to d code string, then mixed it to application

Re: Add CTFE execute function

2012-05-29 Thread Don Clugston
On 28/05/12 03:40, Chang Long wrote: On Saturday, 26 May 2012 at 15:56:38 UTC, Chang Long wrote: CTFE execute will be very useful on web develop, for example It is very hard to create a CTFE version template engine with rich feature. But we can use execute call to transe template file to d code

Re: Add CTFE execute function

2012-05-29 Thread Gor Gyolchanyan
Yeah, but it requires re-implementing all those tools. If you already have them implemented in D, then it's not a problem, but if you don't or they are closed-source, then import(filename) won't do much good. On Tue, May 29, 2012 at 1:46 PM, Don Clugston wrote: > On 28/05/12 03:40, Chang Long wr

Re: Add CTFE execute function

2012-05-29 Thread Tobias Pankrath
On Tuesday, 29 May 2012 at 10:08:51 UTC, Gor Gyolchanyan wrote: Yeah, but it requires re-implementing all those tools. If you already have them implemented in D, then it's not a problem, but if you don't or they are closed-source, then import(filename) won't do much good. You just need a two

Re: Add CTFE execute function

2012-05-29 Thread Gor Gyolchanyan
On Tue, May 29, 2012 at 2:53 PM, Tobias Pankrath wrote: > On Tuesday, 29 May 2012 at 10:08:51 UTC, Gor Gyolchanyan wrote: > >> Yeah, but it requires re-implementing all those tools. If you already have >> them implemented in D, then it's not a problem, but if you don't or they >> are closed-source

Re: Add CTFE execute function

2012-05-29 Thread Tobias Pankrath
On Tuesday, 29 May 2012 at 11:51:34 UTC, Gor Gyolchanyan wrote: On Tue, May 29, 2012 at 2:53 PM, Tobias Pankrath wrote: On Tuesday, 29 May 2012 at 10:08:51 UTC, Gor Gyolchanyan wrote: Yeah, but it requires re-implementing all those tools. If you already have them implemented in D, then it's

Re: Add CTFE execute function

2012-05-29 Thread Gor Gyolchanyan
On Tue, May 29, 2012 at 4:02 PM, Tobias Pankrath wrote: > Going this path means that you have to turn the compiler into a full build > system. That finds the right tools in the path, gives good error messages > if they are absent, that caches results etc. > > ... which is precisely what we need t

Re: Add CTFE execute function

2012-05-29 Thread Tobias Pankrath
On Tuesday, 29 May 2012 at 16:32:17 UTC, Gor Gyolchanyan wrote: On Tue, May 29, 2012 at 4:02 PM, Tobias Pankrath wrote: Going this path means that you have to turn the compiler into a full build system. That finds the right tools in the path, gives good error messages if they are absent, th

Re: Add CTFE execute function

2012-05-29 Thread Gor Gyolchanyan
On Tue, May 29, 2012 at 9:47 PM, Tobias Pankrath wrote: > On Tuesday, 29 May 2012 at 16:32:17 UTC, Gor Gyolchanyan wrote: > >> On Tue, May 29, 2012 at 4:02 PM, Tobias Pankrath > >wrote: >> >> >> >> Going this path means that you have to turn the compiler into a full >>> build >>> system. That fin

Re: Add CTFE execute function

2012-07-19 Thread Chang Long
On Tuesday, 29 May 2012 at 09:46:54 UTC, Don Clugston wrote: On 28/05/12 03:40, Chang Long wrote: On Saturday, 26 May 2012 at 15:56:38 UTC, Chang Long wrote: CTFE execute will be very useful on web develop, for example It is very hard to create a CTFE version template engine with rich feature.

Re: Add CTFE execute function

2012-07-20 Thread Nick Treleaven
On 20/07/2012 03:08, Chang Long wrote: Let me make myself more clear, what I suggestion is something like this: mixin( std.process.execute("/usr/bin/template_engine template_file_path.htm") ); When translate the template code to D code, need a lot D type arguments information. And one Web