On 26/05/2010 21:14, Masahiro Nakagawa wrote:
On Sun, 23 May 2010 22:50:14 +0900, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
We've had a tremendous infusion of talent and energy in Phobos, and
lately work has picked up in unprecedented ways, both in terms of new
features and
On 2010-05-27 12:32, Steven Schveighoffer wrote:
On Wed, 26 May 2010 10:06:32 -0400, Bruno Medeiros
brunodomedeiros+s...@com.gmail wrote:
On 24/05/2010 16:45, Andrei Alexandrescu wrote:
In the past I have built a C++ library that abstracted features of
the OS. My goal was to make it possible
On 27/05/2010 11:32, Steven Schveighoffer wrote:
On Wed, 26 May 2010 10:06:32 -0400, Bruno Medeiros
brunodomedeiros+s...@com.gmail wrote:
On 24/05/2010 16:45, Andrei Alexandrescu wrote:
In the past I have built a C++ library that abstracted features of
the OS. My goal was to make it possible
On Fri, 28 May 2010 06:24:26 -0400, Bruno Medeiros
brunodomedeiros+s...@com.gmail wrote:
On 27/05/2010 11:32, Steven Schveighoffer wrote:
On Wed, 26 May 2010 10:06:32 -0400, Bruno Medeiros
brunodomedeiros+s...@com.gmail wrote:
On 24/05/2010 16:45, Andrei Alexandrescu wrote:
In the past I
On Fri, 28 May 2010 06:10:49 -0400, Jacob Carlborg d...@me.com wrote:
On 2010-05-27 12:32, Steven Schveighoffer wrote:
On Wed, 26 May 2010 10:06:32 -0400, Bruno Medeiros
brunodomedeiros+s...@com.gmail wrote:
On 24/05/2010 16:45, Andrei Alexandrescu wrote:
In the past I have built a C++
Bruno Medeiros さんは書きました:
On 26/05/2010 21:14, Masahiro Nakagawa wrote:
On Sun, 23 May 2010 22:50:14 +0900, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
We've had a tremendous infusion of talent and energy in Phobos, and
lately work has picked up in unprecedented ways, both in
It is a Turkish D2 book.
I know that this news is not very useful for the members of this forum,
but I am proud to announce that my D book targeting the Turkish reader
is almost complete.
It is for the novice programmer. Complete with exercises and solutions,
it starts with the assignment
Ali Çehreli wrote:
It is a Turkish D2 book.
I know that this news is not very useful for the members of this forum,
but I am proud to announce that my D book targeting the Turkish reader
is almost complete.
It is for the novice programmer. Complete with exercises and solutions,
it starts
On Fri, 28 May 2010 10:40:57 -0700, Ali Çehreli wrote:
It is a Turkish D2 book.
I know that this news is not very useful for the members of this forum,
but I am proud to announce that my D book targeting the Turkish reader
is almost complete.
Congratulations! :)
http://twitter.com/D_Programming
also use #d_lang to connect D related tweets
Am 28.05.2010 20:06, schrieb Walter Bright:
http://twitter.com/D_Programming
also use #d_lang to connect D related tweets
OT:
I'm working on a redesign for wiki4d. Now I've seen the D-logo on
twitter and I like it. :)
Can we use this picture for wiki4d?
greets
Matthias
Matthias Pleh wrote:
Am 28.05.2010 20:06, schrieb Walter Bright:
http://twitter.com/D_Programming
also use #d_lang to connect D related tweets
OT:
I'm working on a redesign for wiki4d. Now I've seen the D-logo on
twitter and I like it. :)
Can we use this picture for wiki4d?
That was
Matthias Pleh:
I'm working on a redesign for wiki4d. Now I've seen the D-logo on
twitter and I like it. :)
I agree, it's nice looking, almost professional :-)
I am thinking about using it on my site to link to D site. Other D logos look
too much amateurish.
Bye,
bearophile
I have renewed the layout of the wiki4d-site.
It's not finished, but I think it is already useable!
Content itself hasn't changed!
Any thoughts?
Please check also the links on the sidebar!
I have taken this from a template from Justin Calvarese (thanks), so
maybe some links should changed,
On 05/28/2010 07:47 PM, Matthias Pleh wrote:
I have renewed the layout of the wiki4d-site.
It's not finished, but I think it is already useable!
Content itself hasn't changed!
Any thoughts?
Please check also the links on the sidebar!
I have taken this from a template from Justin Calvarese
Matthias Pleh wrote:
I have renewed the layout of the wiki4d-site.
It's not finished, but I think it is already useable!
Content itself hasn't changed!
Any thoughts?
Please check also the links on the sidebar!
I have taken this from a template from Justin Calvarese (thanks), so
maybe some
Hi, has anyone played around with D and memory mapped files on Windows / Linux?
A friend of mine and I want to use D to develop a D native
database-system. Yes, sounds crazy and it will take long and we haven't
done a lot yet. So don't expect anything to look at soon :-)
Thanks Robert.
On 26/05/2010 21:14, Masahiro Nakagawa wrote:
On Sun, 23 May 2010 22:50:14 +0900, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
We've had a tremendous infusion of talent and energy in Phobos, and
lately work has picked up in unprecedented ways, both in terms of new
features and
Robert Wrote:
Hi, has anyone played around with D and memory mapped files on Windows /
Linux?
A friend of mine and I want to use D to develop a D native
database-system. Yes, sounds crazy and it will take long and we haven't
done a lot yet. So don't expect anything to look at soon :-)
BTW, what would be the point of an array/vector when you have built-in
arrays? If built-in arrays would be syntax sugar for a real library type,
like AAs, I can see as a good option using Array for that type, since
built-in arrays and the library Array would be the same thing.
The biggest
Simen kjaeraas wrote:
I take it you don't work in simulation or games, then? Don't do much
linear algebra?
While I understand the reasoning for it, I dislike the name vector for
arrays. A vector to me, is a geometric object with a length and magnitude,
not a random collection of whatevers.
Jonathan M Davis:
The biggest difference is that a vector has capacity separate from its
size/length. You can efficiency insert elements at the end with a vector -
amortized constant time usually - but you can't do that with a built-in
array because it would have to reallocate every time.
Lutger Wrote:
What is the purpose of votes for closed bugs anyway? Should they not just get
removed automatically?
I would love if bugs get fixed automatically.
sybrandy Wrote:
Evening.
I'm having a bit of a problem and I'm hoping someone can help. I'm
trying to create a class that is shared across threads. The only
purpose of this class is to write data to somewhere, though currently a
file. A single-threaded version of this works fine,
Jonathan M Davis, el 28 de mayo a las 04:58 me escribiste:
BTW, what would be the point of an array/vector when you have built-in
arrays? If built-in arrays would be syntax sugar for a real library type,
like AAs, I can see as a good option using Array for that type, since
built-in arrays
On Fri, 28 May 2010 07:58:55 -0400, Jonathan M Davis
jmdavisp...@gmail.com wrote:
BTW, what would be the point of an array/vector when you have built-in
arrays? If built-in arrays would be syntax sugar for a real library
type,
like AAs, I can see as a good option using Array for that type,
Bruno Medeiros さんは書きました:
On 26/05/2010 21:14, Masahiro Nakagawa wrote:
On Sun, 23 May 2010 22:50:14 +0900, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
We've had a tremendous infusion of talent and energy in Phobos, and
lately work has picked up in unprecedented ways, both in
== Quote from Andrei Alexandrescu
(seewebsiteforem...@erdani.org)'s article:
I defined Array as a straightforward implementation of the
homonym abstraction. There are a few imperfect corners, but
by and large I'm starting to believe it's becoming possible
to write certain cross-container
On Thu, 27 May 2010 21:08:29 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
http://erdani.com/d/phobos/std_container.html
http://erdani.com/d/phobos/container.d
I defined Array as a straightforward implementation of the homonym
abstraction. There are a few imperfect
On Fri, 28 May 2010 15:51:53 -0400, Steven Schveighoffer
schvei...@yahoo.com wrote:
On Thu, 27 May 2010 21:08:29 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
http://erdani.com/d/phobos/std_container.html
http://erdani.com/d/phobos/container.d
I defined Array as a
Bruno Medeiros wrote:
On 26/05/2010 21:14, Masahiro Nakagawa wrote:
On Sun, 23 May 2010 22:50:14 +0900, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
We've had a tremendous infusion of talent and energy in Phobos, and
lately work has picked up in unprecedented ways, both in terms
On 05/28/2010 02:51 PM, Steven Schveighoffer wrote:
On Thu, 27 May 2010 21:08:29 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
http://erdani.com/d/phobos/std_container.html
http://erdani.com/d/phobos/container.d
I defined Array as a straightforward implementation of the
On Fri, 28 May 2010 16:03:10 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 05/28/2010 02:51 PM, Steven Schveighoffer wrote:
On Thu, 27 May 2010 21:08:29 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
http://erdani.com/d/phobos/std_container.html
On 2010-05-28 13:06:04 +0200, Bane branimir.milosavlje...@gmail.com said:
MMapped files work just fine, I played/am playing with them.
I posted before I saw that there is a MmFile class :-)
So, I have the first questions:
1. How can I expand the size of a MMF after it was created?
2. If I
I don't know much about threading but I do know that D1 vs. D2 (you
didn't say what version) makes a big difference. For example, in D2
globals are thread local by default where as in D1 they are not.
Thanks.
Casey
Sorry about that. I've been doing everything in D2.
Casey
Now and then it's very useful to compare how to write in D2 a small interesting
program written in another language, the comparison can help find problems,
possible improvements, performance problems, and so on.
Time ago I have tried to convert to D2 a small Python program that finds the
On 27.05.2010 13:37, Max Samukha wrote:
There was a discussion about those a while ago that terminated with
Andrei's authoritative it would be a step backward.
I am not entirely convinced that there had been a step forward in the
first place. Defining static construction order to be determined
You can remember when I have shown this link, about desired features for C#4:
http://stackoverflow.com/questions/138367/
Instead of many of those features, C# devs have chosen to add only very few
ones, but rather basic ones, like the dynamic attribute, that change some how
C# programs can be
bearophile bearophileh...@lycos.com wrote:
Return tuples:
Absolutely. While it's possible today, some more sugar wouldn't hurt.
in for arrays:
Yes.
Automatic Flag Enums (automatically enumerate in powers of two).
Neat. Worthy an @keyword, I think. @flag enum foo {...}
Null Safe
Simen kjaeraas:
I think you have missed one important point: that was not my list of things I'd
like in D2/D3. It contains some cute things, but it's first of all a summary of
the linked stackoverflow thread. My personal list of desiderata for D3 is
different.
Absolutely. While it's
bearophile, el 28 de mayo a las 18:01 me escribiste:
For me for one thing the D program is better than the Python version:
the Python std lib doesn't define a mutable named tuple like that one in
D2 (there is only one immutable and dynamically typed one), this forces
the Python code to use all
On 5/28/10, bearophile bearophileh...@lycos.com wrote:
in for arrays:
if (x in (1, 2, 3)) {}
If the uniform function call syntax starts up, you could (maybe) do
something like this:
import std.algorithm;
import std.array;
bool among(T)(T v, T[] arr...) {
return ! (arr.find(v).empty);
}
Leandro Lucarella:
def NamedTuple(*fields):
class T:
def __init__(self, *args):
for i in range(len(args)):
setattr(self, fields[i], args[i])
return T
That's not enough, those tuples must support the cmp for the
On Fri, 28 May 2010 19:52:46 -0400, bearophile bearophileh...@lycos.com
wrote:
Simen kjaeraas:
Neat. Worthy an @keyword, I think. @flag enum foo {...}
It's cute. But Don hates attributes :-) Recently I have created a thread
about this, and some one has written a good enough implementation
bearophile bearophileh...@lycos.com wrote:
I will keep missing array comprehensions in D. In the meantime other
languages have got some forms of them (but Python ones use the best
syntax still).
I'm now so tired of hearing this, I started writing something that
does it:
auto r = list!2 *
http://www.reddit.com/r/programming/comments/c93iy/go_at_io_frequently_asked_questions/
Do you have plans to implement generics?
Many proposals for generics-like features have been mooted both publicly
and internally, but as yet we haven't found a proposal that is
consistent with the rest of
bearophile bearophileh...@lycos.com wrote:
Simen kjaeraas:
I think you have missed one important point: that was not my list of
things I'd like in D2/D3. It contains some cute things, but it's first
of all a summary of the linked stackoverflow thread. My personal list of
desiderata for
Walter has had a great idea last night: allow classes to define
this(ref S src);
where S is the name of the struct being defined, as an alternative for
this(this);
The result would be a function similar with a C++ copy constructor.
Such an abstraction allows us to perform lazy initialization
Simen kjaeraas:
I'm now so tired of hearing this, I started writing something that
does it:
Array comprehensions are syntax sugar. From what I have seen there is a very
narrow range of usable syntaxes for them. Outside that range, they get much
less useful or useless. Even Haskell has got
Andrei Alexandrescu wrote:
http://www.reddit.com/r/programming/comments/c93iy/go_at_io_frequently_asked_questions/
Do you have plans to implement generics?
Many proposals for generics-like features have been mooted both publicly
and internally, but as yet we haven't found a proposal that
If there's one thing I need to agree with there, it's definitely having more
than one return value.
C/C++ have it really awful by passing pointers, and then you need to document
it's an out parameter (I know this has become very common to most of us, me
included, but when I first saw this -
Andrei Alexandrescu:
That has Java 1994 written all over it.
Java today can be the most used language, so despite its faults, probably it
was good enough.
Even if Go has no templates, it has plenty of time to add them five years from
now :-)
(And in the end templates aren't the only way to
Simen kjaeraas:
Yeah. So, either we need thunks for this, or tuples need to carry
alignment information.
If we accept a little less performance there must be a way to solve this
problem. Multiple return values are certainly very handy.
Bye,
bearophile
I think Walter said this can't be implemented :)
The items alignment of function arguments used by D tuples is not fitting to
return a struct. I have not understood the details of this thing, and in the
end I don't care if returning a struct can decrease performance a bit...
well, it
Andrei Alexandrescu wrote:
What do you think?
Andrei
Certainly, in the case provided, it's a definite win. I'm not sure what the
overall implications would be though. Part of the problem stems from the
fact that the array is initialized to null, and yet you can still add stuff
to it. My
Andrei Alexandrescu Wrote:
this(ref S src);
this(this);
What do you think?
In this moment I am too much sleepy to understand the semantics of what you say.
But I can say something about syntax: that this(this) syntax is bad, it's
cryptic, I prefer something that uses/contains some English
bearophile wrote:
Andrei Alexandrescu:
That has Java 1994 written all over it.
Java today can be the most used language, so despite its faults, probably
it was good enough. Even if Go has no templates, it has plenty of time to
add them five years from now :-) (And in the end templates
bearophile wrote:
Andrei Alexandrescu Wrote:
this(ref S src);
this(this);
What do you think?
In this moment I am too much sleepy to understand the semantics of what
you say.
But I can say something about syntax: that this(this) syntax is bad, it's
cryptic, I prefer something that
Nice. This could also be used to implement unique_ptr(T), with move
semantics.
L.
On 29-5-2010 9:26, Andrei Alexandrescu wrote:
Walter has had a great idea last night: allow classes to define
this(ref S src);
where S is the name of the struct being defined, as an alternative for
Jonathan M Davis wrote:
The weird thing here is that you're actually altering the parameter that you
passed in, which is normally a major no-no with copy constructors.
Yup.
One subtle but important distinction from C++ is that D can omit copy
construction completely if the compiler can
Jonathan M Davis wrote:
Sure, you _can_ use a language without generics (and many other features)
and get a lot done, but I'd argue having simplicity as your prime directive
tends to lead to an inefficient tool for the programmer. Simplicity should
be a goal, but there are times that it should
On 05/28/2010 08:39 PM, Jonathan M Davis wrote:
[snip some good points]
So, while
some folks seem to want to draw comparisons between Go and D, it sounds like
there are definitely things about them which are drastically different, not
only in the design, but in the philosophy behind the design.
On 05/28/2010 09:18 PM, Lionello Lunesu wrote:
Nice. This could also be used to implement unique_ptr(T), with move
semantics.
Yah, a number of interesting idioms spring to life.
Andrei
On 05/28/2010 08:44 PM, bearophile wrote:
Andrei Alexandrescu:
That has Java 1994 written all over it.
Java today can be the most used language, so despite its faults, probably it
was good enough.
Even if Go has no templates, it has plenty of time to add them five years from
now :-)
(And in
On Fri, 28 May 2010 21:26:50 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
Walter has had a great idea last night: allow classes to define
I'm almost positive you meant allow *structs* to define
this(ref S src);
where S is the name of the struct being defined, as an
Hello Pavel,
I create win32 application. (use dmd 2.046)
Exist object Thread in std.thread. Object Thread gives support for
garbage
collector, but I want to use
the function CreateThread.
Can I create threads with this function?
You can call it (you can call any C function). It should give
Philippe Sigaud wrote:
On Thu, May 27, 2010 at 01:00, Simen kjaeraas simen.kja...@gmail.com
mailto:simen.kja...@gmail.com wrote:
Here's a collection of templates I have created and use often.
Some of these may be fit for inclusion in Phobos, others maybe not as
much.
Please critique, and
Hey...
Compiler is now working as expected! Thank's to a great catch by
Michel Fortin!
A little further down the tutorial D_ A Newbie-Oriented Tutorial,
there's this code:
[code]
import std.stdio;
void main()
{
int[] intArray;
intArray[0] = 42;
intArray[1] = 54;
intArray[2] =
Duke Normandin wrote:
Hey...
Compiler is now working as expected! Thank's to a great catch by
Michel Fortin!
A little further down the tutorial D_ A Newbie-Oriented Tutorial,
there's this code:
[code]
import std.stdio;
void main()
{
int[] intArray;
intArray[0] = 42;
intArray[1]
Don:
The array initially has length of zero.
You need to write something like:
intArray = new int[3];
or
intArray.length = 3;
before putting anything into it.
In some languages (Perl? Maybe Lua and PHP) arrays auto-create empty slots as
needed, but in many languages you need to tell the
On Fri, 28 May 2010, bearophile wrote:
Don:
The array initially has length of zero.
You need to write something like:
intArray = new int[3];
or
intArray.length = 3;
before putting anything into it.
In some languages (Perl? Maybe Lua and PHP) arrays auto-create empty slots as
Duke Normandin:
This is the site that I'm using to learn D. If you scroll down 3-4
screens full, you'll come to the array topic. Is this tutorial
outdated, wrong, or what, because it doesn't deem to sync with what
you two fine fellows are telling me about creating dynamic arrays in
the
On Fri, 28 May 2010, bearophile wrote:
Duke Normandin:
This is the site that I'm using to learn D. If you scroll down 3-4
screens full, you'll come to the array topic. Is this tutorial
outdated, wrong, or what, because it doesn't deem to sync with what
you two fine fellows are telling
Duke Normandin dukeofp...@ml1.net wrote:
So these two paragraphs in the tutorial are flat out wrong?
Absolutely.
--
Simen
On Sat, 29 May 2010, Simen kjaeraas wrote:
Duke Normandin dukeofp...@ml1.net wrote:
So these two paragraphs in the tutorial are flat out wrong?
Absolutely.
Then I'm done with _that_ site - can't trust it!
Any chance that you could suggest a good beginner's D tutorial?
--
duke
Hello Don,
Philippe Sigaud wrote:
On Thu, May 27, 2010 at 01:00, Simen kjaeraas
simen.kja...@gmail.com
mailto:simen.kja...@gmail.com wrote:
Here's a collection of templates I have created and use often. Some
of these may be fit for inclusion in Phobos, others maybe not as
much.
Please
Hello Simen,
Duke Normandin dukeofp...@ml1.net wrote:
So these two paragraphs in the tutorial are flat out wrong?
Absolutely.
Any idea who owns it so it can get changed? For that matter, who added the
link?
Being paranoid for the moment (it can be fun sometimes :) that blurb is so
On Fri, 28 May 2010 22:42:32 -0400, Duke Normandin dukeofp...@ml1.net
wrote:
On Sat, 29 May 2010, Simen kjaeraas wrote:
Duke Normandin dukeofp...@ml1.net wrote:
So these two paragraphs in the tutorial are flat out wrong?
Absolutely.
Then I'm done with _that_ site - can't trust it!
Any
http://d.puremagic.com/issues/show_bug.cgi?id=4245
Summary: Declaring conflicting symbols in single function scope
allowed
Product: D
Version: 2.041
Platform: x86
OS/Version: All
Status: NEW
Keywords:
http://d.puremagic.com/issues/show_bug.cgi?id=4237
Shin Fujishiro rsi...@gmail.com changed:
What|Removed |Added
Keywords||patch
http://d.puremagic.com/issues/show_bug.cgi?id=4237
--- Comment #2 from Shin Fujishiro rsi...@gmail.com 2010-05-28 04:54:49 PDT
---
Here's a trivial patch to dmd svn r502.
--- src/declaration.c
+++ src/declaration.c
@@ -296,6 +296,7 @@ Dsymbol *TypedefDeclaration::syntaxCopy(Dsymbol *s)
void
http://d.puremagic.com/issues/show_bug.cgi?id=4056
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=4206
--- Comment #2 from Rainer Schuetze r.sagita...@gmx.de 2010-05-28 12:18:05
PDT ---
You're right, it correctly does not compile with dmd 1.056. I must have been
halucinating. Also, enum { var = myint }; causes an error.
The use case that was
http://d.puremagic.com/issues/show_bug.cgi?id=3445
Don clugd...@yahoo.com.au changed:
What|Removed |Added
Summary|DDoc usually omits pure |DDoc usually omits
http://d.puremagic.com/issues/show_bug.cgi?id=3120
Masahiro Nakagawa repeate...@gmail.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=4246
Summary: Delegate literals passed to variadic templates
function incorrectly
Product: D
Version: future
Platform: Other
OS/Version: Windows
Status: NEW
http://d.puremagic.com/issues/show_bug.cgi?id=4246
bearophile_h...@eml.cc changed:
What|Removed |Added
CC||bearophile_h...@eml.cc
---
http://d.puremagic.com/issues/show_bug.cgi?id=3887
Steven Schveighoffer schvei...@yahoo.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=3445
Steven Schveighoffer schvei...@yahoo.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=3445
--- Comment #2 from Steven Schveighoffer schvei...@yahoo.com 2010-05-28
15:17:43 PDT ---
From 3887, @property also doesn't show up.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this
http://d.puremagic.com/issues/show_bug.cgi?id=4247
Summary: Cannot create default-constructed struct on heap when
constructor is defined
Product: D
Version: 2.041
Platform: Other
OS/Version: Linux
Status: NEW
http://d.puremagic.com/issues/show_bug.cgi?id=1087
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=4242
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=1513
--- Comment #4 from Brad Roberts bra...@puremagic.com 2010-05-28 22:51:25 PDT
---
I figured it'd been ages and maybe something had changed to maybe fix this
bug.. nope:
dmd 1.061 on windows:
Error: ex 2
throw ex1
throw ex2
dmd 1.061 on
94 matches
Mail list logo