On 2011-Dec-05 18:30:54+00:00, bearophile wrote:
Manu:
but I don't believe I'm alone.. the rest
of the gamedev community will find D soon enough if the language gets it
right...
I think games are one of the most important short-term purposes of D, despite I
think D was not explicitly designed
On 2011-12-06 20:14, Adam Wilson wrote:
My goal for the project is what you would term non-native in that it
does not make use of the OS widgets; however the plan is to provide
native looking skins for the widgets. I'd like to design something that
interfaces with the machine at a lower level
Is D associative array thread safe, and will it relocate memory when
add or delete a value?
Where I can find the implemention.
On 2011-12-07 08:59, raojm wrote:
Is D associative array thread safe, and will it relocate memory when
add or delete a value?
Where I can find the implemention.
You should be able to find the implementation somewhere in druntime:
https://github.com/D-Programming-Language/druntime
--
On Wed, 07 Dec 2011 08:59:32 +0100, raojm ra...@91ne.com wrote:
Is D associative array thread safe, and will it relocate memory when
add or delete a value?
Where I can find the implemention.
No it's not, and yes it has to relocate memory.
It's working as a hashtable not a binary tree, so
On 12/07/2011 08:35 AM, Kagamin wrote:
int z = 0;
int foo(int x, int y) { return x + y; }
int bar(int x) { z++; return x * x + z; }
int baz(int x) { z--; return 2 * x + z; }
int main() {
int w = foo(bar(5), baz(3));
return w;
}
See also:
http://en.wikipedia.org/wiki/Sequence_point
I think ','
On 06.12.2011 09:37, bearophile wrote:
Don:
Right. But it's hard to come up with high-priority language issues these days. The old
ones have been fixed.g.
There are several things that I'd like to see fixed/improved in D still.
Yes, of course. But most of the showstoppers are done.
Not so
Andrej Mitrovic Wrote:
This is much harder than I expected it to be..
It's problematic because everything has to be hand-ported. And things
aren't so obvious, as DDMD introduces some of its own helper
functions.
I think to really port this properly I would need to know the ins and
outs
Daniel Murphy Wrote:
Nick Sabalausky a@a.a wrote in message
news:j4gflo$1c59$1...@digitalmars.com...
I'm wondering if maybe the problem is that it needs a different approach.
I suspect a big part of the reason it's stagnated is because it's
difficult to update to new versions of DMD.
On Wednesday, December 07, 2011 09:10:16 Martin Nowak wrote:
On Wed, 07 Dec 2011 08:59:32 +0100, raojm ra...@91ne.com wrote:
Is D associative array thread safe, and will it relocate memory when
add or delete a value?
Where I can find the implemention.
No it's not, and yes it has to
On Wednesday, December 07, 2011 09:16:48 Don wrote:
On 06.12.2011 09:37, bearophile wrote:
Don:
Right. But it's hard to come up with high-priority language issues
these days. The old ones have been fixed.g.
There are several things that I'd like to see fixed/improved in D still.
Yes,
Don Wrote:
On 07.12.2011 05:11, bcs wrote:
On 12/05/2011 11:20 PM, Don wrote:
On 06.12.2011 05:21, bcs wrote:
On 12/05/2011 08:37 AM, Don wrote:
On 05.12.2011 14:31, bearophile wrote:
Found through Reddit, two blog posts about how integers should behave
in system languages (with
http://en.wikipedia.org/wiki/Sequence_point
I think ',' in parameter lists are already sequence points.
They aren't, but a function call is a sequence point, so bar is
guaranteed to be called before baz.
?
If bar is guaranteed to be called before baz, then the ',' is associated with a
On Tue, 06 Dec 2011 18:14:25 +
Russel Winder rus...@russel.org.uk wrote:
SCons is a Python-based build tool to replace Make and much of the
Autotools functionality. It has D support as part of the core. This
support is though in need of development.
The new Mercurial/BitBucket
On Wed, 2011-12-07 at 20:27 +1100, Andrew Gough wrote:
[...]
I think the build tool question is in need of the same level of high
level design and support that Steve Teale is working on for
std.database/std.sql.
I am not sure I quite get that, sorry.
It seems there is SCons support (python),
Kagamin:
I played a game, where experience counter was int32, it wasn't meant to
overflow during normal play, but it allowed console commands, which could be a
lot of fun, so I made xp overflow to negative values, it didn't make any
trouble, just in the case it used checked arithmetic, it
Manu:
but making standard ints compromise basic hardware implementation just won't
fly.
Ada language does those things, and it's used to fly planes :-) So maybe it
will fly.
Today some online games are managing real money of the players. You don't want
to use raw integers to manage those
On Wed, 07 Dec 2011 09:54:08 +
Russel Winder rus...@russel.org.uk wrote:
On Wed, 2011-12-07 at 20:27 +1100, Andrew Gough wrote:
[...]
I think the build tool question is in need of the same level of high
level design and support that Steve Teale is working on for
std.database/std.sql.
On 12/07/2011 11:46 AM, bearophile wrote:
Manu:
but making standard ints compromise basic hardware implementation just won't
fly.
Ada language does those things, and it's used to fly planes :-) So maybe it
will fly.
Maybe. Ada in action: http://www.youtube.com/watch?v=kYUrqdUyEpI
On 07-12-2011 09:16, Don wrote:
On 06.12.2011 09:37, bearophile wrote:
Don:
Right. But it's hard to come up with high-priority language issues
these days. The old ones have been fixed.g.
There are several things that I'd like to see fixed/improved in D still.
Yes, of course. But most of
On 2011-12-07 10:27, Andrew Gough wrote:
On Tue, 06 Dec 2011 18:14:25 +
Russel Winderrus...@russel.org.uk wrote:
SCons is a Python-based build tool to replace Make and much of the
Autotools functionality. It has D support as part of the core. This
support is though in need of
On 2011-12-07 10:54, Russel Winder wrote:
On Wed, 2011-12-07 at 20:27 +1100, Andrew Gough wrote:
[...]
I think the build tool question is in need of the same level of high
level design and support that Steve Teale is working on for
std.database/std.sql.
I am not sure I quite get that, sorry.
On Wed, 07 Dec 2011 04:00:34 -0500, Jonathan M Davis jmdavisp...@gmx.com
wrote:
On Wednesday, December 07, 2011 09:10:16 Martin Nowak wrote:
On Wed, 07 Dec 2011 08:59:32 +0100, raojm ra...@91ne.com wrote:
Is D associative array thread safe, and will it relocate memory when
add or delete
On Wed, 2011-12-07 at 22:00 +1100, Andrew Gough wrote:
[...]
I'm suggesting that the current multi-pronged approach to providing a
workable build system is hampered by the multitude of directions and
could benefit from some initial discussion, consensus and design.
OK. It is a valid point,
On Wed, 2011-12-07 at 14:38 +0100, Jacob Carlborg wrote:
[...]
What I see as the advantage of a new build system is that it can be
developed specifically for D which could make the tool very easy to use.
Example:
$ tool build main.d
Go has gone to the extreme with this, they have a
http://www.infoq.com/presentations/Understanding-Java-Garbage-Collection
This is java focussed, but I think this is still very interesting for D
people. So I'm sharing it here.
Adrian Wrote:
[OT] As a side point from a not yet D developer, but someone who looks
at the language with great interest, but also someone with a commercial
responsibility: I am missing big projects developed in D and the most
logic project would be the compiler itself! I know this has been
On Wed, 07 Dec 2011 14:38:04 +0100
Jacob Carlborg d...@me.com wrote:
What I see as the advantage of a new build system is that it can be
developed specifically for D which could make the tool very easy to
use. Example:
$ tool build main.d
That's all that should be needed to build an
On 2011-12-07 15:03, Russel Winder wrote:
Having watched what happened with Gant, Gradle, Buildr, sbt, Leiningen,
Rake, Bake, Rant, Ant, Maven, make, Cmake, Autotools, etc. I fear the
overall effect of a focused on D build tool, whether build from
scratch or over another framework. Specialist
On 2011-12-07 15:06, Russel Winder wrote:
On Wed, 2011-12-07 at 14:38 +0100, Jacob Carlborg wrote:
[...]
What I see as the advantage of a new build system is that it can be
developed specifically for D which could make the tool very easy to use.
Example:
$ tool build main.d
Go has gone to
On 2011-12-07 15:15, Gour wrote:
On Wed, 07 Dec 2011 14:38:04 +0100
Jacob Carlborgd...@me.com wrote:
What I see as the advantage of a new build system is that it can be
developed specifically for D which could make the tool very easy to
use. Example:
$ tool build main.d
That's all that
Adrian adrian.remove-nos...@veith-system.de wrote in message
news:jbnmoo$2seg$1...@digitalmars.com...
The downside would be, that there is the risk of incompatibilities of
the compilers, leading to 2 different dialects, which would force the
users of both, only to use the subset of the
Am 06.12.2011 22:30, schrieb Kai Meyer:
I posted this on D.learn, but got no responses. I'm hoping it's because
I'm asking the wrong crowd.
I'm finding std.json extremely well written, with one glaring exception.
I can't seem to figure out how to do this:
JSONValue root = JSONValue(null,
Jacob Carlborg Wrote:
On 2011-12-07 15:06, Russel Winder wrote:
On Wed, 2011-12-07 at 14:38 +0100, Jacob Carlborg wrote:
[...]
What I see as the advantage of a new build system is that it can be
developed specifically for D which could make the tool very easy to use.
Example:
$
On Wed, 07 Dec 2011 14:51:49 +0100, Steven Schveighoffer
schvei...@yahoo.com wrote:
On Wed, 07 Dec 2011 04:00:34 -0500, Jonathan M Davis
jmdavisp...@gmx.com wrote:
On Wednesday, December 07, 2011 09:10:16 Martin Nowak wrote:
On Wed, 07 Dec 2011 08:59:32 +0100, raojm ra...@91ne.com wrote:
Hi,
Consider this code:
if (condition)
foo();
else
bar(),
baz();
Notice the comma in the bar call. This will actually compile. Why?
Because the program is really interpreted as:
if (condition)
{
foo();
}
else
{
bar();
baz();
}
This is, honestly, ridiculous. On most
It could be moved to use either the section character or one of the
application-specific unicode points reserved for internal use by whatever an
application wants. This would eliminate confusing typing and, if using this
for generated code, the generator can easily reference it by unicode ID
I implemented a lock-free doubly linked list some time ago.
I omitted the use of hazard lists because flagging the lowest
bit would still make a valid pointer into the list node.
Afterwards I found that http://www.d-programming-language.org/garbage.html
explicitly states:
p =
On 2011-Dec-07 14:13:11+00:00, deadalnix wrote:
http://www.infoq.com/presentations/Understanding-Java-Garbage-Collection
This is java focussed, but I think this is still very interesting for D people.
So I'm sharing it here.
Thanks for the link - I've just finished watching the presentation.
On 12/5/2011 3:22 PM, Norbert Nemec wrote:
On 05.12.2011 21:40, Tobias Pankrath wrote:
Right - thanks for the hint!
That would leave the following rules for real-time audio code in D:
[snip]
What's about message passing? Is message passing hard real time ready?
The issue actually came up
Le 07/12/2011 18:02, Martin Nowak a écrit :
I implemented a lock-free doubly linked list some time ago.
I omitted the use of hazard lists because flagging the lowest
bit would still make a valid pointer into the list node.
Afterwards I found that
On Wed, 07 Dec 2011 11:49:33 -0500, Alex Rønne Petersen xtzgzo...@gmail.com
wrote:
Hi,
Consider this code:
if (condition)
foo();
else
bar(),
baz();
Notice the comma in the bar call. This will actually compile. Why?
Because the program is really interpreted as:
if (condition)
{
Alex Rønne Petersen Wrote:
I really do not see the value in allowing such syntax in the first
place. I've been told that one argument was that generated code might
use it, but I have no idea why it would be needed.
Aside from the compiler's implementation, one possible use
is something I
On Wed, 2011-12-07 at 14:38 +0100, Jacob Carlborg wrote:
[...]
Example:
$ tool build main.d
That's all that should be needed to build an executable. You could have
the same in a build script:
// buildfile
main.d
$ tool build
Currently with SCons, you type:
$ scons
and the
Adam Ruppe destructiona...@gmail.com wrote in message
news:jbo8rr$rhh$1...@digitalmars.com...
Alex Rønne Petersen Wrote:
I really do not see the value in allowing such syntax in the first
place. I've been told that one argument was that generated code might
use it, but I have no idea why it
Robert Jacques sandf...@jhu.edu wrote in message
news:op.v54q04vd26s...@sandford.myhome.westell.com...
On Wed, 07 Dec 2011 11:49:33 -0500, Alex Rønne Petersen
xtzgzo...@gmail.com wrote:
Why is this operator still kept around?
Take your pick:
1) So that legacy B/C/C++/D1/etc code can be
On 12/7/2011 2:46 AM, bearophile wrote:
Today some online games are managing real money of the players. You don't
want to use raw integers to manage those important numbers :-)
Banks have been using computer programs to handle money forever, so has every
piece of accounting software. I.e.
Andrew Gough wrote:
On Tue, 06 Dec 2011 18:14:25 +
Russel Winder rus...@russel.org.uk wrote:
SCons is a Python-based build tool to replace Make and much of the
Autotools functionality. It has D support as part of the core. This
support is though in need of development.
The new
On Wed, 07 Dec 2011 18:28:59 +0100, deadalnix deadal...@gmail.com wrote:
Le 07/12/2011 18:02, Martin Nowak a écrit :
I implemented a lock-free doubly linked list some time ago.
I omitted the use of hazard lists because flagging the lowest
bit would still make a valid pointer into the list
premake supports D? I was planning to add D support to premake myself, but
that's wonderful news. I'll add support for VisualD if it is not already
done.
GDC is also important. Great news! :)
On 7 December 2011 21:56, Jens Mueller jens.k.muel...@gmx.de wrote:
Andrew Gough wrote:
On Tue, 06
Hi!
On pages 145 and 146 (§ 5.5.1) of The D programming language there is
an example with overloading a function with uint, long, and a
parameterized type. I tried to reproduce that using a similar example:
code
module main;
import std.stdio;
void overloadme(uint number)
{
On Wednesday, December 07, 2011 22:35:04 Michael Kremser wrote:
Hi!
On pages 145 and 146 (§ 5.5.1) of The D programming language there is
an example with overloading a function with uint, long, and a
parameterized type. I tried to reproduce that using a similar example:
code
module main;
On Wed, 07 Dec 2011 16:35:04 -0500, Michael Kremser
mkspamx-use...@yahoo.de wrote:
Hi!
On pages 145 and 146 (§ 5.5.1) of The D programming language there is
an example with overloading a function with uint, long, and a
parameterized type. I tried to reproduce that using a similar
On Wed, 7 Dec 2011 22:39:34 +0200
Manu turkey...@gmail.com wrote:
premake supports D? I was planning to add D support to premake
myself, but that's wonderful news. I'll add support for VisualD if it
is not already done.
Didn't hear about premake before...how does it compare with e.g. Cmake?
On 12/07/2011 07:02 PM, Nick Sabalausky wrote:
Adam Ruppedestructiona...@gmail.com wrote in message
news:jbo8rr$rhh$1...@digitalmars.com...
Alex Rønne Petersen Wrote:
I really do not see the value in allowing such syntax in the first
place. I've been told that one argument was that generated
On 12/07/2011 06:02 PM, Martin Nowak wrote:
I implemented a lock-free doubly linked list some time ago.
I omitted the use of hazard lists because flagging the lowest
bit would still make a valid pointer into the list node.
Afterwards I found that
Hey peoples,
So this might be a bit off topic... but I'm trying to think about the best
way to write a small program in the most D-ish way possible (just to make
sure I'm giving myself the most realistic experience with the language),
and I wanted to get some thoughts.
I don't know which way to
On 12/7/2011 9:02 AM, Martin Nowak wrote:
I implemented a lock-free doubly linked list some time ago.
I omitted the use of hazard lists because flagging the lowest
bit would still make a valid pointer into the list node.
Afterwards I found that http://www.d-programming-language.org/garbage.html
Gour wrote:
On Wed, 7 Dec 2011 22:39:34 +0200
Manu turkey...@gmail.com wrote:
premake supports D? I was planning to add D support to premake
myself, but that's wonderful news. I'll add support for VisualD if it
is not already done.
Didn't hear about premake before...how does it
On Dec 4, 2011, at 5:46 PM, dsimcha wrote:
I'm at my traditional passtime of trying to speed up D's garbage collector
again, and I've stumbled on the fact that rt_finalize is taking up a
ridiculous share of the time (~30% of total runtime) on a benchmark where
huge numbers of classes
On Wednesday, December 07, 2011 23:10:53 Timon Gehr wrote:
On 12/07/2011 07:02 PM, Nick Sabalausky wrote:
Adam Ruppedestructiona...@gmail.com wrote in message
news:jbo8rr$rhh$1...@digitalmars.com...
Alex Rønne Petersen Wrote:
I really do not see the value in allowing such syntax in the
On Wed, 07 Dec 2011 23:23:26 +0100, Walter Bright
newshou...@digitalmars.com wrote:
On 12/7/2011 9:02 AM, Martin Nowak wrote:
I implemented a lock-free doubly linked list some time ago.
I omitted the use of hazard lists because flagging the lowest
bit would still make a valid pointer into
On Wed, 07 Dec 2011 13:19:31 -0500, Nick Sabalausky a@a.a wrote:
Robert Jacques sandf...@jhu.edu wrote in message
news:op.v54q04vd26s...@sandford.myhome.westell.com...
On Wed, 07 Dec 2011 11:49:33 -0500, Alex Rønne Petersen
xtzgzo...@gmail.com wrote:
Why is this operator still kept around?
I've been reading about the use of expression templates in this blitz page,
which provides arrays implemented by c++ templates. They have some convenient
features, such as array initialization with auto-incrementing array index
values in the expressions and applying a cast operator to an
On 12/06/2011 11:50 PM, Don wrote:
He's talking about system languages. A system language has to have a
close relationship to the architecture.
By contrast, if you don't care about performance, it's easy -- just use
BigInts for everything. Problem solved.
Looks like I have to put it more
On 12/07/2011 08:49 AM, Alex Rønne Petersen wrote:
I really do not see the value in allowing such syntax in the first
place. I've been told that one argument was that generated code might
use it, but I have no idea why it would be needed. Furthermore, this
operator makes it very hard to
On Wed, 7 Dec 2011 23:31:10 +0100
Jens Mueller jens.k.muel...@gmx.de wrote:
The nice thing about premake is that it is build using Lua. So you
have a full language at your disposal.
Heh, that much I could see quickly...Something like Scons/Waf...
CMake's configuration language is not that
On Wed, 07 Dec 2011 23:27:41 -0500, Jay Norwood j...@prismnet.com wrote:
I've been reading about the use of expression templates in this blitz page,
which provides arrays implemented by c++ templates. They have some convenient
features, such as array initialization with auto-incrementing
On 2011-12-07 16:49, Paulo Pinto wrote:
Jacob Carlborg Wrote:
On 2011-12-07 15:06, Russel Winder wrote:
On Wed, 2011-12-07 at 14:38 +0100, Jacob Carlborg wrote:
[...]
What I see as the advantage of a new build system is that it can be
developed specifically for D which could make the tool
On 2011-12-07 19:02, Russel Winder wrote:
On Wed, 2011-12-07 at 14:38 +0100, Jacob Carlborg wrote:
[...]
Example:
$ tool build main.d
That's all that should be needed to build an executable. You could have
the same in a build script:
// buildfile
main.d
$ tool build
Currently with SCons,
On 2011-12-07 20:56, Jens Mueller wrote:
I'm unsure whether D needs its own configuration/build tool. It
definitely needs a package manager.
For building there are different options but usually it's make. Most
people (at least for sure on Unix variants) are using it. I think Scons
does both
On 12/7/2011 11:11 PM, Robert Jacques wrote:
On Wed, 07 Dec 2011 23:27:41 -0500, Jay Norwood j...@prismnet.com wrote:
I've been reading about the use of expression templates in this blitz page,
which provides arrays implemented by c++ templates. They have some convenient
features, such as
On 2011-Dec-07 02:17:17+00:00, raojm wrote:
Is D associative array thread safe, and will it relocate memory when
add or delete a value?
Where I can find the implemention.
Phobos and druntime are on GitHub, you can always check out the source...
What does not?
Yes, that kind of struct will work. :) Try to add a constructor...
http://d.puremagic.com/issues/show_bug.cgi?id=664
Don clugd...@yahoo.com.au changed:
What|Removed |Added
CC||clugd...@yahoo.com.au
---
http://d.puremagic.com/issues/show_bug.cgi?id=7067
Alex R�nne Petersen xtzgzo...@gmail.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=7077
Summary: mixin statements can invade the enclosing scope
Product: D
Version: D2
Platform: Other
OS/Version: All
Status: NEW
Keywords: accepts-invalid, rejects-valid
http://d.puremagic.com/issues/show_bug.cgi?id=7075
Trass3r mrmoc...@gmx.de changed:
What|Removed |Added
Keywords||accepts-invalid
http://d.puremagic.com/issues/show_bug.cgi?id=7075
Steven Schveighoffer schvei...@yahoo.com changed:
What|Removed |Added
Keywords|accepts-invalid |
http://d.puremagic.com/issues/show_bug.cgi?id=7072
Robert Clipsham rob...@octarineparrot.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=7072
--- Comment #6 from David Simcha dsim...@yahoo.com 2011-12-07 13:19:49 PST ---
I'm aware of DustMite. I just never got around to setting it up/learning how
it works because it doesn't look easy. Usually reducing stuff like this
doesn't take
http://d.puremagic.com/issues/show_bug.cgi?id=2972
Andrei Alexandrescu and...@metalanguage.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=6881
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=7027
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=7078
Summary: BigInt.toInt returns a long
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
http://d.puremagic.com/issues/show_bug.cgi?id=7027
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
86 matches
Mail list logo