[Issue 5895] Object.clear() doesn't work as expected for pointers to structs

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5895 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread Atila Neves via Digitalmars-d
+1 On Monday, 26 January 2015 at 11:39:23 UTC, Jonathan M Davis wrote: On Monday, January 26, 2015 01:54:36 Andrei Alexandrescu via Digitalmars-d wrote: On 1/26/15 1:50 AM, Brian Schott wrote: On Monday, 26 January 2015 at 09:29:42 UTC, Paolo Invernizzi wrote: If someone is not following

static class vs. static struct

2015-01-26 Thread ref2401 via Digitalmars-d-learn
What's the difference between static class and static struct? What should i use?

[Issue 1561] AA's create many false references for garbage collector

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1561 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread via Digitalmars-d
On Monday, 26 January 2015 at 11:39:23 UTC, Jonathan M Davis wrote: immutable, inout, and deprecated all don't have @. So, most function attributes _don't_ have @ on them, and we just added @ to some of them, making things even _less_ consistent. In fact, priore to this, @safe, @trusted,

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread Daniel Kozak via Digitalmars-d
On Monday, 26 January 2015 at 13:57:13 UTC, Kenji Hara wrote: 2015-01-26 21:03 GMT+09:00 bearophile via Digitalmars-d digitalmars-d@puremagic.com: Jonathan M Davis: Personally, I'd much prefer that we not make this change. It's just shuffling things around in an attempt to make them more

Re: This Week in D, Issue 3

2015-01-26 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 26 January 2015 at 14:38:31 UTC, Ola Fosheim Grøstad wrote: (A slight typo: 2017 in the header) oops. fixed. One thing I did this time that I'm not sure if I want to commit to was writing a very brief summary of a couple of the threads. (It had to be very brief tbh because I

[Issue 5494] [patch,enh] Issues with std.stdarg

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5494 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: This Week in D, Issue 3

2015-01-26 Thread CraigDillabaugh via Digitalmars-d-announce
On Monday, 26 January 2015 at 05:15:51 UTC, Adam D. Ruppe wrote: I've been out of town this week and also dealing with trying to remotely find my lost dog (she got away from the sitter... and no luck yet :( ) so I haven't been as active as I often am in the D community, but I still made time

[Issue 9731] Ddoc should output per-paragraph macro instead of $(DDOC_BLANKLINE)

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9731 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a7a7095bbbc30021852295eb7ffd1077cc5587c4 Revert Issue 9731: implement

[Issue 14050] New: `dmd -v` lists imports from failed __traits(compiles) blocks

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14050 Issue ID: 14050 Summary: `dmd -v` lists imports from failed __traits(compiles) blocks Product: D Version: unspecified Hardware: All OS: All Status:

[Issue 6447] iota(BigInt) too

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6447 --- Comment #13 from bearophile_h...@eml.cc --- I keep this issue open because this still doesn't work: void main() { import std.bigint: BigInt; import std.range: iota; iota(BigInt(1), BigInt(100), BigInt(5)); iota(BigInt(1),

[Issue 7471] Improve performance of std.regex

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7471 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added CC||schvei...@yahoo.com

[Issue 14049] New: [REG2.064] Wrong purity inference for nested lambda

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14049 Issue ID: 14049 Summary: [REG2.064] Wrong purity inference for nested lambda Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords:

How to tell an identifier is a module?

2015-01-26 Thread bearophile via Digitalmars-d-learn
__traits(allMembers, mixin(__MODULE__)) also yields a module name like object, but then how can you find out that object is a module? This doesn't work: void main() { pragma(msg, is(int == int)); pragma(msg, is(object == module)); } Bye, bearophile

Re: Cannot infer argument types for foreach over byLine

