[Issue 17033] New: std.experimental.logger should allow async logging

2016-12-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17033 Issue ID: 17033 Summary: std.experimental.logger should allow async logging Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement

[Issue 17031] isSortedRange uses string comparisons to check for sortedness

2016-12-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17031 --- Comment #1 from greenify --- For propagating sortedness I created another enhancement request: https://issues.dlang.org/show_bug.cgi?id=17032 --

[Issue 17032] New: Sortedness of a range should be propagated

2016-12-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17032 Issue ID: 17032 Summary: Sortedness of a range should be propagated Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement

[Issue 17031] New: isSortedRange uses string comparisons to check for sortedness

2016-12-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17031 Issue ID: 17031 Summary: isSortedRange uses string comparisons to check for sortedness Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW

[Issue 11667] std.algorithm.find() should take advantage of SortedRange

2016-12-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11667 --- Comment #3 from greenify --- FYI: I opened an issue for addressing more functions: https://issues.dlang.org/show_bug.cgi?id=17030 --

[Issue 17030] New: Specialize range functions for isSortedRange

2016-12-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17030 Issue ID: 17030 Summary: Specialize range functions for isSortedRange Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement

[Issue 11667] std.algorithm.find() should take advantage of SortedRange

2016-12-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11667 greenify changed: What|Removed |Added Status|NEW |RESOLVED

Re: Is there anything other than nullable to work with optional types?

2016-12-25 Thread Seb via Digitalmars-d-learn
On Sunday, 25 December 2016 at 22:21:17 UTC, aliak wrote: On Sunday, 25 December 2016 at 20:11:50 UTC, Seb wrote: On Sunday, 25 December 2016 at 19:22:10 UTC, aliak wrote: or is there a way for it to not be so cumbersome to work with? You might be interested in

Re: New GDC binaries: 2.068.2, shared library support, multilib support & a new gdmd tool

2016-12-25 Thread ketmar via Digitalmars-d-announce
On Sunday, 25 December 2016 at 19:41:38 UTC, Johannes Pfau wrote: Happy holidays everybody, great work! long live gdc! ;-)

Re: Blog Post - profiling with perf and friends

2016-12-25 Thread Martin Nowak via Digitalmars-d-announce
On Sunday, 25 December 2016 at 20:45:13 UTC, Andrei Alexandrescu wrote: The tracker would be easily accessible and would flag PRs that decrease compilation speed by more than a tolerance. One OS should be enough for now. We need a clean machine (not shared for many other tasks). The Foundation

Re: It's a Christmas miracle: main no longer runs after unittests

2016-12-25 Thread Ignacious via Digitalmars-d
On Sunday, 25 December 2016 at 09:44:07 UTC, Doug wrote: On Sunday, 25 December 2016 at 07:30:39 UTC, Ignacious wrote: Given that Christmas is one of the hugest fabrications in human history, I find this very difficult to believe! (or simply to cover all bases, quite easy to believe) xmas is

Re: Is there anything other than nullable to work with optional types?

2016-12-25 Thread aliak via Digitalmars-d-learn
On Sunday, 25 December 2016 at 20:11:50 UTC, Seb wrote: On Sunday, 25 December 2016 at 19:22:10 UTC, aliak wrote: or is there a way for it to not be so cumbersome to work with? You might be interested in https://github.com/dlang/phobos/pull/3915 Yes! That! Seems like that PR is on a

Re: Is there anything other than nullable to work with optional types?

2016-12-25 Thread ali ak via Digitalmars-d-learn
On Sunday, 25 December 2016 at 20:01:21 UTC, Stefan Koch wrote: Well there is one easy way to do this. pass a pointer to the data. Another easy one is the definition of one invalid set of values and using that is initial value and for convenience overload opCast(T:bool) to check against that

Re: Blog Post - profiling with perf and friends

2016-12-25 Thread Stefan Koch via Digitalmars-d-announce
On Sunday, 25 December 2016 at 19:16:03 UTC, Martin Nowak wrote: Just a few infos on using perf and related tools for profiling on linux. https://code.dawg.eu/profiling-with-perf-and-friends.html Nice article. There is a nice gui tool for the same purpose,

Re: Blog Post - profiling with perf and friends

2016-12-25 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 12/25/2016 02:16 PM, Martin Nowak wrote: Just a few infos on using perf and related tools for profiling on linux. https://code.dawg.eu/profiling-with-perf-and-friends.html That's awesome and very easy to follow, reproduce, and tweak. One thing that would be terrific (also in keep with

