Re: Will D have a serious dedicated well supported IDE like Visual Studio or Eclipse?

2015-02-26 Thread Ali Çehreli via Digitalmars-d-learn
On 02/26/2015 08:30 PM, weaselcat wrote: > GDB works fine with D, I use it regularly. > http://wiki.dlang.org/Open_Source_Projects#Debugging_support_by_compiler: What version of gdb is needed and is that version easy to install? Ali

hai

2015-02-26 Thread hai via Digitalmars-d-learn
what is string? Read More: Hotels in Tirunelveli near railway station |Budget hotels in tirunelveli http://www.hotelmnhroyalpark.com/

Re: Will D have a serious dedicated well supported IDE like Visual Studio or Eclipse?

2015-02-26 Thread weaselcat via Digitalmars-d-learn
On Friday, 27 February 2015 at 04:12:50 UTC, AJ wrote: On Thursday, 26 February 2015 at 20:23:10 UTC, Rinzler wrote: I a beginner with D, actually I have almost done nothing. I am using a Mac, and Xamarin Studio seem to be the best choice, but I am not even able to make it auto-complete the sta

Re: Will D have a serious dedicated well supported IDE like Visual Studio or Eclipse?

2015-02-26 Thread AJ via Digitalmars-d-learn
On Thursday, 26 February 2015 at 20:23:10 UTC, Rinzler wrote: I a beginner with D, actually I have almost done nothing. I am using a Mac, and Xamarin Studio seem to be the best choice, but I am not even able to make it auto-complete the standard library. Does anybody know how to do it? I am i

Re: Will D have a serious dedicated well supported IDE like Visual Studio or Eclipse?

2015-02-26 Thread Meta via Digitalmars-d-learn
On Thursday, 26 February 2015 at 20:55:52 UTC, Rinzler wrote: Thanks! Actually I had already seen that page, but I was asking for other open-source projects. If there's someone working on a D dedicated IDE or not. I've been using DlangIDE on Linux, which is young but solid so far, and VisualD

Re: 3 dimension arrays

2015-02-26 Thread Ali Çehreli via Digitalmars-d-learn
On 02/26/2015 12:01 PM, Andrey wrote:> HI guys!!! > > Have a problem with 3d array memory allocation in next code: > > // > class NeuronNet(T, const uint layersNum) > { > T[]_inputs; > T[][layersNum - 2]_hidd

Re: Will D have a serious dedicated well supported IDE like Visual Studio or Eclipse?

2015-02-26 Thread Namespace via Digitalmars-d-learn
On Thursday, 26 February 2015 at 20:55:52 UTC, Rinzler wrote: Thanks! Actually I had already seen that page, but I was asking for other open-source projects. If there's someone working on a D dedicated IDE or not. You could search on dub: http://code.dlang.org/

Re: @trusted and return ref

2015-02-26 Thread anonymous via Digitalmars-d-learn
On Thursday, 26 February 2015 at 20:56:52 UTC, Ola Fosheim Grøstad wrote: But it should matter, because when you mark a unit @trusted you basically are signing off a "certificate" that says it acts like @safe in @safe code. How can you verify anything if you allow injections? If you allow @sy

Re: Will D have a standard cross platform GUI toolkit?

2015-02-26 Thread Piotrek via Digitalmars-d-learn
On Thursday, 26 February 2015 at 18:20:12 UTC, Rinzler wrote: Hello, I was wondering if D will have a standard cross platform GUI toolkit. I think that any modern language should provide a cross-platform GUI toolkit. I know that there are some GUI toolkits, but are there cross-platform? Are

Re: @trusted and return ref

2015-02-26 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/26/15 3:49 PM, "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= " wrote: On Thursday, 26 February 2015 at 16:25:59 UTC, Steven Schveighoffer wrote: First, malloc should be safe, in the same way new is safe. If it is typed and do the sizeof... Right, one can easily make a @safe wrapper around mallo

Re: static void arrays under garbage control?

2015-02-26 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/26/15 2:28 PM, Ali Çehreli wrote: On 02/26/2015 10:07 AM, Steven Schveighoffer wrote: >> // will not be scanned by GC for pointers: >> void[] buffer4 = cast(void[])(new ubyte[16]); >> uint[] buffer5 = cast(uint[])(new ubyte[16]); > > Correct, since they are allocated as

Re: Will D have a serious dedicated well supported IDE like Visual Studio or Eclipse?

2015-02-26 Thread Rinzler via Digitalmars-d-learn
Thanks! Actually I had already seen that page, but I was asking for other open-source projects. If there's someone working on a D dedicated IDE or not.

Re: @trusted and return ref