2015-01-26 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/24/15 11:15 AM, Meta wrote: On Saturday, 24 January 2015 at 08:44:45 UTC, Ali Çehreli wrote: On 01/24/2015 12:14 AM, Meta wrote: import std.stdio; void main() { foreach (i, line; file.byLine()) Unless the range itself provides explicitly, automatic counter is available only for

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread Francesco Cattoglio via Digitalmars-d
On Monday, 26 January 2015 at 11:39:23 UTC, Jonathan M Davis wrote: But It's not like this really improves consistency all that much anyway, because public, protected, package, private, final, override, static, const, immutable, inout, and deprecated all don't have @. So, most function

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread Kenji Hara via Digitalmars-d
2015-01-26 21:03 GMT+09:00 bearophile via Digitalmars-d digitalmars-d@puremagic.com: Jonathan M Davis: Personally, I'd much prefer that we not make this change. It's just shuffling things around in an attempt to make them more consistent while actually making them _less_ consistent. So

[Issue 14049] [REG2.064] Wrong purity inference for nested lambda

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14049 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull --- Comment #1 from

[Issue 9148] 'pure' is broken

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9148 --- Comment #11 from Kenji Hara k.hara...@gmail.com --- I'm adjusting the implicit pure annotation behavior for nested functions in: https://github.com/D-Programming-Language/dmd/pull/4344 If the nested function is a template, attribute inference is

[Issue 9889] Incorrect rounding on floating value formatting

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9889 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added CC||schvei...@yahoo.com

[Issue 7729] fileno conflict

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7729 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added CC||schvei...@yahoo.com

[Issue 14039] [REG2.067a] function is incorrectly inferred as 'pure'

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14039 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull, rejects-valid

Re: static class vs. static struct

2015-01-26 Thread bearophile via Digitalmars-d-learn
On Monday, 26 January 2015 at 14:02:54 UTC, ref2401 wrote: What's the difference between static class and static struct? What should i use? Non-static structs/classes have an extra pointer. Static ones don't have it, so their differences are the usual ones: a class is used by reference and

[Issue 14040] Doesn't use assignment in slice

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14040 --- Comment #2 from Kenji Hara k.hara...@gmail.com --- (In reply to Richard Cattermole from comment #0) Works correctly in LDC 2.063.2 (thanks DPaste). Doesn't work in DMD 2.065 or 2.066.1 dmd 2.063 prints same output with 2.066. I guess that the

[Issue 14040] Doesn't use assignment in slice

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14040 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Version|unspecified |D2 --

Re: This Week in D, Issue 3

2015-01-26 Thread via Digitalmars-d-announce
Nice and focused summary of last week. Every issue so far has to be an improvement over the last one. :-) (A slight typo: 2017 in the header)

[Issue 13858] Wrong warning about unreachable code with break/goto case

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13858 --- Comment #8 from Dicebot pub...@dicebot.lv --- Checked with app it has originally manifested on, seems to work. Thanks! --

[Issue 14040] Doesn't use assignment in slice

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14040 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull, wrong-code

[Issue 14052] `dmd -deps` lists imports from failed __traits(compiles) blocks

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14052 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull --- Comment #1 from

Re: This Week in D, Issue 3

2015-01-26 Thread via Digitalmars-d-announce
On Monday, 26 January 2015 at 15:15:39 UTC, Adam D. Ruppe wrote: On Monday, 26 January 2015 at 05:42:18 UTC, weaselcat wrote: At first I feared there wouldn't be enough content for you to do this weekly but I'm glad I was wrong. D seems more popular than ever. Yea, and besides, worst case

Re: This Week in D, Issue 3

2015-01-26 Thread zeljkog via Digitalmars-d-announce
On 26.01.15 14:37, Nick Treleaven wrote: On 26/01/2015 05:15, Adam D. Ruppe wrote: Also available via RSS: http://arsdnet.net/this-week-in-d/twid.rss Much appreciated - now works with my Thunderbird, thanks :) Double :)

Re: This Week in D, Issue 3