Re: New GDC binaries: 2.068.2, shared library support, multilib support & a new gdmd tool

2016-12-25 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 12/25/2016 02:41 PM, Johannes Pfau wrote: Happy holidays everybody, I'm happy to finally announce the release of new GDC binaries at https://gdcproject.org/downloads . GDC is the GNU D Compiler, a D compiler using GCC as the compiler backend. Congratulations! We are very hopeful that all

Re: Is there anything other than nullable to work with optional types?

2016-12-25 Thread Seb via Digitalmars-d-learn
On Sunday, 25 December 2016 at 19:22:10 UTC, aliak wrote: or is there a way for it to not be so cumbersome to work with? You might be interested in https://github.com/dlang/phobos/pull/3915 And https://github.com/dlang/phobos/pull/4989

Re: New GDC binaries: 2.068.2, shared library support, multilib support & a new gdmd tool

2016-12-25 Thread Johan Engelen via Digitalmars-d-announce
On Sunday, 25 December 2016 at 19:41:38 UTC, Johannes Pfau wrote: Happy holidays everybody, I'm happy to finally announce the release of new GDC binaries at https://gdcproject.org/downloads . Gratz! Hope you can add it to d.godbolt.org soon. ;) -Johan

Re: Is there anything other than nullable to work with optional types?

2016-12-25 Thread Stefan Koch via Digitalmars-d-learn
On Sunday, 25 December 2016 at 19:22:10 UTC, aliak wrote: Hey, So, been using the programming language swift for a while now, the optional types[1] they support makes working with maybe-type (ala haskell) values extremely pleasant. [...] Well there is one easy way to do this. pass a

New GDC binaries: 2.068.2, shared library support, multilib support & a new gdmd tool

2016-12-25 Thread Johannes Pfau via Digitalmars-d-announce
Happy holidays everybody, I'm happy to finally announce the release of new GDC binaries at https://gdcproject.org/downloads . GDC is the GNU D Compiler, a D compiler using GCC as the compiler backend. This release was delayed by massive internal changes in GDC in preparation for the DDMD

DMD travis-ci problems with new GDC toolchains

2016-12-25 Thread Johannes Pfau via Digitalmars-d
Happy holidays everybody, when testing the new GDC releases we found several problems with the travis-ci autotester. Travis-CI uses the quite old GCC 4.6 as a system GCC and the oldest GCC version supported by GDC is 4.8. As the install.sh scripts prepends the downloaded toolchain to the PATH

Is there anything other than nullable to work with optional types?

2016-12-25 Thread aliak via Digitalmars-d-learn
Hey, So, been using the programming language swift for a while now, the optional types[1] they support makes working with maybe-type (ala haskell) values extremely pleasant. Does D have anything other than the Nullable template that can be used to work with optionals, or is there a way for

[Issue 17029] [Reg 2.072] scope variable may not be returned

2016-12-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17029 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/063bcfca0b30f31a18ebf2b1fae2873805b7d445 fix Issue 17029 - [Reg 2.072] scope variable may not be

Blog Post - profiling with perf and friends

2016-12-25 Thread Martin Nowak via Digitalmars-d-announce
Just a few infos on using perf and related tools for profiling on linux. https://code.dawg.eu/profiling-with-perf-and-friends.html

Re: [OT] Screenshot of D program in the latest issue of Ct magazine

2016-12-25 Thread Vladimir Panteleev via Digitalmars-d
On Saturday, 24 December 2016 at 14:35:29 UTC, Sönke Ludwig wrote: Am 24.12.2016 um 11:35 schrieb Nemanja Boric: I thought I see familiar name :-) http://imgur.com/a/TqGdj Nice! Congrats to Vladimir for getting featured there! Thank you! By the way, this isn't the first time my D code is

Re: [DIP1005] Unused imports in with(import) declarations: leave alone of flag as errors?

