Re: sqlite-statement CTFE Generation (UniformAccess) / Benchmark

2014-04-16 Thread justme
You may be on to something here. On Tuesday, 15 April 2014 at 22:27:53 UTC, John Carter wrote: I was contemplating why languages explode on to the scene or not, and often it comes down to a so called Killer App. For Ruby, it was Rails. The ability to construct optimally fast typesafe tuples

Re: sqlite-statement CTFE Generation (UniformAccess) / Benchmark

2014-04-16 Thread Robert Schadek
On 04/16/2014 01:55 PM, justme wrote: You may be on to something here. Maybe I should create a wanted feature list and get started. Any feature you would like to see?

Re: sqlite-statement CTFE Generation (UniformAccess) / Benchmark

2014-04-16 Thread John Carter
I guess the place I'd start is with what CJ Date has been saying about Tutorial D and how much you can rephrase into D. In someways it's a very orthogonal concept, we tend to think of databases as places where we store data. What Date is saying is, no, they are collections of predicates and an

sqlite-statement CTFE Generation (UniformAccess) / Benchmark

2014-04-15 Thread Robert Schadek
Lately I had to write some sqlite3 code in D. And I really hated writing it. So I wrote me some CTFE generator for it. It uses all the fun UDA, CTFE string mixin template magic, we all love. The generated code is as fast as the hand written one. I wrote some of it down. http://rburners.tumblr.com/

Re: sqlite-statement CTFE Generation (UniformAccess) / Benchmark

2014-04-15 Thread Dicebot
On Tuesday, 15 April 2014 at 15:57:13 UTC, Robert Schadek wrote: Lately I had to write some sqlite3 code in D. And I really hated writing it. So I wrote me some CTFE generator for it. It uses all the fun UDA, CTFE string mixin template magic, we all love. The generated code is as fast as the

Re: sqlite-statement CTFE Generation (UniformAccess) / Benchmark

2014-04-15 Thread Robert Schadek
On 04/15/2014 07:05 PM, Dicebot wrote: Some quick observations: 1) toStringz(insertStmt) - as inserStmt is actually a string literal, no need to use toStringz, literals are alway null-terminated. did not know that. Thanks 2) in block immediately after `throw` has extra level of indentation

Re: sqlite-statement CTFE Generation (UniformAccess) / Benchmark

2014-04-15 Thread Ali Çehreli
On 04/15/2014 08:51 AM, Robert Schadek wrote: Lately I had to write some sqlite3 code in D. And I really hated writing it. So I wrote me some CTFE generator for it. It uses all the fun UDA, CTFE string mixin template magic, we all love. The generated code is as fast as the hand written one. I

Re: sqlite-statement CTFE Generation (UniformAccess) / Benchmark

2014-04-15 Thread Robert BuRnEr Schadek
Here is my non-technical input. :) Typos: snipped - snippet (Also, there shouldn't be any comma in that sentence.) simular - similar Than it - Then it by a @ - by an @ (not sure about that one) an decleration - a declaration associcated - associate all it UDAs - all its UDAs

Re: sqlite-statement CTFE Generation (UniformAccess) / Benchmark

2014-04-15 Thread John Carter
I was contemplating why languages explode on to the scene or not, and often it comes down to a so called Killer App. For Ruby, it was Rails. The ability to construct optimally fast typesafe tuples in D perfectly matches the requirements of database management to a degree unmatched by any other