== Quote from Damian Ziemba (nazr...@driv.pl)'s article
On Tue, 18 Oct 2011 20:27:40 +0300, Denis Shelomovskij wrote:
+1 to Caligo. I agree that Tango is a good library (and was the best one
for D1) but, IMHO, porting it to D2 is a bad idea.
I'm the one who has a big D1+Tango project and
On Sat, 05 Nov 2011 14:50:09 +, zsxxsz wrote:
I don't like Phobos design, which takes all libs in the same path
looking so urgly, but tango seperate libs in different path according to
its function using,
so I like tango's design.
You will never satisfy both worlds (simplicity vs
On 11/05/2011 10:56 AM, Dejan Lekic wrote:
On Sat, 05 Nov 2011 14:50:09 +, zsxxsz wrote:
I don't like Phobos design, which takes all libs in the same path
looking so urgly, but tango seperate libs in different path according to
its function using,
so I like tango's design.
You will
Hello,
I've been lurking for a while here and I really appreciate all the work
that is done on D and Phobos. This is a fantastic language and a great
little community. So I don't want the following comments to be badly
perceived and I hope they will be seen as constructive.
Browsing through the
Le 04/11/2011 06:15, Steve Teale a écrit :
I'm getting pretty close to having a reasonably comprehensive native D
driver for MySQL - no translated header files, no linking to libraries.
...
Steve
A few simple questions/requests:
1. Does your library allow to get the resultset by batch of N
Le 30/10/2011 03:09, Jesse Phillips a écrit :
That is all I meant by it. A CSV parser does exist for every language,
but none come packaged with the language. C# even chose not to include an
ini so people would use XML. It really is sad that instead of something
solid they go the way of
Now that deimos is an organization and we can't use pull requests, how
do we get new bindings into deimos?
I'd still like to get my liblzma bindings in there:
https://github.com/jpf91/deimos/tree/liblzma
And I still wonder whether we are allowed to bundle simple examples
with the bindings:
On 11/04/2011 03:00 PM, Sean Kelly wrote:
nless something has changed in the last few years, the way to do this in MSSQL
is via a plugin in the SQL server itself. Back in the days of yore this was
via extended stored procedures, which were loaded as a DLL by the SQL server,
but I think more
On Sat, 05 Nov 2011 10:28:25 +0100, Johannes Pfau wrote:
Now that deimos is an organization and we can't use pull requests, how
do we get new bindings into deimos?
Johannes, I did not know this - good news IMHO! :)
I wonder the same question as I have some stuff to contribute as well.
On Fri, 04 Nov 2011 15:00:17 -0700, Sean Kelly wrote:
notification isn't typically done via a back-feed through a client
connection. Do any modern DBMSes have pub/sub functionality like this?
Ingres, for an instance, has the DBEVENT, and it is possible to create/
handle it via JDBC, ODBC,
On Sun, 30 Oct 2011 17:29:36 -0400, bearophile wrote:
Do you see the bug I have found during the debugging?
I think the D2 compiler has to catch this bug:
*array = ...;
It is not a bug, it is a feature. If you really do not like it, use
the .ptr property. :)
OK, I believe I understand how it goes there - you basically need to have
a project on GitHub, and ask Deimos (organisation) admin to add your
project to the list of Deimos projects. Am I correct?
Am 26.10.2011, 20:52 Uhr, schrieb Jacob Carlborg d...@me.com:
On 2011-10-26 18:01, jsternberg wrote:
Gor Gyolchanyan Wrote:
I had a few thoughts about integrating build awareness into DMD.
It would be really cool to add a flag to DMD to make it compile and
link in all import-referenced
Adam D. Ruppe:
I do a lot. The way I do it is the arguments are made
available to the format, but it doesn't always need them
at runtime.
string f = showNames ? %1$s\t%2$d : %2$d;
writefln(f, name, number);
Though I don't literally use writefln for most
my code the same idea applies.
Am 05.11.2011, 13:52 Uhr, schrieb Marco Leise marco.le...@gmx.de:
Am 26.10.2011, 20:52 Uhr, schrieb Jacob Carlborg d...@me.com:
I'm working on a package manager:
https://github.com/jacob-carlborg/orbit/wiki/Orbit-Package-Manager-for-D
https://github.com/jacob-carlborg/orbit
I'll check it
Am 26.10.2011, 20:43 Uhr, schrieb Gor Gyolchanyan
gor.f.gyolchan...@gmail.com:
I agree.
On Wed, Oct 26, 2011 at 10:35 PM, Jacob Carlborg d...@me.com wrote:
On 2011-10-26 15:39, Martin Nowak wrote:
On Wed, 26 Oct 2011 12:26:56 +0200, Gor Gyolchanyan
gor.f.gyolchan...@gmail.com wrote:
I
I'd gladly start making a libjpeg port :-)
On Sat, Nov 5, 2011 at 4:00 PM, Dejan Lekic dejan.le...@gmail.com wrote:
OK, I believe I understand how it goes there - you basically need to have
a project on GitHub, and ask Deimos (organisation) admin to add your
project to the list of Deimos
Strided ranges could be a tertiary operator
similar to
x ? a : b
one could also parse
a .. b : c
as one entity.
About the efficiency issue, once again: for multi-dimensional arrays,
strides have less overhead than for one-dimensional arrays: All but one
dimension need run-time
On Sat, 05 Nov 2011 09:34:34 +0100, Somedude wrote:
A few simple questions/requests:
1. Does your library allow to get the resultset by batch of N rows ?
It's a common requirement for databases that don't have the equivalent
of the LIMIT clause of MySQL like Oracle. In those DBs, one has to
On Nov 5, 2011, at 4:29 AM, Dejan Lekic wrote:
On Fri, 04 Nov 2011 15:00:17 -0700, Sean Kelly wrote:
notification isn't typically done via a back-feed through a client
connection. Do any modern DBMSes have pub/sub functionality like this?
Ingres, for an instance, has the DBEVENT, and it
There's a growing tendency in Phobos documentation to use auto.
auto now = Clock.currTime();
Now I can understand that when the RHS is some obscure template, whose
type might not be immediately obvious, the user should possibly be
encouraged to RTFM. But if the outcome is deterministic I just
Hello. I use curl library and need to overwrite default behavior of
data/headers writing.
I use
curl_easy_setopt(curl, CurlOption.headerfunction, header_func);
curl_easy_setopt(curl, CurlOption.writeheader, this);
where this is a class Inet instance, and header_func is a static
function of
Steve, I agree 100%. Documentation should not have 'auto' unless it
documents the 'auto' itself.
On Saturday, November 05, 2011 08:58:27 Somedude wrote:
Hello,
I've been lurking for a while here and I really appreciate all the work
that is done on D and Phobos. This is a fantastic language and a great
little community. So I don't want the following comments to be badly
perceived and I
On 11/5/2011 10:42 AM, Steve Teale wrote:
There's a growing tendency in Phobos documentation to use auto.
auto now = Clock.currTime();
Now I can understand that when the RHS is some obscure template, whose
type might not be immediately obvious, the user should possibly be
encouraged to RTFM.
On 11/05/2011 10:23 AM, Sean Kelly wrote:
Is it possible to listen on multiple events with a single connection?
Sure, it is possible. see my code snippet.
On 11/5/11 7:01 PM, Dejan Lekic wrote:
Steve, I agree 100%. Documentation should not have 'auto' unless it
documents the 'auto' itself.
I generally agree, in that auto should be used judiciously in the docs,
but the concerns imho only apply to cases where the type is not obvious
anyway – for
On 05-11-2011 19:33, Jonathan M Davis wrote:
On Saturday, November 05, 2011 08:58:27 Somedude wrote:
Hello,
I've been lurking for a while here and I really appreciate all the work
that is done on D and Phobos. This is a fantastic language and a great
little community. So I don't want the
On 05-11-2011 18:42, Steve Teale wrote:
There's a growing tendency in Phobos documentation to use auto.
auto now = Clock.currTime();
Now I can understand that when the RHS is some obscure template, whose
type might not be immediately obvious, the user should possibly be
encouraged to RTFM. But
On 11/5/11 1:48 PM, Walter Bright wrote:
On 11/5/2011 10:42 AM, Steve Teale wrote:
There's a growing tendency in Phobos documentation to use auto.
auto now = Clock.currTime();
Now I can understand that when the RHS is some obscure template, whose
type might not be immediately obvious, the
Den 05-11-2011 09:38, Maxim Fomin skrev:
Hello. I use curl library and need to overwrite default behavior of
data/headers writing.
snip
So, how can I pass an object through void* or may be there is another
way to tell
header_func() which object should be used?
You can use this working curl
Andrei Alexandrescu:
If we avoid auto in documentation examples but we do use it in
everyday code, we effectively foster a style that's foreign and
non-idiomatic to newcomers.
Sample code should mimic real code. If real code would use auto, sample
code should use auto.
D programmers
Den 05-11-2011 21:00, Jonas Drewsen skrev:
Den 05-11-2011 09:38, Maxim Fomin skrev:
Hello. I use curl library and need to overwrite default behavior of
data/headers writing.
snip
So, how can I pass an object through void* or may be there is another
way to tell
header_func() which object
On 11/5/11 3:02 PM, bearophile wrote:
Andrei Alexandrescu:
If we avoid auto in documentation examples but we do use it in
everyday code, we effectively foster a style that's foreign and
non-idiomatic to newcomers.
Sample code should mimic real code. If real code would use auto,
sample code
On 11/5/2011 12:49 PM, Andrei Alexandrescu wrote:
On 11/5/11 1:48 PM, Walter Bright wrote:
I agree.
It's tricky. One simple fact that's been verified again and again is that
documentation examples tend to be used a lot. They effectively are powerful
style influencers for people learning the
On Sat, 05 Nov 2011 21:49:11 +0200, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
It's tricky. One simple fact that's been verified again and again is
that documentation examples tend to be used a lot. They effectively are
powerful style influencers for people learning the
Am 05.11.2011, 18:42 Uhr, schrieb Steve Teale
steve.te...@britseyeview.com:
There's a growing tendency in Phobos documentation to use auto.
auto now = Clock.currTime();
Now I can understand that when the RHS is some obscure template, whose
type might not be immediately obvious, the user
I have had a recent pull request regarding the updating of some of GDC's OS
and Arch version identifiers.
https://bitbucket.org/goshawk/gdc/pull-request/2/make-some-system-and-cpu-version
Such changes include, aix - AIX; ALPHA - Alpha; and a few more.
While I welcome any change suggestions, I
On Saturday, November 05, 2011 20:48:32 Iain Buclaw wrote:
I have had a recent pull request regarding the updating of some of GDC's OS
and Arch version identifiers.
https://bitbucket.org/goshawk/gdc/pull-request/2/make-some-system-and-cpu-ve
rsion
Such changes include, aix - AIX; ALPHA -
Andrei Alexandrescu:
Patronizing one's reader is a common trap.
Please explain better, I don't understand.
One point I have not included in my precedent answer: I prefer auto in the D
docs also because I have a desire to know the types, so avoiding auto in the
docs is not just to help D
Hi,
When using a emplace on a struct the emplace function will call the
destructor of the struct it seems. When using structs that has a
desctructor with RefCounted this makes it have an unintuitive behavior.
This is unfortunate if you want to use RefCounted on a struct for RAII e.g:
On 05-11-2011 22:07, Jonathan M Davis wrote:
On Saturday, November 05, 2011 20:48:32 Iain Buclaw wrote:
I have had a recent pull request regarding the updating of some of GDC's OS
and Arch version identifiers.
https://bitbucket.org/goshawk/gdc/pull-request/2/make-some-system-and-cpu-ve
rsion
Hi folks!
This is a friendly request for D core devs to use 'git pull --rebase'
instead of just plain 'git pull' when pulling remote changes into local
repositories. The reason for this is that it takes any outstanding
commits in your local tree, unrolls them, pulls in the remote changes,
Patronizing one's reader is a common trap.
Andrei
Number one job of the docs is to provide good documentation and
showing advanced D style comes second.
auto hides information, that's never an improvement to #1.
On Saturday, November 05, 2011 22:38:03 Alex Rønne Petersen wrote:
Hi folks!
This is a friendly request for D core devs to use 'git pull --rebase'
instead of just plain 'git pull' when pulling remote changes into local
repositories. The reason for this is that it takes any outstanding
On Saturday, November 05, 2011 15:10:52 Jonathan M Davis wrote:
On Saturday, November 05, 2011 22:38:03 Alex Rønne Petersen wrote:
Hi folks!
This is a friendly request for D core devs to use 'git pull --rebase'
instead of just plain 'git pull' when pulling remote changes into local
On Sun, 06 Nov 2011 00:15:37 +0200, Jonathan M Davis jmdavisp...@gmx.com
wrote:
So, I should probably add the question more explicitly, what exactly does
using --rebase gain other than not having the extra commit message? Why
is it better?
It also makes the history easier to follow (less
On Sat, 05 Nov 2011 14:49:11 -0500, Andrei Alexandrescu wrote:
Sample code should mimic real code. If real code would use auto, sample
code should use auto.
It is tricky because people have different styles... I try to avoid auto
as much as possible because I find myself wasting time
On 11/5/11 5:41 PM, Dejan Lekic wrote:
On Sat, 05 Nov 2011 14:49:11 -0500, Andrei Alexandrescu wrote:
Sample code should mimic real code. If real code would use auto, sample
code should use auto.
It is tricky because people have different styles... I try to avoid auto
as much as possible
On 11/5/2011 6:48 PM, Andrei Alexandrescu wrote:
Most everyone agrees that sometimes specifying a type, even if
redundant, is helpful. There are people who think those cases form all
or a majority of all instances (and hence auto should be avoided), but I
have reasons to believe they're a
Le 05/11/2011 19:33, Jonathan M Davis a écrit :
...
- Jonathan M Davis
Thank you for your comprehensive response. It's very appreciated.
I am also interested in knowing why splitting the module was dropped.
As I said, it would make things a bit clearer, especially since the
sources embark the
Le 05/11/2011 17:37, Steve Teale a écrit :
On Sat, 05 Nov 2011 09:34:34 +0100, Somedude wrote:
What I'm working on at the moment is the MySQL driver. That does as you
note have the LIMIT clause so I had no need to do anything special.
I have provided the capability to map rows to a struct.
On Fri, 28 Oct 2011 09:18:27 -0400, dsimcha wrote:
Formal review of Jesse Phillips's CSV parser module begins today and
runs through November . Following that, a vote will take place for one
week. Please post any comments about this library in this thread.
Docs:
On Sat, 05 Nov 2011 15:49:11 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 11/5/11 1:48 PM, Walter Bright wrote:
On 11/5/2011 10:42 AM, Steve Teale wrote:
There's a growing tendency in Phobos documentation to use auto.
auto now = Clock.currTime();
Now I can understand
On 11/6/11, Steven Schveighoffer schvei...@yahoo.com wrote:
2. If the user hovers the mouse over auto, display a tooltip with the
auto-determined name
That would scare people away when they see the name of a sophisticated
template instantiation. :)
On 05.11.2011 20:49, Andrei Alexandrescu wrote:
On 11/5/11 1:48 PM, Walter Bright wrote:
On 11/5/2011 10:42 AM, Steve Teale wrote:
There's a growing tendency in Phobos documentation to use auto.
auto now = Clock.currTime();
Now I can understand that when the RHS is some obscure template,
On Sunday, November 06, 2011 00:22:19 Somedude wrote:
Le 05/11/2011 19:33, Jonathan M Davis a écrit :
...
- Jonathan M Davis
Thank you for your comprehensive response. It's very appreciated.
I am also interested in knowing why splitting the module was dropped.
In general, Phobos doesn't
On Sat, 05 Nov 2011 15:15:37 -0700, Jonathan M Davis wrote:
So, I should probably add the question more explicitly, what exactly
does using --rebase gain other than not having the extra commit message?
Why is it better?
- Jonathan M Davis
My quick search:
On Sunday, November 06, 2011 01:37:52 Jesse Phillips wrote:
On Sat, 05 Nov 2011 15:15:37 -0700, Jonathan M Davis wrote:
So, I should probably add the question more explicitly, what exactly
does using --rebase gain other than not having the extra commit message?
Why is it better?
-
On Sat, 05 Nov 2011 17:42:59 +, Steve Teale wrote:
There's a growing tendency in Phobos documentation to use auto.
auto now = Clock.currTime();
Now I can understand that when the RHS is some obscure template, whose
type might not be immediately obvious, the user should possibly be
On Sun, 06 Nov 2011 04:16:01 +0200, Jonathan M Davis jmdavisp...@gmx.com
wrote:
The commits lose their original date and are no longer interspersed,
which could be good or bad, depending on what you're looking for.
It's a bit more involved than that (in a good way). Each commit has an
On 11/5/2011 2:07 PM, Jonathan M Davis wrote:
dmd's version identifiers are annoyingly variable (e.g. linux is camelcased,
whereas Windows is Pascal-cased and OSX is all uppercase).
What they do is follow the casing and spelling of the pre-defined macros of the
local C compiler.
On Sat, 05 Nov 2011 15:14:14 -0500, Andrei Alexandrescu wrote:
If we avoid auto in documentation examples but we do use it in
everyday code, we effectively foster a style that's foreign and
non-idiomatic to newcomers.
Andrei,
I don't use auto in everyday code, in fact I don't think I've ever
On Sat, 05 Nov 2011 22:38:03 +0100, Alex Rønne Petersen wrote:
Hi folks!
This is a friendly request for D core devs to use 'git pull --rebase'
instead of just plain 'git pull' when pulling remote changes into local
repositories. The reason for this is that it takes any outstanding
commits
On 11/5/11 11:29 PM, Steve Teale wrote:
On Sat, 05 Nov 2011 15:14:14 -0500, Andrei Alexandrescu wrote:
If we avoid auto in documentation examples but we do use it in
everyday code, we effectively foster a style that's foreign and
non-idiomatic to newcomers.
Andrei,
I don't use auto in
On 05.11.2011 12:35, Dejan Lekic wrote:
On Sun, 30 Oct 2011 17:29:36 -0400, bearophile wrote:
Do you see the bug I have found during the debugging?
I think the D2 compiler has to catch this bug:
*array = ...;
It is not a bug, it is a feature. If you really do not like it, use
the .ptr
icon = *(toStringz(text(num)));
icon is a char, num is an integer.
I don't suppose there is an easier way to do this?
It's too late and ma brains is mushy.
On Sat, 05 Nov 2011 10:29:36 +0200, Jude Young 10equa...@gmail.com wrote:
icon = *(toStringz(text(num)));
icon is a char, num is an integer.
I don't suppose there is an easier way to do this?
It's too late and ma brains is mushy.
If I understood the problem correctly:
icon = text(num)[0];
Jude Young:
icon = *(toStringz(text(num)));
icon is a char, num is an integer.
Are you trying to convert a single-digit number?
import std.stdio;
void main() {
int x = 5; // in [0 .. 10]
char c = cast(char)(x + '0');
writeln(c);
}
Bye,
bearophile
Tobias Pankrath:
I do like it, just it would be nice to have an alternative in phobos, iff
there is no other way I am not aware of.
Type tuples (that are allowed to contain more than just types) aren't Phobos
constructs, they are built-in in the language.
--
Christophe:
bearophile wrote:
Type tuples (that are allowed to contain more than just types) aren't
Phobos constructs, they are built-in in the language.
Haven't tried any of the proposed solutions yet, but they seem all very
easy.
If the solution were not that simple, std.typetuple could be augmented
Hi, D have clear property for arrays and AA, but I failed to find it's
description in docs. Where it's?
Am 05.11.2011, 21:30 Uhr, schrieb Alex_Dovhal alex_dov...@yahoo.com:
Hi, D have clear property for arrays and AA, but I failed to find it's
description in docs. Where it's?
Are you this Alex?
http://aichallenge.org/forums/viewtopic.php?f=21t=1315#p10776
As I understand it this function is
Am 02.11.2011, 12:48 Uhr, schrieb Steven Schveighoffer
schvei...@yahoo.com:
In dcollections, removing a specific element (using the default
comparison operator for that element) on a *fast lookup* container is as
simple as:
container.remove(container.find(x));
Which removes the element x
Am 26.10.2011, 18:00 Uhr, schrieb Dominic Jones dominic.jo...@qmul.ac.uk:
Also an plain array is a good stack. :)
I'd rather not use a plain array because (I assume) that when I push
or pop using arrays, a swap array is created to resize the original.
If this is not the case, then an array
Marco Leise marco.le...@gmx.de wrote:
Are you this Alex?
yes.
As I understand it this function is defined in object_.d which is always
imported by default and can be called on an (associative) array through a
mechanism called universal function call, that matches the part before
the dot
On Sat, 05 Nov 2011 17:28:34 -0400, Marco Leise marco.le...@gmx.de wrote:
Am 02.11.2011, 12:48 Uhr, schrieb Steven Schveighoffer
schvei...@yahoo.com:
In dcollections, removing a specific element (using the default
comparison operator for that element) on a *fast lookup* container is
as
Nice. Exactly what I was looking for.
I knew I was missing something tiny.
Now I just need to figure out why that works and I can say I've learned
something!
Thanks guys,
Jude
On Sat, Nov 5, 2011 at 5:38 AM, bearophile bearophileh...@lycos.com wrote:
Jude Young:
icon =
http://d.puremagic.com/issues/show_bug.cgi?id=3050
Don clugd...@yahoo.com.au changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=6892
Summary: Formatted write with specified length of enum member
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
http://d.puremagic.com/issues/show_bug.cgi?id=6893
Summary: Write of enum member represented with ubyte or ulong
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
http://d.puremagic.com/issues/show_bug.cgi?id=6894
Summary: [ICE] (backend\cod1.c 1737) with immutable and static
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
http://d.puremagic.com/issues/show_bug.cgi?id=6895
Summary: std.traits.isCovariantWith not works for function,
function pointer and delegate
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
http://d.puremagic.com/issues/show_bug.cgi?id=6896
Summary: ICE(glue.c !vthis-csym): on method with alias this
access
Product: D
Version: D2
Platform: Other
OS/Version: All
Status: NEW
Keywords:
http://d.puremagic.com/issues/show_bug.cgi?id=6183
Nils mailm...@nilsb.dyndns.org changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=6736
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=6897
Summary: Problem allocating an array of local enums
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
http://d.puremagic.com/issues/show_bug.cgi?id=6183
Don clugd...@yahoo.com.au changed:
What|Removed |Added
CC||clugd...@yahoo.com.au
---
88 matches
Mail list logo