On Sat, Oct 6, 2012 at 8:01 PM, Arlen wrote:
> I'm not sure if TypeTuples work well when doing things like dimensional
> analysis. For example, if you have two TypeTuples, A and B, what would the
> signature of the metafunction to merge the two look like?
>
> template Merge(A, B) { }
>
> won't
On Sat, Oct 6, 2012 at 8:32 PM, Dmitry Olshansky wrote:
> Your current code may have some bad impact on performance:
> return "(" ~ to!string(res.numerator) ~ "/" ~ to!string(res.denominator) ~
> ")";
>
> Allocates 4 times. ~ operator is convenient shortcut to get job done but
> it's unsuitable f
On Sat, Oct 6, 2012 at 11:52 PM, Arlen wrote:
> #1
> template Foldl(alias Fun, Z, alias TL) { }
>
> This is called when dealing with 1-dimensional typelists. For example:
>
> alias Foldl!(MyFun, char, TL) R1; // where TL is, e.g.,
> TypeList!(int, char, double)
>
> #2
> template Foldl(alias Fu
denizzzka wrote:
> https://github.com/denizzzka/dpq2
Thank you very much. I think I haven't seen this project. Would you like to
add it to this wiki page?
http://www.prowiki.org/wiki4d/wiki.cgi?DatabaseBindings#PostgreSQL
Best regards, Thomas Koch
On Sunday, 7 October 2012 at 07:36:08 UTC, Philippe Sigaud wrote:
On Sat, Oct 6, 2012 at 8:32 PM, Dmitry Olshansky
wrote:
Your current code may have some bad impact on performance:
return "(" ~ to!string(res.numerator) ~ "/" ~
to!string(res.denominator) ~
")";
Allocates 4 times. ~ operator
On Sun, 2012-10-07 at 00:35 +0200, denizzzka wrote:
> On Saturday, 6 October 2012 at 12:06:07 UTC, Thomas Koch wrote:
> >> - I looked for a PostgreSQL client library. I found small
> > personal hacks and
> > dead projects.
>
> https://github.com/denizzzka/dpq2
>
> This is my personal project but
Any news on the "regressions" relating to threads in the 2.059 → 2.060
change? Is a 2.061 with fixes pending?
Thanks.
--
Russel.
=
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net
41 Buckmast
06.10.2012 23:50, Era Scarecrow пишет:
On Wednesday, 26 September 2012 at 19:11:37 UTC, bearophile wrote:
I think it's a good idea to have a well written EnumFlags data
structure in Phobos. In C# this feature is even built-in. So issue
6946 is not closing, unless Andrei or Walter decide it's a b
On 07-Oct-12 12:10, Jakob Ovrum wrote:
On Sunday, 7 October 2012 at 07:36:08 UTC, Philippe Sigaud wrote:
On Sat, Oct 6, 2012 at 8:32 PM, Dmitry Olshansky
wrote:
Your current code may have some bad impact on performance:
return "(" ~ to!string(res.numerator) ~ "/" ~
to!string(res.denominator)
On 07-Oct-12 11:23, Philippe Sigaud wrote:
On Sat, Oct 6, 2012 at 8:01 PM, Arlen wrote:
I'm not sure if TypeTuples work well when doing things like dimensional
analysis. For example, if you have two TypeTuples, A and B, what would the
signature of the metafunction to merge the two look like?
On Sunday, 7 October 2012 at 09:22:17 UTC, Denis Shelomovskij
wrote:
I'd like to see enum syntax for flug enum. So I dislike
function calls like `set_flag`, `checkAll`, etc. (IMHO)
You mean... binary basic syntax? That shouldn't be too hard. So
something like..?
Flags x;
with(Flags) {
On Sunday, 7 October 2012 at 09:27:54 UTC, Dmitry Olshansky wrote:
Ehem.. I've been pushing for DIP9 a lot of time. But then I
find out that it is already here (and been for some time).
Like I said use a special overload of toString that is exactly
writeTo.
Just define method with this signa
On Sunday, 7 October 2012 at 09:07:39 UTC, Russel Winder wrote:
On Sun, 2012-10-07 at 00:35 +0200, denizzzka wrote:
On Saturday, 6 October 2012 at 12:06:07 UTC, Thomas Koch wrote:
>> - I looked for a PostgreSQL client library. I found small
> personal hacks and
> dead projects.
https://github.c
On Saturday, 6 October 2012 at 21:19:58 UTC, Joseph Rushton
Wakeling wrote:
On 10/06/2012 10:59 PM, Nick Sabalausky wrote:
Definitely not. *DSource* is dying, unfortunately, which has
lead some
people to assume the same of the rest of D. But no, D is going
very
strong, and has only been gettin
Russel Winder wrote:
On Sun, 2012-10-07 at 00:35 +0200, denizzzka wrote:
On Saturday, 6 October 2012 at 12:06:07 UTC, Thomas Koch wrote:
- I looked for a PostgreSQL client library. I found small
personal hacks and
dead projects.
https://github.com/denizzzka/dpq2
This is my personal project
On Sunday, October 07, 2012 11:37:30 Jakob Ovrum wrote:
> To implement it fully we would still want to change toString for
> classes, and probably do something like providing a UFCS function
> in object.toString or some other relevant location for
> convenience and backwards compatibility.
Well, c
On Sunday, October 07, 2012 11:43:21 Peter Alexander wrote:
> On Saturday, 6 October 2012 at 21:19:58 UTC, Joseph Rushton
>
> Wakeling wrote:
> > On 10/06/2012 10:59 PM, Nick Sabalausky wrote:
> >> Definitely not. *DSource* is dying, unfortunately, which has
> >> lead some
> >> people to assume th
On Sunday, 7 October 2012 at 10:04:57 UTC, Era Scarecrow wrote:
1) struct size can't size (no loss of data).
1) struct sizes and structures can't change (no loss of data)
What are the possibilities of struct polymorphism? What would be
the issues with it? What if we wanted to use it in a limited
sense?
Currently I'm experimenting with it since classes are too bulky
for what I need, yet I really need some type of behavior/dynamic
polymorphism. So far I have a
On 10/07/12 04:24, bearophile wrote:
> Recently one of the most important bugs was mostly fixed, beside Win64
> support this is one of the most important changes in dmd 2.061:
>
> http://d.puremagic.com/issues/show_bug.cgi?id=6036
>
>
> Do you think this has to be correct code?
>
> struct Adde
On Sunday, 7 October 2012 at 09:58:54 UTC, Jonathan M Davis wrote:
Well, considering that we're looking at removing toString,
toHash, opCmp, and
opEquals from Object entirely, that probably won't be
necessary. But that
particular plan hasn't gotten past the initial discussions
AFAIK, so who kno
On Sunday, 7 October 2012 at 09:56:30 UTC, Piotr Szturmaj wrote:
Russel Winder wrote:
On Sun, 2012-10-07 at 00:35 +0200, denizzzka wrote:
On Saturday, 6 October 2012 at 12:06:07 UTC, Thomas Koch
wrote:
- I looked for a PostgreSQL client library. I found small
personal hacks and
dead projects.
On Friday, 5 October 2012 at 13:47:00 UTC, monarch_dodra wrote:
On Friday, 5 October 2012 at 00:22:04 UTC, Jonathan M Davis
wrote:
On Friday, October 05, 2012 02:08:14 bearophile wrote:
[SNIP]
Regarding definition of variables in D language constructs,
there
is one situation where sometimes I
On 10/7/2012 3:12 AM, Alex Rønne Petersen wrote:
On 07-10-2012 11:11, Russel Winder wrote:
Any news on the "regressions" relating to threads in the 2.059 → 2.060
change? Is a 2.061 with fixes pending?
I'm still not clear on what these regressions are?
A list of relevant bugzilla entries wou
On 2012-10-07 00:14, Nick Sabalausky wrote:
I don't know about the rest of DSSS as I only ever used the
'rebuild' component. But as for rebuild, there are problems:
For one thing, 0.76 is generally considered to work much better than
0.77 and the final version, 0.78 (I forget the details, but a
On Sun, 2012-10-07 at 03:39 -0700, Walter Bright wrote:
> On 10/7/2012 3:12 AM, Alex Rønne Petersen wrote:
> > On 07-10-2012 11:11, Russel Winder wrote:
> >> Any news on the "regressions" relating to threads in the 2.059 → 2.060
> >> change? Is a 2.061 with fixes pending?
> >
> > I'm still not clea
On Sun, 07 Oct 2012 02:51:42 -0700
Jonathan M Davis wrote:
> On Sunday, October 07, 2012 11:43:21 Peter Alexander wrote:
> > On Saturday, 6 October 2012 at 21:19:58 UTC, Joseph Rushton
> >
> > Wakeling wrote:
> > >
> > > Might be worth placing some prominent message on DSource
> > > stating tha
On 2012-10-07 10:55, Russel Winder wrote:
Why only PostgreSQL. Shouldn't it also work with MySQL, Oracle, DB2,
PervasiveSQL, SQLite3, etc.?
From the example I assume that this is just a library for managing
connections and that everything else is just string-based SQL
statements. Groovy's and
Am Tue, 02 Oct 2012 09:38:56 +0200
schrieb Don Clugston :
> Any code that behaves differently when compiled with -O, will do this as
> well. Constant folding of floating point numbers does the same thing, if
> the numbers are represented in the compiler in a different precision to
> how the mac
Jacob Carlborg wrote:
On 2012-10-07 10:55, Russel Winder wrote:
Why only PostgreSQL. Shouldn't it also work with MySQL, Oracle, DB2,
PervasiveSQL, SQLite3, etc.?
From the example I assume that this is just a library for managing
connections and that everything else is just string-based SQL
st
On 1 October 2012 19:25, Andrei Alexandrescu
wrote:
> The project is not live, it will be within a few days. In the spirit of
> having the community actively participate, I'm making this as transparent
> as it gets. Please comment:
>
> http://www.kickstarter.com/**projects/dlang/1177501541?**token
Recently one of the most important bugs was mostly fixed,
beside Win64 support this is one of the most important changes
in dmd 2.061:
http://d.puremagic.com/issues/show_bug.cgi?id=6036
Next important bug to focus on is (in my top5 bug list):
http://d.puremagic.com/issues/show_bug.cgi?id=3789
On 7 October 2012 00:20, Era Scarecrow wrote:
> On Wednesday, 3 October 2012 at 17:08:25 UTC, Andrei Alexandrescu wrote:
>>
>> I hear you. We have a detailed budget model and we're not splurging in any
>> way. Organizing a conference has quite a few odds and ends and weird
>> pricing. As an exampl
Having distinct layers that don't know each other isn't always a good idea.
Just wanted to illustrate that "layers" shouldn't always be separate.
Actually I'm not sure how separate they are in ActiveRecord. I wanted to
mostly point out that generating the SQL was done by a separate library
On 10/7/12 8:42 AM, Manu wrote:
On 1 October 2012 19:25, Andrei Alexandrescu
mailto:seewebsiteforem...@erdani.org>>
wrote:
The project is not live, it will be within a few days. In the spirit
of having the community actively participate, I'm making this as
transparent as it gets. P
On Sun, Oct 7, 2012 at 11:15 AM, Dmitry Olshansky wrote:
> import std.stdio, std.format;
>
> struct A{
> int k;
>
> void toString(scope void delegate(const(char)[]) sink)
> {
> formattedWrite(sink, "[%d]", k);
> }
> }
I see, thanks. And if the strin
On Sunday, 7 October 2012 at 15:36:52 UTC, Philippe Sigaud wrote:
I see, thanks. And if the string in formattedWrite is a complex
beast,
created through lots of if's and while's, I use Appender in its
place?
Ideally, you just write to the sink directly, piece by piece –
but if for some reason
On 10/05/2012 03:35 PM, monarch_dodra wrote:
On Friday, 5 October 2012 at 00:22:04 UTC, Jonathan M Davis wrote:
On Friday, October 05, 2012 02:08:14 bearophile wrote:
[SNIP]
Regarding definition of variables in D language constructs, there
is one situation where sometimes I find D not handy. Th
Isn't part of the problem that no one can get ahold of the
person who
runs it? At least, that's what I remember being discussed
previously.
It was my understanding that that's why we've never been able
to get
dsource cleaned up or really changed at all.
No, I think he'd just been busy. I've
On 10/07/2012 10:55 AM, Russel Winder wrote:
Why only PostgreSQL. Shouldn't it also work with MySQL, Oracle, DB2,
PervasiveSQL, SQLite3, etc.?
I don't have sufficient experience with SQL to be able to really make a
judgement here, but is there a case for a std.sql or std.db that would provide
On 10/07/12 17:24, Philippe Sigaud wrote:
> On Sun, Oct 7, 2012 at 11:15 AM, Dmitry Olshansky
> wrote:
>> import std.stdio, std.format;
>>
>> struct A{
>> int k;
>>
>> void toString(scope void delegate(const(char)[]) sink)
>> {
>> formattedWrite(sink, "[%d]
On Sunday, 7 October 2012 at 17:06:31 UTC, Joseph Rushton
Wakeling wrote:
Am I right that there's something in Adam Ruppe's web modules
that's heading in this direction?
Yeah, though I'm a little biased toward mysql since that's what I
use every day, so some of the stuff that should be in gene
On Sunday, 7 October 2012 at 17:06:31 UTC, Joseph Rushton
Wakeling wrote:
On 10/07/2012 10:55 AM, Russel Winder wrote:
Why only PostgreSQL. Shouldn't it also work with MySQL,
Oracle, DB2,
PervasiveSQL, SQLite3, etc.?
I don't have sufficient experience with SQL to be able to
really make a jud
On Sunday, 7 October 2012 at 12:39:35 UTC, Piotr Szturmaj wrote:
In my prostgres client one may specify field types at compile
time. If I had divided the client into two separate layers it
would return a Variant[] at first layer, then convert it to
user specified tuple at the second. For exampl
On Sat, Oct 6, 2012 at 11:47 PM, domain wrote:
> It has been suspended for a long time. Any plan?
>
I have been working on it in my spare time. I have fixed some basic API
issues that were outlined during the review process but not enough to put
it through another review process.
std.log was or
This is great news. Really looking forward to a std.log module.
/Jonas
Imagine you want an image to keep the width of 512:
void func(Image img) {
assert(img.width == 512);
img.doSomething();
assert(img.width == 512);
while (img.somethingElse()) {
assert(img.width == 512)
someFunc(img);
assert(img.width == 512);
}
}
In
Thiez wrote:
On Sunday, 7 October 2012 at 12:39:35 UTC, Piotr Szturmaj wrote:
In my prostgres client one may specify field types at compile time. If
I had divided the client into two separate layers it would return a
Variant[] at first layer, then convert it to user specified tuple at
the second
On 10/7/12 1:06 PM, Paulo Pinto wrote:
The important thing are interfaces, as such you're not bringing external
dependencies. Unless the D community decides to have the drivers as part
of the language (comes with batteries kind of thing).
Yah, this is a chicken-and-egg kind of thing. In many la
On Sunday, 7 October 2012 at 18:32:06 UTC, jdrewsen wrote:
This is great news. Really looking forward to a std.log module.
+1
/Jonas
On Sunday, 7 October 2012 at 15:20:44 UTC, Andrei Alexandrescu
wrote:
Seems like a big budget, what are the projected numbers? (10s?
100s? 1000s?) ;)
The budget would cover around 55 attendees for 3 days. That
includes (in decreasing order of cost) food, conference space,
speaker support
On Sunday, 7 October 2012 at 17:06:31 UTC, Joseph Rushton
Wakeling wrote:
On 10/07/2012 10:55 AM, Russel Winder wrote:
Why only PostgreSQL. Shouldn't it also work with MySQL,
Oracle, DB2,
PervasiveSQL, SQLite3, etc.?
I don't have sufficient experience with SQL to be able to
really make a jud
On Sunday, 7 October 2012 at 08:05:10 UTC, Thomas Koch wrote:
denizzzka wrote:
https://github.com/denizzzka/dpq2
Thank you very much. I think I haven't seen this project. Would
you like to
add it to this wiki page?
http://www.prowiki.org/wiki4d/wiki.cgi?DatabaseBindings#PostgreSQL
I could n
On 10/07/2012 11:44 AM, Henning Pohl wrote:
Imagine you want an image to keep the width of 512:
void func(Image img) {
assert(img.width == 512);
img.doSomething();
assert(img.width == 512);
while (img.somethingElse()) {
assert(img.width == 512)
someFunc(img);
assert(img.width == 512);
}
}
In
On Sunday, 7 October 2012 at 20:18:15 UTC, Ali Çehreli wrote:
Sounds good.
Thanks.
You haven't mentioned the invariant keyword, so perhaps you are
not aware of that feature?
http://dlang.org/class.html#Invariant
http://dlang.org/dbc.html
Although the docs seem to favor classes, invaria
Le 07/10/2012 04:24, bearophile a écrit :
Recently one of the most important bugs was mostly fixed, beside Win64
support this is one of the most important changes in dmd 2.061:
http://d.puremagic.com/issues/show_bug.cgi?id=6036
Do you think this has to be correct code?
struct Adder {
int v;
i
On Sun, 07 Oct 2012 18:39:16 +0200
"jerro" wrote:
> >> Isn't part of the problem that no one can get ahold of the
> >> person who
> >> runs it? At least, that's what I remember being discussed
> >> previously.
> >> It was my understanding that that's why we've never been able
> >> to get
> >>
On Monday, 1 October 2012 at 16:25:12 UTC, Andrei Alexandrescu
wrote:
The project is not live, it will be within a few days. In the
spirit of having the community actively participate, I'm making
this as transparent as it gets. Please comment:
http://www.kickstarter.com/projects/dlang/11775015
On Sun, 07 Oct 2012 21:58:49 +0200
"denizzzka" <4deni...@gmail.com> wrote:
> On Sunday, 7 October 2012 at 08:05:10 UTC, Thomas Koch wrote:
> > denizzzka wrote:
> >> https://github.com/denizzzka/dpq2
> > Thank you very much. I think I haven't seen this project. Would
> > you like to
> > add it to
On Sun, 07 Oct 2012 18:54:17 +0200
Joseph Rushton Wakeling wrote:
> On 10/07/2012 10:55 AM, Russel Winder wrote:
> > Why only PostgreSQL. Shouldn't it also work with MySQL, Oracle, DB2,
> > PervasiveSQL, SQLite3, etc.?
>
> I don't have sufficient experience with SQL to be able to really make
> a
On Sun, Oct 7, 2012 at 2:23 AM, Philippe Sigaud
wrote:
>
> Double-stage templates (which reminds me of rocket science :) )
>
> template Merge(A...)
> {
> template With(B...)
> { }
> }
>
>
> Usage:
>
> Merge!(int,double,string).With!(double,byte)
I can live with that, but, as I explained
On Sunday, October 07, 2012 22:57:33 Arlen wrote:
> I can live with that, but, as I explained before, TypeTuples cause
> code duplication in certain cases because they force 'alias' to be
> used in the signature of the metafunctions.
>
> And how would you return a multi-dimensional TypeTuple? The
On Sunday, 7 October 2012 at 09:07:39 UTC, Russel Winder wrote:
Why only PostgreSQL. Shouldn't it also work with MySQL, Oracle,
DB2,
PervasiveSQL, SQLite3, etc.?
Good question. A wrong approach since we talk about DB support.
Design the Interface first, would be the solution.
Then decide
On Sat, Oct 6, 2012 at 1:32 PM, Dmitry Olshansky wrote:
>
> Cool, does it work with BigInt?
>
No it doesn't work with BigInt, but I did look into it today briefly.
There are issues with BigInt that I'm not sure what to do about:
1. To convert a BigInt to floating-point one needs to convert it t
On Sun, Oct 7, 2012 at 11:16 PM, Jonathan M Davis wrote:
>
> While this sort of function might be useful from time to time, how often is it
> actually, realistically needed? Certainly, I'd argue that it's rare enough
> that having a slightly more complicated solution specifically for it makes
> m
On Monday, October 08, 2012 00:14:04 Arlen wrote:
> > So, we're not adding TypeList.
>
> Oh, I was aware that a decision had already been made. I thought it
> was an open issue.
It was decided the last time that std.typelist was brought up. Basically,
TypeList doesn't provide enough over TypeT
66 matches
Mail list logo