2015-02-26 Thread via Digitalmars-d-learn
On Thursday, 26 February 2015 at 12:50:04 UTC, anonymous wrote: The whole point of @trusted is to be able to call @system code. It doesn't matter if that code is "injected" or not. @safe prevents calling @system code. But it should matter, because when you mark a unit @trusted you basically a

Re: @trusted and return ref

2015-02-26 Thread via Digitalmars-d-learn
On Thursday, 26 February 2015 at 16:25:59 UTC, Steven Schveighoffer wrote: First, malloc should be safe, in the same way new is safe. If it is typed and do the sizeof... I would say THIS is somewhat correct: (() @trusted {free(count); count=null;})(); This takes something that is validly sa

Re: Will D have a serious dedicated well supported IDE like Visual Studio or Eclipse?

2015-02-26 Thread jmh530 via Digitalmars-d-learn
On Thursday, 26 February 2015 at 20:23:10 UTC, Rinzler wrote: Hello, This question might have already been asked, but maybe new answers come up, with new updates. I a beginner with D, actually I have almost done nothing. I am using a Mac, and Xamarin Studio seem to be the best choice, but I

Re: Will D have a standard cross platform GUI toolkit?

2015-02-26 Thread Rinzler via Digitalmars-d-learn
On Thursday, 26 February 2015 at 20:15:53 UTC, Zekereth wrote: On Thursday, 26 February 2015 at 18:20:12 UTC, Rinzler wrote: Hello, I was wondering if D will have a standard cross platform GUI toolkit. I think that any modern language should provide a cross-platform GUI toolkit. I know that

Will D have a serious dedicated well supported IDE like Visual Studio or Eclipse?

2015-02-26 Thread Rinzler via Digitalmars-d-learn
Hello, This question might have already been asked, but maybe new answers come up, with new updates. I a beginner with D, actually I have almost done nothing. I am using a Mac, and Xamarin Studio seem to be the best choice, but I am not even able to make it auto-complete the standard library

Re: Will D have a standard cross platform GUI toolkit?

2015-02-26 Thread Zekereth via Digitalmars-d-learn
On Thursday, 26 February 2015 at 18:20:12 UTC, Rinzler wrote: Hello, I was wondering if D will have a standard cross platform GUI toolkit. I think that any modern language should provide a cross-platform GUI toolkit. I know that there are some GUI toolkits, but are there cross-platform? Are

3 dimension arrays

2015-02-26 Thread Andrey via Digitalmars-d-learn
HI guys!!! Have a problem with 3d array memory allocation in next code: // class NeuronNet(T, const uint layersNum) { T[] _inputs; T[][layersNum - 2] _hidden; T[]

Re: static void arrays under garbage control?

2015-02-26 Thread Ali Çehreli via Digitalmars-d-learn
On 02/26/2015 10:07 AM, Steven Schveighoffer wrote: >> // will not be scanned by GC for pointers: >> void[] buffer4 = cast(void[])(new ubyte[16]); >> uint[] buffer5 = cast(uint[])(new ubyte[16]); > > Correct, since they are allocated as ubyte[]. uint[] also would not be > scanned.

Re: static void arrays under garbage control?

2015-02-26 Thread captaindet via Digitalmars-d-learn
On 2015-02-26 12:07, Steven Schveighoffer wrote: On 2/26/15 11:57 AM, captaindet wrote: On 2015-02-26 10:07, Steven Schveighoffer wrote: Static data I believe is always scanned conservatively because no type information is stored for it ever, even on allocation (i.e. program startup). ouh, th

Re: Will D have a standard cross platform GUI toolkit?

2015-02-26 Thread Jacob Carlborg via Digitalmars-d-learn
On 2015-02-26 19:20, Rinzler wrote: Hello, I was wondering if D will have a standard cross platform GUI toolkit. I think that any modern language should provide a cross-platform GUI toolkit. I know that there are some GUI toolkits, but are there cross-platform? Are there serious works? That is,

Re: Will D have a standard cross platform GUI toolkit?

2015-02-26 Thread CraigDillabaugh via Digitalmars-d-learn
On Thursday, 26 February 2015 at 18:49:39 UTC, Rinzler wrote: By the way, which, in your opinion, is the most performant and more stable? I personally can't help you there, as I've never done any GUI programming in D. Maybe you can test a few of them out and write a report :o)

Re: Will D have a standard cross platform GUI toolkit?

2015-02-26 Thread Rinzler via Digitalmars-d-learn
Thanks to both answers. I hope there's more support for this kind of things too. I will post other questions soon :)

Re: Will D have a standard cross platform GUI toolkit?

2015-02-26 Thread Rinzler via Digitalmars-d-learn
By the way, which, in your opinion, is the most performant and more stable?

