Re: Beta D 2.068.1-b2

2015-09-05 Thread Dylan Knutson via Digitalmars-d-announce
On Saturday, 5 September 2015 at 11:30:20 UTC, BBasile wrote: On Monday, 31 August 2015 at 13:15:57 UTC, BBasile wrote: waiting feedback: https://github.com/dymk/temple/issues/31 this error message is so strange. Maybe the author is not very reachable now so you might also want to try to

Re: crate.d a draft for a mvc library

2014-11-29 Thread Dylan Knutson via Digitalmars-d-announce
On Thursday, 27 November 2014 at 19:16:24 UTC, gedaiu wrote: Hi, In the last weeks I tried to make a draft for a mvc library. I tried to take advantage of templates, uda and ctfe to make the interaction with the database and the routing easier. There is still a lot of work to do for making

Separate compilation of Temple templates

2014-11-25 Thread Dylan Knutson via Digitalmars-d-announce
Also, because long compile times due to template compilation are a pain for both Vibe's Diet and Temple, I've put together a repo demonstrating how to do separate compilation with Temple templates: https://github.com/dymk/temple-separate-compilation The idea is to put views in separate Dub

Temple v0.7.0: New API, Fewer Allocations

2014-11-22 Thread Dylan Knutson via Digitalmars-d-announce
Hey all, I'd like to announce the release of Temple 0.7.0, a compile time templating engine for D. It's been a while since the last major release, and 0.7.0 brings a lot of changes and enhancements. Temple is a library for embedding arbitrary D code in text templates, similar to Vibe.d's Diet,

Re: D2 port of Sociomantic CDGC available for early experiments

2014-10-16 Thread Dylan Knutson via Digitalmars-d-announce
Wouldn't it be more generally useful to have another function like main() called init() which if present (optional) is called before/during initialisation. It would be passed the command line arguments. Then a program can chose to implement it, and can use it to configure the GC in any

Re: Mono-D v2.4.9 - Parser fixes

2014-09-24 Thread Dylan Knutson via Digitalmars-d-announce
In the release notes: Sep 23th 2014 Ah yes, who can forget September twentythirth? ;-) Thanks for your work on Mono-D, it has made Xamarin studio a viable IDE for me.

Re: DlangUI

2014-05-20 Thread Dylan Knutson via Digitalmars-d-announce
Awesome! I can't wait to try it out. Some screenshots in the README would be much appreciated, though

Re: Regal: An SQL relational algebra builder

2014-05-19 Thread Dylan Knutson via Digitalmars-d-announce
On Friday, 16 May 2014 at 13:42:30 UTC, Jacob Carlborg wrote: On 16/05/14 09:58, Dylan Knutson wrote: Ya know, it might be able to be made into a struct; I'll fiddle with it tomorrow. The main reason it was made a class was so .join had to take a Table type as its first parameter

Re: Regal: An SQL relational algebra builder

2014-05-16 Thread Dylan Knutson via Digitalmars-d-announce
Does this need to be a class, can it be a struct instead? Ya know, it might be able to be made into a struct; I'll fiddle with it tomorrow. The main reason it was made a class was so .join had to take a Table type as its first parameter, and internally Table implements a Joinable interface

Regal: An SQL relational algebra builder

2014-05-15 Thread Dylan Knutson via Digitalmars-d-announce
Hi all, I'd like to announce the initial version of Regal, an SQL relational algebra builder for D. It's intended as a backbone for a relational database ORM, in line with how Arel works with Rails' ActiveRecord, but nearly any project that generates SQL dynamically can benefit from it. The

Re: DBI Interface 0.1.5

2014-04-10 Thread Dylan Knutson
On Friday, 11 April 2014 at 00:01:45 UTC, Jason King wrote: One other nag (suggestion). Keep your base DBI and any object relational wrapper separate. A lot of use-cases don't need ORM, and separating the two parts means that adding a new db driver is simply a matter of plugging in the dbi

Re: Bugzilla maintenance tonight

2014-04-10 Thread Dylan Knutson
Suggestion: A search and replace of the comments, replacing `d.puremagic.com/issues/show_bug.cgi?id=` with `issues.dlang.org/show_bug.cgi?id=` That way at least most of the links in comments between issues will point to the right location.

Re: ApplyYourDLang - A YouTube channel for D introduction videos

2014-02-26 Thread Dylan Knutson
On Wednesday, 26 February 2014 at 20:22:31 UTC, simendsjo wrote: On 02/26/2014 08:52 PM, Jacob Carlborg wrote: The video quality is good, isn't it? Or did you mean the content quality (which is pretty poor)? The audio quality is due to using a laptop microphone. I haven't found a way to

Re: Temple: Compile time, embedded D templates

2014-01-03 Thread Dylan Knutson
On Thursday, 2 January 2014 at 10:59:27 UTC, Jacob Carlborg wrote: Nice. Do you have any concept of safe vs unsafe strings? That's a really good idea... [the day passes by] Support implemented in v0.5.0: https://github.com/dymk/temple#filter-policies FilterPolicies allow the developer to

Re: Temple: Compile time, embedded D templates

