Interfacing D with C and C++

2014-08-23 Thread Scott Wilson via Digitalmars-d
Hello, world. Brand new poster here though I posted similar messages in other language forums. I hope this is the right place to ask because my question is half about existing stuff and half about prospective work. I am considering starting with D amid a C++ code base. New D code would need t

Re: Interfacing D with C and C++

2014-08-23 Thread Scott Wilson via Digitalmars-d
Thank you all for responding. I have run the following experiment. Trying to call a method of std::allocator I am sure I am doing something wrong. Please do tell and apologies for my noobiness. // test.d extern(C++, std) { struct allocator(T) { alias size_type = size_t;

Re: Interfacing D with C and C++

2014-08-23 Thread Scott Wilson via Digitalmars-d
On Sunday, 24 August 2014 at 04:59:04 UTC, Walter Bright wrote: On 8/23/2014 9:31 PM, Scott Wilson wrote: Could you tell me how I could get this to work? The function is mangled as: C++:_ZNSaIiE10deallocateEPvm D: _ZN3std9allocatorIiE10deallocateEPvm Looks like D gets it wrong. Th

Re: Interfacing D with C and C++

2014-08-23 Thread Scott Wilson via Digitalmars-d
wrote: On Sun, 24 Aug 2014 04:31:55 + Scott Wilson via Digitalmars-d wrote: there is NO support for instantiating C++ templates in D code. and you can't write C++ template specialization code in D.

SWIG?

2014-08-27 Thread Scott Wilson via Digitalmars-d
SWIG has D support. But it seems old and out of fashion. Community here does not buzz about it much either. Whats the word on the street about the quality of SWIG-D stuff? Scott PS thankyou Walter for replying

Benchmarking build times

2014-08-28 Thread Scott Wilson via Digitalmars-d
Hey I want to benchmark speed of D and other languages. I think I'll use rosetta code. It has functional equivalent code in several langs. What is a large program on rosetta? I will copy that program many times and modify each with sed so the names are abit different. Then write a makefile and bu

Re: Benchmarking build times

2014-08-28 Thread Scott Wilson via Digitalmars-d
I found https://github.com/acmeism/RosettaCodeData. Is it fresh? To estimate build times I'll concatenate all files into one. About 6K LOC. Then I'll duplicate that file. Sound good? Scott On Thursday, 28 August 2014 at 19:51:22 UTC, bearophile wrote: Scott Wilson: What is a large program o

Dependency management in D

2014-09-18 Thread Scott Wilson via Digitalmars-d
Im running some tests with D. Was wondering whats the dependency story. Cant find any info online, searched for dlang dependency management and dlang dependency. Found bunch o dub stuff but not the nitty gritty. Unit of compilation is one D file but I saw if I pass several D files to the compiler

Re: Dependency management in D

2014-09-18 Thread Scott Wilson via Digitalmars-d
On Thursday, 18 September 2014 at 17:04:43 UTC, ketmar via Digitalmars-d wrote: On Thu, 18 Sep 2014 16:48:21 + Scott Wilson via Digitalmars-d wrote: Plus if I change a non template function in one module then theres no way to tell make no rebuild of modules importing it. The dmd -deps

Re: Dependency management in D

2014-09-19 Thread Scott Wilson via Digitalmars-d
On Friday, 19 September 2014 at 05:27:33 UTC, Vladimir Panteleev wrote: On Friday, 19 September 2014 at 05:19:07 UTC, Walter Bright wrote: On 9/18/2014 9:56 AM, Vladimir Panteleev wrote: On Thursday, 18 September 2014 at 16:48:22 UTC, Scott Wilson wrote: Unit of compilation is one D file but I

Re: Dependency management in D

2014-09-19 Thread Scott Wilson via Digitalmars-d
On Friday, 19 September 2014 at 02:05:43 UTC, ketmar via Digitalmars-d wrote: On Fri, 19 Sep 2014 01:42:58 + Scott Wilson via Digitalmars-d wrote: Do .di files contain only templates (no comments and plain functions? How well do they work? thanx as for 'how .di files work'

Re: Dependency management in D

2014-09-19 Thread Scott Wilson via Digitalmars-d
On Friday, 19 September 2014 at 05:17:45 UTC, Walter Bright wrote: On 9/18/2014 9:48 AM, Scott Wilson wrote: Im running some tests with D. Was wondering whats the dependency story. Cant find any info online, searched for dlang dependency management and dlang dependency. Found bunch o dub stuff

D tooling: perf tool, gdb, unit tests, gcov, gprof

2014-09-21 Thread Scott Wilson via Digitalmars-d
Me again. Looking at support for standard gnu tooling in D. For debugging theres http://wiki.dlang.org/Debugging according to that gdb support is good. Any comments on the quality & stability &c. We also use perf, gprof, gcov. Is there support in D for those. Or support for D in those. :-) After