Re: Interview with InformIT part 2/3

2010-08-18 Thread Nick Sabalausky
"Walter Bright" 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 :)

Re: Interview with InformIT part 2/3

2010-08-18 Thread Walter Bright
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

Re: Interview with InformIT part 2/3

2010-08-18 Thread bearophile
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,

Re: Interview with InformIT part 2/3

2010-08-18 Thread Walter Bright
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

Re: Interview with InformIT part 2/3

2010-08-18 Thread bearophile
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 pinne

Re: Interview with InformIT part 2/3

2010-08-18 Thread Walter Bright
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) T

Re: Interview with InformIT part 2/3

2010-08-18 Thread bearophile
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 become

Re: Interview with InformIT part 2/3

2010-08-18 Thread Nick Sabalausky
"bearophile" wrote in message news:i4h3hf$31e...@digitalmars.com... > > In the meantime that Reddit thread is one of the worst I've seen on that > usually interesting site. That seemed to mainly just be that one guy (the one that kept making a bunch of absurd and self-contradictory statements)

Re: Interview with InformIT part 2/3

2010-08-18 Thread Andrej Mitrovic
Andrei Alexandrescu Wrote: > http://www.informit.com/articles/article.aspx?p=1622265 > > Andrei I see you've mentioned the library function move() in the interview. I might have found an issue with move(), unless I missunderstood how it works. See my post here: http://news.gmane.org/gmane.com

Re: dmd 1.063 and 2.048 release

2010-08-18 Thread Ellery Newcomer
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 http://ftp.digitalmars.com/d

Re: Interview with InformIT part 2/3

2010-08-18 Thread Andrei Alexandrescu
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 Reddi

Re: Interview with InformIT part 2/3

2010-08-18 Thread Walter Bright
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 lan

Re: Interview with InformIT part 2/3

2010-08-18 Thread Leandro Lucarella
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

Re: Interview with InformIT part 2/3

2010-08-18 Thread Jonathan M Davis
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. >

Re: Interview with InformIT part 2/3

2010-08-18 Thread Michel Fortin
On 2010-08-18 06:13:25 -0400, Andrei Alexandrescu 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 non-deterministically—or possibly n

Re: Interview with InformIT part 2/3

2010-08-18 Thread Walter Bright
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 becomes

Re: Interview with InformIT part 2/3

2010-08-18 Thread bearophile
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

Re: Interview with InformIT part 2/3

2010-08-18 Thread Andrei Alexandrescu
On 08/18/2010 06:46 AM, Vladimir Panteleev wrote: On Wed, 18 Aug 2010 13:13:25 +0300, Andrei Alexandrescu 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 constructor

Re: Interview with InformIT part 2/3

2010-08-18 Thread Vladimir Panteleev
On Wed, 18 Aug 2010 13:13:25 +0300, Andrei Alexandrescu 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 + reference-type structs/classes allow a patt

Re: Interview with InformIT part 2/3

2010-08-18 Thread Andrei Alexandrescu
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

Interview with InformIT part 2/3

2010-08-18 Thread Andrei Alexandrescu
http://www.informit.com/articles/article.aspx?p=1622265 Andrei