2015-01-26 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 26 January 2015 at 14:01:02 UTC, CraigDillabaugh wrote: Good luck with the search for your dog! Thank. I'm especially worried now because the weather took a turn for the worse in Watertown, with sub-zero wind chills and snowfall coming. She's been out since Thursday night, and

[Issue 2060] some ddoc design typos

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2060 Sobirari Muhomori dfj1es...@sneakemail.com changed: What|Removed |Added Depends on||9731 --

[Issue 9731] Ddoc should output per-paragraph macro instead of $(DDOC_BLANKLINE)

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9731 Sobirari Muhomori dfj1es...@sneakemail.com changed: What|Removed |Added Blocks||2060 --

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread Kenji Hara via Digitalmars-d
2015-01-27 0:07 GMT+09:00 Jonathan M Davis via Digitalmars-d digitalmars-d@puremagic.com: On Monday, January 26, 2015 13:21:54 via Digitalmars-d wrote: One meaning would be to only use @ with attributes that do not affect computation, typing, overloading etc and use it only for

Re: std.experimental.logger formal review round 3

2015-01-26 Thread Andrei Alexandrescu via Digitalmars-d
On 1/26/15 6:52 AM, Dicebot wrote: Sadly, the issue I have been referring to is actually a DMD bug : https://issues.dlang.org/show_bug.cgi?id=14050 It seems a blocker, at least I can't quickly imagine a workaround for it. Thanks Kenji for the fix! Just merged it. -- Andrei

Re: This Week in D, Issue 3

2015-01-26 Thread via Digitalmars-d-announce
On Monday, 26 January 2015 at 14:48:52 UTC, Adam D. Ruppe wrote: One thing I did this time that I'm not sure if I want to commit to was writing a very brief summary of a couple of the threads. (It had to be very brief tbh because I didn't actually read them all myself, I had just been

Re: This Week in D, Issue 3

2015-01-26 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 26 January 2015 at 05:42:18 UTC, weaselcat wrote: At first I feared there wouldn't be enough content for you to do this weekly but I'm glad I was wrong. D seems more popular than ever. Yea, and besides, worst case scenario, there's plenty of backlog tips or projects I can talk

[Issue 14050] `dmd -v` lists imports from failed __traits(compiles) blocks

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14050 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/451a54b331e9ce49a5cd32fc5ebe7eddd7a8ec18 fix Issue 14050 - `dmd -v`

[Issue 14051] Invariant gets invoked after destruction for structs with File members

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14051 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Component|DMD |druntime --- Comment #1

[Issue 14052] New: `dmd -deps` lists imports from failed __traits(compiles) blocks

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14052 Issue ID: 14052 Summary: `dmd -deps` lists imports from failed __traits(compiles) blocks Product: D Version: unspecified Hardware: All OS: All

[Issue 14050] `dmd -v` lists imports from failed __traits(compiles) blocks

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14050 --- Comment #3 from Dicebot pub...@dicebot.lv --- Thanks, that was lightning quick! If it's a problem, please open a new issue. Done : https://issues.dlang.org/show_bug.cgi?id=14052 --

[Issue 6447] iota(BigInt) too

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6447 --- Comment #14 from hst...@quickfur.ath.cx --- One thing at a time! The last PR implemented the iota(start,end) case. The next step is to extend it to handle the iota(start,end,step) case when += is supported. --

Re: This Week in D, Issue 3

2015-01-26 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 26 January 2015 at 15:07:09 UTC, Ola Fosheim Grøstad wrote: Yes, if there is too much trivia on the top of the newsletter people might loose interest and miss out on the Tip of the week, which could be an important channel for incremental education. Right. I thought about putting

Re: Calypso and the future of D

2015-01-26 Thread bachmeier via Digitalmars-d
On Monday, 26 January 2015 at 09:58:25 UTC, Ulrich Küttler wrote: On Monday, 26 January 2015 at 08:59:34 UTC, Walter Bright wrote: On 1/26/2015 12:18 AM, Jacob Carlborg wrote: Calypso is not a separate tool. It's a fork of LDC which allows you to directly import/include a C++ header files

