GDC and LDC on MacPorts

2012-09-14 Thread Russel Winder
Although I am not a Mac user, I have one for testing. I looked for LDC in MacPorts but it doesn't seem to be there. The GDC in MacPorts is 0.24 implementing D 1.020, which doesn't seem good. DMD is at 2.060 which is good. Except that I need GDC and LDC… -- Russel.

Re: LDC

2012-09-14 Thread Russel Winder
Andrei, On Fri, 2012-09-14 at 08:05 -0400, Andrei Alexandrescu wrote: […] > Could please the responsibles update the project homepage? After that > I'll be glad to link to it from dlang.org/download.html. To chip in on a purely marketing angle: I wonder if a regularly reviewed and updated page o

Re: [Scons-users] D and SCons

2012-09-14 Thread Russel Winder
On Sat, 2012-09-15 at 00:30 +0200, Rob T wrote: > On Friday, 14 September 2012 at 05:51:24 UTC, Russel Winder wrote: > > Issues associated with the SCons code base should be reported > > through > > the Tigris issue tracker: > > http://scons.tigris.org/bug-submission.html > > > > So this is to

Re: Would like to see ref and out required for function calls

2012-09-14 Thread Manuel
On Friday, 14 September 2012 at 06:55:00 UTC, F i L wrote: On Thursday, 13 September 2012 at 22:21:34 UTC, ixid wrote: Couldn't this easily be supported by an IDE by coloured function arguments based on their type? Then the information is clearly visible without cluttering the code. no becaus

Re: classes structs

2012-09-14 Thread Piotr Szturmaj
David Currie wrote: At the risk of appearing ignorant, I don't know everything about D. However in D I have noticed the following. It is a policy decision in D that a class is ALWAYS on the heap and passed by REFERENCE. (I know there is a keyword to put a class object on the stack but this is no

Re: Would like to see ref and out required for function calls

2012-09-14 Thread ixid
It'd be great if the guy doing Visual D could give it a try. We could also resolve the property vs function issue in a similar manner to avoid the need to enforce unnecessary brackets everywhere. It would seem like a more practical approach than breaking all D2 code that actually addresses the

Re: classes structs

2012-09-14 Thread bearophile
On Friday, 14 September 2012 at 22:18:57 UTC, David Currie: Could you answer me WHY?? Take a look at the D FAQ, maybe some of your questions are answered there, this will save some time to people here. And your questions that are missing in the FAQ are better added there, because they are

Re: [Scons-users] D and SCons

2012-09-14 Thread Rob T
On Friday, 14 September 2012 at 05:51:24 UTC, Russel Winder wrote: Issues associated with the SCons code base should be reported through the Tigris issue tracker: http://scons.tigris.org/bug-submission.html So this is to report any scons problem, including the changes relating to D support

Re: Would like to see ref and out required for function calls

2012-09-14 Thread F i L
On Friday, 14 September 2012 at 22:20:16 UTC, Manuel wrote: On Friday, 14 September 2012 at 06:55:00 UTC, F i L wrote: On Thursday, 13 September 2012 at 22:21:34 UTC, ixid wrote: Couldn't this easily be supported by an IDE by coloured function arguments based on their type? Then the information

classes structs

2012-09-14 Thread David Currie
At the risk of appearing ignorant, I don't know everything about D. However in D I have noticed the following. It is a policy decision in D that a class is ALWAYS on the heap and passed by REFERENCE. (I know there is a keyword to put a class object on the stack but this is not facile and needi

Re: Memory leak - only with large data set

2012-09-14 Thread Mehrdad
http://stackoverflow.com/a/8796226/541686

Re: [Win32] Remotely execute functions of a D program

2012-09-14 Thread alex
On Friday, 14 September 2012 at 18:35:53 UTC, Sean Kelly wrote: On Sep 14, 2012, at 10:34 AM, alex wrote: 1) So to anyone who's got richer experiences in programming assembler and hacking/'debugging' programs than I - how would you do it? 2) And why can't I inject a D DLL right into the prog

Re: [Win32] Remotely execute functions of a D program

2012-09-14 Thread Sean Kelly
On Sep 14, 2012, at 10:34 AM, alex wrote: > 1) So to anyone who's got richer experiences in programming assembler and > hacking/'debugging' programs than I - how would you do it? > 2) And why can't I inject a D DLL right into the program? I tried it with a C > DLL, it's working with that one, b

[Win32] Remotely execute functions of a D program

2012-09-14 Thread alex
Hi everyone, To keeps things short: There shall be a extended debugging feature integrated into Mono-D / VisualD later on. As you may see on http://mono-d.alexanderbothe.com/wordpress/wp-content/uploads/2012/09/2ylpkqg.jpg , there already is debugging functionality possible for windows progr

