On 16.11.2011 21:15, Kiith-Sa wrote:
...
GitHub: https://github.com/kiith-sa/D-YAML
Docs : dyaml.alwaysdata.net/docs
You can get D:YAML 0.3 here: https://github.com/kiith-sa/D-YAML/downloads
Great, I've been looking into YAML lately. Would be interesting to see
how the speed of your
torhu wrote:
On 16.11.2011 21:15, Kiith-Sa wrote:
...
GitHub: https://github.com/kiith-sa/D-YAML
Docs : dyaml.alwaysdata.net/docs
You can get D:YAML 0.3 here: https://github.com/kiith-sa/D-YAML/downloads
Great, I've been looking into YAML lately. Would be interesting to see
how the
On 17.11.2011 15:01, Kiith-Sa wrote:
Thanks for your input. Your example doesn't seem to be significantly
simpler, but a good point is that the Mark structures don't need to
be passed. I'm considering this style:
---
bool constructMyStructScalar(ref Node node)
{
auto parts =
Performance is actually not an issue here, insignificant part of total
parsing time is spent in Constructor (only about 2%) and any slowdown
there should not be noticeable.
The idea you're proposing here would indeed simplify the API, but
I'm not sure if the result would always be what the user
On 17.11.2011 17:21, Kiith-Sa wrote:
Performance is actually not an issue here, insignificant part of total
parsing time is spent in Constructor (only about 2%) and any slowdown
there should not be noticeable.
The idea you're proposing here would indeed simplify the API, but
I'm not sure if the
On Wed, 16 Nov 2011 19:47:47 +0100, Timon Gehr timon.g...@gmx.ch wrote:
On 11/16/2011 04:24 AM, bearophile wrote:
The Bugzilla issues that I really care about is a not an useless long
list, it's about fifteen items long, and this post is about one of them.
I think current array slice assign
On Wed, 16 Nov 2011 20:04:39 +1300, Bernard Helyer b.hel...@gmail.com
wrote:
On Tue, 15 Nov 2011 22:48:55 -0800, Walter Bright wrote:
russian porn spam
WHY WAS I NOT INFORMED?
I mean, terrible stuff. :o
Forgive me, but I'm just trying out Opera's NG reader.
Andrei Alexandrescu:
This is actually a pretty awesome fail.
Derived from those thoughts, an idea for Phobos, a bitFlags function:
http://d.puremagic.com/issues/show_bug.cgi?id=6946
A desire:
http://d.puremagic.com/issues/show_bug.cgi?id=6916
Example:
import std.stdio;
enum : int { A, B }
On 16/11/11 20.21, Johannes Pfau wrote:
Jonas Drewsen wrote:
Hi,
After all the comments from last review I've refactored the curl
wrapper and it is ready for a new review.
David Nadlinger was handling the last review so I guess it would make
sense if he run this one as well if he wants
Somedude wrote:
Le 16/11/2011 05:47, bcs a
http://arsdnet.net/d-web-site/nntp/get-message?newsgroup=digitalmars.DmessageId=%3Cja1bp9%242ps%241%40digitalmars.com%3E
http://arsdnet.net/d-web-site/nntp/get-message?newsgroup=digitalmars.DmessageId=%3Cja1chd%246bj%241%40digitalmars.com%3E
Probably
On 2011-11-17 10:16, Jonas Drewsen wrote:
On 16/11/11 20.21, Johannes Pfau wrote:
Jonas Drewsen wrote:
Hi,
After all the comments from last review I've refactored the curl
wrapper and it is ready for a new review.
David Nadlinger was handling the last review so I guess it would make
sense if
There is also an error in the language spec site for classes. Probably a
syntax error in the macros, because the page begins with $(SPEC_S Classes,
and the text and background colours are wrong.
http://d-programming-language.org/class.html
On 17/11/11 11.54, Jacob Carlborg wrote:
On 2011-11-17 10:16, Jonas Drewsen wrote:
On 16/11/11 20.21, Johannes Pfau wrote:
Jonas Drewsen wrote:
Hi,
After all the comments from last review I've refactored the curl
wrapper and it is ready for a new review.
David Nadlinger was handling the
Jonas Drewsen wrote:
On 16/11/11 20.21, Johannes Pfau wrote:
Jonas Drewsen wrote:
Hi,
After all the comments from last review I've refactored the curl
wrapper and it is ready for a new review.
David Nadlinger was handling the last review so I guess it would
make sense if he run this
The semantics of (2) is unambiguous,
and it works perfectly well in Fortran90. Allowing (2) would make D
really attractive for formula-heavy mathematical work.
- Joachim
Heard that line before Walter?
I still have the T shirt.
Steve
bcs Wrote:
Well you should be able to find feature list and screen shots from the
available options. Anyone who is going to make an effort to write a NNTP
client should really try out the existing one first.
For that matter, most anyone who has the resources to write a new client
will
I've noticed this sort of thing mentioned a couple of times recently in
conjunction with CGI.
I did a D implementation of the AJP13 protocol some time ago. That is
very easy to set up in Apache - you just follow the instructions for
Tomcat. Then you can make your D app a service/daemon so it
Am 2011-11-16 23:23, schrieb Trass3r:
If I try to cast with register_chrdev(0, (char*)DEVICE_NAME, fops);
the following error appears:
C style cast illegal, use cast(char*)DEVICE_NAME
Or use DEVICE_NAME.ptr
Compilation now succeeded, but when I try to load with insmod, the
following errors
On 11/17/2011 09:12 AM, Martin Nowak wrote:
On Wed, 16 Nov 2011 19:47:47 +0100, Timon Gehr timon.g...@gmx.ch wrote:
On 11/16/2011 04:24 AM, bearophile wrote:
The Bugzilla issues that I really care about is a not an useless long
list, it's about fifteen items long, and this post is about one
On 11/17/2011 09:33 AM, bearophile wrote:
Andrei Alexandrescu:
This is actually a pretty awesome fail.
Derived from those thoughts, an idea for Phobos, a bitFlags function:
http://d.puremagic.com/issues/show_bug.cgi?id=6946
A desire:
http://d.puremagic.com/issues/show_bug.cgi?id=6916
Adam D. Ruppe destructiona...@gmail.com wrote in message
news:ja2756$1j32$1...@digitalmars.com...
I did some bug fixing tonight and changed some features.
http://arsdnet.net/d-web-site/nntp/thread-index?newsgroup=digitalmars.D
* The links are all working now. You can view individual posts.
Hi,
the only issue with your sentence is that the efficiency of native code is
also
possible with C#.
--
Paulo
Daniel Gibson metalcae...@gmail.com wrote in message
news:ja10k6$27j8$1...@digitalmars.com...
Am 16.11.2011 02:24, schrieb Jude Young:
I see one camp that is against using
Walter Bright newshou...@digitalmars.com wrote in message
news:ja0uk6$26tb$1...@digitalmars.com...
I really do not understand why people keep writing replacements for
newsreaders that miss fundamentally useful aspects of it.
Probably because it's more than 6 months old, and isn't web 2.0 or
At any rate, I wouldn't want the D intro page to mention any other language.
Andrei
On 11/17/11 8:05 AM, Paulo Pinto wrote:
Hi,
the only issue with your sentence is that the efficiency of native code is
also
possible with C#.
--
Paulo
Daniel Gibsonmetalcae...@gmail.com wrote in message
If you compare your product to another one you're implying that the other
product is better in some way. Generally a bad idea to do so.
Sent from my iPhone
On Nov 17, 2011, at 10:34 AM, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
At any rate, I wouldn't want the D intro page to
On 11/16/2011 2:08 PM, Joachim Wuttke j.wut...@fz-juelich.de wrote:
(1) Y[] = X[]*X[];
(2) Y[] = sin( X[] );
I realized a problem with (2), it's actually not possible to rewrite it
using existing constructs because foreach doesn't support multiple
iterators. You can use
Le 15/11/2011 22:31, Daniel Gibson a écrit :
Am 15.11.2011 02:29, schrieb Jonathan M Davis:
I think that C++ is really the only language that I've heard termed
multi-
paradigm (though most languages do allow for multiple paradigms on
some level,
even if they tend to focus heavily on one),
Le 15/11/2011 23:17, Daniel Gibson a écrit :
I still think the best description for D is C++ done right ;-)
Cheers,
- Daniel
That's giving the stick to be beaten. Most C++ die-hard fans would sneer
at this description.
Le 15/11/2011 04:15, Jeff Nowakowski a écrit :
Multi-paradigm is *not* a selling point. Explicit features are. This is
one of these cases where you are arguing from a dead-end position. A
reaction about marketing from your community cannot be explained away,
because marketing is about about
Le 14/11/2011 22:38, Andrei Alexandrescu a écrit :
I thought about these words for weeks. I could not find a more clear and
concise way to state D's differentiating features.
Andrei
I don't have any problem with these words, but I don't like to see them
repeated in the title.
I think
On 11/13/2011 8:50 PM, Andrei Alexandrescu wrote:
Walter and I have been working on the website for a while. We want to
crystallize a clear message of what the D programming language is.
Please take a look at http://d-programming-language.org/new/. The work
is content-only (no significant
Am 17.11.2011, 14:02 Uhr, schrieb Steve Teale
steve.te...@britseyeview.com:
I've noticed this sort of thing mentioned a couple of times recently in
conjunction with CGI.
I did a D implementation of the AJP13 protocol some time ago. That is
very easy to set up in Apache - you just follow the
https://github.com/D-Programming-Language/d-programming-language.org/pull/33
On 11/17/2011 07:48 PM, Xinok wrote:
On 11/16/2011 2:08 PM, Joachim Wuttke j.wut...@fz-juelich.de wrote:
(1) Y[] = X[]*X[];
(2) Y[] = sin( X[] );
I realized a problem with (2), it's actually not possible to rewrite it
using existing constructs
Yes it is. D is Turing Complete!
because
On 11/17/2011 02:12 PM, Somedude wrote:
It's geared towards programmers who may be interested in having a
look, usually coming from other largely used imperative languages.
And for most of these programmers, multi-paradigm means what Andrei
said.
My opinion is that most programmers don't give
On 16 November 2011 04:35, Ali Çehreli acehr...@yahoo.com wrote:
Some floating point operations produce .nan:
import std.stdio;
void main()
{
double zero = 0;
double infinity = double.infinity;
writeln(any expression with nan: , double.nan + 1);
writeln( zero / zero
Timon Gehr:
Hmm. How would that work? A and B don't have an own type.
Your program is equivalent to
import std.stdio;
enum A = 0;
enum B = 1;
void main() {
writeln(B); // prints 1 because B is replaced with 1.
}
Right, my mental model of nameless enums was very wrong. I was
Iain Buclaw:
This behaviour may be due to the libraries rather than the compiler.
In any case there is a bug to be found an fixed.
But whether the bit that controls signed-ness is on or off, doesn't
stop the value being NaN. So I would not give much concern to the
result.
It's a NaN, but
On 11/17/2011 3:57 PM, bearophile wrote:
It's a NaN, but floating point designers have given a sign to NaNs for a
(small) purpose.
What is that purpose?
Walter:
On 11/17/2011 3:57 PM, bearophile wrote:
It's a NaN, but floating point designers have given a sign to NaNs for a
(small) purpose.
What is that purpose?
I didn't know the answer, so I've done a short research (finding texts like
this:
Kagamin Wrote:
Probably a unicode issue: the message is cut at the first non-ASCII
character.
The charset on that message is ISO-8859-1. Blargh.
Phobos really needs some charset functions.
Adam D. Ruppe Wrote:
Phobos really needs some charset functions.
What I'd really like is for this to work:
auto utf8string = to!string(string_in_some_other_charset, iso-8859-1);
and it just works. It'd be good to have utf8 to the other charsets too, but
that's not a high priority to me.
The
On 11/17/11 11:48 AM, Xinok wrote:
I would suggest adding a single paragraph at the beginning which
summarizes the language and it's benefits. It should be straight to the
point. The first item on that page is type deduction, which isn't a good
way to start.
What type of language is it? It's a
On 11/17/11 3:10 PM, Jeff Nowakowski wrote:
On 11/17/2011 02:12 PM, Somedude wrote:
It's geared towards programmers who may be interested in having a
look, usually coming from other largely used imperative languages.
And for most of these programmers, multi-paradigm means what Andrei
said.
My
dsimcha did forget to put an end date on the voting for std.csv, but it
started on Saturday, and votes have typically been about a week long, so the
voting will presumably close sometime Saturday (Sunday at the latest), and yet
only _two_ people have voted thus far. I don't know if we can even
Andrei Alexandrescu:
What are its benefits? Higher productivity, fewer bugs, native speed,
fast compilation.
As opposed to other languages that have lower productivity, more bugs,
less speed and slower compilation as goals.
But they care for some things more than other ones. Python core
On Wed, 16 Nov 2011 22:59:35 +0100, Somedude wrote:
Given that D boasts that you can choose to *not* use the GC, shouldn't
Phobos strive to resort to manual memory management ?
I supposed this has already been discussed, but just in case I missed
the discussion, could someone give a link to
On Wed, Nov 16, 2011 at 10:57 AM, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
http://www.reddit.com/r/**programming/comments/me6a5/**
some_examples_of_strong_**static_typing_in_d/http://www.reddit.com/r/programming/comments/me6a5/some_examples_of_strong_static_typing_in_d/
On 11/17/2011 9:21 PM, Andrei Alexandrescu wrote:
On 11/17/11 11:48 AM, Xinok wrote:
What are its benefits? Higher productivity, fewer bugs, native speed,
fast compilation.
As opposed to other languages that have lower productivity, more bugs,
less speed and slower compilation as goals.
Caligo:
Those nested for-loops are painful to look at.
I think they aren't so bad in that code. Problems like that can be solved with
hard-coded code or with generic and more flexible code. The code shown is more
toward hard-coded. Feel free to write a different solution, with fewer nested
On 11/17/2011 05:04 AM, Kagamin wrote:
bcs Wrote:
Well you should be able to find feature list and screen shots from the
available options. Anyone who is going to make an effort to write a NNTP
client should really try out the existing one first.
For that matter, most anyone who has the
On 11/17/2011 5:29 PM, bearophile wrote:
Walter:
On 11/17/2011 3:57 PM, bearophile wrote:
It's a NaN, but floating point designers have given a sign to NaNs for a
(small) purpose.
What is that purpose?
I didn't know the answer, so I've done a short research (finding texts like
this:
On 11/17/2011 8:23 AM, Nick Sabalausky wrote:
With all four points addressed, there would never be any good reason for
anyone to ever use anything but NNTP.
Your four points are all correct. My beef is that web forum software fixes all
those, and yet utterly fails to reproduce what NNTP does
On Thu, 17 Nov 2011 18:26:08 -0800, Jonathan M Davis wrote:
dsimcha did forget to put an end date on the voting for std.csv, but it
started on Saturday, and votes have typically been about a week long, so
the voting will presumably close sometime Saturday (Sunday at the
latest), and yet only
Walter Bright Wrote:
1. compact, threaded view
You have to acknowledge that a lot of people don't see this as
newsgroups getting it right.
I'm completely opposed to it. (recursive*) Threaded views aren't just
suboptimal.
They are a *bad* thing. It was progress to ditch that misfeature, and it
On 11/17/2011 09:02 PM, Adam D. Ruppe wrote:
Walter Bright Wrote:
1. compact, threaded view
You have to acknowledge that a lot of people don't see this as
newsgroups getting it right.
And you have to acknowledge that a significant of people do see this as
getting it right. And because
On 11/17/11 7:50 PM, Xinok wrote:
On 11/17/2011 9:21 PM, Andrei Alexandrescu wrote:
On 11/17/11 11:48 AM, Xinok wrote:
What are its benefits? Higher productivity, fewer bugs, native speed,
fast compilation.
As opposed to other languages that have lower productivity, more bugs,
less speed and
On Wed, 16 Nov 2011 18:25:48 -0500, Timon Gehr timon.g...@gmx.ch wrote:
On 11/16/2011 11:39 PM, Timon Gehr wrote:
I think this is a better solution:
void foo2(T: ParameterTypeTuple!foo[0])(T t){foo(t);}
Then it is just a matter of applying proper value range propagation for
IFTY:
void
On Wed, 16 Nov 2011 17:39:16 -0500, Timon Gehr timon.g...@gmx.ch wrote:
On 11/16/2011 10:56 PM, Steven Schveighoffer wrote:
On Wed, 16 Nov 2011 16:16:48 -0500, Timon Gehr timon.g...@gmx.ch
wrote:
On 11/16/2011 09:00 PM, Steven Schveighoffer wrote:
On Wed, 16 Nov 2011 14:26:57 -0500, Timon
It would be cool, if the following would be possible.
immutable string MemberID = M;
struct A {}
struct B {
alias A M;
}
template Member(T)
{
static if(__traits(hasMember, T, MemberID))
{
alias __traits(getMember, T, MemberID) Member;
}
else
alias
On 11/17/2011 03:19 PM, Steven Schveighoffer wrote:
On Wed, 16 Nov 2011 17:39:16 -0500, Timon Gehr timon.g...@gmx.ch wrote:
On 11/16/2011 10:56 PM, Steven Schveighoffer wrote:
On Wed, 16 Nov 2011 16:16:48 -0500, Timon Gehr timon.g...@gmx.ch
wrote:
On 11/16/2011 09:00 PM, Steven
On 11/17/2011 06:12 PM, Tobias Pankrath wrote:
It would be cool, if the following would be possible.
immutable string MemberID = M;
struct A {}
struct B {
alias A M;
}
template Member(T)
{
static if(__traits(hasMember, T, MemberID))
{
alias __traits(getMember, T,
This helps a lot with the current state of affairs:
template ID(alias x){alias x ID;}
It will even allow funny things like this:
alias ID!((a,b){return a+b;}) add;
static assert(add(1,2) == 3);
Nice to know, thanks!
On 11/17/2011 06:41 PM, Timon Gehr wrote:
On 11/17/2011 06:12 PM, Tobias Pankrath wrote:
It would be cool, if the following would be possible.
immutable string MemberID = M;
struct A {}
struct B {
alias A M;
}
template Member(T)
{
static if(__traits(hasMember, T, MemberID))
{
alias
On Thu, 17 Nov 2011 12:31:58 -0500, Timon Gehr timon.g...@gmx.ch wrote:
On 11/17/2011 03:19 PM, Steven Schveighoffer wrote:
What does writelnInferConst!T do? I'm afraid I'm not getting what you
are saying.
I was thinking writeln should do this:
void writeln(T...)(const T args) {...}
As
On 11/17/2011 07:23 PM, Steven Schveighoffer wrote:
On Thu, 17 Nov 2011 12:31:58 -0500, Timon Gehr timon.g...@gmx.ch wrote:
On 11/17/2011 03:19 PM, Steven Schveighoffer wrote:
What does writelnInferConst!T do? I'm afraid I'm not getting what you
are saying.
I was thinking writeln should
This is an example from TDPL:
import std.concurrency;
import std.exception;
import std.stdio;
void main()
{
auto low = 0;
auto high = 100;
auto tid = spawn(writer);
foreach (i; low .. high)
{
writeln(Main thread: , i);
tid.send(thisTid, i);
Ah, I should have read the following parts where it describes thread
termination, in TDPL. Woops.
On 11/17/11, Andrej Mitrovic andrej.mitrov...@gmail.com wrote:
This is an example from TDPL:
import std.concurrency;
import std.exception;
import std.stdio;
void main()
{
auto low = 0;
On Thursday, November 17, 2011 11:56 Andrej Mitrovic wrote:
This is an example from TDPL:
import std.concurrency;
import std.exception;
import std.stdio;
void main()
{
auto low = 0;
auto high = 100;
auto tid = spawn(writer);
foreach (i; low .. high)
{
writeln(Main thread: , i);
I've had this bug recently:
auto workTid = spawn(work);
setMaxMailboxSize(thisTid, 1, OnCrowding.throwException);
IOW, I've passed 'thisTid' instead of 'workTid' to the call.
Is there any reason why had to be a global function? Tid has a private
MessageBox which has the setMaxMsgs method. We
Ok, tk u all.
I guess this is a very poor approach if we are looking for
performance
On Thursday, November 17, 2011 14:41 RenatoL wrote:
Ok, tk u all.
I guess this is a very poor approach if we are looking for
performance
Mixing types like that in an array is not a normal thing to do. However, if
you're looking to hold a specific number of items of diverse types
http://d.puremagic.com/issues/show_bug.cgi?id=6965
Summary: [CTFE] wrong reset of variable
Product: D
Version: D2
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
http://d.puremagic.com/issues/show_bug.cgi?id=4998
--- Comment #1 from Steven Schveighoffer schvei...@yahoo.com 2011-11-17
06:35:08 PST ---
I will add that the simple example has a simpler solution, but the real problem
(of wrapping arbitrary overload sets) is not solved that way.
Reforming
http://d.puremagic.com/issues/show_bug.cgi?id=6966
Summary: cannot create qualified type from tuple entry
Product: D
Version: D2
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
http://d.puremagic.com/issues/show_bug.cgi?id=6966
--- Comment #1 from timon.g...@gmx.ch 2011-11-17 07:30:25 PST ---
Workaround:
template XImpl(T...){
alias T[0] _;
alias const(_) X;
}
template X(T...){alias XImpl!T.X X;}
static assert(is(X!(int) == const(int))); // pass
--
http://d.puremagic.com/issues/show_bug.cgi?id=6967
Summary: template instantiation depends an pragma(msg,
T.stringof) if __traits is used
Product: D
Version: D2
Platform: Other
OS/Version: Linux
Status: NEW
http://d.puremagic.com/issues/show_bug.cgi?id=6940
--- Comment #2 from timon.g...@gmx.ch 2011-11-17 11:40:16 PST ---
(In reply to comment #1)
static assert(is(typeof(x) : const(int*)*)); // ok
static assert(is(typeof(a) : const(int[])[])); // ok
I think these two lines should not
http://d.puremagic.com/issues/show_bug.cgi?id=4251
timon.g...@gmx.ch changed:
What|Removed |Added
CC||timon.g...@gmx.ch
http://d.puremagic.com/issues/show_bug.cgi?id=6968
Summary: Segmantation fault, if exclamation mark absent
Product: D
Version: D2
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
http://d.puremagic.com/issues/show_bug.cgi?id=6916
bearophile_h...@eml.cc changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|
http://d.puremagic.com/issues/show_bug.cgi?id=6969
Summary: Forward reference on template class triangle
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity:
http://d.puremagic.com/issues/show_bug.cgi?id=6184
d...@dawgfoto.de changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|
http://d.puremagic.com/issues/show_bug.cgi?id=5364
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=5364
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|RESOLVED|REOPENED
85 matches
Mail list logo