Re: D for microservices

2017-10-26 Thread Adam Wilson via Digitalmars-d
On 10/25/17 23:57, Jacob Carlborg wrote: On 2017-10-26 00:53, Adam Wilson wrote: This of course makes the assumption that we clean-room our own protocol implementations which I am entirely against. Better to use what already exists. I'm entirely against anything that is not compatible with

Re: Note from a donor

2017-10-26 Thread Kagamin via Digitalmars-d
On Tuesday, 24 October 2017 at 22:19:59 UTC, jmh530 wrote: I'm sympathetic to your point. I think there was/is some effort to allow LLD (the LLVM linker) as a replacement for the MSVC linker in LDC. Perhaps if LLD could be a drop-in for MSVC in DMD for Windows, then eventually it could be

Re: Note from a donor

2017-10-26 Thread Adam Wilson via Digitalmars-d
On 10/26/17 00:32, Jacob Carlborg wrote: On 2017-10-26 00:36, Adam Wilson wrote: Speaking from very long experience, 95%+ of Windows devs have VS+WinSDK installed as part of their default system buildout. The few that don't will have little trouble understanding why they need it and acquiring

Re: Assertions getting corrupted

2017-10-26 Thread bauss via Digitalmars-d
On Thursday, 26 October 2017 at 06:27:53 UTC, Jonathan M Davis wrote: On Thursday, October 26, 2017 09:04:56 Shachar Shemesh via Digitalmars-d wrote: ... Walter believes that it's worse to do cleanup when an Error is thrown than it is to not do cleanup, because the program is an unknown and

Re: Why 2 ^^ 1 ^^ 2 = 2?

2017-10-26 Thread Kagamin via Digitalmars-d-learn
On Sunday, 22 October 2017 at 22:28:48 UTC, Ivan Kazmenko wrote: Yeah, and a height-3 tower $a^{b^c}$ (TEX notation) Is $a^{b^c}$ the same as ${a^b}^c$ ? They are drawn slightly differently, so I suppose it's ambiguous indeed.

Re: Why 2 ^^ 1 ^^ 2 = 2?

2017-10-26 Thread Kagamin via Digitalmars-d-learn
On Sunday, 22 October 2017 at 22:28:48 UTC, Ivan Kazmenko wrote: Yeah, and a height-3 tower $a^{b^c}$ (TEX notation) actually means "a to the power of (b to the power of c)", not the other way around. Because you have explicit braces there. Math doesn't have precedence for exponentiation

[Issue 14178] C++ linux name mangling does not handle standard abbreviations for const types

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14178 --- Comment #9 from Guillaume Chatelet --- Unfortunately no. I can't find the time to work on this anymore :( --

[Issue 17938] New: Detect immutable variadic arguments

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17938 Issue ID: 17938 Summary: Detect immutable variadic arguments Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: performance Severity:

Re: Assertions getting corrupted

