Re: Error calling geqrs function from lubeck package.

2018-04-20 Thread chuoiit18 via Digitalmars-d-learn
On Tuesday, 17 April 2018 at 03:30:45 UTC, Jamie wrote: On Tuesday, 17 April 2018 at 03:26:25 UTC, Jamie wrote: Sorry it's really an error calling geqrs function from mir-lapack package. , This is a great article. It gave me a lot of useful information. thank you very much. Link profile:

Re: What's the latest news for calling D from python 3 using ctypes?

2018-04-20 Thread chuoiit18 via Digitalmars-d-learn
On Wednesday, 28 February 2018 at 03:08:05 UTC, chuoiit18 wrote: On Wednesday, 28 February 2018 at 02:40:59 UTC, Nicholas Wilson wrote: On Wednesday, 28 February 2018 at 01:19:25 UTC, Enjoys Math wrote: [...] For some reason, idk why, PyD is a dub source dependency (as opposed to a

Re: Better multithreading with D

2018-04-20 Thread 12345swordy via Digitalmars-d-learn
On Saturday, 21 April 2018 at 02:08:24 UTC, solidstate1991 wrote: In order to call a function multiple time at parallel (rendering function, very well parallelizable), but in order to push the CPU to it's limits I have to get some form of parallelization. Currently I'm using parallel foreach,

Re: autowrap v0.0.1 - Automatically wrap existing D code for use in Python and Excel

2018-04-20 Thread karita via Digitalmars-d-announce
On Wednesday, 18 April 2018 at 15:28:07 UTC, Atila Neves wrote: http://code.dlang.org/packages/autowrap This came out of the need at work to take existing D code and make it available for both Excel and Python. [...] Awesome. I'm also working on numpy.ndarray <-> mir.ndslice automatic

Better multithreading with D

2018-04-20 Thread solidstate1991 via Digitalmars-d-learn
In order to call a function multiple time at parallel (rendering function, very well parallelizable), but in order to push the CPU to it's limits I have to get some form of parallelization. Currently I'm using parallel foreach, which isn't very nice, and since it uses GC allocation that

Re: PixelPerfectEngine v0.9.4-alpha.2

2018-04-20 Thread solidstate1991 via Digitalmars-d-announce
On Monday, 16 April 2018 at 15:08:38 UTC, Chris Katko wrote: Definitely add screen shots to the github. Screenshots = Downloads. I know, currently I'm struggling with getting assets for this purpose, also with getting rid of the GC from the rendering pipeline.

Re: OT - Replacing strings with slices in C# - high performance improvement

2018-04-20 Thread Jack Stouffer via Digitalmars-d
On Friday, 20 April 2018 at 16:33:44 UTC, rumbu wrote: .NET Core 2.1 was announced, with emphasis on using Span instead of classic String class all around the framework. For people not familiar with C#, Span is similar to a D array slice.

Re: Why don't lazy parameters bind to delegates? Was: Feature to get or add value to an associative array.

2018-04-20 Thread Jonathan M Davis via Digitalmars-d
On Friday, April 20, 2018 19:36:57 Steven Schveighoffer via Digitalmars-d wrote: > On 4/20/18 5:40 PM, Jonathan M Davis wrote: > > On Friday, April 20, 2018 16:35:43 Steven Schveighoffer via > > Digitalmars-d > > > > wrote: > >> On 4/17/18 4:49 PM, Steven Schveighoffer wrote: > >>> On 4/17/18

Re: Why don't lazy parameters bind to delegates? Was: Feature to get or add value to an associative array.

2018-04-20 Thread Jonathan M Davis via Digitalmars-d
On Friday, April 20, 2018 19:27:20 Steven Schveighoffer via Digitalmars-d wrote: > On 4/20/18 6:46 PM, Giles Bathgate wrote: > > On Friday, 20 April 2018 at 22:21:13 UTC, Jonathan M Davis wrote: > >> Honestly, I think that it's a terrible idea to special-case it like > >> that. If we want to

Re: Why don't lazy parameters bind to delegates? Was: Feature to get or add value to an associative array.

2018-04-20 Thread Steven Schveighoffer via Digitalmars-d
On 4/20/18 7:21 PM, Giles Bathgate wrote: On Friday, 20 April 2018 at 23:13:58 UTC, Jonathan M Davis wrote: Yes. That should work. e.g. this import std.stdio; void foo(lazy string l) { } void main() {     foo({writeln("foo"); return "str";}()); } compiles and runs just fine without printing

Re: Why don't lazy parameters bind to delegates? Was: Feature to get or add value to an associative array.

2018-04-20 Thread Steven Schveighoffer via Digitalmars-d
On 4/20/18 5:40 PM, Jonathan M Davis wrote: On Friday, April 20, 2018 16:35:43 Steven Schveighoffer via Digitalmars-d wrote: On 4/17/18 4:49 PM, Steven Schveighoffer wrote: On 4/17/18 12:18 PM, Nick Treleaven wrote: Thanks for making this pull, I've thought about solving this before. I think

Re: Why don't lazy parameters bind to delegates? Was: Feature to get or add value to an associative array.

2018-04-20 Thread Steven Schveighoffer via Digitalmars-d
On 4/20/18 6:46 PM, Giles Bathgate wrote: On Friday, 20 April 2018 at 22:21:13 UTC, Jonathan M Davis wrote: Honestly, I think that it's a terrible idea to special-case it like that. If we want to argue for making it work in the language, that's fine, but if we special-case it like this, then

Re: Why don't lazy parameters bind to delegates? Was: Feature to get or add value to an associative array.

2018-04-20 Thread Giles Bathgate via Digitalmars-d
On Friday, 20 April 2018 at 23:13:58 UTC, Jonathan M Davis wrote: Yes. That should work. e.g. this import std.stdio; void foo(lazy string l) { } void main() { foo({writeln("foo"); return "str";}()); } compiles and runs just fine without printing anything, whereas you get a compilation

Re: Why don't lazy parameters bind to delegates? Was: Feature to get or add value to an associative array.

2018-04-20 Thread Jonathan M Davis via Digitalmars-d
On Friday, April 20, 2018 22:46:54 Giles Bathgate via Digitalmars-d wrote: > On Friday, 20 April 2018 at 22:21:13 UTC, Jonathan M Davis wrote: > > Honestly, I think that it's a terrible idea to special-case it > > like that. If we want to argue for making it work in the > > language, that's fine,

Re: Why don't lazy parameters bind to delegates? Was: Feature to get or add value to an associative array.

2018-04-20 Thread Giles Bathgate via Digitalmars-d
On Friday, 20 April 2018 at 22:21:13 UTC, Jonathan M Davis wrote: Honestly, I think that it's a terrible idea to special-case it like that. If we want to argue for making it work in the language, that's fine, but if we special-case it like this, then it will work with some functions that have

Re: Why don't lazy parameters bind to delegates? Was: Feature to get or add value to an associative array.

2018-04-20 Thread Jonathan M Davis via Digitalmars-d
On Friday, April 20, 2018 22:03:04 Giles Bathgate via Digitalmars-d wrote: > On Friday, 20 April 2018 at 20:35:43 UTC, Steven Schveighoffer > > wrote: > > Let me say I was surprised that this doesn't actually work. An > > in-line lambda will NOT work as a lazy parameter, even though > > that's

Re: Why don't lazy parameters bind to delegates? Was: Feature to get or add value to an associative array.

2018-04-20 Thread Giles Bathgate via Digitalmars-d
On Friday, 20 April 2018 at 20:35:43 UTC, Steven Schveighoffer wrote: Let me say I was surprised that this doesn't actually work. An in-line lambda will NOT work as a lazy parameter, even though that's EXACTLY what a lazy parameter is implemented as! And variadic lazy parameters are

Re: Why don't lazy parameters bind to delegates? Was: Feature to get or add value to an associative array.

2018-04-20 Thread Jonathan M Davis via Digitalmars-d
On Friday, April 20, 2018 16:35:43 Steven Schveighoffer via Digitalmars-d wrote: > On 4/17/18 4:49 PM, Steven Schveighoffer wrote: > > On 4/17/18 12:18 PM, Nick Treleaven wrote: > >> Thanks for making this pull, I've thought about solving this before. I > >> think the function needs to provide a

Re: D vs nim

2018-04-20 Thread jmh530 via Digitalmars-d
On Friday, 20 April 2018 at 11:07:30 UTC, Russel Winder wrote: Has anyone got Pony on their list of interesting languages? I had spent some time looking over the reference capabilities [1], but I'm not sure I have the time to actually program in the language. The isolated type seemed like

[Issue 18735] all versions of find and canfind should identify usage of predicate

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18735 petrug changed: What|Removed |Added Assignee|petru.guri...@gmail.com |nob...@puremagic.com --

[Issue 18731] Link only with druntime for the runnable tests if Phobos isn't needed

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18731 petrug changed: What|Removed |Added Assignee|petru.guri...@gmail.com |nob...@puremagic.com --

[Issue 18735] all versions of find and canfind should identify usage of predicate

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18735 petrug changed: What|Removed |Added CC||petru.guri...@gmail.com

[Issue 18731] Link only with druntime for the runnable tests if Phobos isn't needed

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18731 petrug changed: What|Removed |Added CC||petru.guri...@gmail.com

[Issue 18728] std.math.fdim does not handle nan correctly

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18728 petrug changed: What|Removed |Added CC||petru.guri...@gmail.com

[Issue 18727] std.math.fmin does not handle nan correctly

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18727 petrug changed: What|Removed |Added CC||petru.guri...@gmail.com

[Issue 18786] AV program detects malware in windows download of DMD

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18786 greenify changed: What|Removed |Added CC||greeen...@gmail.com ---

Re: Are Fibers just broken in D?

2018-04-20 Thread Byron Moxie via Digitalmars-d-learn
On Friday, 20 April 2018 at 20:46:20 UTC, Steven Schveighoffer wrote: On 4/20/18 2:58 PM, Byron Moxie wrote: [...] It sounds like the problems may be due to Win32 and not the other pieces. Have you tried on a Win64 build? Even if that's not your target, at least it can help you discover

Re: Are Fibers just broken in D?

2018-04-20 Thread Steven Schveighoffer via Digitalmars-d-learn
On 4/20/18 2:58 PM, Byron Moxie wrote: I am working on an application that makes heavy use of Fibers pools that are processed by a thread pool. In WIN32 it looks like its leaking memory then it segfaults (I am guessing its an OOM). I am also trying to use Semaphores and/or Conditions on

Why don't lazy parameters bind to delegates? Was: Feature to get or add value to an associative array.

2018-04-20 Thread Steven Schveighoffer via Digitalmars-d
On 4/17/18 4:49 PM, Steven Schveighoffer wrote: On 4/17/18 12:18 PM, Nick Treleaven wrote: Thanks for making this pull, I've thought about solving this before. I think the function needs to provide a way to tell if the value was already present. Not as straightforward, but it can be done:

Re: D vs nim

2018-04-20 Thread Nordlöw via Digitalmars-d
On Friday, 20 April 2018 at 11:07:30 UTC, Russel Winder wrote: On Thu, 2018-04-19 at 16:50 +, Per Nordlöw via Digitalmars-d wrote: On Friday, 10 April 2015 at 18:52:24 UTC, weaselcat wrote: > P.S., the example on the language's frontpage is cool! > > http://nim-lang.org/ > > Why should I

Re: Issues with debugging GC-related crashes #2

2018-04-20 Thread Matthias Klumpp via Digitalmars-d
On Friday, 20 April 2018 at 18:30:30 UTC, Matthias Klumpp wrote: On Friday, 20 April 2018 at 05:32:32 UTC, Dmitry Olshansky wrote: On Friday, 20 April 2018 at 00:11:25 UTC, Matthias Klumpp wrote: On Thursday, 19 April 2018 at 18:45:41 UTC, kinke wrote: [...] [...] I think the order of

Re: Are Fibers just broken in D?

2018-04-20 Thread rikki cattermole via Digitalmars-d-learn
On 21/04/2018 6:58 AM, Byron Moxie wrote: I am working on an application that makes heavy use of Fibers pools that are processed by a thread pool. In WIN32 it looks like its leaking memory then it segfaults (I am guessing its an OOM). I am also trying to use Semaphores and/or Conditions on

Are Fibers just broken in D?

2018-04-20 Thread Byron Moxie via Digitalmars-d-learn
I am working on an application that makes heavy use of Fibers pools that are processed by a thread pool. In WIN32 it looks like its leaking memory then it segfaults (I am guessing its an OOM). I am also trying to use Semaphores and/or Conditions on shared data between fibers, which results

Re: dxml 0.3.0 released

2018-04-20 Thread Jonathan M Davis via Digitalmars-d-announce
On Friday, April 20, 2018 16:07:06 Jesse Phillips via Digitalmars-d-announce wrote: > On Friday, 20 April 2018 at 00:46:38 UTC, Jonathan M Davis wrote: > > Yes. I would have thought that that was clear. It throws if any > > of the characters or sequence of characters in the argument > > aren't

Re: Issues with debugging GC-related crashes #2

2018-04-20 Thread Matthias Klumpp via Digitalmars-d
On Friday, 20 April 2018 at 05:32:32 UTC, Dmitry Olshansky wrote: On Friday, 20 April 2018 at 00:11:25 UTC, Matthias Klumpp wrote: On Thursday, 19 April 2018 at 18:45:41 UTC, kinke wrote: [...] Jup, I did that already, it just took a really long time to run because when I made the change to

Re: GDB + ddemangle

2018-04-20 Thread drug via Digitalmars-d-announce
20.04.2018 20:55, Iain Buclaw пишет: Using a compiler that implements 2.077 or later (IIRC) probably won't, due to gdb being too old. They broke ABI by introducing back referencing, no release of gdb supports that yet. I see. Thanks for clarification. Aren't plugins for gdb like subj more

Re: GDB + ddemangle

2018-04-20 Thread Iain Buclaw via Digitalmars-d-announce
On 20 April 2018 at 17:40, drug via Digitalmars-d-announce wrote: > 20.04.2018 16:49, Iain Buclaw пишет: >> >> >> GDB auto-detects the language based on DW_LANG tag in the debug info. >> >> If you are starting up gdb without a program to debug, you can >>

Re: isInputRange is false for non-copyable types

2018-04-20 Thread Uranuz via Digitalmars-d
foreach(ref e; range) { } On idea is to have `ref` foreach to say that you would like to iterate your range without copying. The syntax could be: foreach(e; ref range) { } or: ref foreach(e; range) { } At least it will not break existing code. But this means that in each case you should

OT - Replacing strings with slices in C# - high performance improvement

2018-04-20 Thread rumbu via Digitalmars-d
.NET Core 2.1 was announced, with emphasis on using Span instead of classic String class all around the framework. For people not familiar with C#, Span is similar to a D array slice. https://blogs.msdn.microsoft.com/dotnet/2018/04/18/performance-improvements-in-net-core-2-1/

Re: #dbugfix Issue 16486 200$

2018-04-20 Thread jmh530 via Digitalmars-d
On Friday, 30 March 2018 at 06:11:22 UTC, 9il wrote: [snip] They are used in mir-lapack [5]. The bug fix also required for mir (Sparse, CompressedTensor), and for the future Dlang image library. I was experimenting with one of the open methods matrix examples [1] and trying to replace the

Re: #dbugfix Issue 16486 200$

2018-04-20 Thread jmh530 via Digitalmars-d
On Friday, 20 April 2018 at 16:03:40 UTC, jmh530 wrote: On Friday, 30 March 2018 at 06:11:22 UTC, 9il wrote: [...] I was experimenting with one of the open methods matrix examples [1] and trying to replace the virtual methods with templates. My example [3] does it statically and with

Re: dxml 0.3.0 released

2018-04-20 Thread Jesse Phillips via Digitalmars-d-announce
On Friday, 20 April 2018 at 00:46:38 UTC, Jonathan M Davis wrote: Yes. I would have thought that that was clear. It throws if any of the characters or sequence of characters in the argument aren't legal in the text portion of an XML document. Those characters that can be legally present in

Re: #dbugfix Issue 16486 200$

2018-04-20 Thread jmh530 via Digitalmars-d
On Friday, 30 March 2018 at 06:11:22 UTC, 9il wrote: [snip] They are used in mir-lapack [5]. The bug fix also required for mir (Sparse, CompressedTensor), and for the future Dlang image library. I was experimenting with one of the open methods matrix examples [1] and trying to replace the

Re: #dbugfix Issue 16486 200$

2018-04-20 Thread jmh530 via Digitalmars-d
On Friday, 30 March 2018 at 06:11:22 UTC, 9il wrote: [snip] They are used in mir-lapack [5]. The bug fix also required for mir (Sparse, CompressedTensor), and for the future Dlang image library. I was experimenting with one of the open methods matrix examples [1] and trying to replace the

Re: #dbugfix Issue 16486 200$

2018-04-20 Thread jmh530 via Digitalmars-d
On Friday, 30 March 2018 at 06:11:22 UTC, 9il wrote: [snip] They are used in mir-lapack [5]. The bug fix also required for mir (Sparse, CompressedTensor), and for the future Dlang image library. I was experimenting with one of the open methods matrix examples [1] and trying to replace the

Re: #dbugfix Issue 16486 200$

2018-04-20 Thread jmh530 via Digitalmars-d
On Friday, 30 March 2018 at 06:11:22 UTC, 9il wrote: [snip] They are used in mir-lapack [5]. The bug fix also required for mir (Sparse, CompressedTensor), and for the future Dlang image library. I was experimenting with one of the open methods matrix examples [1] and trying to replace the

Re: GDB + ddemangle

2018-04-20 Thread drug via Digitalmars-d-announce
20.04.2018 16:49, Iain Buclaw пишет: GDB auto-detects the language based on DW_LANG tag in the debug info. If you are starting up gdb without a program to debug, you can explicitly switch with: set lang d Then try something like: demangle _D3fooFiZv Or if you want it to start up in D mode:

Re: Feature to get or add value to an associative array.

2018-04-20 Thread Uknown via Digitalmars-d
On Friday, 20 April 2018 at 15:00:39 UTC, Steven Schveighoffer wrote: On 4/20/18 10:34 AM, Uknown wrote: On Friday, 20 April 2018 at 14:02:17 UTC, Steven Schveighoffer wrote: On 4/20/18 4:24 AM, Nick Treleaven wrote: On Wednesday, 18 April 2018 at 16:47:50 UTC, ag0aep6g wrote: [...] Sorry,

Re: Feature to get or add value to an associative array.

2018-04-20 Thread Steven Schveighoffer via Digitalmars-d
On 4/20/18 10:34 AM, Uknown wrote: On Friday, 20 April 2018 at 14:02:17 UTC, Steven Schveighoffer wrote: On 4/20/18 4:24 AM, Nick Treleaven wrote: On Wednesday, 18 April 2018 at 16:47:50 UTC, ag0aep6g wrote: You can get a pointer from the ref return:     Value* p = ("key", { inserted = true;

[Issue 18787] New: ddoc crashes on static foreach

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18787 Issue ID: 18787 Summary: ddoc crashes on static foreach Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1

Re: Feature to get or add value to an associative array.

2018-04-20 Thread Uknown via Digitalmars-d
On Friday, 20 April 2018 at 14:02:17 UTC, Steven Schveighoffer wrote: On 4/20/18 4:24 AM, Nick Treleaven wrote: On Wednesday, 18 April 2018 at 16:47:50 UTC, ag0aep6g wrote: You can get a pointer from the ref return:     Value* p = ("key", { inserted = true; return Value.init; }); This is

Re: Feature to get or add value to an associative array.

2018-04-20 Thread Steven Schveighoffer via Digitalmars-d
On 4/20/18 4:24 AM, Nick Treleaven wrote: On Wednesday, 18 April 2018 at 16:47:50 UTC, ag0aep6g wrote: You can get a pointer from the ref return:     Value* p = ("key", { inserted = true; return Value.init; }); This is not @safe, even with -dip1000: Error: cannot take address of ref return

Re: Feature to get or add value to an associative array.

2018-04-20 Thread Giles Bathgate via Digitalmars-d
On Friday, 20 April 2018 at 02:12:37 UTC, Jonathan M Davis wrote: Out of all of those, I _really_ hope that you don't go with require. It sounds like the sort of thing that you'd get in a library having to do with unit testing or contracts and gives no indication whatsoever as to what it does.

Re: GDB + ddemangle

2018-04-20 Thread Iain Buclaw via Digitalmars-d-announce
On 20 April 2018 at 14:54, drug via Digitalmars-d-announce wrote: > 20.04.2018 15:36, Mike Franklin пишет: > >> On Friday, 20 April 2018 at 10:36:25 UTC, drug wrote: >>> >>> 20.04.2018 13:03, Joakim пишет: You are aware that gdb has built-in

Re: Feature to get or add value to an associative array.

2018-04-20 Thread Giles Bathgate via Digitalmars-d
On Friday, 20 April 2018 at 08:37:59 UTC, Nick Treleaven wrote: Again, would the delegate calls always be inlined, in all cases? I think having a low-level API in druntime is appropriate, it's a runtime library after all. So the low-level API you are requesting is part of the pull request,

[Issue 18786] New: AV program detects malware in windows download of DMD

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18786 Issue ID: 18786 Summary: AV program detects malware in windows download of DMD Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: blocker

Re: GDB + ddemangle

2018-04-20 Thread drug via Digitalmars-d-announce
20.04.2018 15:36, Mike Franklin пишет: On Friday, 20 April 2018 at 10:36:25 UTC, drug wrote: 20.04.2018 13:03, Joakim пишет: You are aware that gdb has built-in support for demangling D for 3-4 years now? But how to enable it? It doesn't work out of box at least for me. I believe you

Re: GDB + ddemangle

2018-04-20 Thread Basile B. via Digitalmars-d-announce
On Friday, 20 April 2018 at 12:28:03 UTC, Basile B. wrote: On Friday, 20 April 2018 at 11:06:47 UTC, Mike Wey wrote: On 20-04-18 12:36, drug wrote: 20.04.2018 13:03, Joakim пишет: You are aware that gdb has built-in support for demangling D for 3-4 years now? But how to enable it? It

Re: GDB + ddemangle

2018-04-20 Thread Mike Franklin via Digitalmars-d-announce
On Friday, 20 April 2018 at 10:36:25 UTC, drug wrote: 20.04.2018 13:03, Joakim пишет: You are aware that gdb has built-in support for demangling D for 3-4 years now? But how to enable it? It doesn't work out of box at least for me. I believe you enable it with `-demangle=dlang` The

Re: GDB + ddemangle

2018-04-20 Thread Basile B. via Digitalmars-d-announce
On Friday, 20 April 2018 at 11:06:47 UTC, Mike Wey wrote: On 20-04-18 12:36, drug wrote: 20.04.2018 13:03, Joakim пишет: You are aware that gdb has built-in support for demangling D for 3-4 years now? But how to enable it? It doesn't work out of box at least for me. It should be

May 1: Traditional Maibaumaufstellung (Maypole erection) in Munich

2018-04-20 Thread Seb via Digitalmars-d
Hi all, to all the people who arrive a bit early in Munich. In Southern Germany Maibäume (Maypoles) are an old tradition about which people make a big fuzz. So on the May 1st in and around Munich there will be small festivities for their erection. Munich's city portal has a few pointers and a

[Issue 15386] std.format.formatValue usage hangs

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15386 vladvi...@gmail.com changed: What|Removed |Added Assignee|vladvi...@gmail.com |nob...@puremagic.com --

[Issue 18785] New: No way to get list of overloads for a given template

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18785 Issue ID: 18785 Summary: No way to get list of overloads for a given template Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity:

[Issue 18742] std.regex: Using CodePointSet in AAs breaks if reference count changes

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18742 vladvi...@gmail.com changed: What|Removed |Added CC||vladvi...@gmail.com

[Issue 15386] std.format.formatValue usage hangs

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15386 vladvi...@gmail.com changed: What|Removed |Added CC||vladvi...@gmail.com

Re: GDB + ddemangle

2018-04-20 Thread drug via Digitalmars-d-announce
20.04.2018 14:06, Mike Wey пишет: On 20-04-18 12:36, drug wrote: 20.04.2018 13:03, Joakim пишет: You are aware that gdb has built-in support for demangling D for 3-4 years now? But how to enable it? It doesn't work out of box at least for me. It should be automatic when the executable

Re: GDB + ddemangle

2018-04-20 Thread Mike Wey via Digitalmars-d-announce
On 20-04-18 12:36, drug wrote: 20.04.2018 13:03, Joakim пишет: You are aware that gdb has built-in support for demangling D for 3-4 years now? But how to enable it? It doesn't work out of box at least for me. It should be automatic when the executable is build with debugging info. `-g`

Re: D vs nim

2018-04-20 Thread Russel Winder via Digitalmars-d
On Thu, 2018-04-19 at 16:50 +, Per Nordlöw via Digitalmars-d wrote: > On Friday, 10 April 2015 at 18:52:24 UTC, weaselcat wrote: > > P.S., the example on the language's frontpage is cool! > > > > http://nim-lang.org/ > > > > Why should I be excited? > > Nim is the only language that

Re: GDB + ddemangle

2018-04-20 Thread drug via Digitalmars-d-announce
20.04.2018 13:03, Joakim пишет: You are aware that gdb has built-in support for demangling D for 3-4 years now? But how to enable it? It doesn't work out of box at least for me.

[Issue 18784] New: Segfault due to dmd codegen interfacing with C++

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18784 Issue ID: 18784 Summary: Segfault due to dmd codegen interfacing with C++ Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: blocker

Re: GDB + ddemangle

2018-04-20 Thread Basile B. via Digitalmars-d-announce
On Friday, 20 April 2018 at 10:03:53 UTC, Joakim wrote: On Thursday, 19 April 2018 at 12:43:36 UTC, ANtlord wrote: Hello! I've written a piece of glue code that helps to debug D code using GDB. The code glues together GDB and ddmangle. Checkout the link https://github.com/ANtlord/gdb-ddemangle

Re: GDB + ddemangle

2018-04-20 Thread Joakim via Digitalmars-d-announce
On Thursday, 19 April 2018 at 12:43:36 UTC, ANtlord wrote: Hello! I've written a piece of glue code that helps to debug D code using GDB. The code glues together GDB and ddmangle. Checkout the link https://github.com/ANtlord/gdb-ddemangle PRs are welcome! You are aware that gdb has built-in

Re: Feature to get or add value to an associative array.

2018-04-20 Thread ag0aep6g via Digitalmars-d
On Friday, 20 April 2018 at 09:24:26 UTC, Jonathan M Davis wrote: The compiler assumes that a pointer is valid when determining whether code is @safe. [...] Basically, it verifies the @safety of pointers when they're created and then assumes that they're @safe after that. Can't it do the

[Issue 11742] cannot inizialize void initialized static variable in static constructor.

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11742 RazvanN changed: What|Removed |Added CC|

Re: Feature to get or add value to an associative array.

2018-04-20 Thread Jonathan M Davis via Digitalmars-d
On Friday, April 20, 2018 10:56:37 ag0aep6g via Digitalmars-d wrote: > On 04/20/2018 10:24 AM, Nick Treleaven wrote: > > On Wednesday, 18 April 2018 at 16:47:50 UTC, ag0aep6g wrote: > >> You can get a pointer from the ref return: > >> > >> Value* p = ("key", { inserted = true; return

Re: dxml 0.3.0 released

2018-04-20 Thread Kagamin via Digitalmars-d-announce
On Friday, 20 April 2018 at 08:45:45 UTC, Dejan Lekic wrote: Jonathan, are the interfaces in the dom module generated from the IDL code from W3C? It's not W3C DOM :)

Re: dxml 0.3.0 released

2018-04-20 Thread Jonathan M Davis via Digitalmars-d-announce
On Friday, April 20, 2018 08:45:45 Dejan Lekic via Digitalmars-d-announce wrote: > On Thursday, 19 April 2018 at 14:40:58 UTC, Jonathan M Davis > > wrote: > > Well, since I'm going to be talking about dxml at dconf, and > > it's likely that I'll be talking about stuff that was not in > > the

Re: Feature to get or add value to an associative array.

2018-04-20 Thread ag0aep6g via Digitalmars-d
On 04/20/2018 10:24 AM, Nick Treleaven wrote: On Wednesday, 18 April 2018 at 16:47:50 UTC, ag0aep6g wrote: You can get a pointer from the ref return:     Value* p = ("key", { inserted = true; return Value.init; }); This is not @safe, even with -dip1000: Error: cannot take address of ref

Re: Feature to get or add value to an associative array.

2018-04-20 Thread Dominikus Dittes Scherkl via Digitalmars-d
On Thursday, 19 April 2018 at 08:20:02 UTC, Giles Bathgate wrote: On Wednesday, 18 April 2018 at 21:04:53 UTC, Jordan Wilson wrote: Thinking seems sound, although having a name starting with "get" does have the advantage of being more related to the existing get. Ah yes, good point. I think

Re: dxml 0.3.0 released

2018-04-20 Thread Dejan Lekic via Digitalmars-d-announce
On Thursday, 19 April 2018 at 14:40:58 UTC, Jonathan M Davis wrote: Well, since I'm going to be talking about dxml at dconf, and it's likely that I'll be talking about stuff that was not in the 0.2.* releases, it seemed like I should get a new release out before dconf. So, here it is. dxml

[Issue 7023] alias to overload set in template doesn't work

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7023 Simen Kjaeraas changed: What|Removed |Added Status|NEW |RESOLVED

Re: Feature to get or add value to an associative array.

2018-04-20 Thread Nick Treleaven via Digitalmars-d
On Wednesday, 18 April 2018 at 16:04:13 UTC, Giles Bathgate wrote: I understand where you are coming from, but I am not sure it is appropriate to shoehorn every use case into one api. It is not shoehorning, the difference here is just returning by ref vs pointer. I understand that, as the

Re: Issues with debugging GC-related crashes #2

2018-04-20 Thread Kagamin via Digitalmars-d
On Monday, 16 April 2018 at 16:36:48 UTC, Matthias Klumpp wrote: #2 0x751341c8 in _D2rt4util9container5treap__T5TreapTS2gc11gcinterface5RangeZQBf7opApplyMFNbMDFNbKQBtZiZ9__lambda2MFNbKxSQCpQCpQCfZi (e=...) at treap.d:47 dg = {context = 0x7fffc140 "\320\065\206", funcptr =

[Issue 18782] Documentation error: ProtectionAttributes should say Visibility Attributes

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18782 ag0aep6g changed: What|Removed |Added Keywords||pull CC|

Re: Feature to get or add value to an associative array.

2018-04-20 Thread Nick Treleaven via Digitalmars-d
On Wednesday, 18 April 2018 at 16:47:50 UTC, ag0aep6g wrote: You can get a pointer from the ref return: Value* p = ("key", { inserted = true; return Value.init; }); This is not @safe, even with -dip1000: Error: cannot take address of ref return of f() in @safe function main

[Issue 4074] function overloading fails

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4074 Simen Kjaeraas changed: What|Removed |Added Status|NEW |RESOLVED

Re: wstring double quotes to string double quotes

2018-04-20 Thread ag0aep6g via Digitalmars-d-learn
On 04/20/2018 09:45 AM, Joel wrote: On Friday, 20 April 2018 at 02:46:14 UTC, Jonathan M Davis wrote: [...] please create a bug report [...] Done. For reference, that was . But someone else was faster and filed

[Issue 18781] std.string.replace: RangeError when replacing with inconsistent string types

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18781 ag0aep6g changed: What|Removed |Added CC||ag0ae...@gmail.com

[Issue 18781] std.string.replace: RangeError when replacing with inconsistent string types

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18781 ag0aep6g changed: What|Removed |Added CC||joel...@gmail.com ---

[Issue 18783] crash with replace

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18783 ag0aep6g changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: wstring double quotes to string double quotes

2018-04-20 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, April 20, 2018 07:45:14 Joel via Digitalmars-d-learn wrote: > On Friday, 20 April 2018 at 02:46:14 UTC, Jonathan M Davis wrote: > > On Thursday, April 19, 2018 23:24:05 Joel via > > > > Digitalmars-d-learn wrote: > >> On Thursday, 19 April 2018 at 21:57:28 UTC, Adam D. Ruppe > >> > >>

Re: wstring double quotes to string double quotes

2018-04-20 Thread Joel via Digitalmars-d-learn
On Friday, 20 April 2018 at 02:46:14 UTC, Jonathan M Davis wrote: On Thursday, April 19, 2018 23:24:05 Joel via Digitalmars-d-learn wrote: On Thursday, 19 April 2018 at 21:57:28 UTC, Adam D. Ruppe wrote: > [...] That worked! Thanks Adam. Given that these functions really shouldn't be throw

[Issue 18783] New: crash with replace

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18783 Issue ID: 18783 Summary: crash with replace Product: D Version: D2 Hardware: x86_64 OS: Mac OS X Status: NEW Severity: minor Priority: P1

[Issue 18776] Internal error: dmd/backend/symbol.c 1043

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18776 Ketmar Dark changed: What|Removed |Added CC|

[Issue 2855] __traits: no way to get overloads and information for non-instance methods

2018-04-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2855 Simen Kjaeraas changed: What|Removed |Added Status|NEW |RESOLVED

OST to PST Converter

2018-04-20 Thread mariahcarey via Digitalmars-d
There is a fast and effective OST to PST Converter tool which can export OST file to PST file format easily, without affecting the original information. You can work on the OST to PST Converter software without any hesitation because it does not require any extra technical skill to install and