On 04/24/2011 02:23 PM, Sean Cavanaugh wrote:
On 4/20/2011 11:09 AM, Robert Clipsham wrote:
Hey folks,
I've just finished porting my web framework from D1/Tango to D2/Phobos,
and in the transition lost logging functionality. As I'll be writing a
logging library anyway, I wondered if there'd be
On 04/24/2011 11:18 AM, lurker wrote:
Yes, everyone is voting yes. And half of the voters haven't ever used
parallelism or know anything about its library level design issues.
This voting process seemed like a joke. I know this kind of voting is
popular in other projects, but D community's infras
On 04/24/2011 07:10 PM, Timon Gehr wrote:
Andrei Alexandrescu wrote:
I am sorry, you simply have no case - each and every argument you put
forth has no strength or is just wrong. We could spend time on debating
each, but I suspect that would do little toward convincing you of what
is after all a
On Sun, 24 Apr 2011 21:13:43 -0400, Andrei Alexandrescu
wrote:
On 04/24/2011 08:08 PM, Iain Buclaw wrote:
== Quote from Timon Gehr (timon.g...@gmx.ch)'s article
Andrei Alexandrescu wrote:
I am sorry, you simply have no case - each and every argument you put
forth has no strength or is just
On 04/24/2011 08:08 PM, Iain Buclaw wrote:
== Quote from Timon Gehr (timon.g...@gmx.ch)'s article
Andrei Alexandrescu wrote:
I am sorry, you simply have no case - each and every argument you put
forth has no strength or is just wrong. We could spend time on debating
each, but I suspect that wou
== Quote from Timon Gehr (timon.g...@gmx.ch)'s article
> Andrei Alexandrescu wrote:
> > I am sorry, you simply have no case - each and every argument you put
> > forth has no strength or is just wrong. We could spend time on debating
> > each, but I suspect that would do little toward convincing yo
Andrei Alexandrescu wrote:
> I am sorry, you simply have no case - each and every argument you put
> forth has no strength or is just wrong. We could spend time on debating
> each, but I suspect that would do little toward convincing you of what
> is after all a simple fact, but one with many subtl
On Mon, 25 Apr 2011 02:33:44 +0300, Robert Clipsham
wrote:
On 25/04/2011 00:19, Alex Khmara wrote:
Is it possible to see code somewhere?
https://github.com/mrmonday/serenity/blob/master/serenity/SqlQuery.d -
The code isn't great, it's adapted from D1, and wasn't complete before
the por
On 25/04/2011 00:19, Alex Khmara wrote:
Is it possible to see code somewhere?
https://github.com/mrmonday/serenity/blob/master/serenity/SqlQuery.d -
The code isn't great, it's adapted from D1, and wasn't complete before
the port.
It would be interesting to get rid of
raw SQL, but retain ac
Thanks dsimcha, Ben, and Adam,
You guys are great!
Piotr Szturmaj wrote:
Why not allow "delete" only in classes with custom allocators? AFAIK
they could be determined at compile time. Please let me know if I'm wrong.
Nevermind. Andrei informed that class allocators are being deprecated,
so my question is no longer relevant.
On Mon, 25 Apr 2011 01:49:16 +0300, Robert Clipsham
wrote:
On 24/04/2011 21:40, dsimcha wrote:
However, it seems others in the community are interested in a more
general SQL DB wrapper that can be used with a variety of backends.
Now that no GSoC database project has been accepted, we need t
On 24/04/2011 21:40, dsimcha wrote:
However, it seems others in the community are interested in a more
general SQL DB wrapper that can be used with a variety of backends.
Now that no GSoC database project has been accepted, we need to
consider other options for getting this done. I understand tha
On 4/24/11, Andrei Alexandrescu wrote:
> On 04/24/2011 03:35 PM, Andrej Mitrovic wrote:
>> Since this is definite we should remove them from the docs as well.
>> Want me to file it to bugzilla?
>
> Please do. BTW I just fixed the core-related documentation bug on
> d-programming-language.org.
>
>
On 04/24/2011 03:35 PM, Andrej Mitrovic wrote:
Since this is definite we should remove them from the docs as well.
Want me to file it to bugzilla?
Please do. BTW I just fixed the core-related documentation bug on
d-programming-language.org.
Andrei
If you just want to format a string use std.string.format.
import std.string;
int i=1;
float f=2.5f;
string s = "test";
string output = format("%s %s %s",i,f,s);
If you use the %s placeholder the type will automatically be determined
and printed out correctly.
--
Kind Regards
Benjamin Thaut
== Quote from bearophile (bearophileh...@lycos.com)'s article
> Andrei:
> > It might not a good use of our time to further engage in a diatribe on this.
> Just a note: you have not wasted your time discussing this, because I am not
expert on such matters, so I learn something from informed discussi
Thanks Adam,
My main problem, I guess, is that I can't seem to find the documentation for
these
functions in D. I'll be checking out the link you sent for the format function
shortly.
I don't expect the function to be able to do the thousands formatting for me
(C's
version works if you use "%'
You might try the format() function instead:
http://dpldocs.info/std.string.format
Though, I don't think it does thousands grouping, so it might not
work for you.
If you need C's sprintf, make sure the strings are zero terminated
and that you're passing pointers to them:
char[10] buffer;
sprin
On 4/24/2011 5:22 PM, Justin Hanekom wrote:
Hi all,
I have what should be an *extremely* simple question that Im banging my head
against: how to use
sprintf to format something to a string.
I have tried:
import std.stdio;
...
auto buffer = new char[12];
auto chars_written = sprintf
Hi all,
I have what should be an *extremely* simple question that Im banging my head
against: how to use
sprintf to format something to a string.
I have tried:
import std.stdio;
...
auto buffer = new char[12];
auto chars_written = sprintf(cast(char *) buffer, "%d", 12345);
writeln(char
SQLite project pay high attention to compatibility. AFAIK, all changes
except
first digit are upward compatible - you can take bindings for 3.5.0 and
link
wih 3.7.6 - all will work as expected, You just will not see new API.
P.S. I updated bindings version to 3.7.6.2 and fixed one bug (see
git
On 4/24/2011 3:51 PM, Iain Buclaw wrote:
As some anecdote goes, bugs will be found once you stop looking.
Or when you want to show your app to someone else :) I suspect this
increases geometrically with the number of people watching and how many
times you tell other people how cool it will
On Sun, 2011-04-24 at 16:40 -0400, dsimcha wrote:
[ . . . ]
> I consider it a no-brainer to include just the bindings and SQLite C
> code in etc right now. SQLite is arguably the most widely used
> database, is easy to distribute and is public domain. It would be great
> if this infrastructure
== Quote from dsimcha (dsim...@yahoo.com)'s article
> On 4/24/2011 4:04 PM, Iain Buclaw wrote:
> > == Quote from dsimcha (dsim...@yahoo.com)'s article
> >> I've been curious for a while how close GDC2 and LDC2 are to being ready
> >> for production use. Are the test suite results posted publicly f
On 4/24/2011 3:45 PM, Alex Khmara wrote:
On Sun, 10 Apr 2011 01:19:43 +0300, Jonathan M Davis
wrote:
If it's just the bindings, then we probably don't need an actual review
process on the newsgroup - though it'll obviously be reviewed on
github before
being merged in. However, I think that th
Andrei:
> It might not a good use of our time to further engage in a diatribe on this.
Just a note: you have not wasted your time discussing this, because I am not
expert on such matters, so I learn something from informed discussions :-)
If a book that explains C language is just 200 pages lon
dsimcha:
> How a statistics library could possibly be so good for
> finding compiler bugs that the test suites miss, I'll never know.
I have found several bugs even writing 20-lines long programs.
Bye,
bearophile
Since this is definite we should remove them from the docs as well.
Want me to file it to bugzilla?
On 4/24/2011 4:04 PM, Iain Buclaw wrote:
== Quote from dsimcha (dsim...@yahoo.com)'s article
I've been curious for a while how close GDC2 and LDC2 are to being ready
for production use. Are the test suite results posted publicly for
either of these? Other than that, is there anything else othe
On 04/24/2011 01:21 PM, Timon Gehr wrote:
Andrei Alexandrescu wrote:
The point is that some naively believe "new" and "delete" are some
simple do and undo actions and as such they somehow deserve the same
level of support. In reality they have dramatically different issues and
are profoundly asy
== Quote from dsimcha (dsim...@yahoo.com)'s article
> I've been curious for a while how close GDC2 and LDC2 are to being ready
> for production use. Are the test suite results posted publicly for
> either of these? Other than that, is there anything else other than
> building and testing for myse
On Sun, 2011-04-24 at 15:19 -0400, dsimcha wrote:
[ . . . ]
> I understand the points being made here, but I actually think votes from
> people who know little about topic X are valuable when evaluating API
> design for a topic X library. People who would only use a topic X
> library occasional
On Sun, 10 Apr 2011 01:19:43 +0300, Jonathan M Davis
wrote:
If it's just the bindings, then we probably don't need an actual review
process on the newsgroup - though it'll obviously be reviewed on github
before
being merged in. However, I think that this sort of binding raises a
potentia
On 4/20/2011 11:09 AM, Robert Clipsham wrote:
Hey folks,
I've just finished porting my web framework from D1/Tango to D2/Phobos,
and in the transition lost logging functionality. As I'll be writing a
logging library anyway, I wondered if there'd be interest in a std.log?
If so, is there a curren
On 4/24/2011 3:09 PM, Russel Winder wrote:
On Sun, 2011-04-24 at 13:41 -0400, dsimcha wrote:
[ . . . ]
The review process leading up to the voting was not, however, a joke or
unanimous or anything similar. I received plenty of tough-but-fair
criticism and it led to substantial improvements in t
On Sun, 2011-04-24 at 13:41 -0400, dsimcha wrote:
[ . . . ]
> The review process leading up to the voting was not, however, a joke or
> unanimous or anything similar. I received plenty of tough-but-fair
> criticism and it led to substantial improvements in the library and
> especially the docum
Andrei Alexandrescu wrote:
> The point is that some naively believe "new" and "delete" are some
> simple do and undo actions and as such they somehow deserve the same
> level of support. In reality they have dramatically different issues and
> are profoundly asymmetric.
> The class-specific alloc
On 4/24/2011 12:18 PM, lurker wrote:
Yes, everyone is voting yes. And half of the voters haven't ever used parallelism or know
anything about its library level design issues. This voting process seemed like a joke. I
know this kind of voting is popular in other projects, but D community's infra
On Sat, Apr 23, 2011 at 8:14 PM, dsimcha wrote:
> I've been curious for a while how close GDC2 and LDC2 are to being ready
> for production use. Are the test suite results posted publicly for either
> of these? Other than that, is there anything else other than building and
> testing for myself
dsimcha Wrote:
> I've been curious for a while how close GDC2 and LDC2 are to being ready
> for production use. Are the test suite results posted publicly for
> either of these? Other than that, is there anything else other than
> building and testing for myself that would give me a good idea
Bruno Medeiros Wrote:
> On 19/04/2011 14:47, Russel Winder wrote:
> > On Tue, 2011-04-19 at 06:13 -0500, Caligo wrote:
> > [ . . . ]
> >> I would like to make a comment if that's okay. If a person is not an
> >> expert on parallelism, library development, or we can't verify his or
> >> her backgr
KennyTM~ wrote:
> I think these should be static functions?
At first my idea was free functions, but getOverloads only works with
classes, so I pasted them in without really thinking about it.
But yes, I think you're right.
> BTW, you toy example is way too long. 40 lines of template mixin
> is
On 24/04/11 2:14 AM, dsimcha wrote:
I've been curious for a while how close GDC2 and LDC2 are to being ready
for production use. Are the test suite results posted publicly for
either of these? Other than that, is there anything else other than
building and testing for myself that would give me a
On 2011-04-24 01:39, Jonathan M Davis wrote:
On 2011-04-22 01:54, Jonathan M Davis wrote:
Jonathan M Davis wrote:
I just checked. Exception _does_ take a default file and line number.
Huh, maybe my dmd is getting old.
Maybe we should revisit this after the next dmd release. Sounds like
one i
Multiple dispatch is commonly used for fixing the "expression problem".
http://en.wikipedia.org/wiki/Expression_problem
This is usually easily done in functional languages, and relates to the best
way to adapt
existing code to new uses, without changing the underlining code.
Multimethods provide
On Apr 24, 11 09:30, Adam D. Ruppe wrote:
bearophile wrote:
[multiple dispatch and what they use it for.]
I wonder if we could do it in the library by using overloads and
a generated dynamic cast.
class Base {
// if the types are known, regular overloading does the job
void multipleDisp
47 matches
Mail list logo