www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: template forward reference

reply C. Dunn <cdunn2001 gmail.com> writes:
Kirk McDonald Wrote:

 Goodness. That looks familiar. I used to have all kinds of problems with 
 that in Pyd, but some DMD version or other cleared it all up. Which 
 version of the compiler are you using?

v1.015 How do I download 2.0 for linux?
Aug 01 2007
next sibling parent reply Kirk McDonald <kirklin.mcdonald gmail.com> writes:
C. Dunn wrote:
 Kirk McDonald Wrote:
 
 
Goodness. That looks familiar. I used to have all kinds of problems with 
that in Pyd, but some DMD version or other cleared it all up. Which 
version of the compiler are you using?

v1.015 How do I download 2.0 for linux?

Well, this was pre-1.0. So that's not it. The Linux download is the same as the Windows one. Just be sure you follow the installation instructions to the letter: http://www.digitalmars.com/d/dcompiler.html#linux However, I don't expect the 2.0 series to be any different in this respect. -- Kirk McDonald http://kirkmcdonald.blogspot.com Pyd: Connecting D and Python http://pyd.dsource.org
Aug 01 2007
parent reply C. Dunn <cdunn2001 gmail.com> writes:
Kirk McDonald Wrote:

 C. Dunn wrote:
 Kirk McDonald Wrote:
Goodness. That looks familiar. I used to have all kinds of problems with 
that in Pyd, but some DMD version or other cleared it all up. Which 
version of the compiler are you using?



Hey! Do you work on Pyd? Maybe you can answer a question for me: Is the D garbage collector aware of the references in Python to D data? With SWIG, some languages can have problems when the pointer is stored as a string. I just want to be sure that with Pyd it is not mangled somehow to fool the gc. You probably already thought of this, but I just want to be sure. I didn't notice it in the docs. Python is a reference-counted language, so the interaction with a garbage-collector is interesting.
 The Linux download is the same as the Windows one. Just be sure you 
 follow the installation instructions to the letter:
 
 http://www.digitalmars.com/d/dcompiler.html#linux

Yes, but how do I get 2.0 for Linux? I ended up with 1.015.
Aug 01 2007
next sibling parent Kirk McDonald <kirklin.mcdonald gmail.com> writes:
C. Dunn wrote:
 Kirk McDonald Wrote:
 
 C. Dunn wrote:
 Kirk McDonald Wrote:
 Goodness. That looks familiar. I used to have all kinds of problems with 
 that in Pyd, but some DMD version or other cleared it all up. Which 
 version of the compiler are you using?



Hey! Do you work on Pyd?

I wrote it. :-)
 Maybe you can answer a question for me:  Is the D garbage collector aware of
the references in Python to D data?
 
 With SWIG, some languages can have problems when the pointer is stored as a
string.  I just want to be sure that with Pyd it is not mangled somehow to fool
the gc.  You probably already thought of this, but I just want to be sure.  I
didn't notice it in the docs.
 
 Python is a reference-counted language, so the interaction with a
garbage-collector is interesting.
 

Pyd keeps references to all items which are returned to Python, until the Python object wrapping the D item is collected, at which time the stored reference is cleared. The D GC does not scan any of the memory allocated by Python, which includes all Python objects. Thus this reference-keeping must be done manually by Pyd. It turns out this is a surprisingly difficult problem to solve correctly, and I've expended quite a lot of effort to get it right.
 
 
 The Linux download is the same as the Windows one. Just be sure you 
 follow the installation instructions to the letter:

 http://www.digitalmars.com/d/dcompiler.html#linux

Yes, but how do I get 2.0 for Linux? I ended up with 1.015.

At the 2.0 changelog: http://digitalmars.com/d/changelog.html Click on the D 2.003 link. -- Kirk McDonald http://kirkmcdonald.blogspot.com Pyd: Connecting D and Python http://pyd.dsource.org
Aug 01 2007
prev sibling parent Daniel Keep <daniel.keep.lists gmail.com> writes:
C. Dunn wrote:
 Kirk McDonald Wrote:
 The Linux download is the same as the Windows one. Just be sure you 
 follow the installation instructions to the letter:

 http://www.digitalmars.com/d/dcompiler.html#linux

Yes, but how do I get 2.0 for Linux? I ended up with 1.015.

http://www.digitalmars.com/d/changelog.html and grab the latest version (link on the version number). -- Daniel
Aug 01 2007
prev sibling parent reply BCS <ao pathlink.com> writes:
Reply to C. Dunn,

 Kirk McDonald Wrote:
 
 Goodness. That looks familiar. I used to have all kinds of problems
 with that in Pyd, but some DMD version or other cleared it all up.
 Which version of the compiler are you using?
 

How do I download 2.0 for linux?

I have a script that will install dmd on a linux system (It won't do 2.x but I can fix that without much trouble) you will need root and the authority to install it system wide. http://www.dsource.org/projects/scrapple/browser/trunk/dmd_update/dmd_update
Aug 02 2007
next sibling parent BCS <ao pathlink.com> writes:
Reply to Benjamin,

 Reply to C. Dunn,
 
 Kirk McDonald Wrote:
 
 Goodness. That looks familiar. I used to have all kinds of problems
 with that in Pyd, but some DMD version or other cleared it all up.
 Which version of the compiler are you using?
 

How do I download 2.0 for linux?

2.x but I can fix that without much trouble) you will need root and the authority to install it system wide. http://www.dsource.org/projects/scrapple/browser/trunk/dmd_update/dmd_ update

Oh and It's use at your own risk, I think it works but I haven't tested it on many systems yet.
Aug 02 2007
prev sibling parent reply C. Dunn <cdunn2001 gmail.com> writes:
BCS Wrote:

 Reply to C. Dunn,
 
 Kirk McDonald Wrote:
 
 Goodness. That looks familiar. I used to have all kinds of problems
 with that in Pyd, but some DMD version or other cleared it all up.
 Which version of the compiler are you using?
 

How do I download 2.0 for linux?

I have a script that will install dmd on a linux system (It won't do 2.x but I can fix that without much trouble) you will need root and the authority to install it system wide. http://www.dsource.org/projects/scrapple/browser/trunk/dmd_update/dmd_update

Cool! I actually already have it working. I just don't know HOW to OBTAIN 2.0 binaries for Linux.
Aug 02 2007
parent BCS <ao pathlink.com> writes:
Reply to C. Dunn,

 BCS Wrote:
 
 Reply to C. Dunn,
 
 Kirk McDonald Wrote:
 
 Goodness. That looks familiar. I used to have all kinds of problems
 with that in Pyd, but some DMD version or other cleared it all up.
 Which version of the compiler are you using?
 

How do I download 2.0 for linux?

2.x but I can fix that without much trouble) you will need root and the authority to install it system wide. http://www.dsource.org/projects/scrapple/browser/trunk/dmd_update/dmd _update

OBTAIN 2.0 binaries for Linux.

Oops, I actually sent you a link to a the wrong file here is the good one for whoever is interested http://www.dsource.org/projects/scrapple/browser/trunk/scripts/dmd_update
Aug 02 2007