Re: Will D have a standard cross platform GUI toolkit?

2015-02-26 Thread CraigDillabaugh via Digitalmars-d-learn
On Thursday, 26 February 2015 at 18:20:12 UTC, Rinzler wrote: Hello, I was wondering if D will have a standard cross platform GUI toolkit. I think that any modern language should provide a cross-platform GUI toolkit. I know that there are some GUI toolkits, but are there cross-platform? Are

Re: Invoking MAGO debugger

2015-02-26 Thread michaelc37 via Digitalmars-d-learn
On Thursday, 26 February 2015 at 10:20:31 UTC, Vadim Lopatin wrote: Hello! I'm trying to integrate MAGO into DlangIDE. I can easy create instance of MAGO DebugEngine, but having problems with obtaining of IDebugPort which is needed for invoking of LaunchSuspended. It looks like to get IDebugP

Re: Will D have a standard cross platform GUI toolkit?

2015-02-26 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 26 February 2015 at 18:20:12 UTC, Rinzler wrote: I was wondering if D will have a standard cross platform GUI toolkit. Maybe some day, but probably not because there's not enough agreement on which one to use or what it should do. There's a few different ones out there that peopl

Will D have a standard cross platform GUI toolkit?

2015-02-26 Thread Rinzler via Digitalmars-d-learn
Hello, I was wondering if D will have a standard cross platform GUI toolkit. I think that any modern language should provide a cross-platform GUI toolkit. I know that there are some GUI toolkits, but are there cross-platform? Are there serious works? That is, will them always be supported a

Re: static void arrays under garbage control?

