Re: Moving forward with work on the D language and foundation

2015-08-25 Thread Dmitry Olshansky via Digitalmars-d-announce
On 24-Aug-2015 21:42, Andrei Alexandrescu wrote: Hello everyone, Following an increasing desire to focus on working on the D language and foundation, I have recently made the difficult decision to part ways with Facebook, my employer of five years and nine months. Facebook has impacted my

[Issue 14962] New: [REG2.068] compiler inference of attributes for nested map seems broken

2015-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14962 Issue ID: 14962 Summary: [REG2.068] compiler inference of attributes for nested map seems broken Product: D Version: D2 Hardware: All OS: All Status:

Re: dmd 2.068 deducing purity

2015-08-25 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/25/15 1:05 PM, Jack Applegame wrote: On Tuesday, 25 August 2015 at 14:05:17 UTC, Steven Schveighoffer wrote: Can you post an example? import std.range; import std.algorithm; class Foo { int baz() {return 1;} void bar() { auto s = [1].map!(i = baz()); // compiles

Re: DWT fails to build with DMD 2.068.0

2015-08-25 Thread Mike James via Digitalmars-d-dwt
On Monday, 24 August 2015 at 12:55:50 UTC, Jacob Carlborg wrote: On 2015-08-24 09:10, Mike James wrote: Bump! :-) Ah, sorry, completely forgot about this post. But the good news is that it's already merged :) Hi Jacob, when I try to build the latest I get this... C:\D\gui\dwtrdmd build

Re: Moving forward with work on the D language and foundation

2015-08-25 Thread Saurabh Das via Digitalmars-d-announce
On Monday, 24 August 2015 at 18:43:01 UTC, Andrei Alexandrescu wrote: Hello everyone, Following an increasing desire to focus on working on the D language and foundation, I have recently made the difficult decision to part ways with Facebook, my employer of five years and nine months.

Re: Casting double to ulong weirdness

2015-08-25 Thread Steven Schveighoffer via Digitalmars-d
On 8/25/15 11:56 AM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: On Tuesday, 25 August 2015 at 14:54:41 UTC, Steven Schveighoffer wrote: As bachmeier says, it's not something that's easy to get right. Are you sure you follow IEEE 754 recommendations?

[Issue 14958] Casting a double to ulong sometimes produces wrong results

2015-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14958 --- Comment #4 from Steven Schveighoffer schvei...@yahoo.com --- (In reply to yebblies from comment #3) This is working to spec. Please re-open as an enhancement request if you feel it's necessary. I think the expectation is violated when there

Re: [Dgame] Sprite loading and setting position in another class

2015-08-25 Thread Namespace via Digitalmars-d-learn
Thank you for answering so quickly. If you don't mind me asking when will v0.7 be out? Not so soon. But maybe I'll release v0.6.5 with this feature at the end of september. For now you need to store your Texture in e.g. a Texture manager.

Re: std.data.json formal review

2015-08-25 Thread Timon Gehr via Digitalmars-d
On 08/25/2015 08:18 AM, Martin Nowak wrote: On 08/18/2015 12:21 AM, Andrei Alexandrescu wrote: * All new stuff should go in std.experimental. I assume stdx would change to that, should this work be merged. Though stdx (or better std.x) would have been a prettier and more exciting name for

Re: Casting double to ulong weirdness

2015-08-25 Thread bachmeier via Digitalmars-d
On Tuesday, 25 August 2015 at 13:51:18 UTC, Márcio Martins wrote: import std.stdio; void main() { double x = 1.2; writeln(cast(ulong)(x * 10.0 + x.epsilon)); double y = x * 10.0; writeln(cast(ulong)(y + x.epsilon)); double z = x * 10.0 +

Re: This Week in D summarizes those long threads for you!

2015-08-25 Thread Nicholas Wilson via Digitalmars-d-announce
On Monday, 24 August 2015 at 16:09:46 UTC, Adam D. Ruppe wrote: I haven't posted these to the announce forum for a while, but they still come out each week! If you aren't subscribed yet, there's an rss link on the page or you can follow me on Twitter, where I post most of them:

Re: Casting double to ulong weirdness

2015-08-25 Thread Matthias Bentrup via Digitalmars-d
On Monday, 24 August 2015 at 16:52:54 UTC, Márcio Martins wrote: I'm posting this here for visibility. This was silently corrupting our data, and might be doing the same for others as well. import std.stdio; void main() { double x = 1.2; writeln(cast(ulong)(x * 10.0)); double y = 1.2 *

Re: Casting double to ulong weirdness

2015-08-25 Thread Steven Schveighoffer via Digitalmars-d
On 8/25/15 9:51 AM, =?UTF-8?B?Ik3DoXJjaW8=?= Martins\ marcio...@gmail.com\ wrote: On Tuesday, 25 August 2015 at 11:14:35 UTC, Steven Schveighoffer wrote: On 8/24/15 5:34 PM, =?UTF-8?B?Ik3DoXJjaW8=?= Martins\ marcio...@gmail.com\ wrote: On Monday, 24 August 2015 at 21:03:50 UTC, Steven

Re: std.data.json formal review

2015-08-25 Thread Steven Schveighoffer via Digitalmars-d
On 8/25/15 11:02 AM, Timon Gehr wrote: On 08/25/2015 08:18 AM, Martin Nowak wrote: On 08/18/2015 12:21 AM, Andrei Alexandrescu wrote: * All new stuff should go in std.experimental. I assume stdx would change to that, should this work be merged. Though stdx (or better std.x) would have been a

Re: [Dgame] Sprite loading and setting position in another class

2015-08-25 Thread Jack via Digitalmars-d-learn
On Tuesday, 25 August 2015 at 13:22:43 UTC, Namespace wrote: Edit: Basically my code is: //Texman.d// Class TextureManager { //variables void addSprite(string sprite_file, string name) { Surface wiki_img

Re: Moving forward with work on the D language and foundation

2015-08-25 Thread bachmeier via Digitalmars-d-announce
On Tuesday, 25 August 2015 at 04:32:06 UTC, Joakim wrote: Is there some way we can slap TDPL online in a more accessible format, like a paid blog of some sort if you'd like to keep it generating royalties? Print and pdfs are such antiquated formats, we can do much better. How about

Re: Casting double to ulong weirdness

2015-08-25 Thread via Digitalmars-d
On Tuesday, 25 August 2015 at 11:14:35 UTC, Steven Schveighoffer wrote: On 8/24/15 5:34 PM, =?UTF-8?B?Ik3DoXJjaW8=?= Martins\ marcio...@gmail.com\ wrote: On Monday, 24 August 2015 at 21:03:50 UTC, Steven Schveighoffer wrote: I understand the inconsistency, and I agree it is an issue that

Re: This Week in D summarizes those long threads for you!

2015-08-25 Thread Timon Gehr via Digitalmars-d-announce
On 08/24/2015 06:09 PM, Adam D. Ruppe wrote: the if(array) thread But, this can be surprising if you aren't used to it, since an empty array is not necessarily null: [] is null passes, since the literal avoids allocating for nothing, but [1][1..$] is null fails, despite the array being

Re: Casting double to ulong weirdness

2015-08-25 Thread via Digitalmars-d
On Tuesday, 25 August 2015 at 14:54:41 UTC, Steven Schveighoffer wrote: On 8/25/15 9:51 AM, =?UTF-8?B?Ik3DoXJjaW8=?= Martins\ marcio...@gmail.com\ wrote: [...] Sorry, I misunderstood what epsilon was (I think it's the smallest incremental value for a given floating point type with an

dmd 2.068 deducing purity

2015-08-25 Thread Jack Applegame via Digitalmars-d-learn
Using lambdas in 2.068 becomes painful: import std.algorithm; struct Foo { int baz(int v) { static int id; return v + id++; } void bar() { auto arr1 = [1, 2, 3]; auto arr2 = [4, 5, 6];

Re: __traits(allMembers) and aliases

2015-08-25 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 25 August 2015 at 12:48:12 UTC, Dejan Lekic wrote: It is off-topic (sorry for that), but how you grab only those (say functions) in a module that are annotated with @ChoseMe ?? allMembers trait gives bunch of strings, and I could not find a way to use them with hasUDA template...

Re: dmd 2.068 deducing purity

2015-08-25 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/25/15 9:59 AM, Jack Applegame wrote: Using lambdas in 2.068 becomes painful: import std.algorithm; struct Foo { int baz(int v) { static int id; return v + id++; } void bar() { auto arr1 = [1, 2, 3]; auto arr2 = [4, 5, 6]; arr1.map!(i =

Re: Casting double to ulong weirdness

2015-08-25 Thread bachmeier via Digitalmars-d
On Tuesday, 25 August 2015 at 11:14:35 UTC, Steven Schveighoffer wrote: On 8/24/15 5:34 PM, =?UTF-8?B?Ik3DoXJjaW8=?= Martins\ marcio...@gmail.com\ wrote: On Monday, 24 August 2015 at 21:03:50 UTC, Steven Schveighoffer wrote: I understand the inconsistency, and I agree it is an issue that

Re: NYT data article based on work of EMSI, who I think are a D shop

2015-08-25 Thread anonymous via Digitalmars-d-learn
On Tuesday 25 August 2015 06:55, Laeeth Isharc wrote: http://www.nytimes.com/2015/08/23/magazine/the-creative-apocalypse-that-wasnt.html Interesting article as it corrects misconceptions of a few years back by looking at the data. This is based on tools from EMSI, who are a D shop.

Re: dmd 2.068 deducing purity

2015-08-25 Thread Jack Applegame via Digitalmars-d-learn
On Tuesday, 25 August 2015 at 14:05:17 UTC, Steven Schveighoffer wrote: Can you post an example? import std.range; import std.algorithm; class Foo { int baz() { return 1;} void bar() { auto s = [1].map!(i = baz()); // compiles auto r = [1].map!(i =

Re: __traits(allMembers) and aliases

2015-08-25 Thread Rikki Cattermole via Digitalmars-d-learn
On 26/08/15 12:06 AM, Mike Parker wrote: Is there a way to determine whether a given symbol is an alias? Consider this: ``` module funcs; alias FuncPtr = void function(); @ChooseMe FuncPtr funcPtr; alias anotherName = funcPtr; ``` Handing this module off to __traits(allMembers), then checking

Re: Casting double to ulong weirdness

2015-08-25 Thread via Digitalmars-d
On Tuesday, 25 August 2015 at 14:54:41 UTC, Steven Schveighoffer wrote: As bachmeier says, it's not something that's easy to get right. Are you sure you follow IEEE 754 recommendations? Floating point arithmetics should be reproducible according to the chosen rounding mode.

Re: NYT data article based on work of EMSI, who I think are a D shop

2015-08-25 Thread Justin Whear via Digitalmars-d-learn
On Tue, 25 Aug 2015 04:55:12 +, Laeeth Isharc wrote: http://www.nytimes.com/2015/08/23/magazine/the-creative-apocalypse-that- wasnt.html Interesting article as it corrects misconceptions of a few years back by looking at the data. This is based on tools from EMSI, who are a D shop.

[Issue 14884] `among` docs broken link to `find` and `canFind`

2015-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14884 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 14963] New: Cross-module docs in phobos-prerelease have wrong link targets

2015-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14963 Issue ID: 14963 Summary: Cross-module docs in phobos-prerelease have wrong link targets Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 14958] Casting a double to ulong sometimes produces wrong results

2015-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14958 --- Comment #5 from yebblies yebbl...@gmail.com --- (In reply to Steven Schveighoffer from comment #4) (In reply to yebblies from comment #3) This is working to spec. Please re-open as an enhancement request if you feel it's necessary. I

[Issue 14963] Cross-module docs in phobos-prerelease have wrong link targets

2015-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14963 --- Comment #1 from hst...@quickfur.ath.cx --- Not to mention, this also breaks cross-module links in local dlang.org documentation installations (e.g., when previewing doc changes locally) -- all of the links will go to dlang.org/phobos/* instead of

[Issue 14963] Cross-module docs in phobos-prerelease have wrong link targets

2015-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14963 hst...@quickfur.ath.cx changed: What|Removed |Added Keywords||pull --- Comment #2 from

Re: dpaste web site

2015-08-25 Thread nazriel via Digitalmars-d
On Thursday, 20 August 2015 at 20:28:48 UTC, Steven Schveighoffer wrote: dpaste.dzfl.pl is severely out of date. Who maintains this and can we get it updated? It's going to start hurting us pretty severely if we use it as our go-to site for pasting compiled-and-run d snippets, but it's only at

Re: Moving forward with work on the D language and foundation

2015-08-25 Thread Dmitry Olshansky via Digitalmars-d-announce
On 25-Aug-2015 23:04, bachmeier wrote: On Tuesday, 25 August 2015 at 19:29:06 UTC, Daniel Kozák wrote: I can't agree more. OK maybe I would add this https://twitter.com/kozzi11/status/636190895856091136 ;-) This is a big recent development for many: https://github.com/DlangScience I just

[Issue 14884] `among` docs broken link to `find` and `canFind`

2015-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14884 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/4b7976bc274992e1e3445ce819ea068b8f6737ff Fix Issue 14884

Re: Moving forward with work on the D language and foundation

2015-08-25 Thread Bill Baxter via Digitalmars-d-announce
On Tue, Aug 25, 2015 at 6:06 PM, welkam via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Monday, 24 August 2015 at 18:43:01 UTC, Andrei Alexandrescu wrote: to fully focus on pushing D forward. insert dick joke here That would be pushing ===D forward.

Re: RAII and Deterministic Destruction

2015-08-25 Thread Mike via Digitalmars-d-learn
On Tuesday, 25 August 2015 at 22:35:57 UTC, Jim Hewes wrote: Although C++ can be ugly, one reason I keep going back to it rather then commit more time to reference-based languages like C# is because I like deterministic destruction so much. My question is whether D can REALLY handle this or

NYT piece based on work done by EMSI, a D shop

2015-08-25 Thread Laeeth Isharc via Digitalmars-d
reposting here from learn at suggestion of anonymous http://www.nytimes.com/2015/08/23/magazine/the-creative-apocalypse-that-wasnt.html Interesting article as it corrects misconceptions of a few years back by looking at the data. This is based on tools from EMSI, who are a D shop.

Re: Moving forward with work on the D language and foundation

2015-08-25 Thread Robert M. Münch via Digitalmars-d-announce
On 2015-08-24 18:42:59 +, Andrei Alexandrescu said: Following an increasing desire to focus on working on the D language and foundation, I have recently made the difficult decision to part ways with Facebook, my employer of five years and nine months. Wow, that takes cojones and your

Re: Object.factory() and exe file size bloat

2015-08-25 Thread Jacob Carlborg via Digitalmars-d
On 2015-08-25 10:18, w0rp wrote: I think this is another case where Walter has got it right, by and large. I think we should try and use 'export' to cut down on binary bloat, and it looks like an acceptable solution. I have said many times, lock your versions down, and don't update your D

Re: Object.factory() and exe file size bloat

2015-08-25 Thread w0rp via Digitalmars-d
I think this is another case where Walter has got it right, by and large. I think we should try and use 'export' to cut down on binary bloat, and it looks like an acceptable solution. I have said many times, lock your versions down, and don't update your D compiler until you're ready to pay

Re: Role of D in Python and performance computing [was post on using go 1.5 and GC latency]

2015-08-25 Thread rsw0x via Digitalmars-d-learn
On Tuesday, 25 August 2015 at 07:18:24 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 25 August 2015 at 05:09:56 UTC, Laeeth Isharc wrote: On Monday, 24 August 2015 at 21:57:41 UTC, rsw0x wrote: [...] Horses for courses ? Eg for Andy Smith's problem of processing trade information of tens of

Re: Blog post : OOP composition with mixins

2015-08-25 Thread thedeemon via Digitalmars-d-announce
On Monday, 24 August 2015 at 16:21:04 UTC, Dejan Lekic wrote: What I think D community would benefit from would be a series of Idiomatic D articles. This collection of short pieces comes to mind: http://p0nce.github.io/d-idioms/

Re: Ruby 3.0 to have immutable strings by default / C++ heading towards generic all the time.

2015-08-25 Thread Kagamin via Digitalmars-d
On Friday, 21 August 2015 at 22:03:51 UTC, Walter Bright wrote: Renamed class from logical_const to propagate_const as the former is used with different meaning in the D community. I think, it was a concern raised by a reviewer for N3973 that the term has prior usage.

Re: Runtime error in code on main page

2015-08-25 Thread BBasile via Digitalmars-d
On Tuesday, 25 August 2015 at 01:27:37 UTC, Adrian wrote: The Get your local weather report sample code on the main page generates the following error: /d683/f748.d(32): Error: undefined identifier centerJustifier Someone might want to address that. please, stop spamming about that.

Re: DCD v0.7.0-rc1

2015-08-25 Thread Brian Schott via Digitalmars-d-announce
On Tuesday, 25 August 2015 at 08:46:18 UTC, BBasile wrote: On Friday, 21 August 2015 at 10:15:09 UTC, Brian Schott wrote: https://github.com/Hackerpilot/DCD/releases/tag/v0.7.0-rc1 If nothing else comes up I'll tag 0.7.0 Monday. DCD is an editor-independent auto-completion program for D

Re: std.data.json formal review

2015-08-25 Thread Martin Nowak via Digitalmars-d
On Saturday, 22 August 2015 at 13:41:49 UTC, Sönke Ludwig wrote: There is more than the actual call to validate(), such as writing tests and making sure the surroundings work, adjusting the interface and writing documentation. It's not *that* much work, but nonetheless wasted work. I also

Re: std.data.json formal review

2015-08-25 Thread Martin Nowak via Digitalmars-d
On 08/18/2015 12:21 AM, Andrei Alexandrescu wrote: * All new stuff should go in std.experimental. I assume stdx would change to that, should this work be merged. Though stdx (or better std.x) would have been a prettier and more exciting name for std.experimental to begin with.

Re: Trying to compile weather program

2015-08-25 Thread Martin Nowak via Digitalmars-d-learn
On Sunday, 23 August 2015 at 09:54:37 UTC, Tony wrote: auto loc = getJSON(ipinfo.io/)[loc] .str.split(,); BTW, the IP location doesn't work too reliably, if someone knows a better alternative...

Re: Role of D in Python and performance computing [was post on using go 1.5 and GC latency]

2015-08-25 Thread via Digitalmars-d-learn
On Tuesday, 25 August 2015 at 05:09:56 UTC, Laeeth Isharc wrote: On Monday, 24 August 2015 at 21:57:41 UTC, rsw0x wrote: On Monday, 24 August 2015 at 21:20:39 UTC, Russel Winder wrote: For Python and native code, D is a great fit, perhaps more so that Rust, except that Rust is getting more

Re: Moving forward with work on the D language and foundation

2015-08-25 Thread via Digitalmars-d-announce
On Monday, 24 August 2015 at 18:43:01 UTC, Andrei Alexandrescu wrote: Facebook has impacted my career and life very positively, and I am grateful to have been a part of it for this long. The time has come for me, however, to fully focus on pushing D forward. This is great news for D!

Re: Role of D in Python and performance computing [was post on using go 1.5 and GC latency]

2015-08-25 Thread via Digitalmars-d-learn
On Tuesday, 25 August 2015 at 07:21:13 UTC, rsw0x wrote: An option implies you can turn it off, has this changed since the last time I used Rust?(admittedly, a while back) Rust supports other reference types, so you decide by design whether you want to use linear typing or not?

Re: Digger 2.3 verstr.h problem

2015-08-25 Thread Robert M. Münch via Digitalmars-d-learn
On 2015-08-24 14:27:52 +, Vladimir Panteleev said: Well, yes, your problem is that DMD 2.067 isn't finding a file while compiling DMD HEAD. So you would need to debug DMD 2.067 to find why it refuses to compile DMD HEAD. Any way that I can switch to 2.068 for building HEAD? Not that I

Re: Moving forward with work on the D language and foundation

2015-08-25 Thread Paulo Pinto via Digitalmars-d-announce
On Monday, 24 August 2015 at 18:43:01 UTC, Andrei Alexandrescu wrote: Hello everyone, Following an increasing desire to focus on working on the D language and foundation, I have recently made the difficult decision to part ways with Facebook, my employer of five years and nine months.

Re: Moving forward with work on the D language and foundation

2015-08-25 Thread Muahmmad Adel via Digitalmars-d-announce
As far as I know, your title at Facebook was D evangelist. When I knew that you moved to Facebook with this title, at first I thought that Facebook was willing to push D forward, with the company's resources and its previous contributions to technology, I thought this would be a similar but a

Re: Moving forward with work on the D language and foundation

2015-08-25 Thread HaraldZealot via Digitalmars-d-announce
On Monday, 24 August 2015 at 18:43:01 UTC, Andrei Alexandrescu wrote: Hello everyone, Following an increasing desire to focus on working on the D language and foundation, I have recently made the difficult decision to part ways with Facebook, my employer of five years and nine months. ...

Re: DCD v0.7.0-rc1

2015-08-25 Thread BBasile via Digitalmars-d-announce
On Friday, 21 August 2015 at 10:15:09 UTC, Brian Schott wrote: https://github.com/Hackerpilot/DCD/releases/tag/v0.7.0-rc1 If nothing else comes up I'll tag 0.7.0 Monday. DCD is an editor-independent auto-completion program for D code. Read more here: https://github.com/Hackerpilot/DCD

Re: Moving forward with work on the D language and foundation

2015-08-25 Thread wobbles via Digitalmars-d-announce
On Monday, 24 August 2015 at 18:43:01 UTC, Andrei Alexandrescu wrote: Hello everyone, Following an increasing desire to focus on working on the D language and foundation, I have recently made the difficult decision to part ways with Facebook, my employer of five years and nine months.

Re: Trying to compile weather program

2015-08-25 Thread Martin Nowak via Digitalmars-d-learn
On Tuesday, 25 August 2015 at 05:27:16 UTC, Tony wrote: I happened to notice that among my libcurl*s libcurl-gnutls.so.3 libcurl-gnutls.so.4 libcurl-gnutls.so.4.3.0 libcurl.so.3 libcurl.so.4 libcurl.so.4.3.0 none were just libcurl.so. So I made a link for libcurl.so to the latest version and

Re: Moving forward with work on the D language and foundation

2015-08-25 Thread Sönke Ludwig via Digitalmars-d-announce
Am 24.08.2015 um 20:42 schrieb Andrei Alexandrescu: Hello everyone, Following an increasing desire to focus on working on the D language and foundation, I have recently made the difficult decision to part ways with Facebook, my employer of five years and nine months. (...) That's great news!

Re: std.data.json formal review

2015-08-25 Thread Sönke Ludwig via Digitalmars-d
Am 24.08.2015 um 22:25 schrieb Walter Bright: On 8/22/2015 5:21 AM, Sönke Ludwig wrote: Am 17.08.2015 um 00:03 schrieb Walter Bright: D is going to be built around ranges as a fundamental way of coding. Users will need to learn something about them. Appending .array is not a big hill to climb.

Re: Runtime error in code on main page

2015-08-25 Thread immu via Digitalmars-d
On Tuesday, 25 August 2015 at 01:27:37 UTC, Adrian wrote: The Get your local weather report sample code on the main page generates the following error: /d683/f748.d(32): Error: undefined identifier centerJustifier Someone might want to address that. I also get an error when I hit Run for

Re: Casting double to ulong weirdness

2015-08-25 Thread via Digitalmars-d
On Tuesday, 25 August 2015 at 17:40:06 UTC, Steven Schveighoffer wrote: I'll note that D does exactly what C does in the case where you are using 80-bit floating point numbers. I don't think C specifies how it should be done, but some compilers have a precise compilation flag that is supposed

Should this compile?

2015-08-25 Thread tchaloupka via Digitalmars-d-learn
import std.stdio; import std.range : chain; auto test(string a) { return test(a, b); } auto test(string a, string b) { return chain(a, b); } void main() { writeln(test(a)); } Ends with: Error: forward reference to inferred return type of function call 'test' I know this exact

[Issue 14904] [REG2.067.0] bad error message in reduce: 'Incompatible function/seed/element'

2015-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14904 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/6579c574bbcc53944a2060f3d1eadc1fa5516f51 fix Issue 14904 - bad

Re: Runtime error in code on main page

2015-08-25 Thread Adrian via Digitalmars-d
On Tuesday, 25 August 2015 at 08:40:48 UTC, BBasile wrote: please, stop spamming about that. http://forum.dlang.org/thread/qslurvxijgmfuqptc...@forum.dlang.org and file an issue on the bug tracker. God damnit. Jesus Christ, I'm just a passerby who noticed something in passing; sorry I

Re: DCD v0.7.0-rc1

2015-08-25 Thread John Colvin via Digitalmars-d-announce
On Friday, 21 August 2015 at 10:15:09 UTC, Brian Schott wrote: https://github.com/Hackerpilot/DCD/releases/tag/v0.7.0-rc1 If nothing else comes up I'll tag 0.7.0 Monday. DCD is an editor-independent auto-completion program for D code. Read more here: https://github.com/Hackerpilot/DCD brew

[Issue 14564] [REG2.067] dmd -property -unittest combination causes compiler error

2015-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14564 --- Comment #15 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/1e391e7b7a7a5d088811a7d5b145c783dfb4e356 make -property do nothing

Re: Ranges - Question about desing choices

2015-08-25 Thread cym13 via Digitalmars-d-learn
On Monday, 24 August 2015 at 17:59:00 UTC, Michal Minich wrote: Ok. What about this: there exactly the same 3 primitives as in D range, but popFront is requred to be called first, before calling front, or empty properties. Why current approach against this? Wouldn't that mean a null

Re: Moving forward with work on the D language and foundation

2015-08-25 Thread Joseph Rushton Wakeling via Digitalmars-d-announce
On Monday, 24 August 2015 at 18:43:01 UTC, Andrei Alexandrescu wrote: Hello everyone, Following an increasing desire to focus on working on the D language and foundation, I have recently made the difficult decision to part ways with Facebook, my employer of five years and nine months. Wow,

Re: Moving forward with work on the D language and foundation

2015-08-25 Thread Dejan Lekic via Digitalmars-d-announce
Well, Andrei, I expected this. - This is the best, and the most natural way forward. I am 100% The D Foundation is the best direction for D and only good will come from that. You and Facebook can still cooperate in many ways, and perhaps Facebook could become one of the important sponsors, or

[Issue 14961] New: v2.067 fails to build with musl libc (on alpine linux)

2015-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14961 Issue ID: 14961 Summary: v2.067 fails to build with musl libc (on alpine linux) Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal

Re: std.data.json formal review

2015-08-25 Thread Martin Nowak via Digitalmars-d
On 08/25/2015 09:03 AM, Sönke Ludwig wrote: The performance benefit comes from the fact that almost all of JSON is a subset of ASCII, so that lexing the input will implicitly validate it as correct UTF. The only places where actual UTF sequences can occur is in string literals outside of

Re: Runtime error in code on main page

2015-08-25 Thread Martin Nowak via Digitalmars-d
On 08/25/2015 12:06 PM, Adrian wrote: Jesus Christ, I'm just a passerby who noticed something in passing; sorry I didn't have the incentive to file a bug report. Thanks for letting us know.

Re: Object.factory() and exe file size bloat

2015-08-25 Thread Daniel Kozák via Digitalmars-d
V Tue, 25 Aug 2015 10:34:57 +0200 Jacob Carlborg via Digitalmars-d digitalmars-d@puremagic.com napsáno: On 2015-08-25 10:18, w0rp wrote: I think this is another case where Walter has got it right, by and large. I think we should try and use 'export' to cut down on binary bloat, and it

[Issue 14940] Can't call logger with more complex objects

2015-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14940 Robert Schadek rburn...@gmail.com changed: What|Removed |Added Status|NEW |ASSIGNED

[Issue 14852] std.experimental.logger should include the log level during logging

2015-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14852 Robert Schadek rburn...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 14374] not all default LogLevel of the provided Logger are equal

2015-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14374 Robert Schadek rburn...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: C++/STL interop

2015-08-25 Thread anonymous via Digitalmars-d-learn
On Monday 24 August 2015 17:37, anonymous wrote: I saw https://issues.dlang.org/show_bug.cgi?id=14956 . questions: - is std.basic_string released into the wild? - where do I find std.basic_string? - does std.vector exist? That would allow me to get rid of some C++ clue code (build an

[Issue 14852] std.experimental.logger should include the log level during logging

2015-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14852 ag0ae...@gmail.com changed: What|Removed |Added CC||ag0ae...@gmail.com

Re: Should this compile?

2015-08-25 Thread Vladimir Panteleev via Digitalmars-d-learn
On Tuesday, 25 August 2015 at 18:19:40 UTC, tchaloupka wrote: import std.stdio; import std.range : chain; auto test(string a) { return test(a, b); } auto test(string a, string b) { return chain(a, b); } void main() { writeln(test(a)); } Ends with: Error: forward reference to

[Issue 14940] Can't call logger with more complex objects

2015-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14940 --- Comment #3 from Robert Schadek rburn...@gmail.com --- the code tries to log the Logger. If I change it to log the Nullable is still does not work, because the toString of Nullable takes a @system delegate OutputRange. --

Re: NYT data article based on work of EMSI, who I think are a D shop

2015-08-25 Thread Laeeth Isharc via Digitalmars-d-learn
On Tuesday, 25 August 2015 at 17:06:57 UTC, anonymous wrote: On Tuesday 25 August 2015 06:55, Laeeth Isharc wrote: http://www.nytimes.com/2015/08/23/magazine/the-creative-apocalypse-that-wasnt.html Interesting article as it corrects misconceptions of a few years back by looking at the data.

RAII and Deterministic Destruction

2015-08-25 Thread Jim Hewes via Digitalmars-d-learn
Although C++ can be ugly, one reason I keep going back to it rather then commit more time to reference-based languages like C# is because I like deterministic destruction so much. My question is whether D can REALLY handle this or not. I've not been sure about this for some time so now I'm

Re: NYT data article based on work of EMSI, who I think are a D shop

2015-08-25 Thread Laeeth Isharc via Digitalmars-d-learn
Hi, I'm the Data group lead at EMSI; my group is the primary user of D in the organization and I can confirm that we are doing some interesting things with it that really leverage D's strengths. I will work on putting together a piece highlighting some of those things--any suggestions for

Re: Moving forward with work on the D language and foundation

2015-08-25 Thread Daniel Kozák via Digitalmars-d-announce
V Tue, 25 Aug 2015 20:30:23 +0300 Dmitry Olshansky via Digitalmars-d-announce digitalmars-d-announce@puremagic.com napsáno: On 24-Aug-2015 21:42, Andrei Alexandrescu wrote: Hello everyone, Following an increasing desire to focus on working on the D language and foundation, I have

Re: Moving forward with work on the D language and foundation

2015-08-25 Thread bachmeier via Digitalmars-d-announce
On Tuesday, 25 August 2015 at 19:29:06 UTC, Daniel Kozák wrote: I can't agree more. OK maybe I would add this https://twitter.com/kozzi11/status/636190895856091136 ;-) This is a big recent development for many: https://github.com/DlangScience

Re: Casting double to ulong weirdness

2015-08-25 Thread bachmeier via Digitalmars-d
On Tuesday, 25 August 2015 at 18:15:03 UTC, Ola Fosheim Grøstad wrote: It is a practical issue in all simulations where you want reproducible results. If D is meant for scientific computing it should support correct rounding and reproducible results. If D is meant for gaming it should

Re: std.data.json formal review

2015-08-25 Thread Sönke Ludwig via Digitalmars-d
Am 25.08.2015 um 14:14 schrieb Sebastiaan Koppe: On Tuesday, 25 August 2015 at 06:56:23 UTC, Sönke Ludwig wrote: If I have a string variable and I want to store the upper case version of another string, the direct mental translation is dst = toUpper(src); - and not dst = toUpper(src).array;.

[Issue 14953] std.concurrency: Add function to flush message box

2015-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14953 --- Comment #2 from Sean Kelly s...@invisibleduck.org --- That said, it seems like the underlying problem here may be dataflow-related. How do you know that all pending messages are really no longer relevant? If messages are really backing up (ie.

Re: This Week in D summarizes those long threads for you!

2015-08-25 Thread NVolcz via Digitalmars-d-announce
On Monday, 24 August 2015 at 16:09:46 UTC, Adam D. Ruppe wrote: /snip This Week in D has the argument over export/Object.factory, the if(array) thread, dmd codegen, and the official switch to ddmd! http://arsdnet.net/this-week-in-d/aug-23.html /snip Speaking of giving the ldc and gdc

Re: How many bytes in a real ?

2015-08-25 Thread Guillaume Chatelet via Digitalmars-d
On Tuesday, 25 August 2015 at 00:13:28 UTC, Xinok wrote: On Monday, 24 August 2015 at 21:55:40 UTC, Guillaume Chatelet wrote: On linux x86_64 : real.sizeof == 16 but it looks like only the first the first 10 bytes are used (ie. 80bits) Is there a way to know the real size of a real ? The

Re: Ruby 3.0 to have immutable strings by default / C++ heading towards generic all the time.

2015-08-25 Thread Chris via Digitalmars-d
On Thursday, 20 August 2015 at 22:07:10 UTC, John Carter wrote: https://twitter.com/yukihiro_matz/status/634386185507311616 Yet another choice D got right out of the box :-) Even Bjarne is coming around to the Generic all the time view... https://www.youtube.com/watch?v=xcpSLRpOMJM Pity

Re: Moving forward with work on the D language and foundation

2015-08-25 Thread Martin Nowak via Digitalmars-d-announce
On 08/24/2015 08:42 PM, Andrei Alexandrescu wrote: Hello everyone, Following an increasing desire to focus on working on the D language and foundation, I have recently made the difficult decision to part ways with Facebook, my employer of five years and nine months. Thank you for this very

Re: Moving forward with work on the D language and foundation

2015-08-25 Thread Chris via Digitalmars-d-announce
Wow! I doff my hat. Please let us know how we can contribute (donations and otherwise) asap.

Re: Runtime error in code on main page

2015-08-25 Thread anonymous via Digitalmars-d
On Tuesday 25 August 2015 10:40, BBasile wrote: please, stop spamming about that. [...] and file an issue on the bug tracker. God damnit. Easy there. We don't want to discourage people from reporting bugs.

Re: Casting double to ulong weirdness

2015-08-25 Thread Steven Schveighoffer via Digitalmars-d
On 8/24/15 5:34 PM, =?UTF-8?B?Ik3DoXJjaW8=?= Martins\ marcio...@gmail.com\ wrote: On Monday, 24 August 2015 at 21:03:50 UTC, Steven Schveighoffer wrote: I understand the inconsistency, and I agree it is an issue that should be examined. But the issue is entirely avoidable by not using

__traits(allMembers) and aliases

2015-08-25 Thread Mike Parker via Digitalmars-d-learn
Is there a way to determine whether a given symbol is an alias? Consider this: ``` module funcs; alias FuncPtr = void function(); @ChooseMe FuncPtr funcPtr; alias anotherName = funcPtr; ``` Handing this module off to __traits(allMembers), then checking for the UDA on each member, I can filter

Re: Runtime error in code on main page

2015-08-25 Thread Martin Nowak via Digitalmars-d
On 08/25/2015 08:30 AM, immu wrote: I also get an error when I hit Run for the D is like ... program. Error message: Unable to fork: Cannot allocate memory Not sure, but might be a restriction of dpaste. Just a guess, maybe b/c curl creates threads internally.

  1   2   >