[Issue 13183] C++ namespace should not conflict with import root package

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13183 --- Comment #2 from Sobirari Muhomori dfj1es...@sneakemail.com --- Does this work? --- import dstd = std.string; extern(C++, std) { } --- --

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread Foo via Digitalmars-d
On Monday, 26 January 2015 at 16:10:53 UTC, Jonathan Marler wrote: I agree with Jonathan's points, this solution doesn't seem like an improvement. If I understand the problem, we don't want to make every attribute use the '@' symbol because it looks bad and would cause a lot of code changes

Re: std.experimental.logger formal review round 3

2015-01-26 Thread Dicebot via Digitalmars-d
Sadly, the issue I have been referring to is actually a DMD bug : https://issues.dlang.org/show_bug.cgi?id=14050 It seems a blocker, at least I can't quickly imagine a workaround for it.

Re: This Week in D, Issue 3

2015-01-26 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 26 January 2015 at 06:47:35 UTC, ketmar wrote: great. and i never realised that the trick with Aye, static imports I think are a bit underused. The tip section (and project spotlight, which takes longer to write but I have a few plans for that too) is something I hope can keep

Re: [WORK] groupBy is in! Next: aggregate

2015-01-26 Thread via Digitalmars-d
On Monday, 26 January 2015 at 16:13:40 UTC, H. S. Teoh wrote: On Mon, Jan 26, 2015 at 11:26:04AM +, bearophile via Digitalmars-d wrote: Russel Winder: but is it's name group by as understood by the rest of the world? Nope... [...] I proposed to rename it but it got shot down. *shrug*

Re: Calypso and the future of D

2015-01-26 Thread Elie Morisse via Digitalmars-d
On Monday, 26 January 2015 at 00:37:02 UTC, Walter Bright wrote: Excuse the creator's bias :) I agree that Jacob's description makes things more clear, added!

[Issue 14050] `dmd -v` lists imports from failed __traits(compiles) blocks

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14050 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull --- Comment #1 from

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread via Digitalmars-d
On Monday, 26 January 2015 at 15:07:24 UTC, Jonathan M Davis wrote: On Monday, January 26, 2015 13:21:54 via Digitalmars-d wrote: function. So, I don't think that that particular distinction would work, even if we could freely rearrange which attributes had @ and which didn't. I personally

Re: core.exception.InvalidMemoryOperationError@(0)

2015-01-26 Thread Bayan Rafeh via Digitalmars-d-learn
Bug report at https://issues.dlang.org/show_bug.cgi?id=14051

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread Jonathan Marler via Digitalmars-d
I agree with Jonathan's points, this solution doesn't seem like an improvement. If I understand the problem, we don't want to make every attribute use the '@' symbol because it looks bad and would cause a lot of code changes for sake of consistency. However, on the other hand, we don't want

Re: Calypso and the future of D

2015-01-26 Thread Tofu Ninja via Digitalmars-d
On Monday, 26 January 2015 at 10:16:04 UTC, Walter Bright wrote: On 1/26/2015 1:58 AM, Ulrich =?UTF-8?B?S8O8dHRsZXIi?= kuett...@gmail.com wrote: The idea is just brilliant. I for one am excited about the prospect. Lets please discuss how to get the plugin into D, sooner rather than later. No

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread Jonathan M Davis via Digitalmars-d
On Monday, January 26, 2015 13:21:54 via Digitalmars-d wrote: One meaning would be to only use @ with attributes that do not affect computation, typing, overloading etc and use it only for safety-checks and optimization hints (like inlining). All of the existing @ affect the type of the

[Issue 14051] New: Invariant gets invoked after destruction for structs with File members

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14051 Issue ID: 14051 Summary: Invariant gets invoked after destruction for structs with File members Product: D Version: D2 Hardware: x86_64 OS: Linux

