Re: C compatibility module for phobos.

2011-09-22 Thread Jacob Carlborg
On 2011-09-21 21:02, Gor F. Gyolchanyan wrote: I didn't know about core.stdc package because it doesn't show u on dpl.org. The difference is, that some compilers make long 64 bit for 64-bit systems, and some leave the long 32-bit no matter what. core.stdc.config handles that. -- /Jacob

C compatibility module for phobos.

2011-09-21 Thread Gor Gyolchanyan
Hello, my dear, beloved D community. I've been reading literally all discussions on D.puremagic.com for about a month now and I'm deeply concerned with my favorite language and it's reference compiler. So, for starters, i decided to add a very useful (in my opinion) module to phobos:

Re: C compatibility module for phobos.

2011-09-21 Thread Sean Kelly
You might want to look at core.stdc.config. It contains the essential compatibility stuff for interfacing with C. Sent from my iPhone On Sep 21, 2011, at 1:01 AM, Gor Gyolchanyan gor.f.gyolchan...@gmail.com wrote: Hello, my dear, beloved D community. I've been reading literally all

Re: C compatibility module for phobos.

2011-09-21 Thread Alex Rønne Petersen
On 21-09-2011 10:01, Gor Gyolchanyan wrote: Hello, my dear, beloved D community. I've been reading literally all discussions on D.puremagic.com http://D.puremagic.com for about a month now and I'm deeply concerned with my favorite language and it's reference compiler. So, for starters, i

Re: C compatibility module for phobos.

2011-09-21 Thread Jesse Phillips
Gor Gyolchanyan Wrote: Hello, my dear, beloved D community. I've been reading literally all discussions on D.puremagic.com for about a month now and I'm deeply concerned with my favorite language and it's reference compiler. So, for starters, i decided to add a very useful (in my

Re: C compatibility module for phobos.

2011-09-21 Thread Gor F. Gyolchanyan
Will do! :-) Right after i take a look at the existing core.stdc.config module, that i never knew about before :-)

Re: C compatibility module for phobos.

2011-09-21 Thread Gor F. Gyolchanyan
Thanks! I never new that module existed! It's not mentioned in dpl.org.

Re: C compatibility module for phobos.

2011-09-21 Thread Gor F. Gyolchanyan
I didn't know about core.stdc package because it doesn't show u on dpl.org. The difference is, that some compilers make long 64 bit for 64-bit systems, and some leave the long 32-bit no matter what.

Re: C compatibility module for phobos.

2011-09-21 Thread Andrej Mitrovic
On 9/21/11, Gor Gyolchanyan gor.f.gyolchan...@gmail.com wrote: If we get a good enough C compatibility module, we'll be able to rapidly bind all major and frequently-used libraries and include them in phobos. Type compatibility might be just the tip of the iceberg for wrapping a C library. For

Re: C compatibility module for phobos.

2011-09-21 Thread Gor F. Gyolchanyan
For that, there are a number of GC-related bugs to be fixed. If GC gets fully stable and predictable, C-managed memory could be integrated in concert with GC (like, making the GC call C-AI's custom free function on collection cycle).

Re: C compatibility module for phobos.

2011-09-21 Thread Jonathan M Davis
On Wednesday, September 21, 2011 11:59 Gor F. Gyolchanyan wrote: Thanks! I never new that module existed! It's not mentioned in dpl.org. Very little of druntime has any documentation - particularly the stuff which is just C bindings. We should probably go through there and put empty ddoc