2014-01-03 Thread Dylan Knutson
On Friday, 3 January 2014 at 17:50:22 UTC, Nicolas Sicard wrote: I wish Variant worked at compile time myself. Did you file a bug/enhancement request? (I couldn't find one in bugzilla). https://d.puremagic.com/issues/show_bug.cgi?id=11864 Doing some more tests, it seems like just about any

Re: Temple: Compile time, embedded D templates

2014-01-02 Thread Dylan Knutson
On Thursday, 2 January 2014 at 06:59:04 UTC, yazd wrote: How much of this is done at compile-time? Strictly speaking, just the generation of the code that writes the template to the output buffer. E.g, the code above simulating the Rails form helper would be lowered to code approximately

Re: Temple: Compile time, embedded D templates

2014-01-02 Thread Dylan Knutson
On Thursday, 2 January 2014 at 10:59:27 UTC, Jacob Carlborg wrote: On 2014-01-02 02:12, Dylan Knutson wrote: It didn't before, because of how the semantics of eRuby syntax works, but now it does! It seemed like an important thing to support... Here's an example mimicking a subset of Rails

Re: Temple: Compile time, embedded D templates

2014-01-01 Thread Dylan Knutson
Added a goodie: Nestable capture blocks (like pseudo-templates inside your templates) This template: ``` % auto outer = capture(() { % Outer, first % auto inner = capture(() { % Inner, first

Re: Temple: Compile time, embedded D templates

2014-01-01 Thread Dylan Knutson
On Wednesday, 1 January 2014 at 13:04:27 UTC, Jacob Carlborg wrote: On 2013-12-31 07:05, Dylan Knutson wrote: Hello, A few months ago I had posted a project of mine, templ-d. It was an experiment in writing a template engine for embedding D code in arbitrary text files, a-la Vibe.d's Diet

Re: Temple: Compile time, embedded D templates

2014-01-01 Thread Dylan Knutson
I've made a post on Reddit, if anyone that found the library nifty would like to upvote: http://www.reddit.com/r/programming/comments/1u71sr/temple_compile_time_embedded_templating_engine/

Re: Temple: Compile time, embedded D templates

2013-12-31 Thread Dylan Knutson
On Tuesday, 31 December 2013 at 13:10:53 UTC, Jacob Carlborg wrote: On 2013-12-31 07:05, Dylan Knutson wrote: Hello, A few months ago I had posted a project of mine, templ-d. It was an experiment in writing a template engine for embedding D code in arbitrary text files, a-la Vibe.d's Diet

Temple: Compile time, embedded D templates

2013-12-30 Thread Dylan Knutson
Hello, A few months ago I had posted a project of mine, templ-d. It was an experiment in writing a template engine for embedding D code in arbitrary text files, a-la Vibe.d's Diet templates, but without the requirement of generating HTML. So, I've revamped templ-d, and written Temple in its

Re: Travis-CI Skeleton Project for DMD 2.064.2 and LDC 0.12.1

2013-12-16 Thread Dylan Knutson
On Monday, 16 December 2013 at 07:34:07 UTC, Jacob Carlborg wrote: We really need to get officially support for D in Travis. I've been thinking about this for a while but haven't done anything about it so far. Agreed; this was just a stopgap for at least being able to use Travis with my

Re: Travis-CI Skeleton Project for DMD 2.064.2 and LDC 0.12.1

2013-12-16 Thread Dylan Knutson
On Monday, 16 December 2013 at 12:09:13 UTC, Leandro Lucarella wrote: Yeah, and this approach of compiling the compilers, even when it might be useful, seems overkill and a bit abusive for Travis. I would contact those guys, maybe they are willing to add D support, I guess it shouldn't be that

Re: Travis-CI Skeleton Project for DMD 2.064.2 and LDC 0.12.1

2013-12-15 Thread Dylan Knutson
On Sunday, 15 December 2013 at 23:31:48 UTC, Dylan Knutson wrote: Hello, I was hoping for Travis-CI to provide a set of D compilers for building projects written in D, but alas, they do not. So, here's a small skeleton project that I'm using for testing my D projects with DMD 2.064.2

Travis-CI Skeleton Project for DMD 2.064.2 and LDC 0.12.1

2013-12-15 Thread Dylan Knutson
Hello, I was hoping for Travis-CI to provide a set of D compilers for building projects written in D, but alas, they do not. So, here's a small skeleton project that I'm using for testing my D projects with DMD 2.064.2 and LDC 0.12.1. It should be straightforward to bring in the relevant

v1.0.0 of templ-d: An Embedded D Template Engine

2013-05-27 Thread Dylan Knutson
Hello everyone, A few of you might have remembered me posting a proof-of-concept embedded D template engine a week or two ago. I'd like to announce that a few weeks of development later, I've extracted the core idea of that into a Dub-compatible library, called templ-d. The syntax that

Heterogeneous type parameter variadics and function literals?

2013-05-17 Thread Dylan Knutson
Hello, Please correct me if I'm not using a term right; I'm new to the language, so I'm not all that familiar with what term applies to what :-) I'm in kind of a bind here: I've got to, at compile time, do some conditional logic within a function literal based on the number of arguments

Re: Heterogeneous type parameter variadics and function literals?

2013-05-17 Thread Dylan Knutson
On Friday, 17 May 2013 at 07:21:22 UTC, Jonathan M Davis wrote: Please post questions like this in D.Learn, not D.announce - Jonathan M Davis Apologies; I didn't notice where I posted this.