2016-12-25 Thread Daniel Kozák via Digitalmars-d
Andrei Alexandrescu via Digitalmars-d napsal So, pro 24, 2016 v 9∶32 : Consider: with (import std.stdio) int fun(int x/*, File f*/) { // f.writeln("In: ", x); return x * x; } Such situations occur during refactorings and code evolution. The import is no

[Issue 1164] Wrong order of memory deallocation

2016-12-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1164 --- Comment #8 from Andrei Alexandrescu --- Cool, was able to repro. Fortunately we have a couple of cards in our sleeve. What we could do is: * Mark * For each collectable object: * Call dtor * (NEW) Obliterate with .init *

Re: It's a Christmas miracle: main no longer runs after unittests

2016-12-25 Thread Andrei Alexandrescu via Digitalmars-d
On 12/25/16 7:41 AM, pineapple wrote: On Saturday, 24 December 2016 at 22:14:08 UTC, Andrei Alexandrescu wrote: https://github.com/dlang/druntime/pull/1724 Ho-ho-ho! Andrei Unacceptable. All breaking changes (Except the ones I create) are evil. Nice :o). Well the intent here was to start

Re: Many documentation examples can now be run online

2016-12-25 Thread Saurabh Das via Digitalmars-d-announce
On Saturday, 24 December 2016 at 06:55:37 UTC, Seb wrote: On Saturday, 24 December 2016 at 06:08:49 UTC, Saurabh Das wrote: [...] Thanks for your feedback :) [...] Sure - that should be fairly trivial. [...] Yes, that would be pretty nice to have. Unfortunately the maintainer of

Re: CTFE Status

2016-12-25 Thread Stefan Koch via Digitalmars-d
On Sunday, 25 December 2016 at 12:21:42 UTC, Stefan Koch wrote: On Sunday, 25 December 2016 at 11:27:07 UTC, Stefan Koch wrote: static immutable alr = arrayLiteralReturn(); static assert(alr == [1,2,3]); There were a few problems with that. Namely some arrays-literals would not have a length.

Re: It's a Christmas miracle: main no longer runs after unittests

2016-12-25 Thread Chris Wright via Digitalmars-d
On Sun, 25 Dec 2016 09:44:07 +, Doug wrote: > On Sunday, 25 December 2016 at 07:30:39 UTC, Ignacious wrote: >> Given that Christmas is one of the hugest fabrications in human >> history, I find this very difficult to believe! (or simply to cover all >> bases, quite easy to believe) > > xmas

[Issue 1164] Wrong order of memory deallocation

2016-12-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1164 --- Comment #7 from Pieter Penninckx --- The following code still segfaults with DMD 2.072.1-0. class X { double a, b, c, d, e, f, g, h; X sibling; bool fun() const { return true;} invariant() {

[Issue 17029] [Reg 2.072] scope variable may not be returned

2016-12-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17029 Walter Bright changed: What|Removed |Added CC|

Re: Silicon Valley D Meetup - December 22, 2016 - "The Curse of Knowledge: Et tu, D?" by Adam Wilson

2016-12-25 Thread Walter Bright via Digitalmars-d-announce
On 12/25/2016 2:15 AM, Adam Wilson wrote: This one is on me. And I do apologize profusely. We were talking beforehand about how we needed to remember to unmute, we had tested everything to make sure it worked, and then in a fit of eagerness to get started, I forgot to switch windows and unmute.

Re: It's a Christmas miracle: main no longer runs after unittests

2016-12-25 Thread Russel Winder via Digitalmars-d
On Sun, 2016-12-25 at 03:35 +, Adam D. Ruppe via Digitalmars-d wrote: > On Saturday, 24 December 2016 at 22:14:08 UTC, Andrei  > Alexandrescu wrote: > > https://github.com/dlang/druntime/pull/1724 > > > The implementation is easy. The hard part is actually getting it  > past the "all

Re: It's a Christmas miracle: main no longer runs after unittests

2016-12-25 Thread pineapple via Digitalmars-d
On Saturday, 24 December 2016 at 22:14:08 UTC, Andrei Alexandrescu wrote: https://github.com/dlang/druntime/pull/1724 Ho-ho-ho! Andrei Unacceptable. All breaking changes (Except the ones I create) are evil.

Re: Runtime error trying to call opCall on variant array of objects

2016-12-25 Thread aliak via Digitalmars-d-learn
On Saturday, 24 December 2016 at 23:06:25 UTC, Ali Çehreli wrote: auto c = Command!(fun, Args)(args); writefln("Created %s", c); // (3) Workaround: Storing delegates, not Command instances. return () => c(); Ah, yes. Nice work around :) Thankies!

[Issue 13930] std.concurrency can't send immutable AA to another thread

2016-12-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13930 JR changed: What|Removed |Added CC||zor...@gmail.com --- Comment #2 from

Re: CTFE Status

2016-12-25 Thread Stefan Koch via Digitalmars-d
On Sunday, 25 December 2016 at 11:27:07 UTC, Stefan Koch wrote: static immutable alr = arrayLiteralReturn(); static assert(alr == [1,2,3]); There were a few problems with that. Namely some arrays-literals would not have a length. This is because of literals coercing to slices. This bug is now

