Re: Hacking on Phobos

2012-04-28 Thread Sergey Matveychuk
On Tuesday, 17 April 2012 at 19:28:05 UTC, Joseph Rushton Wakeling wrote: Oddly enough building rdmd with my newly-build dmd results in error: rdmd.d(197): Error: function std.path.rel2abs!().rel2abs is deprecated /usr/local/include/d2/std/algorithm.d(4226): Error: template

Re: Hacking on Phobos

2012-04-18 Thread Jacob Carlborg
On 2012-04-17 20:47, H. S. Teoh wrote: You can just edit /etc/dmd.conf to that effect (if it conflicts with your stable version of dmd, you could try to change the git dmd source to look for dmd.conf in a different place, say /usr/src/d-devel/dmd.conf or something, and so you can completely

Re: Hacking on Phobos

2012-04-18 Thread Jacob Carlborg
--compiler=../dmd/binarch/dmd --build-only main.d main.d would be a test file I'm using. Then I just run ./build.sh and it will build everything. main.d and build.sh can be added to path/phobos/.git/info/exclude to be ignored. I can't find any easy or friendly get started hacking on Phobos page

Re: Hacking on Phobos

2012-04-18 Thread Somedude
Le 18/04/2012 12:04, Jacob Carlborg a écrit : I can't find any easy or friendly get started hacking on Phobos page, so can anyone advise how to get set up correctly? I've thought about this several times, we need one badly. I've just created a page in the Wiki with the posts here: http

Hacking on Phobos

2012-04-17 Thread Joseph Rushton Wakeling
object.TypeInfo_Vector.getHash does not override any function I can't find any easy or friendly get started hacking on Phobos page, so can anyone advise how to get set up correctly? Thanks best wishes, -- Joe

Re: Hacking on Phobos

2012-04-17 Thread Jonathan M Davis
On Tuesday, April 17, 2012 20:10:51 Joseph Rushton Wakeling wrote: Hello all, As per earlier discussion I'm trying to hack on Phobos to update the random sampling code. To do this I've just copied random.d into a new file, randomsample.d, which I'm modifying and messing around with; I'm

Re: Hacking on Phobos

2012-04-17 Thread Dmitry Olshansky
On 17.04.2012 22:10, Joseph Rushton Wakeling wrote: Hello all, As per earlier discussion I'm trying to hack on Phobos to update the random sampling code. To do this I've just copied random.d into a new file, randomsample.d, which I'm modifying and messing around with; I'm trying to build

Re: Hacking on Phobos

2012-04-17 Thread H. S. Teoh
On Tue, Apr 17, 2012 at 10:29:24PM +0400, Dmitry Olshansky wrote: On 17.04.2012 22:10, Joseph Rushton Wakeling wrote: Hello all, As per earlier discussion I'm trying to hack on Phobos to update the random sampling code. To do this I've just copied random.d into a new file, randomsample.d,

Re: Hacking on Phobos

2012-04-17 Thread Joseph Rushton Wakeling
On 17/04/12 20:29, Dmitry Olshansky wrote: First things first - development of phobos is done with dmd. Just because gdc is (logically so) somewhat behind dmd and new compiler features are still coming with every release. Fair enough. I've followed the instructions here:

Re: Hacking on Phobos

2012-04-17 Thread Joseph Rushton Wakeling
On 17/04/12 20:47, H. S. Teoh wrote: The convention is to create a branch for making changes, this way it's very easy to generate pull requests on github if you ever wanted to contribute your code to the official codebase. Branches are super-cheap in git anyway, and you can edit source files to

Re: Hacking on Phobos

2012-04-17 Thread Dmitry Olshansky
On 17.04.2012 23:27, Joseph Rushton Wakeling wrote: On 17/04/12 20:29, Dmitry Olshansky wrote: First things first - development of phobos is done with dmd. Just because gdc is (logically so) somewhat behind dmd and new compiler features are still coming with every release. Fair enough. I've