2015-02-26 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/26/15 11:57 AM, captaindet wrote: On 2015-02-26 10:07, Steven Schveighoffer wrote: Static data I believe is always scanned conservatively because no type information is stored for it ever, even on allocation (i.e. program startup). ouh, the confusion goes on... are you saying that {

Re: static void arrays under garbage control?

2015-02-26 Thread captaindet via Digitalmars-d-learn
On 2015-02-26 10:07, Steven Schveighoffer wrote: Static data I believe is always scanned conservatively because no type information is stored for it ever, even on allocation (i.e. program startup). ouh, the confusion goes on... are you saying that { // will be all scanned by GC for /

Re: DList.Range magically becomes empty.

2015-02-26 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/26/15 11:07 AM, Tobias Pankrath wrote: On Thursday, 26 February 2015 at 15:57:22 UTC, Steven Schveighoffer wrote: On 2/25/15 4:58 AM, Ivan Timokhin wrote: Tobias Pankrath wrote: writefln("stack: %s", stack[]); //fine This call consumes all ranges stored in stack, so they're empty a

Re: @trusted and return ref

2015-02-26 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/24/15 5:37 PM, "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= " wrote: Since neither Andrei or Walter are able to say something sensible on these issues when asked, I apparently need to learn something about the "consistency" of C memory safety. I'm happy to listen to anyone who can explain this to

Re: To GC or Not To GC in std.container.*

2015-02-26 Thread Nordlöw
On Monday, 23 February 2015 at 21:33:35 UTC, Steven Schveighoffer wrote: It means that it can do that, and does do that in dcollections. std.container does not have all the code to do it, dcollections.RBTree has some extra calls that would probably help. However, the allocation is done in one s

Re: static void arrays under garbage control?

2015-02-26 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/25/15 8:15 PM, captaindet wrote: if i understand correctly, static arrays are exempt from GC scanning for memory pointers http://dlang.org/garbage.html : "Pointers in D can be broadly divided into two categories: Those that point to garbage collected memory, and those that do not. Examples

Re: DList.Range magically becomes empty.

2015-02-26 Thread Tobias Pankrath via Digitalmars-d-learn
On Thursday, 26 February 2015 at 15:57:22 UTC, Steven Schveighoffer wrote: On 2/25/15 4:58 AM, Ivan Timokhin wrote: Tobias Pankrath wrote: writefln("stack: %s", stack[]); //fine This call consumes all ranges stored in stack, so they're empty afterwards. This has to be a bug. stack[]

Re: DList.Range magically becomes empty.

2015-02-26 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/25/15 4:58 AM, Ivan Timokhin wrote: Tobias Pankrath wrote: writefln("stack: %s", stack[]); //fine This call consumes all ranges stored in stack, so they're empty afterwards. This has to be a bug. stack[] should produce a range that can be iterated without destroying the data in

Re: Opening temporary files for std.process.spawnProcess input/output

2015-02-26 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/25/15 2:09 PM, Ali Çehreli wrote: It looks like the file is closed when spawnProcess is finished. I don't know whether it is done by spawnProcess explicitly or whether it is a behavior for temporary files. I know the problem is solved, but I wanted to chime in with some explanation here:

Re: Why rbtree.length isn't const?

2015-02-26 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/26/15 3:20 AM, drug wrote: Is it intended by some reason? No, it can be fixed. RBTree was not written to support const because D doesn't support tail-const ranges, which makes const really difficult to deal with. But length can definitely be const. Please submit an issue. http://issues

Re: Installing DMD From Zip

2015-02-26 Thread Mike Parker via Digitalmars-d-learn
On 2/26/2015 10:06 PM, anonymous wrote: The pages are still there, they're just not linked from anywhere (except for the sitemap). I don't know what happened. On dmd (installation, flags, etc): http://dlang.org/dmd-linux.html http://dlang.org/dmd-windows.html http://dlang.org/dmd-osx.html http

Re: Opening temporary files for std.process.spawnProcess input/output

2015-02-26 Thread wobbles via Digitalmars-d-learn
On Wednesday, 25 February 2015 at 19:09:16 UTC, Ali Çehreli wrote: On 02/25/2015 05:56 AM, wobbles wrote: > Hi, > Any reason why the following wont work? > > void main(string[] args) > { > auto pidIn = File.tmpfile(); > auto pidOut = File.tmpfile(); > auto pid = spawnProcess(["ls"

Re: Installing DMD From Zip

2015-02-26 Thread anonymous via Digitalmars-d-learn
On Thursday, 26 February 2015 at 10:55:40 UTC, Jonathan M Davis wrote: I think that it was the same page, though I could be remembering wrong. Several articles are missing as well (e.g. the one on std.datetime and the one on arrays), so I don't know how careful they really were in updating the

Re: @trusted and return ref

2015-02-26 Thread anonymous via Digitalmars-d-learn
On Thursday, 26 February 2015 at 10:15:07 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 25 February 2015 at 22:59:01 UTC, anonymous wrote: rule-breaking that's going on there. A public trusted_malloc would invite the un-initiated to shoot their feet. That's entirely social... Sure. A @trust

Getting range of const rbtree

2015-02-26 Thread drug via Digitalmars-d-learn
I can't get the range of const RedBlackTree because opSlice is mutable: http://dpaste.dzfl.pl/02fadc472eea What is the best way to iterate over const collection of elements? Thanks

Re: Installing DMD From Zip

2015-02-26 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, February 26, 2015 19:47:20 Mike Parker via Digitalmars-d-learn wrote: > On 2/26/2015 7:26 PM, Jonathan M Davis via Digitalmars-d-learn wrote: > > > > As for the page in question, it looks like it was probably lost in the site > > redesign. > > > Looks like the same can be said for the

Re: Installing DMD From Zip

2015-02-26 Thread Mike Parker via Digitalmars-d-learn
On 2/26/2015 7:26 PM, Jonathan M Davis via Digitalmars-d-learn wrote: I'd just tell them to unzip it wherever they wanted it and add the bin directory for their platform for it to their PATH. As I recall, that's all that's required to get it to work. Yes, that's about all I can do without that

Re: Installing DMD From Zip

2015-02-26 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, February 26, 2015 10:10:45 Mike Parker via Digitalmars-d-learn wrote: > Once upon a time, there were instructions linked from the DMD > download page explaining how to install from the zip file on each > platform. I can't find anything about it now, not from dlang.org > or from the wi

Invoking MAGO debugger

2015-02-26 Thread Vadim Lopatin via Digitalmars-d-learn
Hello! I'm trying to integrate MAGO into DlangIDE. I can easy create instance of MAGO DebugEngine, but having problems with obtaining of IDebugPort which is needed for invoking of LaunchSuspended. It looks like to get IDebugPort, I need IDebugCoreServer2 instance. Does anybody know how to do

Re: @trusted and return ref

2015-02-26 Thread via Digitalmars-d-learn
On Wednesday, 25 February 2015 at 22:59:01 UTC, anonymous wrote: rule-breaking that's going on there. A public trusted_malloc would invite the un-initiated to shoot their feet. That's entirely social... You mean the compiler should enforce E to be @safe/@trusted? That wouldn't happen with an

Installing DMD From Zip

2015-02-26 Thread Mike Parker via Digitalmars-d-learn
Once upon a time, there were instructions linked from the DMD download page explaining how to install from the zip file on each platform. I can't find anything about it now, not from dlang.org or from the wiki. Is it still out there somewhere? I need a page to point people at.

Why rbtree.length isn't const?

2015-02-26 Thread drug via Digitalmars-d-learn
Is it intended by some reason?