2017-10-26 Thread Jonathan M Davis via Digitalmars-d
On Thursday, October 26, 2017 11:15:52 Shachar Shemesh via Digitalmars-d wrote: > On 26/10/17 09:27, Jonathan M Davis wrote: > > since almost no one ever derives from Throwable, > > and I don't think it's really intended that anyone do so much as it is > > possible (and I'm not sure why you

Re: Named arguments

2017-10-26 Thread codephantom via Digitalmars-d
On Tuesday, 24 October 2017 at 17:30:27 UTC, Andrey wrote: Hello, why there are no named arguments for functions.. Named arguments for functions: - is useful..perhaps. - is desirable..debatable. - can provide a significant service to real programmers...?? If a case is to be made, that last

Re: Note from a donor

2017-10-26 Thread evilrat via Digitalmars-d
On Wednesday, 25 October 2017 at 04:55:16 UTC, Walter Bright wrote: On 10/24/2017 6:20 AM, Andrei Alexandrescu wrote: * better dll support for Windows. It's been there, but it breaks repeatedly because it is not in the test suite. Including TypeInfo? (classes, casting, all such things...)

Re: Assertions getting corrupted

2017-10-26 Thread Shachar Shemesh via Digitalmars-d
On 26/10/17 09:27, Jonathan M Davis wrote: since almost no one ever derives from Throwable, and I don't think it's really intended that anyone do so much as it is possible (and I'm not sure why you would) Here's where we're doing it. Our product will often have several fibers essentially

Re: Assertions getting corrupted

2017-10-26 Thread Shachar Shemesh via Digitalmars-d
On 26/10/17 09:32, Johan Engelen wrote: Destructors will have the same problem, right? It seems to me that the cause of the problem is that `assert` throws instead of aborting execution right there. -Johan And, indeed, my solution in the specific case that triggered this post was to switch

[Issue 17937] New: Dsymbol.checkDeprecated also checks if a symbol is disabled

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17937 Issue ID: 17937 Summary: Dsymbol.checkDeprecated also checks if a symbol is disabled Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW

Re: Note from a donor

2017-10-26 Thread Jacob Carlborg via Digitalmars-d
On 2017-10-26 00:36, Adam Wilson wrote: Speaking from very long experience, 95%+ of Windows devs have VS+WinSDK installed as part of their default system buildout. The few that don't will have little trouble understanding why they need it and acquiring it. IIRC, there have been people on

[Issue 17636] Support pragma(mangle) on types

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17636 Walter Bright changed: What|Removed |Added Keywords||mangling

[Issue 17310] [SPEC] Ambiguous mangling for 'Y', Objective-C function or variadic arguments?

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17310 Walter Bright changed: What|Removed |Added Keywords||mangling

[Issue 17379] Mangle voldemort types as if they are defined in the outer scope to avoid exponential symbol name length with templates

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17379 Walter Bright changed: What|Removed |Added Keywords||mangling

[Issue 17359] C++ Interfacing: function with 'static' array parameter cannot be linked (x64)

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17359 Walter Bright changed: What|Removed |Added Keywords||mangling

[Issue 17302] [SPEC] QualifiedName mangling does not match compiler.

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17302 Walter Bright changed: What|Removed |Added Keywords||pull --

[Issue 17302] [SPEC] QualifiedName mangling does not match compiler.

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17302 Walter Bright changed: What|Removed |Added Keywords||mangling

[Issue 16623] Support C++ Name Mangling

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16623 Walter Bright changed: What|Removed |Added Keywords||C++, mangling

[Issue 16289] no extern(C++) mangling for size_t/unsigned long parameters

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16289 Walter Bright changed: What|Removed |Added Keywords||C++, mangling

[Issue 15843] D-type mangling used for extern(C) (extern) function declaration inside function body, on LDC, GDC, and DMD.

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15843 Walter Bright changed: What|Removed |Added Keywords||mangling

[Issue 15523] extern(C++) support TLS (C++ 'thread_local') linkage?

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15523 Walter Bright changed: What|Removed |Added Keywords||C++

[Issue 15473] C++ mangling problem

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15473 Walter Bright changed: What|Removed |Added Keywords||C++, mangling --

[Issue 15143] core.demangle: Superfluous * when demangling function pointers

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15143 Walter Bright changed: What|Removed |Added Keywords||mangling

Re: D for microservices

2017-10-26 Thread Jacob Carlborg via Digitalmars-d
On 2017-10-26 00:53, Adam Wilson wrote: This of course makes the assumption that we clean-room our own protocol implementations which I am entirely against. Better to use what already exists. I'm entirely against anything that is not compatible with vibe.d ;) I actually don't think the slow

[Issue 14894] mangling of mixins and lambdas is not unique and depends on compilation flags

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14894 Walter Bright changed: What|Removed |Added Keywords||mangling --

Re: Required Reading: "How Non-Member Functions Improve Encapsulation"

2017-10-26 Thread who cares via Digitalmars-d
On Wednesday, 25 October 2017 at 22:19:23 UTC, Walter Bright wrote: for core D devs. "How Non-Member Functions Improve Encapsulation" by Scott Meyers http://www.drdobbs.com/cpp/how-non-member-functions-improve-encapsu/184401197 Note that I'm as guilty as anyone for not understanding or

[Issue 14831] Each function local symbols should have unique mangled name

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14831 Walter Bright changed: What|Removed |Added Keywords||mangling

[Issue 14739] Immutable alias to template triggers dmd assert

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14739 Walter Bright changed: What|Removed |Added Keywords||ice, mangling

[Issue 14591] [SPEC] Ambiguity between extern(Pascal) and template value parameters

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14591 Walter Bright changed: What|Removed |Added Keywords||mangling

[Issue 14178] C++ linux name mangling does not handle standard abbreviations for const types

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14178 Walter Bright changed: What|Removed |Added Keywords||mangling ---

Re: Named arguments

2017-10-26 Thread Jacob Carlborg via Digitalmars-d
On 2017-10-24 22:36, H. S. Teoh wrote: On Tue, Oct 24, 2017 at 01:22:41PM -0600, Jonathan M Davis via Digitalmars-d wrote: [...] Personally, I don't want them in D. If you have enough arguments that it matters, then the function probably has too many parameters or too many similar parameters.

Re: Is it possible to have reproducible-builds?

2017-10-26 Thread WeaponizedSlave via Digitalmars-d-learn
On Thursday, 26 October 2017 at 04:34:36 UTC, Ky-Anh Huynh wrote: Hi, I'd like to distribute binaries (compiled from Dlang sources) to my servers and users. This really helps end users because they don't need to rebuild things with custom dmd/dub setup. However, distributing things require

[Issue 13984] Mangling of /ENTRY depends on DLL imports

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13984 Walter Bright changed: What|Removed |Added Keywords||mangling

[Issue 12959] nothrow should be required for extern(C) functions

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12959 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 12575] extern(C) mangling ignored inside mixin template

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12575 Walter Bright changed: What|Removed |Added Keywords||mangling

[Issue 11586] core.demangle should understand _D16TypeInfo_HAyayAa6__initZ etc.

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11586 Walter Bright changed: What|Removed |Added Keywords||mangling

[Issue 11131] variables without linkage shouldn't have a mangling (.mangleof)

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11131 Walter Bright changed: What|Removed |Added Keywords||mangling

[Issue 11248] template value parameter cause too long mangling

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11248 Walter Bright changed: What|Removed |Added Keywords||mangling

[Issue 8789] mangling of const member function

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8789 Walter Bright changed: What|Removed |Added Keywords||mangling

[Issue 7854] Non-C attributes allowed on extern(C) function parameters

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7854 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 7024] inconsistent mangling of shared in extern(C++)

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7024 Walter Bright changed: What|Removed |Added Keywords||mangling