Re: Memory leak - only with large data set

2012-09-14 Thread bearophile
Roger: The cached list consists of about 50 items (ExtendedOrderItemDTO) and when we use a search criteria that results in a large amount of items we get a memory leak of about 90MB on each run. This is interesting. Currently the D GC is conservative, this means that some pointers comin

Memory leak - only with large data set

2012-09-14 Thread Roger
Hi, We developing a D dll (v 2.060) called (pinvoked) by a C# client. The DLL is responsible for filtering large amounts of data. It consists of some functions (for example GetRetailSale below), which filters the data based on some criteria (defined in state). The cached list consists of abo

Re: Would like to see ref and out required for function calls

2012-09-14 Thread Nick Treleaven
On 12/09/2012 13:55, Nick Treleaven wrote: On 12/09/2012 13:39, Nick Treleaven wrote: class Bar { int b; } void changeBar(ref Bar b) { b = new Bar(); } void warning() { Bar bar = new Bar(); bar.b = 10; bar.changeBar(); // Warning: 'bar' is implicitly passed by reference. To elimin

Re: std.lifetime?

2012-09-14 Thread Simen Kjaeraas
On Wed, 12 Sep 2012 17:09:15 +0200, Nick Treleaven wrote: The following existing symbols might benefit from being moved to a std.lifetime module, with aliases replacing their existing symbols: std.container.make std.conv.emplace std.typecons.scoped std.typecons.RefCounted std.algorithm.ini

Re: std.net.curl: Bad timeout defaults

2012-09-14 Thread Jonas Drewsen
On Friday, 14 September 2012 at 13:31:50 UTC, Johannes Pfau wrote: I've been using std.net.curl lately and there's a small issue with the default timeouts: dataTimeout is documented as: /// Set timeout for activity on connection. but this is not true! timeout_ms actually is "the maximum time

std.net.curl: Bad timeout defaults

2012-09-14 Thread Johannes Pfau
I've been using std.net.curl lately and there's a small issue with the default timeouts: dataTimeout is documented as: /// Set timeout for activity on connection. but this is not true! timeout_ms actually is "the maximum time that you allow the libcurl transfer operation to take". This timeout is

Re: std.lifetime?

2012-09-14 Thread Nick Treleaven
On 12/09/2012 16:09, Nick Treleaven wrote: 'make' is basically a generic wrapper for both 'new' expressions and struct construction. It also adds makeNew, makeArray and makeStaticArray. As std.container is not really the place for construction of non-container types, the request moves 'make' to s

Re: LDC

2012-09-14 Thread Andrei Alexandrescu
On 9/14/12 1:57 AM, Russel Winder wrote: On Fri, 2012-09-14 at 00:52 +0200, Rob T wrote: On Wednesday, 5 September 2012 at 14:42:25 UTC, Russel Winder wrote: It appears that the LDC website is in need of an overhaul. No kidding. I thought the project was completely dead. Updating a web page i

Re: Would like to see ref and out required for function calls

2012-09-14 Thread Nick Treleaven
On 13/09/2012 16:29, David Piepgrass wrote: On Thursday, 13 September 2012 at 15:01:28 UTC, Andrei Alexandrescu wrote: On 9/13/12 10:53 AM, David Piepgrass wrote: Walter and I have discussed this for quite a while. We have recently decided to disallow, at least in SafeD, escaping the address of

Re: LDC

2012-09-14 Thread Daniel Kozak
Maybe just some configure switch, which enabled/disabled SEH when compiling LDC On Friday, 14 September 2012 at 08:02:51 UTC, Russel Winder wrote: On Fri, 2012-09-14 at 08:25 +0200, Jacob Carlborg wrote: On 2012-09-13 16:40, Don Clugston wrote: > That sounds paranoid to me. I believe the pat

Re: LDC

2012-09-14 Thread Russel Winder
On Fri, 2012-09-14 at 08:25 +0200, Jacob Carlborg wrote: > On 2012-09-13 16:40, Don Clugston wrote: > > > That sounds paranoid to me. I believe the patent is essentially a > > workaround for the absence of thread-local variables on 16-bit Windows. > > BTW, regardless if it's under a patent or not

Re: Would like to see ref and out required for function calls

2012-09-14 Thread F i L
On Thursday, 13 September 2012 at 22:21:34 UTC, ixid wrote: Couldn't this easily be supported by an IDE by coloured function arguments based on their type? Then the information is clearly visible without cluttering the code. no because... wait... that... that could work.