Al 25/12/11 18:17, En/na Damian Ziemba ha escrit:
They got 2 different goals. SiegeLord wants to keep as much of original Tango
as possible and make it D2-wish while mt'chrono changes Tango itself, because
he thinks something is wrong-designed (or he doesn't get idea properly).
On 2011-12-26 15:54, Jordi Sayol wrote:
Al 25/12/11 18:17, En/na Damian Ziemba ha escrit:
They got 2 different goals. SiegeLord wants to keep as much of original Tango
as possible and make it D2-wish while mt'chrono changes Tango itself, because
he thinks something is wrong-designed (or he
On 23/12/11 4:01 AM, Walter Bright wrote:
For those where the download speed from the Digital Mars server is too
slow:
https://github.com/downloads/D-Programming-Language/dmd/dmd.2.057.zip
Got 1 MB/s here (that's megaBYTES not bits).
Nice :-)
On 24.12.2011 16:33, Andrei Alexandrescu wrote:
On 12/24/2011 09:11 AM, Derek wrote:
On Sat, 24 Dec 2011 23:42:41 +1100, bearophile
bearophileh...@lycos.com wrote:
In theory functional-style is a good to shrink the code, but in D
functional-style code is a jungle of (({}){()}) so it's hard to
On 26-12-2011 06:41, Nathan Coe wrote:
Is there a way to change what is compiled in based on whether the -m32 or -m64
option is chosen? I can see that there are predefined versions (for X86 and
X86_64 e.g.), but I don't know if this is based on the compile options, or the
platform the
On Mon, Dec 26, 2011 at 3:53 AM, Alex Rønne Petersen
xtzgzo...@gmail.com wrote:
On 26-12-2011 06:41, Nathan Coe wrote:
Is there a way to change what is compiled in based on whether the -m32 or
-m64
option is chosen? I can see that there are predefined versions (for X86
and
X86_64 e.g.), but
On Mon, 26 Dec 2011 02:13:53 +0100, dsimcha wrote:
On Monday, 26 December 2011 at 00:46:44 UTC, Jonathan M Davis wrote:
Sounds like they should probably be merged at some point.
- Jonathan M Davis
Yeah, I've started working on Cristi's fork now that I've built a good
enough mental model
On 2011-12-26 01:31, Andrei Alexandrescu wrote:
On 12/25/11 5:11 PM, Jacob Carlborg wrote:
The Mac OS X installer on dlang.org/dowloads says it is for i386 but
it's actually for 64bit.
Fixed. Looking good?
Andrei
Yes, thanks. Now I'm just waiting for the D1 version.
--
/Jacob Carlborg
On 2011-12-26 03:31, Adam D. Ruppe wrote:
On Monday, 26 December 2011 at 00:40:47 UTC, Andrei Alexandrescu wrote:
I understand. Personally, I am unable to bring myself to fathom why
writing this has any advantage:
if(condition) return false just avoids a negation in the
condition.
It's
Le 26/12/2011 05:23, Andrei Alexandrescu a écrit :
On 12/25/11 8:56 PM, deadalnix wrote:
Le 25/12/2011 05:27, Andrei Alexandrescu a écrit :
Got the GC book this morning, already read 2.5 chapters :o).
Andrei
You'll find that you can do a lot when GC is aware of immutability (in
I really like the idea of simply adding import myPackage;, behaving
like your average .all module.
Doing it this way solves at least three problems: No more clunky
maintenance of convenience modules, big modules can later be split up
into a package without breaking any client code,
On 2011-12-26 05:23, Andrei Alexandrescu wrote:
On 12/25/11 8:56 PM, deadalnix wrote:
Le 25/12/2011 05:27, Andrei Alexandrescu a écrit :
Got the GC book this morning, already read 2.5 chapters :o).
Andrei
You'll find that you can do a lot when GC is aware of immutability (in
functionnal
As for big module, my solutions are:
1) put related modules into a package (or directory)
2) add a module named all.d into the directory, and this module will import
all the other modules publicly
3) now just import the *all* module when needed
Here we have yet another example of
On 12/26/11, Alex Rønne Petersen xtzgzo...@gmail.com wrote:
Use:
version (D_LP64)
{
// 64-bit ...
}
else
{
// 32-bit ...
}
So why doesn't D_LP32 exist? If you already use version(X86) else
version(X86_64) you're going to have to swap all of your code around
if you start using
On Sun, 25 Dec 2011 15:52:25 +, Lars T. Kyllingstad wrote:
It's been a while since I added anything new to it, but the project is
by no means dead. If you find any bugs, please let me know, and I will
fix them as soon as I am able.
I just noticed that SciD didn't compile due to some
On 26/12/2011 12:51, zhang wrote:
snip
The compiler should do this. A package is a directory, and a module just a file.
When importing a package, the compiler will import all the modules in the
package.
The user doesn't care about this.
The user may well care if he/she is compiling someone
On 12/26/11 6:53 AM, Jacob Carlborg wrote:
What about the parallel/concurrent collector that has been linked a
couple of times in this newsgroup. Would that be possible and a good
idea to implement?
A parallel collector would be, of course, a valuable addition.
Andrei
On 2011-12-26 15:52, Andrei Alexandrescu wrote:
On 12/26/11 6:53 AM, Jacob Carlborg wrote:
What about the parallel/concurrent collector that has been linked a
couple of times in this newsgroup. Would that be possible and a good
idea to implement?
A parallel collector would be, of course, a
Le 26/12/2011 05:23, Andrei Alexandrescu a écrit :
I've gone through a larger portion of the book and one thing has become
very clear to me: we must improve the precision of the collector. This
would be a gating feature towards taking the GC pretty much anywhere.
Do you know what is the impact
On Monday, 26 December 2011 at 00:40:47 UTC, Andrei Alexandrescu
wrote:
I might be biased, but I ask for it to be corrected if I see it
during a code review at work, and if someones writes such
during an interview, it doesn't gain them any points.
To conclude our chat here too, I do think you
bearophile bearophileh...@lycos.com wrote in message
news:jd6sbg$qb6$1...@digitalmars.com...
Steve Teale:
My reading of the current documentation on casts leaves me with the
impression that D now has only the equivalent of the C++ dynamic_cast.
I'd like this in Phobos:
On 12/26/11 10:29 AM, deadalnix wrote:
Le 26/12/2011 05:23, Andrei Alexandrescu a écrit :
I've gone through a larger portion of the book and one thing has become
very clear to me: we must improve the precision of the collector. This
would be a gating feature towards taking the GC pretty much
Hello,
I've been playing with a new approach to reference counting, in
particular for the containers library.
A small prototype is at http://pastebin.com/WnSQY1Jw. The prototype
features a simple doubly-linked list implementation DListImpl. That is
not supposed to be manipulated directly
Vladimir Panteleev wrote:
On Sunday, 25 December 2011 at 01:08:04 UTC, Piotr Szturmaj wrote:
Anyway, I believe you can do without memcpy by using array copy? Array
copy might even be faster, since memcpy is not a DMD compiler intrinsic
like in many C/C++ compilers.
I converted memcpy calls to
On Monday, 26 December 2011 at 10:11:01 UTC, Lars T. Kyllingstad
wrote:
So submitting Cristi's library for inclusion in Phobos is now
off the table?
-Lars
In the _near_ future, yes. It's still too much of a work in
progress. Submitting to Phobos is still the eventual goal,
though.
On 2011-12-26 17:25:10 +, Andrei Alexandrescu
seewebsiteforem...@erdani.org said:
Hello,
I've been playing with a new approach to reference counting, in
particular for the containers library.
A small prototype is at http://pastebin.com/WnSQY1Jw. The prototype
features a simple
On 12/26/2011 8:23 AM, Andrej Mitrovic wrote:
On 12/26/11, Alex Rønne Petersenxtzgzo...@gmail.com wrote:
Use:
version (D_LP64)
{
// 64-bit ...
}
else
{
// 32-bit ...
}
So why doesn't D_LP32 exist? If you already use version(X86) else
version(X86_64) you're going to have to swap
On 12/26/11 12:46 PM, Michel Fortin wrote:
Although I am a little concerned by this
small but important implementation detail:
Your RefCounted destructor is racy.
Just like other reference counted things in Phobos, if you somehow store
a reference on the GC heap (as a class member for
On 26-12-2011 14:23, Andrej Mitrovic wrote:
On 12/26/11, Alex Rønne Petersenxtzgzo...@gmail.com wrote:
Use:
version (D_LP64)
{
// 64-bit ...
}
else
{
// 32-bit ...
}
So why doesn't D_LP32 exist? If you already use version(X86) else
version(X86_64) you're going to have to swap
On 12/26/2011 3:47 AM, Jacob Carlborg wrote:
It's like when you see code like this (Ruby):
unless !foo
end
Double negation. Code like the snippet above can be really annoying.
In general, variables and conditions should never be labeled with negation:
bool notFeature;
On Monday, 26 December 2011 at 17:25:12 UTC, Andrei Alexandrescu
wrote:
Hello,
I've been playing with a new approach to reference counting, in
particular for the containers library.
A small prototype is at http://pastebin.com/WnSQY1Jw. The
prototype features a simple doubly-linked list
On Mon, 26 Dec 2011 07:43:46 -0800, Jacob Carlborg d...@me.com wrote:
On 2011-12-26 15:52, Andrei Alexandrescu wrote:
On 12/26/11 6:53 AM, Jacob Carlborg wrote:
What about the parallel/concurrent collector that has been linked a
couple of times in this newsgroup. Would that be possible and a
Robert Jacques:
The C4 pause-less GC, while very cool, is its own operating system.
It doesn't run on-top of Windows, Linux, Mac, etc.
I think that eventually Linux will have to include some of those ideas, to
allow language designers or virtual machine designers, to implement better
On 12/26/2011 9:03 AM, Andrei Alexandrescu wrote:
On 12/26/11 10:29 AM, deadalnix wrote:
Do you know what is the impact of 64bits on false positive proportion
when the GC isn't precise ?
No.
I would think it would dramatically reduce it.
On 26/12/11 5:25 PM, Andrei Alexandrescu wrote:
(a) All interaction with the held object is done via opDispatch. In fact
opDispatch can be engineered to statically enforce no reference to the
held object escapes.
I have a separate, but very much related concern:
If the held object has a
On 12/26/11 6:36 PM, Walter Bright wrote:
On 12/26/2011 9:03 AM, Andrei Alexandrescu wrote:
On 12/26/11 10:29 AM, deadalnix wrote:
Do you know what is the impact of 64bits on false positive proportion
when the GC isn't precise ?
No.
I would think it would dramatically reduce it.
At the
On Mon, 26 Dec 2011 17:09:02 -0800, Peter Alexander
peter.alexander...@gmail.com wrote:
On 26/12/11 5:25 PM, Andrei Alexandrescu wrote:
(a) All interaction with the held object is done via opDispatch. In fact
opDispatch can be engineered to statically enforce no reference to the
held object
On 27/12/11 1:09 AM, Peter Alexander wrote:
On 26/12/11 5:25 PM, Andrei Alexandrescu wrote:
(a) All interaction with the held object is done via opDispatch. In fact
opDispatch can be engineered to statically enforce no reference to the
held object escapes.
I have a separate, but very much
On 27/12/11 1:14 AM, Robert Jacques wrote:
On Mon, 26 Dec 2011 17:09:02 -0800, Peter Alexander
If the held object has a method with the same name as RefCounted (e.g.
asConst) then how do you call the held object's method instead of
RefCounted's method?
You, can't. Looking at the source code
On 12/26/11 7:09 PM, Peter Alexander wrote:
On 26/12/11 5:25 PM, Andrei Alexandrescu wrote:
(a) All interaction with the held object is done via opDispatch. In fact
opDispatch can be engineered to statically enforce no reference to the
held object escapes.
I have a separate, but very much
On 12/26/11 7:14 PM, Robert Jacques wrote:
There are several uses for opDispatch. For example, vector swizzling is
an example of using opDispatch to replace a finite set of related
functions. General forwarding, like alias this, requires a minimalistic
design: the public interface should be as
On 12/26/11 7:25 PM, Peter Alexander wrote:
Following up to this, how do I access non-function members of the held
object? e.g.
struct Foo
{
int x = 1;
}
void main()
{
RefCounted!Foo f;
writeln(f.x); // Doesn't work
}
We can easily have opDispatch look at field names. But I think it's poor
Walter Bright wrote:
bool notFeature;
Counterexample:
| bool sense;
I do not believe, that a majority of developers evaluates `nonsense' as
being equal to `!sense'.
-manfred
On 12/27/11, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote:
We can easily have opDispatch look at field names. But I think it's poor
design to expose bald data anyway.
opDispatch doesn't work with property functions, or opBinary, or
opOpAssign. And what about the ctor? I can't call
By a vote of 14-0, Jonas Drewsen's CURL wrapper (std.net.curl)
has been accepted into Phobos. Thanks to Jonas for his hard work
and his persistence through the multiple rounds of review that it
took to get this module up to Phobos's high and increasing
quality standard.
Keep the good work
On 27/12/11 1:29 AM, Andrei Alexandrescu wrote:
We can easily have opDispatch look at field names. But I think it's poor
design to expose bald data anyway.
I disagree, especially with immutable structs. There's no point wrapping
immutable data in functions or properties.
Also, what about
On 12/26/11 11:25 AM, Andrei Alexandrescu wrote:
[snip]
Destroy.
Walter indeed just destroyed me over the phone: I conflated reference
counting with copy-on-write. Essentially instead of defining a reference
type that's garbage-collected, I defined a value type that has cow.
Which is not
On 12/26/11 7:49 PM, Andrej Mitrovic wrote:
On 12/27/11, Andrei Alexandrescuseewebsiteforem...@erdani.org wrote:
We can easily have opDispatch look at field names. But I think it's poor
design to expose bald data anyway.
opDispatch doesn't work with property functions,
It actually does, as
On 12/26/11 8:23 PM, Peter Alexander wrote:
On 27/12/11 1:29 AM, Andrei Alexandrescu wrote:
We can easily have opDispatch look at field names. But I think it's poor
design to expose bald data anyway.
I disagree, especially with immutable structs. There's no point wrapping
immutable data in
Am 21.12.2011, 07:11 Uhr, schrieb Walter Bright
newshou...@digitalmars.com:
On 12/20/2011 5:52 PM, Marco Leise wrote:
Ok, I jumped on the band wagon to early. Personally I only had this
problem with
classes and structs.
struct Test {
byte arr[1024 * 1024 *10];
}
and
class Test {
byte
https://github.com/D-Programming-Language/dmd/commit/675898721c04d0bf155a85abf986eae99c37c0dc
Andrei
On Tuesday, 27 December 2011 at 04:25:00 UTC, Andrei Alexandrescu
wrote:
https://github.com/D-Programming-Language/dmd/commit/675898721c04d0bf155a85abf986eae99c37c0dc
Andrei
This change is cool!
Masahiro
For some benchmarking research[1], I wanted to try to run a D
program on MS-DOS. It's actually pretty easy, thanks to the
HX-DOS extender. HX-DOS implements a good part of the Win32 API,
and even supports GDI and OpenGL programs.
I needed to make a few changes to Phobos and Druntime to stub
Andrei Alexandrescu seewebsiteforem...@erdani.org wrote in message
news:jdbhas$2ftb$1...@digitalmars.com...
https://github.com/D-Programming-Language/dmd/commit/675898721c04d0bf155a85abf986eae99c37c0dc
Andrei
Fanfuckingtastic!
Lambda very cool!
I hope we can add shared lib support for linux freebsd in 2012.
On 27 December 2011 12:25, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
https://github.com/D-Programming-Language/dmd/commit/675898721c04d0bf155a85abf986eae99c37c0dc
Andrei
On 12/27/11, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote:
It actually does, as per the unittests. Even if it currently does by
@property being too lax, it should continue to work.
It actually doesn't:
struct FooImpl
{
int _x;
@property int x() { return _x; }
@property
On Mon, 26 Dec 2011 17:30:54 -0800, Peter Alexander
peter.alexander...@gmail.com wrote:
On 27/12/11 1:14 AM, Robert Jacques wrote:
On Mon, 26 Dec 2011 17:09:02 -0800, Peter Alexander
If the held object has a method with the same name as RefCounted (e.g.
asConst) then how do you call the held
On 26/12/2011 12:51, zhang wrote:
snip
The compiler should do this. A package is a directory, and a module just a
file.
When importing a package, the compiler will import all the modules in the
package.
The user doesn't care about this.
The user may well care if he/she is compiling
On Tue, 27 Dec 2011 03:47:50 +0100, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 12/26/11 11:25 AM, Andrei Alexandrescu wrote:
[snip]
Destroy.
Walter indeed just destroyed me over the phone: I conflated reference
counting with copy-on-write. Essentially instead of defining
On Mon, 26 Dec 2011 18:25:10 +0100, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
Hello,
I've been playing with a new approach to reference counting, in
particular for the containers library.
A small prototype is at http://pastebin.com/WnSQY1Jw. The prototype
features a
At the moment I don't see how anything serious can be done with D. In the
past few weeks, while working on a _toy_ project, I've encountered several
bugs that have caused a lot of problems and wasted a lot of time. Sorry,
but it's just frustrating. it's gotten to the point where I have to rum
Hi folks,
Would anyone answer me on this please?
To clarify, in Java there is are getAndSet methods on Atomic type objects
(along with compareAndSet).
I know that in D there is the cas function (equivalent to Java's
compareAndSet); is there an equivalent D function for Java's getAndSet
On Mon, Dec 26, 2011 at 2:34 PM, Adrian Mercieca amerci...@gmail.com wrote:
Hi folks,
Would anyone answer me on this please?
To clarify, in Java there is are getAndSet methods on Atomic type objects
(along with compareAndSet).
I know that in D there is the cas function (equivalent to
On Monday, December 26, 2011 20:34:39 Adrian Mercieca wrote:
Hi folks,
Would anyone answer me on this please?
To clarify, in Java there is are getAndSet methods on Atomic type objects
(along with compareAndSet).
I know that in D there is the cas function (equivalent to Java's
On Mon, Dec 26, 2011 at 4:05 PM, Jonathan M Davis jmdavisp...@gmx.com wrote:
On Monday, December 26, 2011 20:34:39 Adrian Mercieca wrote:
Hi folks,
Would anyone answer me on this please?
To clarify, in Java there is are getAndSet methods on Atomic type objects
(along with compareAndSet).
http://d.puremagic.com/issues/show_bug.cgi?id=2442
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Platform|x86 |All
http://d.puremagic.com/issues/show_bug.cgi?id=2443
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Keywords||patch
--- Comment #2
http://d.puremagic.com/issues/show_bug.cgi?id=3382
--- Comment #3 from Kenji Hara k.hara...@gmail.com 2011-12-26 05:42:06 PST ---
Related:
- Issue 662 - Allow UFCS for basic types and enums
- Issue 6277 - Disallow short floating point literals
--
Configure issuemail:
http://d.puremagic.com/issues/show_bug.cgi?id=3382
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Keywords||patch
--- Comment #4
http://d.puremagic.com/issues/show_bug.cgi?id=6774
David Simcha dsim...@yahoo.com changed:
What|Removed |Added
CC||dsim...@yahoo.com
http://d.puremagic.com/issues/show_bug.cgi?id=7167
Summary: template function overload brings dmd internal error
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
http://d.puremagic.com/issues/show_bug.cgi?id=5559
--- Comment #1 from bearophile_h...@eml.cc 2011-12-26 10:52:27 PST ---
See also:
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.Darticle_id=153452
--
Configure issuemail:
http://d.puremagic.com/issues/show_bug.cgi?id=7001
Lars T. Kyllingstad bugzi...@kyllingen.net changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=7001
--- Comment #6 from Jonathan M Davis jmdavisp...@gmx.com 2011-12-26 14:02:45
PST ---
I believe that Posix at least uses the term regular file for normal files, and
then still uses the term file for everything. It _can_ be a bit confusing, but
http://d.puremagic.com/issues/show_bug.cgi?id=7154
Don clugd...@yahoo.com.au changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=2442
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=2443
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=6714
Don clugd...@yahoo.com.au changed:
What|Removed |Added
Keywords||rejects-valid, spec
http://d.puremagic.com/issues/show_bug.cgi?id=4413
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=6876
Andrej Mitrovic andrej.mitrov...@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
80 matches
Mail list logo