http://www.informit.com/articles/article.aspx?p=1622265
Andrei
On 08/18/2010 05:13 AM, Andrei Alexandrescu wrote:
http://www.informit.com/articles/article.aspx?p=1622265
Andrei
Now on reddit:
http://www.reddit.com/r/programming/comments/d2j8n/d_programming_language_interview_with_andrei/
Thanks davebrk!
Andrei
On Wed, 18 Aug 2010 13:13:25 +0300, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
http://www.informit.com/articles/article.aspx?p=1622265
Thanks, that was an interesting read.
It's possible that I'm missing something, but I think that C++'s default
constructors +
On 08/18/2010 06:46 AM, Vladimir Panteleev wrote:
On Wed, 18 Aug 2010 13:13:25 +0300, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
http://www.informit.com/articles/article.aspx?p=1622265
Thanks, that was an interesting read.
It's possible that I'm missing something, but I think
Andrei Alexandrescu:
http://www.reddit.com/r/programming/comments/d2j8n/d_programming_language_interview_with_andrei/
I will need time to digest this interesting second part of your interview, you
say many complex things.
In the meantime that Reddit thread is one of the worst I've seen on that
bearophile wrote:
Currently in the D2 GC there is no notion of pinned/unpinned class instances,
but eventually an attribute as @pinned may be added to D3, plus its related
semantics. It adds complexity to the language and it needs to interact with
the GC, so it will get useful as the D GC
On 2010-08-18 06:13:25 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org said:
http://www.informit.com/articles/article.aspx?p=1622265
Andrei
Quoting:
The most difficult scenario here is a class that has a struct as a
member. If the struct has a destructor, it will be run
On Wednesday, August 18, 2010 09:59:27 bearophile wrote:
Andrei Alexandrescu:
http://www.reddit.com/r/programming/comments/d2j8n/d_programming_language
_interview_with_andrei/
I will need time to digest this interesting second part of your interview,
you say many complex things.
In the
Walter Bright, el 18 de agosto a las 10:08 me escribiste:
bearophile wrote:
Currently in the D2 GC there is no notion of pinned/unpinned class instances,
but eventually an attribute as @pinned may be added to D3, plus its related
semantics. It adds complexity to the language and it needs to
Leandro Lucarella wrote:
Walter Bright, el 18 de agosto a las 10:08 me escribiste:
bearophile wrote:
Currently in the D2 GC there is no notion of pinned/unpinned class instances,
but eventually an attribute as @pinned may be added to D3, plus its related
semantics. It adds complexity to the
On 08/18/2010 11:59 AM, bearophile wrote:
Andrei Alexandrescu:
http://www.reddit.com/r/programming/comments/d2j8n/d_programming_language_interview_with_andrei/
I will need time to digest this interesting second part of your
interview, you say many complex things.
In the meantime that
On 08/11/2010 02:15 AM, Walter Bright wrote:
This is probably the last FreeBSD 7 release for D1. The next will be for
FreeBSD 8!
http://www.digitalmars.com/d/1.0/changelog.html
http://ftp.digitalmars.com/dmd.1.063.zip
http://www.digitalmars.com/d/2.0/changelog.html
Walter Bright:
There is no need for a pin attribute, the gc can determine if a class needs
pinning or not.
The same is probably true for pure functions too, the compiler can determine
what functions are pure and what are not pure.
But the purpose of a @pinned is that:
1) The default becomes
bearophile wrote:
Walter Bright:
There is no need for a pin attribute, the gc can determine if a class needs
pinning or not.
The same is probably true for pure functions too, the compiler can determine
what functions are pure and what are not pure.
But the purpose of a @pinned is that: 1)
Walter Bright:
The other problem with a pinned/notpinned object is the object itself cannot
control who or how someone is pointing to it.
The type system may tell apart three kinds of pointers/references:
1) hand-managed pointers, to GC memory or C heap memory;
2) GC-managed pointers to pinned
bearophile wrote:
Walter Bright:
The other problem with a pinned/notpinned object is the object itself
cannot control who or how someone is pointing to it.
The type system may tell apart three kinds of pointers/references: 1)
hand-managed pointers, to GC memory or C heap memory; 2) GC-managed
Walter Bright:
Microsoft's managed C++ on .net comes with multiple pointer types - managed
and
unmanaged pointers - as far as I know, this was a technical success yet a
massive failure with users.
How do you define failure? Maybe for D2 multiple pointer types are a failure as
you say, but
bearophile wrote:
Walter Bright:
Microsoft's managed C++ on .net comes with multiple pointer types - managed
and unmanaged pointers - as far as I know, this was a technical success yet
a massive failure with users.
How do you define failure?
Nobody wanted to use it.
Maybe for D2 multiple
Walter Bright newshou...@digitalmars.com wrote in message
news:i4hvjh$91...@digitalmars.com...
Being forced to use something doesn't make that thing a success.
Unfortunately, I can think of a lot of counterexamples (any monopoly or
oligopoly, for instance). But I agree in spirit :)
On 17/08/10 02:49, Andrei Alexandrescu wrote:
bearophile wrote:
This post is about this enhancement request of mine that recently
David Simcha has closed as wontfix:
http://d.puremagic.com/issues/show_bug.cgi?id=4165
[snip]
Phobos functions are meant as the most simpler bricks, that you may
Nick Sabalausky a...@a.a wrote in message
news:i4ev6m$1bp...@digitalmars.com...
Nick Sabalausky a...@a.a wrote in message
news:i4et66$141...@digitalmars.com...
Andrei Alexandrescu seewebsiteforem...@erdani.org wrote in message
news:i4emnt$bc...@digitalmars.com...
I saw the q, and was
On 2010-08-17 19:18, Walter Bright wrote:
Jacob Carlborg wrote:
Please build the Mac version on Mac OS X 10.5 if possible otherwise it
will only run on Mac OS X 10.6. This should really be fixed in possible.
10.6 is over a year old, why not upgrade?
I just haven't got around and do it on
On 2010-08-17 19:35, lurker wrote:
Walter Bright Wrote:
Jacob Carlborg wrote:
Please build the Mac version on Mac OS X 10.5 if possible otherwise it
will only run on Mac OS X 10.6. This should really be fixed in possible.
10.6 is over a year old, why not upgrade?
It costs money - money
On 2010-08-17 21:18, Walter Bright wrote:
Nick Sabalausky wrote:
Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message
news:mailman.343.1282068838.13841.digitalmar...@puremagic.com...
But he's a Mac user! :p
Heh, that was exactly my thought ;) I'm not a mac user
(nearly-immediate
On 2010-08-17 21:54, Walter Bright wrote:
Paul Dufresne wrote:
I downloaded htod.zip and found there is only htod.exe inside.
Any version for Linux?
No. The problem is it is built out of the DM C compiler, which does not
parse gcc extensions found in Linux.
How about the rest of the
Peter Alexander wrote:
On 7/08/10 3:06 PM, bearophile wrote:
Peter Alexander:
(I just Googled for quicksort pseudocode and sure enough, all of the
top 10 entries that actually contained code defined a partition function
that does what std.algorithm.partition does).
Yes, it's named
Walter Bright wrote:
Paul Dufresne wrote:
I downloaded htod.zip and found there is only htod.exe inside.
Any version for Linux?
No. The problem is it is built out of the DM C compiler, which does not
parse gcc extensions found in Linux.
But if the headers the user wants to convert are
On 08/18/2010 05:44 PM, Stewart Gordon wrote:
Walter Bright wrote:
Paul Dufresne wrote:
I downloaded htod.zip and found there is only htod.exe inside.
Any version for Linux?
No. The problem is it is built out of the DM C compiler, which does
not parse gcc extensions found in Linux.
But if
Jacob Carlborg wrote:
On 2010-08-17 21:54, Walter Bright wrote:
Paul Dufresne wrote:
I downloaded htod.zip and found there is only htod.exe inside.
Any version for Linux?
No. The problem is it is built out of the DM C compiler, which does not
parse gcc extensions found in Linux.
How about
Walter Bright wrote:
Jacob Carlborg wrote:
On 2010-08-17 21:54, Walter Bright wrote:
snip
No. The problem is it is built out of the DM C compiler, which does not
parse gcc extensions found in Linux.
Cross-platform compatibility is a separate issue from compatibility with
vendor-specific
== Quote from Stewart Gordon (smjg_1...@yahoo.com)'s article
Walter Bright wrote:
Jacob Carlborg wrote:
On 2010-08-17 21:54, Walter Bright wrote:
snip
No. The problem is it is built out of the DM C compiler, which does not
parse gcc extensions found in Linux.
Cross-platform
Can anyone tell me the status of the DMD 64bit compiler? I'm going to be working
on a project in the next month that will involve 18,000 x 18,000 double
matrices. 32bit will only allow me to work with 1 at a time and I need to be
able to handle minimum of 2 at a time. I have thought of using
Jonathan Crapuchettes Wrote:
Can anyone tell me the status of the DMD 64bit compiler? I'm going to be
working
on a project in the next month that will involve 18,000 x 18,000 double
matrices. 32bit will only allow me to work with 1 at a time and I need to be
able to handle minimum of 2
On Wednesday, August 18, 2010 14:29:04 Jonathan Crapuchettes wrote:
Can anyone tell me the status of the DMD 64bit compiler? I'm going to be
working on a project in the next month that will involve 18,000 x 18,000
double matrices. 32bit will only allow me to work with 1 at a time and I
need to
== Quote from Jonathan Crapuchettes (jcrapuchet...@gmail.com)'s article
Can anyone tell me the status of the DMD 64bit compiler? I'm going to be
working
on a project in the next month that will involve 18,000 x 18,000 double
matrices. 32bit will only allow me to work with 1 at a time and I
dsimcha wrote:
snip
Well, if we don't care about GNU extensions, then I'll ask again, what's wrong
with Wine? I'm not saying it wouldn't be nice to have a Linux port of htod, but
if Wine provides an easy workaround, I think it should be a very low priority.
Some users may object to installing
http://www.drdobbs.com/blog/archives/2010/08/c_compilation_s.html
I'll be doing a followup on why D compiles fast.
Very right, and even more I might add a thing : the STL itself is just HUGE;
and unless you live in a shell, you're going to use some library; that some
library in all likeliness will include the STL directly or indirectly; and each
and everyone of your files end up building the entire STL
On 19/08/10 10:35, Walter Bright wrote:
http://www.drdobbs.com/blog/archives/2010/08/c_compilation_s.html
I'll be doing a followup on why D compiles fast.
While I am not a compiler writer, I do have a fairly good understanding
of compiler mechanics.
I think the length and depth of your
On Wednesday, August 18, 2010 14:34:42 Michael Parrott wrote:
Jonathan Crapuchettes Wrote:
Can anyone tell me the status of the DMD 64bit compiler? I'm going to be
working on a project in the next month that will involve 18,000 x 18,000
double matrices. 32bit will only allow me to work with
Walter Bright:
http://www.drdobbs.com/blog/archives/2010/08/c_compilation_s.html
I'll be doing a followup on why D compiles fast.
Thank you, the article is nice and I didn't know most of the things it contains.
the compiler is doomed to uselessly reprocess them when one file is #include'd
Here's something from TDPL, page 292:
string process(string input) { return input; };
string s1 = blah;
string s2 = process(s1);
assert(s1 == blah); // never fails
I've added the return in process(), it wasn't there. Andrei states that it's
impossible for s2 to be changed after the
On Wednesday, August 18, 2010 19:11:35 Andrej Mitrovic wrote:
It's just nitpicking, I know. And I'm sure Andrei was specifically
documenting only that first example. But I do think it was worth
mentioning that immutability on individual elements isn't a safe bet
unless you're sure the function
I've been hacking in Phobos and parallelfuture and I've come to the conclusion
that having typeof(c) in the expression foreach(c; string.init) not be a dchar
is simply ridiculous. I don't care how much existing code gets broken, this
needs to be fixed. Otherwise, all generic code will have to
On Wednesday 18 August 2010 19:37:04 dsimcha wrote:
I've been hacking in Phobos and parallelfuture and I've come to the
conclusion that having typeof(c) in the expression foreach(c; string.init)
not be a dchar is simply ridiculous. I don't care how much existing code
gets broken, this needs
On 8/18/2010 20:37, dsimcha wrote:
I've been hacking in Phobos and parallelfuture and I've come to the conclusion
that having typeof(c) in the expression foreach(c; string.init) not be a dchar
is simply ridiculous.
I have long ago come to the opposite conclusion. An array of 'char'
should act
On 8/18/2010 21:12, Jonathan M Davis wrote:
The one thing about it that bugs me is that it means
that foreach acts differently with chars and wchars then it does with
everything
else, but really, that's a _lot_ less of an issue than the problems that you
get
with generic programming
Andrej Mitrovic Wrote:
I agree that in this case s1 and s2 will remain the same. But this has to do
*not just* with immutability, but with the fact that s1 is passed by value. I
think that should be mentioned here.
In the first example a string reference is passed by value.
In the second
F. Almeida wrote:
It is an excellent feature of D2 that one can do
double a[];
double b[];
double c[];
//...
c = a[] + 2.0*b[];
But this is still limited, as we cannot include function calls in
these operations.
What if the compiler was able to introduce them in the assignment
loop,
Stanislav Blinov Wrote:
Hello,
I'm receiving strange results with reading stdin on Windows 7. Consider
this code:
module test;
import std.stdio;
void main(string[] args)
{
foreach (int i, string line; lines(stdin))
{
write(line);
}
Steven Schveighoffer schvei...@yahoo.com wrote in message
news:op.vhl46mdneav...@localhost.localdomain...
Changes are afoot to std.process, we recently got a blocker fixed (not yet
in svn, but someone submitted a correct patch)
Issue #?
Hi. I'm trying to replicate in D my Go demo app which basically
draws mandelbrot fractal using multiple goroutines. In Go it's
fairly easy to communicate between threads, because the memory model
is C like. D 2.0 on the other hand has this thing TLS by default.
And I saw simple examples of
On Wednesday, August 18, 2010 13:48:08 nsf wrote:
Hi. I'm trying to replicate in D my Go demo app which basically
draws mandelbrot fractal using multiple goroutines. In Go it's
fairly easy to communicate between threads, because the memory model
is C like. D 2.0 on the other hand has this
On Wed, 2010-08-18 at 20:48 +, nsf wrote:
Hi. I'm trying to replicate in D my Go demo app which basically
draws mandelbrot fractal using multiple goroutines. In Go it's
fairly easy to communicate between threads, because the memory model
is C like. D 2.0 on the other hand has this thing
http://d.puremagic.com/issues/show_bug.cgi?id=4653
--- Comment #5 from Jonathan M Davis jmdavisp...@gmail.com 2010-08-17
23:08:49 PDT ---
Created an attachment (id=723)
Some useful unit testing functions.
Okay. I'm attaching some functions that I've already done which seem quite
useful -
http://d.puremagic.com/issues/show_bug.cgi?id=4672
Summary: rdmd fails when -I is needed
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component:
http://d.puremagic.com/issues/show_bug.cgi?id=4672
--- Comment #1 from Nick Sabalausky cbkbbej...@mailinator.com 2010-08-18
01:57:19 PDT ---
Created an attachment (id=724)
Modified rdmd
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving
http://d.puremagic.com/issues/show_bug.cgi?id=4673
Summary: Bug in std.string (isNumeric)
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component:
http://d.puremagic.com/issues/show_bug.cgi?id=4661
--- Comment #7 from bearophile_h...@eml.cc 2010-08-18 03:23:38 PDT ---
Given the way templates work in D, the original code can't work, but I'd like
to receive the error line number here.
This problem is a good example to show the difference
http://d.puremagic.com/issues/show_bug.cgi?id=4673
bearophile_h...@eml.cc changed:
What|Removed |Added
CC||bearophile_h...@eml.cc
---
http://d.puremagic.com/issues/show_bug.cgi?id=4673
--- Comment #2 from Petit Vincent petitv.i...@gmail.com 2010-08-18 12:51:37
CEST ---
(In reply to comment #1)
This reduced case shows that parse() doesn't accept F or L, so I don't see
the problem yet:
import std.conv;
void main() {
http://d.puremagic.com/issues/show_bug.cgi?id=4673
--- Comment #3 from bearophile_h...@eml.cc 2010-08-18 04:07:13 PDT ---
You are right, my reduced version was useless, this shows the problem:
import std.string: isNumeric;
void main() {
assert(isNumeric(F));
assert(isNumeric(L));
http://d.puremagic.com/issues/show_bug.cgi?id=4674
Summary: Change std.typecons.alignForSize's signature to
(string[] names...)
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity:
http://d.puremagic.com/issues/show_bug.cgi?id=3220
Don clugd...@yahoo.com.au changed:
What|Removed |Added
Keywords||ice-on-invalid-code
http://d.puremagic.com/issues/show_bug.cgi?id=4652
Don clugd...@yahoo.com.au changed:
What|Removed |Added
Keywords||patch
--- Comment #4 from
http://d.puremagic.com/issues/show_bug.cgi?id=4532
--- Comment #2 from Stewart Gordon s...@iname.com 2010-08-18 08:47:04 PDT ---
I've just looked at the code and seem to have figured out what's going on.
Traditionally, std.format.doFormat is the function that underlies all the
writef*
http://d.puremagic.com/issues/show_bug.cgi?id=4667
Stewart Gordon s...@iname.com changed:
What|Removed |Added
CC||s...@iname.com
---
http://d.puremagic.com/issues/show_bug.cgi?id=4673
kenn...@gmail.com changed:
What|Removed |Added
CC||kenn...@gmail.com
--- Comment #4
http://d.puremagic.com/issues/show_bug.cgi?id=4675
Summary: Eponymous Template should hide internal names
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
http://d.puremagic.com/issues/show_bug.cgi?id=4346
David Simcha dsim...@yahoo.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=4126
David Simcha dsim...@yahoo.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=4676
Summary: Overload resolution rejects valid code when mixing
variadics, non-variadics
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
http://d.puremagic.com/issues/show_bug.cgi?id=4676
Don clugd...@yahoo.com.au changed:
What|Removed |Added
CC||clugd...@yahoo.com.au
---
73 matches
Mail list logo