[Issue 4620] C++ constructor and template mangling, C++ ABI patch

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4620 Walter Bright changed: What|Removed |Added Keywords||mangling

[Issue 17772] Wrong C++ mangled names for templated functions

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17772 Walter Bright changed: What|Removed |Added Keywords||mangling

[Issue 16479] Wrong C++ mangling for template

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16479 Walter Bright changed: What|Removed |Added Keywords||mangling

[Issue 16359] Mangling of const static arrays does not match C++

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16359 Walter Bright changed: What|Removed |Added Keywords||mangling --

[Issue 15970] C++ mangling of templated arg type

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15970 Walter Bright changed: What|Removed |Added Keywords||mangling

[Issue 15505] extern(C++) array parameter mangling gains surprise const

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15505 Walter Bright changed: What|Removed |Added Keywords||mangling

[Issue 15608] extern(C++) mangling problem

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15608 Walter Bright changed: What|Removed |Added Keywords||mangling --

Re: Unit Testing in Action

2017-10-26 Thread Jacob Carlborg via Digitalmars-d-announce
On 2017-10-25 04:15, Walter Bright wrote: The problem is how to display it in a text file with the original source code. An option to output the result in XML or JSON would allow an editor or IDE more options to display the result, for example, hover on different expressions to show the

Re: Assertions getting corrupted

2017-10-26 Thread Johan Engelen via Digitalmars-d
On Thursday, 26 October 2017 at 06:04:56 UTC, Shachar Shemesh wrote: There's a fundamental problem with scope(exit) and scope(failure). Consider the following code: { a = allocate_something(); scope(exit) a.cleanup(); ... assert(a.nothingHorribleWentWrong); } Ideally, if that

[Issue 14956] C++ Mangling incompatible with C++11

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14956 Walter Bright changed: What|Removed |Added Keywords||mangling

Re: DMD, Windows and C

2017-10-26 Thread Jacob Carlborg via Digitalmars-d-announce
On 2017-10-25 21:15, MrSmith wrote: I wish we had zero-dependence distributions of all compilers for Windows. I want to redist compiler with my application for easy modding. And requiring VisualStudio / BuildToos is too much garbage for a small task. (Ideally it should be 20-30 MB at max).

Re: Assertions getting corrupted

2017-10-26 Thread Jonathan M Davis via Digitalmars-d
On Thursday, October 26, 2017 09:04:56 Shachar Shemesh via Digitalmars-d wrote: > I'm going to hate myself for suggesting this, but here goes. > > There's a fundamental problem with scope(exit) and scope(failure). > Consider the following code: > > { >a = allocate_something(); >

Assertions getting corrupted

2017-10-26 Thread Shachar Shemesh via Digitalmars-d
I'm going to hate myself for suggesting this, but here goes. There's a fundamental problem with scope(exit) and scope(failure). Consider the following code: { a = allocate_something(); scope(exit) a.cleanup(); ... assert(a.nothingHorribleWentWrong); } Ideally, if that assert fails,

<    1   2