On 09/07/2010 21:14, Rory McGuire wrote:
You got yours already? That's odd.
Hum, I checked the InformIT again, search for TDPL, and there are two
books listed, the roughs cuts, and final one. That's odd, only the
final one should appear. Do you know which one you purchased, are you
sure it was
strtr st...@sp.am wrote in message news:i1ck0c$g...@digitalmars.com...
== Quote from Mike James (f...@bar.com)'s article
Patrick Byrne pby...@frontier.co.uk wrote in message
news:hvq1dr$30e...@digitalmars.com...
On 22/06/2010 10:03, Mike James wrote:
When you get the book it has an access
== Quote from Mike James (f...@bar.com)'s article
strtr st...@sp.am wrote in message news:i1ck0c$g...@digitalmars.com...
== Quote from Mike James (f...@bar.com)'s article
Patrick Byrne pby...@frontier.co.uk wrote in message
news:hvq1dr$30e...@digitalmars.com...
On 22/06/2010 10:03, Mike
strtr st...@sp.am wrote in message news:i1i0up$15p...@digitalmars.com...
== Quote from Mike James (f...@bar.com)'s article
strtr st...@sp.am wrote in message
news:i1ck0c$g...@digitalmars.com...
== Quote from Mike James (f...@bar.com)'s article
Patrick Byrne pby...@frontier.co.uk wrote in
http://www.reddit.com/r/programming/comments/cp2qj/fedora_14_to_include_llvmbased_d_compiler/
On 07/13/2010 12:57 PM, Walter Bright wrote:
http://www.reddit.com/r/programming/comments/cp2qj/fedora_14_to_include_llvmbased_d_compiler/
Mildly curious: who uses fedora around here?
== Quote from Mike James (f...@bar.com)'s article
The downladable version appears in the Tokens Downloads tab of My Safari
when I log on. Have you got that Tab?
-=mike=-
There is a Tokens Downloads in the my safari-drop-down but it directs me
to
the Favorites and Folders-tab (where TDPL is
On 13/07/2010 19:57, Walter Bright wrote:
http://www.reddit.com/r/programming/comments/cp2qj/fedora_14_to_include_llvmbased_d_compiler/
Good thing ! IMHO it would makes sense if a cool application like
*DReactor could be bundled.
*Like Tango, a very impressive and interesting library.
A+
I have jumped back onto the D2 band-wagon after a long absence, read
Andrei's book, and am having a great time cutting heaps of D code. My
increase in productivity and happiness when compared to working in C++ is
enormous.
Bug thumbs up to everyone involved with D2, Phobos and the book.
One
On Tue, 13 Jul 2010 06:38:55 +0200, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 07/12/2010 11:21 PM, Jonathan M Davis wrote:
On Monday 12 July 2010 20:48:05 Andrei Alexandrescu wrote:
I think I figured out a comfortable and all-encompassing means to
define
a simplified
Rainer Deyke rain...@eldwood.com wrote in message
news:i1gs16$1oj...@digitalmars.com...
On 7/12/2010 19:41, Nick Sabalausky wrote:
I already agreed to that part (For writing, yes...). But there are
other
uses that *do* parse, and others that do both. The point is NOT that
string
mixins
Rainer Deyke rain...@eldwood.com wrote in message
news:i1h52o$2kb...@digitalmars.com...
On 7/13/2010 01:03, Nick Sabalausky wrote:
Rainer Deyke rain...@eldwood.com wrote in message
news:i1gs16$1oj...@digitalmars.com...
The great strength of string mixins is that you can use them to add the
On 7/13/2010 01:03, Nick Sabalausky wrote:
Rainer Deyke rain...@eldwood.com wrote in message
news:i1gs16$1oj...@digitalmars.com...
The great strength of string mixins is that you can use them to add the
AST macros to D. The great weakness of string mixins is that doing so
requires a full
Graham St Jack:
How do I profile a D2 program? When I try -profile in dmd, the resultant
executable crashes with a segfault when I try to run it.
Are you able to produce a small test case of this bug?
Bye,
bearophile
ABothe:
Is there somebody who can make it possible for the GC to give
allocated memory right back??
In Python generally this doesn't happen.
Bye,
bearophile
Rainer Deyke wrote:
On 7/13/2010 01:03, Nick Sabalausky wrote:
Rainer Deyke rain...@eldwood.com wrote in message
news:i1gs16$1oj...@digitalmars.com...
The great strength of string mixins is that you can use them to add the
AST macros to D. The great weakness of string mixins is that doing so
On Mon, 12 Jul 2010 14:42:49 -0500, Andrei Alexandrescu wrote:
I'd to do some more renaming around Phobos and figure out an approach to
deprecating names that aren't longer used.
I'm thinking:
std.conv - std.conversion
Rationale: it's a seldom typed name so shortening it is just odd
On Mon, 12 Jul 2010 15:57:36 -0400, bearophile wrote:
std.concurrency/std.thread = std.concurrency
std.thread doesn't exist anymore. It was moved into druntime and is now
core.thread. (But it is still listed in the Phobos documentation menu as
std.thread, which is very confusing.)
-Lars
Andrei Alexandrescu:
T * getNext(R, E)(ref R range,
ref E store = *(cast(E*) alloca(E.sizeof))
{
Time ago I have filed bug http://d.puremagic.com/issues/show_bug.cgi?id=3822 on
alloca(), but I think this code is not hit by it.
I have recently written some C99 code and I
Don:
CTFE isn't intrinsically slow. The reason it's so slow in DMD right now
is that the treatment of CTFE variables is done in an absurdly
inefficient way.
Are those arrays managed like immutable arrays in a functional language? :-)
To implement mutable arrays with an immutable data
bearophile wrote:
Don:
CTFE isn't intrinsically slow. The reason it's so slow in DMD right now
is that the treatment of CTFE variables is done in an absurdly
inefficient way.
Are those arrays managed like immutable arrays in a functional language? :-)
*Everything* is done with
Andrei Alexandrescu seewebsiteforem...@erdani.org wrote:
I've just had an idea that is so dark and devious, I was almost afraid
to try it. But it works like a charm. Consider:
T * getNext(R, E)(ref R range,
ref E store = *(cast(E*) alloca(E.sizeof))
{
...
}
So there isn't any other method than calling C's free(); or malloc
(); ?
Shin Fujishiro rsi...@gmail.com wrote:
How about a TLS variable?
template temporary(T)
{
static T temporary;
}
E* getNext(R, E)(ref R range, ref E store = temporary!E);
Yeah, I just missed it. TLS is not usable. I had spoken carelessly...
Shin
On Mon, 12 Jul 2010 22:58:07 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 07/12/2010 04:39 PM, Steven Schveighoffer wrote:
On Mon, 12 Jul 2010 17:25:43 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 07/12/2010 02:41 PM, Steven Schveighoffer wrote:
On Mon, 12 Jul 2010 19:53:00 -0400, Nick Sabalausky a...@a.a wrote:
std.metastrings/std.traits = std.meta
I like this a *lot*.
Red flag here -- isn't the proposed keyword to replace __traits meta? If
that goes through, meta isn't a valid module name.
-Steve
On Mon, 12 Jul 2010 15:42:49 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
put(R, E) - putNext(R, E)
Rationale: conveys the notion that there is progress in the output.
Can we have E getNext(R) also for completeness :) Then an input range can
be defined similarly to
On Mon, 12 Jul 2010 09:16:58 +0300, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 07/11/2010 11:24 PM, Vladimir Panteleev wrote:
On Mon, 12 Jul 2010 00:00:46 +0300, bearophile
bearophileh...@lycos.com wrote:
A std lib function is not set in stone, later it can be improved,
On Mon, 12 Jul 2010 19:21:08 -0400, Nick Sabalausky a...@a.a wrote:
Steven Schveighoffer schvei...@yahoo.com wrote in message
news:op.vfq0aydoeav...@localhost.localdomain...
On Mon, 12 Jul 2010 16:22:28 -0400, bearophile
bearophileh...@lycos.com
wrote:
Steven Schveighoffer:
bearophile:
On Mon, 12 Jul 2010 23:48:05 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
I think I figured out a comfortable and all-encompassing means to define
a simplified interface for an input range.
Currently input ranges need to define empty, front, and popFront. That
works
On Tue, 13 Jul 2010 02:26:22 -0400, Graham St Jack
graham.stj...@internode.on.net wrote:
I have jumped back onto the D2 band-wagon after a long absence, read
Andrei's book, and am having a great time cutting heaps of D code. My
increase in productivity and happiness when compared to working
On 2010-07-13 00:38:55 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org said:
Yah, truth be told getNext won't win a prize for brevity. You need to
define both a variable and a pointer to use it:
T meh;
T * neh;
while ((neh = getNext(r, meh))) {
... process *neh ...
}
At this
On 2010-07-12 23:48:05 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org said:
T* getNext(R, T)(ref R range, ref T item);
Semantics: if the range wants to expose addresses of its elements, it
returns a pointer to the current element and also advances to the next
element. Otherwise
On Tue, 13 Jul 2010 08:54:07 -0400, Michel Fortin
michel.for...@michelf.com wrote:
On 2010-07-13 00:38:55 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org said:
Yah, truth be told getNext won't win a prize for brevity. You need to
define both a variable and a pointer to use it:
This is really like 3 messages, but I didn't want to spam the list with topics,
and maybe I'm the only one feeling this pain anyway. So first: from the
perspective of a guy who has dabbled in D1 and D2 for years, but hasn't looked
closed at the language in ~10 months, I loved TDPL. It convinced
I agree, deprecating a fundamental operator like delete should not be
taken lightly. A lot of us prefer to manage the memory manually and do
RAII for our own reasons. By all means, add clear(obj) to the
language/standard library, but both methods should always be available.
There is no valid
On 07/13/2010 05:09 AM, Shin Fujishiro wrote:
Andrei Alexandrescuseewebsiteforem...@erdani.org wrote:
I've just had an idea that is so dark and devious, I was almost afraid
to try it. But it works like a charm. Consider:
T * getNext(R, E)(ref R range,
ref E store =
On 07/13/2010 06:48 AM, Vladimir Panteleev wrote:
On Mon, 12 Jul 2010 09:16:58 +0300, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 07/11/2010 11:24 PM, Vladimir Panteleev wrote:
On Mon, 12 Jul 2010 00:00:46 +0300, bearophile
bearophileh...@lycos.com wrote:
A std lib function
On 07/13/2010 06:18 AM, Steven Schveighoffer wrote:
On Tue, 13 Jul 2010 01:52:52 -0400, Philippe Sigaud
philippe.sig...@gmail.com wrote:
You call r(e) and r([e])) 'delegates'. Are you just using it as a generic
term, or does that mean using any callable (struct with opCall) is not a
good idea
On 07/13/2010 06:15 AM, Steven Schveighoffer wrote:
On Mon, 12 Jul 2010 22:58:07 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
Actually a char[] is not a valid output range. Overwriting
variable-length codes with other variable-length codes might mess up
the string.
Hm... I
On 07/13/2010 06:23 AM, Steven Schveighoffer wrote:
On Mon, 12 Jul 2010 15:42:49 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
put(R, E) - putNext(R, E)
Rationale: conveys the notion that there is progress in the output.
Can we have E getNext(R) also for completeness :)
On 07/13/2010 09:45 AM, Francisco Almeida wrote:
I agree, deprecating a fundamental operator like delete should not be
taken lightly.
I agree deprecation shouldn't be taken lightly, but delete is not a
fundamental operator - it could and should be defined at most as a
simple function.
A
On 07/13/2010 07:39 AM, Steven Schveighoffer wrote:
On Mon, 12 Jul 2010 23:48:05 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
I think I figured out a comfortable and all-encompassing means to
define a simplified interface for an input range.
Currently input ranges need to
On 07/13/2010 01:26 AM, Graham St Jack wrote:
I have jumped back onto the D2 band-wagon after a long absence, read
Andrei's book, and am having a great time cutting heaps of D code. My
increase in productivity and happiness when compared to working in C++ is
enormous.
Bug thumbs up to everyone
On 07/13/2010 10:34 AM, Andrei Alexandrescu wrote:
On 07/13/2010 01:26 AM, Graham St Jack wrote:
I have jumped back onto the D2 band-wagon after a long absence, read
Andrei's book, and am having a great time cutting heaps of D code. My
increase in productivity and happiness when compared to
On Tue, 13 Jul 2010 11:35:55 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 07/13/2010 10:34 AM, Andrei Alexandrescu wrote:
On 07/13/2010 01:26 AM, Graham St Jack wrote:
I have jumped back onto the D2 band-wagon after a long absence, read
Andrei's book, and am having a
On 13.07.2010 12:28, ABothe wrote:
So there isn't any other method than calling C's free(); or malloc
(); ?
That's how it is.
Mon, 12 Jul 2010 14:57:35 +, pillsy wrote:
== Quote from Steven Schveighoffer (schvei...@yahoo.com)'s article
On Mon, 12 Jul 2010 09:33:34 -0400, Ellery Newcomer
ellery-newco...@utulsa.edu wrote:
[...]
I think the big thing about macros is you don't have to worry about
lexing and
On 13.07.2010 06:38, Andrei Alexandrescu wrote:
Yah, truth be told getNext won't win a prize for brevity. You need to
define both a variable and a pointer to use it:
T meh;
T * neh;
while ((neh = getNext(r, meh))) {
... process *neh ...
}
One way to make this slightly easier would
Mon, 12 Jul 2010 16:53:12 -0400, Steven Schveighoffer wrote:
Brainfuck is basically a toy example of a language. Nobody uses it for
serious work.
Having used php for the last year in my job, there is one thing I
appreciate: with a language that is focused on string manipulation, it
is so
On 07/13/2010 10:43 AM, retard wrote:
Yes, this would be possible if the dmd compiler didn't crash, leak memory
etc. The quality is so shitty that I'd say that implementing a compile
time AST parser for D 2 is almost impossible.
Well it should be said that the quality of the compiler has
On 07/13/2010 10:48 AM, retard wrote:
Mon, 12 Jul 2010 16:53:12 -0400, Steven Schveighoffer wrote:
Brainfuck is basically a toy example of a language. Nobody uses it for
serious work.
Having used php for the last year in my job, there is one thing I
appreciate: with a language that is
On 07/13/2010 11:09 AM, Andrei Alexandrescu wrote:
On 07/13/2010 10:48 AM, retard wrote:
Php is basically a toy example of a language. Nobody uses it for serious
work.
Facebook.
Andrei
Wait, which side are you arguing for?
Andrei Alexandrescu Wrote:
std.stdio - std.io
Rationale: stuttering sucks.
Absolutely.
BidirectionalRange - DoublyEndedRange
Rationale: bidirectional suggests something that can move *in* either
direction, whereas in fact the range can be shortened from either end.
It's an
Andrei Alexandrescu seewebsiteforem...@erdani.org wrote:
There's the classic problem of reusing the same temporary. Consider:
Range r1, r2;
ElementType!Range * p1, p2;
while ((p1 = getNext(r1)) (p2 = getNext(r2)))
{
... oops ...
}
You need one temporary for each static occurrence
On 07/13/2010 11:30 AM, eris wrote:
Andrei Alexandrescu Wrote:
std.stdio - std.io
Rationale: stuttering sucks.
Absolutely.
BidirectionalRange - DoublyEndedRange
Rationale: bidirectional suggests something that can move *in*
either direction, whereas in fact the range can be shortened
Tue, 13 Jul 2010 04:58:04 -0400, bearophile wrote:
Don:
CTFE isn't intrinsically slow. The reason it's so slow in DMD right now
is that the treatment of CTFE variables is done in an absurdly
inefficient way.
Are those arrays managed like immutable arrays in a functional language?
:-) To
On Tue, 13 Jul 2010 11:48:30 -0400, retard r...@tard.com.invalid wrote:
Mon, 12 Jul 2010 16:53:12 -0400, Steven Schveighoffer wrote:
Brainfuck is basically a toy example of a language. Nobody uses it for
serious work.
Having used php for the last year in my job, there is one thing I
http://www.reddit.com/r/programming/comments/cp2qj/fedora_14_to_include_llvmbased_d_compiler/
Andrei
Tue, 13 Jul 2010 11:09:07 -0500, Andrei Alexandrescu wrote:
On 07/13/2010 10:48 AM, retard wrote:
Mon, 12 Jul 2010 16:53:12 -0400, Steven Schveighoffer wrote:
Brainfuck is basically a toy example of a language. Nobody uses it
for serious work.
Having used php for the last year in my job,
On Jul 14, 10 00:30, eris wrote:
Andrei Alexandrescu Wrote:
std.stdio - std.io
Rationale: stuttering sucks.
Absolutely.
BidirectionalRange - DoublyEndedRange
Rationale: bidirectional suggests something that can move *in* either
direction, whereas in fact the range can be shortened
Don nos...@nospam.com wrote in message
news:i1h6br$2ng...@digitalmars.com...
Rainer Deyke wrote:
On 7/13/2010 01:03, Nick Sabalausky wrote:
Rainer Deyke rain...@eldwood.com wrote in message
news:i1gs16$1oj...@digitalmars.com...
The great strength of string mixins is that you can use them to
Nick Sabalausky a...@a.a wrote in message
news:i1i8o8$1kb...@digitalmars.com...
Don nos...@nospam.com wrote in message
news:i1h6br$2ng...@digitalmars.com...
Rainer Deyke wrote:
On 7/13/2010 01:03, Nick Sabalausky wrote:
Rainer Deyke rain...@eldwood.com wrote in message
Steven Schveighoffer schvei...@yahoo.com wrote in message
news:op.vfr7dti0eav...@localhost.localdomain...
Pulling apart an expression and reassmbling it can solve some problems,
but the majority of the reason to need macros is to generate code, not to
read it and rewrite it.
I can't
Andrei Alexandrescu seewebsiteforem...@erdani.org wrote in message
news:i1i332$19j...@digitalmars.com...
On 07/13/2010 10:48 AM, retard wrote:
Mon, 12 Jul 2010 16:53:12 -0400, Steven Schveighoffer wrote:
Brainfuck is basically a toy example of a language. Nobody uses it for
serious work.
ABothe, el 13 de julio a las 07:50 me escribiste:
First, thanks for the response!
When executing the program at your own, look at the task
manager... It simply doesn't do it!
Is there somebody who can make it possible for the GC to give
allocated memory right back??
Calling gc.minimize()
retard r...@tard.com.invalid wrote in message
news:i1i1se$or...@digitalmars.com...
Php is basically a toy example of a language. Nobody uses it for serious
work. You just think your work is serious, but it isn't. Php shows what
the world would look like if it was created by an intelligent
On Tue, 13 Jul 2010 18:30:26 +0300, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
I agree deprecation shouldn't be taken lightly, but delete is not a
fundamental operator - it could and should be defined at most as a
simple function.
delete is the antipod of new. With this
ABothe i...@asdf.com wrote in message
news:i1hf3h$7s...@digitalmars.com...
So there isn't any other method than calling C's free(); or malloc
(); ?
GC.minimize() should do it:
http://www.digitalmars.com/d/2.0/phobos/std_gc.html
If it doesn't, then there's probably something holding on a
Nick Sabalausky a...@a.a wrote in message
news:i1iaan$1nb...@digitalmars.com...
ABothe i...@asdf.com wrote in message
news:i1hf3h$7s...@digitalmars.com...
So there isn't any other method than calling C's free(); or malloc
(); ?
GC.minimize() should do it:
On Tue, 13 Jul 2010 14:08:15 -0400, Nick Sabalausky a...@a.a wrote:
retard r...@tard.com.invalid wrote in message
news:i1i1se$or...@digitalmars.com...
Php is basically a toy example of a language. Nobody uses it for
serious
work. You just think your work is serious, but it isn't. Php
eris jvbur...@gmail.com wrote in message
news:i1i4bs$1c0...@digitalmars.com...
It's an improvement, but I believe the proper English prefix for something
that is doubly-reflective in that sense is Duplex. It's also easier and
shorter to pronounce. Say it with me now:
DuplexRange
I'm a
On 07/13/2010 01:00 PM, Nick Sabalausky wrote:
Andrei Alexandrescuseewebsiteforem...@erdani.org wrote in message
news:i1i332$19j...@digitalmars.com...
On 07/13/2010 10:48 AM, retard wrote:
Mon, 12 Jul 2010 16:53:12 -0400, Steven Schveighoffer wrote:
Brainfuck is basically a toy example of a
On 07/13/2010 01:12 PM, Vladimir Panteleev wrote:
On Tue, 13 Jul 2010 18:30:26 +0300, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
I agree deprecation shouldn't be taken lightly, but delete is not a
fundamental operator - it could and should be defined at most as a
simple function.
Steven Schveighoffer Wrote:
On Tue, 13 Jul 2010 11:35:55 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 07/13/2010 10:34 AM, Andrei Alexandrescu wrote:
On 07/13/2010 01:26 AM, Graham St Jack wrote:
I have jumped back onto the D2 band-wagon after a long absence,
I've noticed since installing opera 10.60, D's bugzilla seems to not hide
any html and the javascript is all broken. Does anyone else have this
problem? How do you fix it?
-Steve
Andrei Alexandrescu seewebsiteforem...@erdani.org wrote in message
news:i1ibci$1om...@digitalmars.com...
On 07/13/2010 01:00 PM, Nick Sabalausky wrote:
Nothing personal, but I wouldn't consider any of those social networking
sites to be remotely serious.
Me neither until I started working
On Tue, 13 Jul 2010 21:36:02 +0300, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
Not quite. New is different because it is a primitive - it can't be
implemented as a function (well it could if it user placement new, but
we're back to square one). In contrast, delete already
Steven Schveighoffer schvei...@yahoo.com wrote in message
news:op.vfsn2hvweav...@localhost.localdomain...
Just for fun, how would you define a serious language?
1. Major major websites use it (facebook is one example, there are many
more).
2. There are lots of books about it.
3. people
Nick Sabalausky Wrote:
eris jvbur...@gmail.com wrote in message
news:i1i4bs$1c0...@digitalmars.com...
It's an improvement, but I believe the proper English prefix for something
that is doubly-reflective in that sense is Duplex. It's also easier and
shorter to pronounce. Say it with
Graham St Jack Wrote:
Specifically:
Stack Trace:
I can't get the D2 stack-trace to work properly. All I get is something
like this, which isn't helpful:
Segmentation fault
The code I used to generate this was:
import std.stdio;
import std.file;
void foo(File file)
On Tue, 13 Jul 2010 21:56:57 +0300, Steven Schveighoffer
schvei...@yahoo.com wrote:
I've noticed since installing opera 10.60, D's bugzilla seems to not
hide any html and the javascript is all broken. Does anyone else have
this problem? How do you fix it?
I've noticed some problems
Andrei Alexandrescu:
But manual deletion has no business in the garbage collected
heap. That currently druntime provides it is an accident caused by the
current implementation; most GC's cannot provide efficient manual
reclamation. And they shouldn't anyway.
The structure of memory blocks
On Tue, 13 Jul 2010 15:27:39 -0400, Vladimir Panteleev
vladi...@thecybershadow.net wrote:
On Tue, 13 Jul 2010 21:56:57 +0300, Steven Schveighoffer
schvei...@yahoo.com wrote:
I've noticed since installing opera 10.60, D's bugzilla seems to not
hide any html and the javascript is all
Maybe it is a good idea to perform a side-by-side comparison of the
language constructs between Java, C# and D similar to:
http://www.harding.edu/fmccown/java_csharp_comparison.html
Showing the elegance of D is a way to promote it...
Graham St Jack, el 13 de julio a las 06:26 me escribiste:
GDB:
What is the status of D support in GDB? The last post I saw was back in
April. It is currently hard work to debug with gdb when it doesn't
understand D name mangling.
The patch was accepted a while ago and the next GDB
On 07/13/2010 02:00 PM, Nick Sabalausky wrote:
Steven Schveighofferschvei...@yahoo.com wrote in message
news:op.vfsn2hvweav...@localhost.localdomain...
Just for fun, how would you define a serious language?
1. Major major websites use it (facebook is one example, there are many
more).
2.
On 07/13/2010 02:42 PM, bearophile wrote:
Andrei Alexandrescu:
But manual deletion has no business in the garbage collected
heap. That currently druntime provides it is an accident caused by the
current implementation; most GC's cannot provide efficient manual
reclamation. And they shouldn't
On 07/13/2010 01:59 PM, Vladimir Panteleev wrote:
On Tue, 13 Jul 2010 21:36:02 +0300, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
Not quite. New is different because it is a primitive - it can't be
implemented as a function (well it could if it user placement new, but
we're back
On 07/13/2010 03:16 PM, Andrei Alexandrescu wrote:
On 07/13/2010 01:59 PM, Vladimir Panteleev wrote:
On Tue, 13 Jul 2010 21:36:02 +0300, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
Not quite. New is different because it is a primitive - it can't be
implemented as a function (well
Andrei Alexandrescu:
The problem is that many of today's GC are structured in ways that make
efficient reclamation of individual block extremely inefficient.
If the GC is conservative it can think some reference to a memory block exists,
despite it's a false reference, so it can delay even
FeepingCreature:
On 13.07.2010 12:28, ABothe wrote:
So there isn't any other method than calling C's free(); or malloc
(); ?
That's how it is.
But you can build some abstraction by yourself, for example inside a struct you
can keep the pointer to a memory block in the C heap, and in the
On 07/13/2010 03:36 PM, bearophile wrote:
FeepingCreature:
On 13.07.2010 12:28, ABothe wrote:
So there isn't any other method than calling C's free(); or malloc
(); ?
That's how it is.
But you can build some abstraction by yourself, for example inside a struct you can keep
the pointer to
Does it really add so much complexity to the compiler that it's worth
removing?
Andrei Alexandrescu seewebsiteforem...@erdani.org wrote in message
news:i1ihke$253...@digitalmars.com...
On 07/13/2010 02:00 PM, Nick Sabalausky wrote:
Steven Schveighofferschvei...@yahoo.com wrote in message
news:op.vfsn2hvweav...@localhost.localdomain...
Just for fun, how would you define
On Tue, 13 Jul 2010 22:42:05 +0300, bearophile bearophileh...@lycos.com
wrote:
So in SafeD the delete operation can be replaced by something safer, a
way to tell the GC to deallocate just a specific object, walking the
graph and setting to null all the inbound pointers (this is a slower
On Tue, 13 Jul 2010 23:16:30 +0300, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
Not quite. New is different because it is a primitive - it can't be
implemented as a function (well it could if it user placement new, but
we're back to square one). In contrast, delete already knows
Vladimir Panteleev:
However, D allows overloading new/delete for custom allocators[1] - this
can be used for a cleaner way to allocate objects in unmanaged memory. I
don't see why this use of the delete keyword should be deprecated.
[1]:
On Wed, 14 Jul 2010 00:17:18 +0300, bearophile bearophileh...@lycos.com
wrote:
Vladimir Panteleev:
However, D allows overloading new/delete for custom allocators[1] - this
can be used for a cleaner way to allocate objects in unmanaged memory. I
don't see why this use of the delete keyword
Andrei Alexandrescu wrote:
http://www.reddit.com/r/programming/comments/cp2qj/fedora_14_to_include_llvmbased_d_compiler/
Andrei
D1 presumably
1 - 100 of 158 matches
Mail list logo