Re: Silicon Valley D Meetup - December 22, 2016 - "The Curse of Knowledge: Et tu, D?" by Adam Wilson

2016-12-25 Thread Martin Nowak via Digitalmars-d-announce
On Thursday, 15 December 2016 at 08:20:37 UTC, Ali Çehreli wrote: Come in-person at 6:30pm for food and drinks but plea^H^H^H^H RSVP so we know how much to order: https://www.meetup.com/D-Lang-Silicon-Valley/events/236253882/ Nice! Could you please add those Meetups to the dlang calendar?

Re: CTFE Status

2016-12-25 Thread Stefan Koch via Digitalmars-d
static immutable alr = arrayLiteralReturn(); static assert(alr == [1,2,3]); There were a few problems with that. Namely some arrays-literals would not have a length. This is because of literals coercing to slices. This bug is now fixed, at the expense of registering more types then is strictly

Re: Optimization problem: bulk Boolean operations on vectors

2016-12-25 Thread Martin Nowak via Digitalmars-d
On Friday, 23 December 2016 at 18:33:52 UTC, Seb wrote: So the asm is about 40% faster than the best of the alternatives. The point being that it's the generated code not the source that's the problem. Has anyone considered using ldc for DMD release compilations? We considered using gdc (or

Re: Silicon Valley D Meetup - December 22, 2016 - "The Curse of Knowledge: Et tu, D?" by Adam Wilson

2016-12-25 Thread Adam Wilson via Digitalmars-d-announce
Ali Çehreli wrote: On 12/15/2016 12:20 AM, Ali Çehreli wrote: https://www.meetup.com/D-Lang-Silicon-Valley/events/236253882/ The slides: http://files.meetup.com/18234529/The%20Curse%20of%20Knowledge.pptx The video: http://youtu.be/XjnBMfVTI0k (There is no audio on the recording until

Re: It's a Christmas miracle: main no longer runs after unittests

2016-12-25 Thread Doug via Digitalmars-d
On Sunday, 25 December 2016 at 09:44:07 UTC, Doug wrote: On Sunday, 25 December 2016 at 07:30:39 UTC, Ignacious wrote: Given that Christmas is one of the hugest fabrications in human history, I find this very difficult to believe! (or simply to cover all bases, quite easy to believe) xmas is

Re: It's a Christmas miracle: main no longer runs after unittests

2016-12-25 Thread Doug via Digitalmars-d
On Sunday, 25 December 2016 at 07:30:39 UTC, Ignacious wrote: Given that Christmas is one of the hugest fabrications in human history, I find this very difficult to believe! (or simply to cover all bases, quite easy to believe) xmas is an old tradition related to the winter solstice.

[Issue 9378] std.internal.digest.sha_SSE3 breaks if compiled with PIC

2016-12-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9378 --- Comment #4 from Martin Nowak --- Let's keep this closed, PIC is too slow to be widely used and we have a non-SSE fallback. One way to make this work, would be to have the weave function keeping track of the temporary (T1, T2)

Re: [DIP1005] Unused imports in with(import) declarations: leave alone of flag as errors?

2016-12-25 Thread John Colvin via Digitalmars-d
On Saturday, 24 December 2016 at 20:32:58 UTC, Andrei Alexandrescu wrote: Consider: with (import std.stdio) int fun(int x/*, File f*/) { // f.writeln("In: ", x); return x * x; } Such situations occur during refactorings and code evolution. The import is no longer used. Should the

[Issue 16794] dmd not working on Ubuntu 16.10 because of default PIE linking

2016-12-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16794 --- Comment #16 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/dlang/installer https://github.com/dlang/installer/commit/ca90c155a5bbbef145343af751cfe65adcdcf2b9 fix Issue 16794 - .deb no working on Ubuntu

[Issue 15984] [REG2.071] Interface contracts retrieve garbage instead of parameters

2016-12-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15984 Martin Nowak changed: What|Removed |Added CC||c...@dawg.eu --- Comment #10

Re: How to initialize a associative array?

2016-12-25 Thread Jack Applegame via Digitalmars-d-learn
On Saturday, 24 December 2016 at 00:55:01 UTC, Yuxuan Shui wrote: I tried this: immutable int[char] xx = ['Q':0, 'B':1, 'N':2, 'R':3, 'P':4]; And got a "non-constant expression" error (with or without 'immutable'). What's the correct way? This works: void main() { immutable