[Issue 19322] A lot of memory is consumed and not freed to the system when Exception is formatted with stacktrace in debug

2018-10-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19322 ki...@gmx.net changed: What|Removed |Added CC||ki...@gmx.net --- Comment #1 from

Re: D Binding to GUI libraries [was Interesting Observation from JAXLondon]

2018-10-20 Thread Gregor Mückl via Digitalmars-d
On Saturday, 20 October 2018 at 22:19:48 UTC, 12345swordy wrote: On Saturday, 20 October 2018 at 16:37:07 UTC, Atila Neves wrote: On Saturday, 20 October 2018 at 10:28:47 UTC, Gregor Mückl wrote: [...] It turns out that translating C++ is *hard*. Partly because the language is huge and

Re: D Binding to GUI libraries [was Interesting Observation from JAXLondon]

2018-10-20 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/20/18 5:25 AM, Russel Winder wrote: On Sat, 2018-10-20 at 08:52 +, Gregor Mückl via Digitalmars-d wrote: […] I periodically look at how I can make use of D for small projects. Most often, I shy away because I want to build a GUI and none of the libraries that I can find look mature

We need an internal keyword.

2018-10-20 Thread 12345swordy via Digitalmars-d
So that classes can share some of their variables but not others in a module. IE. class A { internal int A; //This is shared in the module private int B; // But not this. } No need to reintroduce the "Friend" feature from cpp.

Re: D Binding to GUI libraries [was Interesting Observation from JAXLondon]

2018-10-20 Thread 12345swordy via Digitalmars-d
On Saturday, 20 October 2018 at 16:37:07 UTC, Atila Neves wrote: On Saturday, 20 October 2018 at 10:28:47 UTC, Gregor Mückl wrote: [...] It turns out that translating C++ is *hard*. Partly because the language is huge and complicated, but also partly because libclang isn't all it's cracked

Re: Interesting Observation from JAXLondon

2018-10-20 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/12/18 4:05 AM, Vijay Nayar wrote: But the D community has also been very receptive of changes to the language The community is. I don't feel like it's been true of the leadership for some years now (and I don't mean just W) One thing that does concern me, is the avenues in which

Re: D Binding to GUI libraries [was Interesting Observation from JAXLondon]

2018-10-20 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 10/20/18 6:28 AM, Gregor Mückl wrote: Even though web and mobile UIs seem to be the rage at the moment, I believe a solid support for desktop UIs is very important for a general purpose language, if it wants to be successful in the market. I think that may be doubly true in the case of

How do I debug externally with Visual Studio?

2018-10-20 Thread solidstate1991 via Digitalmars-d-debugger
I use VSCode since it has better D support, however until I make mago-mi usable (it doesn't even support all the commands currently it claims, --args seems to be completely broken) or find again a working copy of LLDB for Windows (doesn't want to compile with Mingw also being installed), I

[Issue 19202] deprecated eponymous template prints no warning

2018-10-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19202 --- Comment #3 from elpenguin...@gmail.com --- It seems the PR was closed without comment...? --

Re: Just found this debugger...

2018-10-20 Thread solidstate1991 via Digitalmars-d
On Wednesday, 3 October 2018 at 13:08:50 UTC, Vladimir Panteleev wrote: On Wednesday, 3 October 2018 at 03:25:04 UTC, solidstate1991 wrote: and I don't want to go back to VisualD after VSCode for either a usable mago or VS native debug. Visual Studio makes a decent stand-alone source-level

Re: Interesting Observation from JAXLondon

2018-10-20 Thread Joakim via Digitalmars-d
On Sunday, 21 October 2018 at 01:12:44 UTC, Nick Sabalausky (Abscissa) wrote: On 10/12/18 4:05 AM, Vijay Nayar wrote: But the D community has also been very receptive of changes to the language The community is. I don't feel like it's been true of the leadership for some years now (and I

Re: shared - i need it to be useful

2018-10-20 Thread Manu via Digitalmars-d
On Sat, Oct 20, 2018 at 10:10 AM Stanislav Blinov via Digitalmars-d wrote: > > On Saturday, 20 October 2018 at 16:48:05 UTC, Nicholas Wilson > wrote: > > On Saturday, 20 October 2018 at 09:04:17 UTC, Walter Bright > > wrote: > >> On 10/19/2018 11:18 PM, Manu wrote: > >>> The reason I ask is

Re: Just found this debugger...

2018-10-20 Thread rikki cattermole via Digitalmars-d
On 21/10/2018 5:59 PM, solidstate1991 wrote: On Wednesday, 3 October 2018 at 13:08:50 UTC, Vladimir Panteleev wrote: On Wednesday, 3 October 2018 at 03:25:04 UTC, solidstate1991 wrote: and I don't want to go back to VisualD after VSCode for either a usable mago or VS native debug. Visual

Re: shared - i need it to be useful

2018-10-20 Thread Manu via Digitalmars-d
On Fri., 19 Oct. 2018, 3:10 am Walter Bright via Digitalmars-d, < digitalmars-d@puremagic.com> wrote: > On 10/17/2018 12:20 AM, Manu wrote: > > What does it mean 'aliased' precisely? > > Aliasing means there are two paths to the same piece of data. That could > be two > pointers pointing to the

Re: shared - i need it to be useful

2018-10-20 Thread Manu via Digitalmars-d
On Fri, Oct 19, 2018 at 9:45 AM Steven Schveighoffer via Digitalmars-d wrote: > > On 10/18/18 9:09 PM, Manu wrote: > > On Thu, Oct 18, 2018 at 5:30 PM Timon Gehr via Digitalmars-d > > wrote: > >> > >> On 18.10.18 23:34, Erik van Velzen wrote: > >>> If you have an object which can be used in both

Re: Shared - Another Thread

2018-10-20 Thread Manu via Digitalmars-d
On Fri, Oct 19, 2018 at 5:05 PM Dominikus Dittes Scherkl via Digitalmars-d wrote: > > Therefore it is possible to implicitly cast from mutable or > immutable to const but not in any other direction. > > I think for unshared, shared and threadsave it should be the same: > The second is a

Re: D Binding to GUI libraries [was Interesting Observation from JAXLondon]

2018-10-20 Thread tide via Digitalmars-d
On Saturday, 20 October 2018 at 09:25:58 UTC, Russel Winder wrote: On Sat, 2018-10-20 at 08:52 +, Gregor Mückl via Digitalmars-d wrote: […] I periodically look at how I can make use of D for small projects. Most often, I shy away because I want to build a GUI and none of the libraries

[Issue 19320] New: Unittest error: Variable used before set in std/array.d

2018-10-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19320 Issue ID: 19320 Summary: Unittest error: Variable used before set in std/array.d Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW

Re: Truly @nogc Exceptions?

2018-10-20 Thread Paolo Invernizzi via Digitalmars-d
On Thursday, 20 September 2018 at 17:14:12 UTC, Steven Schveighoffer wrote: On 9/20/18 12:24 PM, Adam D. Ruppe wrote: On Thursday, 20 September 2018 at 15:52:03 UTC, Steven Schveighoffer wrote: I needed to know what the slice parameters that were failing were. Aye. Note that RangeError is

Re: Shared - Another Thread

2018-10-20 Thread Stanislav Blinov via Digitalmars-d
On Saturday, 20 October 2018 at 02:09:56 UTC, Dominikus Dittes Scherkl wrote: On Saturday, 20 October 2018 at 00:46:36 UTC, Nicholas Wilson wrote: Mutable = value may change const = I will not change the value immutable = the value will not change unshared = I (well the current thread) owns

Re: D Binding to GUI libraries

2018-10-20 Thread Russel Winder via Digitalmars-d
On Sat, 2018-10-20 at 12:43 +, tide via Digitalmars-d wrote: > […] > I mean it *may* work, but that isn't the problem if the > developers completely lack support for the platform. I can > download Qt with prebuilt libraries and it works out of the box > with MSVC. There's an obvious

Re: Truly @nogc Exceptions?

2018-10-20 Thread Mike Parker via Digitalmars-d
On Saturday, 20 October 2018 at 13:48:32 UTC, Paolo Invernizzi wrote: If `@nogc` could be relaxed for `new Error` exactly for that reason, pieces of Phobos could be turned `@nogc`... But I admit that that change would be controversial...

Re: D Binding to GUI libraries

2018-10-20 Thread Paolo Invernizzi via Digitalmars-d
On Saturday, 20 October 2018 at 14:24:56 UTC, Russel Winder wrote: On Sat, 2018-10-20 at 12:43 +, tide via Digitalmars-d wrote: […] I mean it *may* work, but that isn't the problem if the developers completely lack support for the platform. I can download Qt with prebuilt libraries and

Re: More zero-initialization optimizations pending in std.experimental.allocator?

2018-10-20 Thread Nathan S. via Digitalmars-d
On Friday, 19 October 2018 at 21:29:42 UTC, Per Nordlöw wrote: Now that https://github.com/dlang/phobos/pull/6411 has been merged and DMD stable soon has the new __traits(isZeroInit, T) found here https://dlang.org/changelog/2.083.0.html#isZeroInit are there more

Re: Shared - Another Thread

2018-10-20 Thread Dominikus Dittes Scherkl via Digitalmars-d
On Saturday, 20 October 2018 at 06:04:45 UTC, Manu wrote: How can you find that such a construct carries its weight with respect to its rare-ness, when its usefulness is very limited to begin with? I suggested it only because of the resistance to the proposed implicit cast to shared. But I

Re: Shared - Another Thread

2018-10-20 Thread Manu via Digitalmars-d
On Sat., 20 Oct. 2018, 12:10 am Dominikus Dittes Scherkl via Digitalmars-d, wrote: > On Saturday, 20 October 2018 at 06:04:45 UTC, Manu wrote: > > How can you find that such a construct carries its weight with > > respect > > to its rare-ness, when its usefulness is very limited to begin > >

Re: Shared - Another Thread

2018-10-20 Thread Manu via Digitalmars-d
On Sat., 20 Oct. 2018, 12:10 am Dominikus Dittes Scherkl via Digitalmars-d, wrote: > On Saturday, 20 October 2018 at 06:04:45 UTC, Manu wrote: > > How can you find that such a construct carries its weight with > > respect > > to its rare-ness, when its usefulness is very limited to begin > >

Re: Need help with setting up LDC to cross-compile to Android/ARM

2018-10-20 Thread Joakim via Digitalmars-d
On Friday, 19 October 2018 at 22:19:31 UTC, H. S. Teoh wrote: On Fri, Oct 19, 2018 at 02:41:48PM -0700, H. S. Teoh via Digitalmars-d wrote: [...] In the meantime, is there a particular version of the NDK that I should use? Currently I have android-ndk-r13b-linux-x86_64.zip installed. Will it

Re: shared - i need it to be useful

2018-10-20 Thread Walter Bright via Digitalmars-d
On 10/19/2018 11:18 PM, Manu wrote: The reason I ask is because, by my definition, if you have: int* a; shared(int)* b = a; While you have 2 numbers that address the same data, it is not actually aliased because only `a` can access it. They are aliased, by code that believes it is unshared,

[Issue 19318] New: Variables captured from outer functions not visible in debugger

2018-10-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19318 Issue ID: 19318 Summary: Variables captured from outer functions not visible in debugger Product: D Version: D2 Hardware: All OS: Windows Status: NEW

Re: D Binding to GUI libraries [was Interesting Observation from JAXLondon]

2018-10-20 Thread Russel Winder via Digitalmars-d
On Sat, 2018-10-20 at 08:52 +, Gregor Mückl via Digitalmars-d wrote: > […] > I periodically look at how I can make use of D for small > projects. Most often, I shy away because I want to build a GUI > and none of the libraries that I can find look mature and well > maintained enough to put

Re: D Binding to GUI libraries [was Interesting Observation from JAXLondon]

2018-10-20 Thread Gregor Mückl via Digitalmars-d
On Saturday, 20 October 2018 at 09:25:58 UTC, Russel Winder wrote: On Sat, 2018-10-20 at 08:52 +, Gregor Mückl via Digitalmars-d wrote: […] I periodically look at how I can make use of D for small projects. Most often, I shy away because I want to build a GUI and none of the libraries

Re: BindBC -- The successor to Derelict

2018-10-20 Thread Guillaume Piolat via Digitalmars-d-announce
On Friday, 19 October 2018 at 17:34:10 UTC, Mike Parker wrote: I plan to port the more used Derelict bindings over the course of the next few weeks. I've got another massive project I'm working on that will make use of some of the BindBC packages, so I'll be focusing first on the ones I need

Re: shared - i need it to be useful

2018-10-20 Thread Nicholas Wilson via Digitalmars-d
On Saturday, 20 October 2018 at 17:06:22 UTC, Stanislav Blinov wrote: On Saturday, 20 October 2018 at 16:48:05 UTC, Nicholas Wilson wrote: On Saturday, 20 October 2018 at 09:04:17 UTC, Walter Bright wrote: by code that believes it is unshared you cannot `@safe`ly modify the memory through

Re: shared - i need it to be useful

2018-10-20 Thread Manu via Digitalmars-d
On Sat, Oct 20, 2018 at 2:05 AM Walter Bright via Digitalmars-d wrote: > > On 10/19/2018 11:18 PM, Manu wrote: > > The reason I ask is because, by my definition, if you have: > > int* a; > > shared(int)* b = a; > > > > While you have 2 numbers that address the same data, it is not actually > >

Re: shared - i need it to be useful

2018-10-20 Thread Manu via Digitalmars-d
On Sat, Oct 20, 2018 at 9:45 AM Stanislav Blinov via Digitalmars-d wrote: > > On Saturday, 20 October 2018 at 16:18:53 UTC, aliak wrote: > > > class C { > > void f(); > > void g() shared; > > } > > > > void t1(shared C c) { > > c.g; // ok > > c.f; // error > > } > > > > void t2(shared C

[Issue 19322] New: A lot of memory is consumed and not freed to the system when Exception is formatted with stacktrace in debug

2018-10-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19322 Issue ID: 19322 Summary: A lot of memory is consumed and not freed to the system when Exception is formatted with stacktrace in debug Product: D Version: D2

[Issue 19322] A lot of memory is consumed and not freed to the system when Exception is formatted with stacktrace in debug

2018-10-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19322 Tomáš Chaloupka changed: What|Removed |Added CC||d...@me.com --

Re: shared - i need it to be useful

2018-10-20 Thread Stanislav Blinov via Digitalmars-d
On Saturday, 20 October 2018 at 18:30:59 UTC, Manu wrote: On Sat, Oct 20, 2018 at 9:45 AM Stanislav Blinov via Digitalmars-d wrote: On Saturday, 20 October 2018 at 16:18:53 UTC, aliak wrote: > class C { > void f(); > void g() shared; > } Those are not "ok". They're only "ok" under

Re: More zero-initialization optimizations pending in std.experimental.allocator?

2018-10-20 Thread Stanislav Blinov via Digitalmars-d
On Saturday, 20 October 2018 at 15:10:38 UTC, Nathan S. wrote: Other opportunities would rely on being able to identify if it's ever more efficient to write `memset(, 0, typeof(x).sizeof)` instead of `x = typeof(x).init` which seems like the kind of optimization that belongs in the compiler

[Issue 18929] std.range.chain with single elements too

2018-10-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18929 Tiberiu Lepadatu changed: What|Removed |Added CC||tiberiulepadat...@gmail.com --- Comment

Re: Building GUI projects with D

2018-10-20 Thread ezneh via Digitalmars-d-learn
On Saturday, 20 October 2018 at 15:40:07 UTC, karis njiru wrote: Hi. Am a computer science student from Kenya and decided to use D for my class project on Principles of Programming Languages. Am having a lot of fun with D but have come across an issue. I have been using Visual D for the past 2

[Issue 19321] New: Unions "may not" have fields with destructors

2018-10-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19321 Issue ID: 19321 Summary: Unions "may not" have fields with destructors Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

Re: D Binding to GUI libraries [was Interesting Observation from JAXLondon]

2018-10-20 Thread Atila Neves via Digitalmars-d
On Saturday, 20 October 2018 at 10:28:47 UTC, Gregor Mückl wrote: On Saturday, 20 October 2018 at 09:25:58 UTC, Russel Winder wrote: On Sat, 2018-10-20 at 08:52 +, Gregor Mückl via Digitalmars-d wrote: […] I periodically look at how I can make use of D for small projects. Most often, I

[Issue 15710] Replacement for std.utf.validate which does not throw

2018-10-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15710 Ioana Stefan changed: What|Removed |Added Status|NEW |ASSIGNED CC|

Building GUI projects with D

2018-10-20 Thread karis njiru via Digitalmars-d-learn
Hi. Am a computer science student from Kenya and decided to use D for my class project on Principles of Programming Languages. Am having a lot of fun with D but have come across an issue. I have been using Visual D for the past 2 months for my coding but after a lot of research i found out

Re: Truly @nogc Exceptions?

2018-10-20 Thread Paolo Invernizzi via Digitalmars-d
On Saturday, 20 October 2018 at 14:56:37 UTC, Mike Parker wrote: On Saturday, 20 October 2018 at 13:48:32 UTC, Paolo Invernizzi wrote: If `@nogc` could be relaxed for `new Error` exactly for that reason, pieces of Phobos could be turned `@nogc`... But I admit that that change would be

[Issue 19317] dip1008 doesn't call the throwable's destructor in _d_delThrowable

2018-10-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19317 --- Comment #2 from Nicholas Wilson --- Hmm, the actual problem seems to be that _d_delThrowable takes a Throwable [1] (N.B: not the most derived type) and after checking its not null, is ref counted, and `GC.removeRange(t);`ing if necessary,

Re: shared - i need it to be useful

2018-10-20 Thread aliak via Digitalmars-d
On Saturday, 20 October 2018 at 09:04:17 UTC, Walter Bright wrote: Somehow, you still have to find a way to give the shared path access, through a gate or a cast or a lock or whatever. And then it breaks, because two different threads are accessing the same data each thinking that data is not

[Issue 7006] std.math.pow (integral, integral) crashes on negative exponents

2018-10-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7006 Cristian Creteanu changed: What|Removed |Added CC||cristiancretean...@gmail.co

Re: shared - i need it to be useful

2018-10-20 Thread Stanislav Blinov via Digitalmars-d
On Saturday, 20 October 2018 at 16:18:53 UTC, aliak wrote: class C { void f(); void g() shared; } void t1(shared C c) { c.g; // ok c.f; // error } void t2(shared C c) { c.g; // ok c.f; // error } auto c = new C(); spawn(, c); spawn(, c); c.f; // ok c.g; // ok Those are not

Re: shared - i need it to be useful

2018-10-20 Thread Nicholas Wilson via Digitalmars-d
On Saturday, 20 October 2018 at 09:04:17 UTC, Walter Bright wrote: On 10/19/2018 11:18 PM, Manu wrote: The reason I ask is because, by my definition, if you have: int* a; shared(int)* b = a; While you have 2 numbers that address the same data, it is not actually aliased because only `a` can

Re: shared - i need it to be useful

2018-10-20 Thread Stanislav Blinov via Digitalmars-d
On Saturday, 20 October 2018 at 16:48:05 UTC, Nicholas Wilson wrote: On Saturday, 20 October 2018 at 09:04:17 UTC, Walter Bright wrote: On 10/19/2018 11:18 PM, Manu wrote: The reason I ask is because, by my definition, if you have: int* a; shared(int)* b = a; While you have 2 numbers that

Re: Shared - Another Thread

2018-10-20 Thread Manu via Digitalmars-d
On Sat., 20 Oct. 2018, 7:00 am Stanislav Blinov via Digitalmars-d, < digitalmars-d@puremagic.com> wrote: > On Saturday, 20 October 2018 at 02:09:56 UTC, Dominikus Dittes > Scherkl wrote: > > On Saturday, 20 October 2018 at 00:46:36 UTC, Nicholas Wilson > > wrote: > >> Mutable = value may change >

Re: shared - i need it to be useful

2018-10-20 Thread Nicholas Wilson via Digitalmars-d
On Saturday, 20 October 2018 at 16:41:41 UTC, Stanislav Blinov wrote: On Saturday, 20 October 2018 at 16:18:53 UTC, aliak wrote: class C { void f(); void g() shared; } void t1(shared C c) { c.g; // ok c.f; // error } void t2(shared C c) { c.g; // ok c.f; // error } auto c = new

Re: Wed Oct 17 - Avoiding Code Smells by Walter Bright

2018-10-20 Thread luckoverthere via Digitalmars-d-announce
On Friday, 19 October 2018 at 03:53:12 UTC, Walter Bright wrote: On 10/15/2018 2:23 PM, Walter Bright wrote: I'm giving a presentation at: http://nwcpp.org/ See you there! Had a nice crowd there last night. Apparently lots of people were interested in this topic! Video:

Re: Interesting Observation from JAXLondon

2018-10-20 Thread Gregor Mückl via Digitalmars-d
On Friday, 12 October 2018 at 10:27:53 UTC, Peter Alexander wrote: As long as D continues to be a nice language to work in for hobbyists, there will always be potential for a killer use case to come along. D just needs to make sure it doesn't piss off its fans. vibe.d happened because a

[Issue 19319] New: No line number when std.math is missing for x ^^ y

2018-10-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19319 Issue ID: 19319 Summary: No line number when std.math is missing for x ^^ y Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal

Re: Which Docker to use?

2018-10-20 Thread Jon Degenhardt via Digitalmars-d-learn
On Friday, 19 October 2018 at 22:16:04 UTC, Ky-Anh Huynh wrote: On Wednesday, 17 October 2018 at 23:15:53 UTC, Jon Degenhardt wrote: I need to use docker to build static linked Linux executables. My reason is specific, may be different than the OP's. I'm using Travis-CI to build executables.