Re: [WORK] groupBy is in! Next: aggregate

2015-01-26 Thread H. S. Teoh via Digitalmars-d
On Mon, Jan 26, 2015 at 11:26:04AM +, bearophile via Digitalmars-d wrote: Russel Winder: but is it's name group by as understood by the rest of the world? Nope... [...] I proposed to rename it but it got shot down. *shrug* We still have a short window of time to sort this out, before

Re: [WORK] groupBy is in! Next: aggregate

2015-01-26 Thread Russel Winder via Digitalmars-d
On Mon, 2015-01-26 at 08:11 -0800, H. S. Teoh via Digitalmars-d wrote: On Mon, Jan 26, 2015 at 11:26:04AM +, bearophile via Digitalmars-d wrote: Russel Winder: but is it's name group by as understood by the rest of the world? Nope... [...] I proposed to rename it but it got

Re: One area where D has the edge

2015-01-26 Thread via Digitalmars-d
On Sunday, 25 January 2015 at 21:50:53 UTC, Laeeth Isharc wrote: And beyond slower execution speed of Java, the memory bloat makes a big difference given how cloud pricing works (its peanuts to get a machine with a gig of ram, but 64 gig is not so cheap, and quickly gets very expensive - and

Re: 521 days, 22 hours, 7 minutes and 52 seconds...

2015-01-26 Thread Mathias LANG via Digitalmars-d
On Monday, 26 January 2015 at 18:25:13 UTC, Robert burner Schadek wrote: thank you @!In order of appearance on github() { Dicebot, JakobOvrum, monarchdodra, klamonte, grogancolin, fugalh, Geod24, andralex, braddr, AndrejMitrovic, MetaLang, p0nce, yglukhov, elendel-, sigod, sybrandy,

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread Zach the Mystic via Digitalmars-d
On Monday, 26 January 2015 at 11:39:23 UTC, Jonathan M Davis wrote: Personally, I'd much prefer that we not make this change. It's just shuffling things around in an attempt to make them more consistent while actually making them _less_ consistent. - Jonathan M Davis I don't think this

Other libraries - web site link, and other thoughts

2015-01-26 Thread Laeeth Isharc via Digitalmars-d-learn
At the moment it goes straight go code.dlang.org, which may be a bit overwhelming if you have just arrived at dlang.org and want to see what it can do. Is it worth changing to the library wiki write up page on libraries? And making sure link to code.dlang.org is prominent, saying

Re: Calypso and the future of D

2015-01-26 Thread Laeeth Isharc via Digitalmars-d
On Monday, 26 January 2015 at 16:40:38 UTC, Elie Morisse wrote: On Monday, 26 January 2015 at 00:37:02 UTC, Walter Bright wrote: Excuse the creator's bias :) I agree that Jacob's description makes things more clear, added! I posted some thoughts on web docs writeup of C+= interface here.

Re: 521 days, 22 hours, 7 minutes and 52 seconds...

2015-01-26 Thread Meta via Digitalmars-d
On Monday, 26 January 2015 at 18:25:13 UTC, Robert burner Schadek wrote: thank you @!In order of appearance on github() { Dicebot, JakobOvrum, monarchdodra, klamonte, grogancolin, fugalh, Geod24, andralex, braddr, AndrejMitrovic, MetaLang, p0nce, yglukhov, elendel-, sigod, sybrandy,

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread Meta via Digitalmars-d
On Monday, 26 January 2015 at 19:44:18 UTC, Walter Bright wrote: On 1/26/2015 8:13 AM, Foo wrote: You could do the same as C++ with override and final: they are only valid attributes if they appear _after_ the function/method. Elsewhere they are still valid as identifiers for e.g. variables.

Re: 521 days, 22 hours, 7 minutes and 52 seconds...

2015-01-26 Thread H. S. Teoh via Digitalmars-d
On Mon, Jan 26, 2015 at 10:33:32AM -0800, Andrei Alexandrescu via Digitalmars-d wrote: On 1/26/15 10:17 AM, H. S. Teoh via Digitalmars-d wrote: [...] But OTOH, if *this* is what it takes to contribute a new module to Phobos, then it's no wonder we have trouble finding contributors... Most

enum, immutable or const for run-time constants?

2015-01-26 Thread Nordlöw
What's the preferred way of declaring run-time constant values in D from the point of view of 1, compile-time performance 2. run-time performance 3. code-size 4. load-time 5. locality of reference module global or function global (static)

[Issue 2040] Add codepage handling to core library

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2040 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 5698] va_arg sets wrong length for (u)short[]

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5698 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread Walter Bright via Digitalmars-d
On 1/26/2015 3:39 AM, Jonathan M Davis via Digitalmars-d wrote: Personally, I'd much prefer that we not make this change. It's good to have this discussion. Previously, it's all been advocacy and break my code by forcing a change from pure = @pure. Just a few days ago on slashdot, an

Re: defunct / stale forums on front page

2015-01-26 Thread Vladimir Panteleev via Digitalmars-d
On Monday, 26 January 2015 at 18:46:58 UTC, Laeeth Isharc wrote: On Monday, 26 January 2015 at 09:08:26 UTC, Jacob Carlborg wrote: On 2015-01-26 08:35, H. S. Teoh via Digitalmars-d wrote: I think we should just import jquery into the dlang.org repo. External dependencies always end up in

Re: enum, immutable or const for run-time constants?

2015-01-26 Thread ketmar via Digitalmars-d-learn
On Mon, 26 Jan 2015 20:04:58 +, Nordlöw wrote: What's the preferred way of declaring run-time constant values in D from the point of view of 1, compile-time performance 2. run-time performance 3. code-size 4. load-time 5. locality of reference module global or function global (static)

Re: 521 days, 22 hours, 7 minutes and 52 seconds...

2015-01-26 Thread Andrei Alexandrescu via Digitalmars-d
On 1/26/15 11:48 AM, H. S. Teoh via Digitalmars-d wrote: On Mon, Jan 26, 2015 at 10:33:32AM -0800, Andrei Alexandrescu via Digitalmars-d wrote: On 1/26/15 10:17 AM, H. S. Teoh via Digitalmars-d wrote: [...] But OTOH, if *this* is what it takes to contribute a new module to Phobos, then it's

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread Walter Bright via Digitalmars-d
On 1/26/2015 8:13 AM, Foo wrote: You could do the same as C++ with override and final: they are only valid attributes if they appear _after_ the function/method. Elsewhere they are still valid as identifiers for e.g. variables. Just 'no' on context-sensitive tokens. For context, TV

Re: phobos and 64-bit real, anybody testing?

2015-01-26 Thread Dan Olson via Digitalmars-d
On Monday, 26 January 2015 at 17:36:05 UTC, Andrei Alexandrescu wrote: On 1/26/15 8:49 AM, Dan Olson wrote: A question for the floating point experts. Do phobos unittests get run on any architectures with 64-bit reals? Would OSX be that? -- Andrei It is mostly x86 80-bit reals these days.

Re: One area where D has the edge

2015-01-26 Thread Laeeth Isharc via Digitalmars-d
On Monday, 26 January 2015 at 18:53:45 UTC, Ola Fosheim Grøstad wrote: On Sunday, 25 January 2015 at 21:50:53 UTC, Laeeth Isharc wrote: And beyond slower execution speed of Java, the memory bloat makes a big difference given how cloud pricing works (its peanuts to get a machine with a gig of

extern(C) symbol conflicts

2015-01-26 Thread Steven Schveighoffer via Digitalmars-d
An interesting thing I learned while reading through some bug reports [1]: cfile.c #include stdio.h void cfunction() {printf(hello\n);} file1.d module file1; extern(C) void cfunction(); file2.d module file2; extern(C) void cfunction(); main.d version(test1) { import file1; } version(test2)

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread H. S. Teoh via Digitalmars-d
On Mon, Jan 26, 2015 at 11:50:19AM -0800, Walter Bright via Digitalmars-d wrote: On 1/26/2015 3:39 AM, Jonathan M Davis via Digitalmars-d wrote: Personally, I'd much prefer that we not make this change. It's good to have this discussion. Previously, it's all been advocacy and break my code

Pandas example of groupby

2015-01-26 Thread Laeeth Isharc via Digitalmars-d
If group by in other languages refers to the latter function, then that means groupBy is poorly-named and we need to come up with a better name for it. Changing it to return tuples and what-not seems to be beating around the bush to me. T T: you are good with algorithms. In many

Re: 521 days, 22 hours, 7 minutes and 52 seconds...

2015-01-26 Thread ketmar via Digitalmars-d
On Mon, 26 Jan 2015 18:25:11 +, Robert burner Schadek wrote: congrats! signature.asc Description: PGP signature

Re: phobos and 64-bit real, anybody testing?

2015-01-26 Thread Johannes Pfau via Digitalmars-d
Am Mon, 26 Jan 2015 08:49:56 -0800 schrieb Dan Olson zans.is.for.c...@yahoo.com: A question for the floating point experts. Do phobos unittests get run on any architectures with 64-bit reals? I would like to know if there are known failures. I have identified all the phobos unittest

Re: 521 days, 22 hours, 7 minutes and 52 seconds...

2015-01-26 Thread Robert burner Schadek via Digitalmars-d
On Monday, 26 January 2015 at 18:25:13 UTC, Robert burner Schadek wrote: thank you @!In order of appearance on github() { Dicebot, JakobOvrum, monarchdodra, klamonte, grogancolin, fugalh, Geod24, andralex, braddr, AndrejMitrovic, MetaLang, p0nce, yglukhov, elendel-, sigod, sybrandy,

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread ketmar via Digitalmars-d
On Mon, 26 Jan 2015 19:46:21 +, Meta wrote: On Monday, 26 January 2015 at 19:44:18 UTC, Walter Bright wrote: On 1/26/2015 8:13 AM, Foo wrote: You could do the same as C++ with override and final: they are only valid attributes if they appear _after_ the function/method. Elsewhere they

Re: defunct / stale forums on front page

2015-01-26 Thread Vladimir Panteleev via Digitalmars-d
On Monday, 26 January 2015 at 18:41:09 UTC, Laeeth Isharc wrote: Why not create a bugzilla section for website and forum so it is easier to report glitches and enhancement requests in a way that you will quickly see without distraction? Bugzilla has a Website component. It should say

Re: 521 days, 22 hours, 7 minutes and 52 seconds...

2015-01-26 Thread Laeeth Isharc via Digitalmars-d
On Monday, 26 January 2015 at 19:50:39 UTC, H. S. Teoh wrote: On Mon, Jan 26, 2015 at 10:33:32AM -0800, Andrei Alexandrescu via Digitalmars-d wrote: On 1/26/15 10:17 AM, H. S. Teoh via Digitalmars-d wrote: [...] But OTOH, if *this* is what it takes to contribute a new module to Phobos, then

Re: defunct / stale forums on front page

2015-01-26 Thread Laeeth Isharc via Digitalmars-d
On Monday, 26 January 2015 at 09:08:26 UTC, Jacob Carlborg wrote: On 2015-01-26 08:35, H. S. Teoh via Digitalmars-d wrote: I think we should just import jquery into the dlang.org repo. External dependencies always end up in these kinds of ugly situations. The advantage of using a CDN is

[Issue 14053] Hello world generates bloat in the object file

2015-01-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14053 --- Comment #2 from Andrei Alexandrescu and...@erdani.com --- With -O -release -inline: http://goo.gl/EYOHV1 --

Re: core.exception.InvalidMemoryOperationError@(0)

2015-01-26 Thread ketmar via Digitalmars-d-learn
On Mon, 26 Jan 2015 11:37:12 +, Bayan Rafeh wrote: you are trying to use invariants for the things that invariants can't (and must not) check. invariants are meant for checking *internal* *object* *consistency*. NOT correctness. NOT applicability. ONLY consistency. object can be in

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread Zach the Mystic via Digitalmars-d
On Monday, 26 January 2015 at 19:02:27 UTC, Zach the Mystic wrote: The changes suggested in this thread are of kind 5.5. s/5.5/B5

Re: phobos and 64-bit real, anybody testing?

2015-01-26 Thread via Digitalmars-d
On Monday, 26 January 2015 at 16:49:57 UTC, Dan Olson wrote: different from what is expected. Note that for ARM I am clearing Flush to Zero and Default NaN modes in fpscr which helps pass many other tests. I think NEON (SIMD) code will always flush to zero, so IEEE compatibility for

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread Nick Treleaven via Digitalmars-d
On 26/01/2015 11:39, Jonathan M Davis via Digitalmars-d wrote: the increased visual noise definitely is not. Being able to ignore things starting with @ is useful when reading function signatures: @property const(T) @pure @nothrow foo(Arg arg, T bar) const ... So @ can actually be signal

Re: [WORK] groupBy is in! Next: aggregate

2015-01-26 Thread Andrei Alexandrescu via Digitalmars-d
On 1/26/15 8:11 AM, H. S. Teoh via Digitalmars-d wrote: On Mon, Jan 26, 2015 at 11:26:04AM +, bearophile via Digitalmars-d wrote: Russel Winder: but is it's name group by as understood by the rest of the world? Nope... [...] I proposed to rename it but it got shot down. *shrug* We

Re: [WORK] groupBy is in! Next: aggregate

2015-01-26 Thread via Digitalmars-d
On Monday, 26 January 2015 at 16:44:20 UTC, Ulrich Küttler wrote: Andrei had a point about `partition` being used already. I liked Oliver's suggestion to go with slice-something. `sliceBy` might be worth considering. It even hints at the (efficient) implementation. Does it return slices? If

Re: [WORK] groupBy is in! Next: aggregate

2015-01-26 Thread Andrei Alexandrescu via Digitalmars-d
On 1/26/15 9:50 AM, Ary Borenszweig wrote: On 1/26/15 2:34 PM, Andrei Alexandrescu wrote: On 1/26/15 8:11 AM, H. S. Teoh via Digitalmars-d wrote: On Mon, Jan 26, 2015 at 11:26:04AM +, bearophile via Digitalmars-d wrote: Russel Winder: but is it's name group by as understood by the rest

521 days, 22 hours, 7 minutes and 52 seconds...

2015-01-26 Thread Andrei Alexandrescu via Digitalmars-d
...is what took to get std.experimental.logger in Phobos. https://github.com/D-Programming-Language/phobos/pull/1500 A time to celebrate! Many thanks to Robert who carried it through a long gestation, Dicebot for managing the review process, and everybody who provided feedback, especially

Re: accept @pure @nothrow @return attributes

2015-01-26 Thread Nick Treleaven via Digitalmars-d
On 26/01/2015 17:07, Nick Treleaven wrote: and inout gained @attribute syntax too Actually inout can apply to local variables, so it shouldn't have a '@' by my logic.

Re: [WORK] groupBy is in! Next: aggregate

2015-01-26 Thread H. S. Teoh via Digitalmars-d
On Mon, Jan 26, 2015 at 02:50:16PM -0300, Ary Borenszweig via Digitalmars-d wrote: On 1/26/15 2:34 PM, Andrei Alexandrescu wrote: On Mon, Jan 26, 2015 at 11:26:04AM +, bearophile via Digitalmars-d wrote: Russel Winder: but is it's name group by as understood by the rest of the world?

  1   2   3   4   >