[Issue 17367] CodeView/MSCOFF: bad debug information for enumerators

2017-05-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17367 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 17367] CodeView/MSCOFF: bad debug information for enumerators

2017-05-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17367 --- Comment #1 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/db9a6371b6b3b921b67d3c896b8dd57dbac8e31d fix issue 17367 - force proper alignment for elements in an

Re: Fantastic exchange from DConf

2017-05-09 Thread H. S. Teoh via Digitalmars-d
On Wed, May 10, 2017 at 01:32:33AM +, Jack Stouffer via Digitalmars-d wrote: > On Wednesday, 10 May 2017 at 00:30:42 UTC, H. S. Teoh wrote: > > strncpy(tmp, desc->data1, bufsz); > > if (fwrite(tmp, strlen(tmp), 1, fp) != 1) > > { > >

D is really cool

2017-05-09 Thread nkm1 via Digitalmars-d
So I spent last week (or so) learning D, and it's a great language. Initially I was apprehensive about GC (non generational, conservative...), but now I realize that I can use D as an improved C (combining malloc and GC :). I always liked C better than C++ anyway. I know that every bloody n00b

Re: Structure of platform specific vs non platform specific code

2017-05-09 Thread rikki cattermole via Digitalmars-d-learn
On 09/05/2017 7:08 PM, Igor wrote: On Tuesday, 9 May 2017 at 15:37:44 UTC, Stefan Koch wrote: On Tuesday, 9 May 2017 at 15:28:20 UTC, WhatMeWorry wrote: On Monday, 8 May 2017 at 21:16:53 UTC, Igor wrote: Hi, I am following Casey Muratori's Handmade Hero and writing it in DLang. This sounds

Access specifiers and visibility

2017-05-09 Thread Andrew Edwards via Digitalmars-d-learn
Attempting to update a git repo to current D, I encounter the following deprecation messages: src/glwtf/signals.d-mixin-256(256,2): Deprecation: glwtf.input.BaseGLFWEventHandler._on_key_down is not visible from module glwtf.signals src/glwtf/signals.d-mixin-256(256,2): Deprecation:

Re: Fantastic exchange from DConf

2017-05-09 Thread Jack Stouffer via Digitalmars-d
On Wednesday, 10 May 2017 at 00:30:42 UTC, H. S. Teoh wrote: strncpy(tmp, desc->data1, bufsz); if (fwrite(tmp, strlen(tmp), 1, fp) != 1) { fclose(fp); unlink("blah"); return

Re: "Rolling Hash computation" or "Content Defined Chunking"

2017-05-09 Thread 9il via Digitalmars-d-learn
On Tuesday, 9 May 2017 at 18:17:45 UTC, notna wrote: I hoped there may already be something in Mir or Weka.io or somewhere else... Will read the Golang, C and C++ source and see if my Dlang is good enough for ranges and the like magic... Hello notha, You may want to open a PR to

Re: Fantastic exchange from DConf

2017-05-09 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 05/09/2017 08:30 PM, H. S. Teoh via Digitalmars-d wrote: In this sense I agree with Walter that warnings are basically useless, because they're not enforced. Either something is correct and compiles, or it should be an error that stops compilation. Anything else, and you start having people

Re: Thoughts on some code breakage with 2.074

2017-05-09 Thread Adam Wilson via Digitalmars-d
On 5/9/17 20:23, Patrick Schluter wrote: On Tuesday, 9 May 2017 at 17:34:48 UTC, H. S. Teoh wrote: On Tue, May 09, 2017 at 02:13:34PM +0200, Adam Wilson via Digitalmars-d wrote: > [...] [...] [...] [...] I don't represent any company, but I have to also say that I *appreciate* breaking

[Issue 10645] Wrong codegen for shared struct with constructor and pass to atomicLoad

2017-05-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10645 Andrew Edwards changed: What|Removed |Added CC||edwards...@gmail.com

Re: Thank you Sociomantic for hosting DConf!

2017-05-09 Thread Nicholas Wilson via Digitalmars-d-announce
On Tuesday, 9 May 2017 at 08:18:45 UTC, Walter Bright wrote: http://dconf.org/2017/index.html This was a huge success, from the full house, to the great talks, the cameraderie, and to the tsunami of Pull Requests that resulted from Sunday's hackathon! (Definitely the post-conference

Re: Jonathan Blow's presentation [OT]

2017-05-09 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 05/09/2017 02:14 PM, Ola Fosheim Grøstad wrote: I've kinda stopped consuming music when travelling, but I personally prefer large headsets that enclose the ear completely. Closed ones in non-silent environment so you don't crank the volume up too much. A bit clunky even if foldable of

Re: Jonathan Blow's presentation

2017-05-09 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 05/09/2017 07:47 PM, Era Scarecrow wrote: since the console hardware is seriously behind PC hardware. Side nitpick: Console hardware is behind *gaming-PC* hardware. Important distinction. Heck, my most powerful PC is a little behind PS3 (in terms of game performance, anyway) and does

Re: Fantastic exchange from DConf

2017-05-09 Thread H. S. Teoh via Digitalmars-d
On Tue, May 09, 2017 at 11:09:27PM +, Guillaume Boucher via Digitalmars-d wrote: > On Tuesday, 9 May 2017 at 16:55:54 UTC, H. S. Teoh wrote: > > Ouch. Haha, even I forgot about this particularly lovely aspect of > > C. Hooray, freely call functions without declaring them, and > >

Re: Jonathan Blow's presentation

2017-05-09 Thread Era Scarecrow via Digitalmars-d
On Tuesday, 9 May 2017 at 23:47:46 UTC, Era Scarecrow wrote: Seems some games they decided the small amount of time spent decompressing audio and textures was too high since the console hardware is seriously behind PC hardware. Found an appropriate articles Regarding Titanfall (a few years

Re: Jonathan Blow's presentation

2017-05-09 Thread Era Scarecrow via Digitalmars-d
On Tuesday, 9 May 2017 at 02:13:19 UTC, Nick Sabalausky (Abscissa) wrote: On 05/08/2017 03:28 PM, Jack Stouffer wrote: uncompressed audio. Uncompressed? Seriously? I assume that really means FLAC or something rather than truly uncompressed, but even still... Nope, uncompressed. Seems some

Re: Fantastic exchange from DConf

2017-05-09 Thread Guillaume Boucher via Digitalmars-d
On Tuesday, 9 May 2017 at 16:55:54 UTC, H. S. Teoh wrote: Ouch. Haha, even I forgot about this particularly lovely aspect of C. Hooray, freely call functions without declaring them, and "obviously" they return int! Why not? To be fair, most of your complaints can be fixed by enabling

Re: Static foreach pull request

2017-05-09 Thread Timon Gehr via Digitalmars-d
On 09.05.2017 23:56, Timon Gehr wrote: core.exception.AssertError@ddmd/blockexit.d(90): Assertion failure ... Thanks! (It's a known issue though: https://github.com/tgehr/dmd/blob/static-foreach/test_staticforeach.d#L330.) I guess the problem is that I do not propagate the

Re: Static foreach pull request

2017-05-09 Thread Andrei Alexandrescu via Digitalmars-d
On 5/10/17 1:00 AM, Andrei Alexandrescu wrote: On 5/10/17 12:56 AM, Timon Gehr wrote: Thanks! (It's a known issue though: https://github.com/tgehr/dmd/blob/static-foreach/test_staticforeach.d#L330.) I guess the problem is that I do not propagate the error condition properly, but I'm not

Re: Static foreach pull request

2017-05-09 Thread Andrei Alexandrescu via Digitalmars-d
On 5/10/17 12:56 AM, Timon Gehr wrote: Thanks! (It's a known issue though: https://github.com/tgehr/dmd/blob/static-foreach/test_staticforeach.d#L330.) I guess the problem is that I do not propagate the error condition properly, but I'm not sure how to do it. (In my frontend, error handling

Re: Static foreach pull request

2017-05-09 Thread Timon Gehr via Digitalmars-d
On 09.05.2017 23:39, Guillaume Boucher wrote: On Tuesday, 9 May 2017 at 03:06:37 UTC, Timon Gehr wrote: If you are interested in static foreach making it into the language, please play with the implementation and tell me how to break it. Code: void main() { void f() { idonotexist(); }

Re: Static foreach pull request

2017-05-09 Thread Guillaume Boucher via Digitalmars-d
On Tuesday, 9 May 2017 at 03:06:37 UTC, Timon Gehr wrote: If you are interested in static foreach making it into the language, please play with the implementation and tell me how to break it. Code: void main() { void f() { idonotexist(); } static foreach(j;0..0) {

Re: Looking for an equivalent to C++ std::getline in D

2017-05-09 Thread Moritz Maxeiner via Digitalmars-d-learn
On Tuesday, 9 May 2017 at 19:11:08 UTC, Jonathan M Davis wrote: LOL. I get the impression that it's often the tendancy of D folks is to get excited when D shows up as high in a list like Tiobe and to argue that the list doesn't mean much if D isn't high in the list. AKA confirmation bias.

Re: Static foreach pull request

2017-05-09 Thread Andrei Alexandrescu via Digitalmars-d
On 5/9/17 3:46 PM, Timon Gehr wrote: On 09.05.2017 08:17, rikki cattermole wrote: On 09/05/2017 7:10 AM, Jack Stouffer wrote: On Tuesday, 9 May 2017 at 03:06:37 UTC, Timon Gehr wrote: ... I'm going to save you some time and tell you that Andrei and Walter are going to require a DIP for

[Issue 17356] [Reg 2.075] __simd_sto no longer executed

2017-05-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17356 Walter Bright changed: What|Removed |Added CC|

Trivially obvious to the most casual observer

2017-05-09 Thread Walter Bright via Digitalmars-d
On 5/9/2017 1:12 AM, Ethan Watson wrote: So, as Walter would say, "It's trivially obvious to the casual observer." I was surprised to learn at DConf that "trivially obvious to the most casual observer" was an unknown expression. Googling it shows only around 10 hits, none predating 2005. I

Re: Looking for an equivalent to C++ std::getline in D

2017-05-09 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, May 08, 2017 11:41:02 Daniel N via Digitalmars-d-learn wrote: > On Monday, 8 May 2017 at 10:51:52 UTC, Ola Fosheim Grøstad wrote: > > On Sunday, 7 May 2017 at 20:50:10 UTC, Patrick Schluter wrote: > >> If you look on TIOBE [1] newest stats, D does not look so bad > >> after all. It's

Re: Thoughts on some code breakage with 2.074

2017-05-09 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 9 May 2017 at 17:34:48 UTC, H. S. Teoh wrote: On Tue, May 09, 2017 at 02:13:34PM +0200, Adam Wilson via Digitalmars-d wrote: > [...] [...] [...] [...] I don't represent any company, but I have to also say that I *appreciate* breaking changes that reveal latent bugs in my code.

Re: "Rolling Hash computation" or "Content Defined Chunking"

2017-05-09 Thread notna via Digitalmars-d-learn
On Saturday, 6 May 2017 at 07:21:51 UTC, Johannes Pfau wrote: Am Mon, 01 May 2017 21:01:43 + schrieb notna : Hi Dlander's. Found some interesting reads ([1] [2] [3]) about the $SUBJECT and wonder if there is anything available in the Dland?! If yes,

Re: Thank you Sociomantic for hosting DConf!

2017-05-09 Thread Martin Tschierschke via Digitalmars-d-announce
On Tuesday, 9 May 2017 at 17:44:12 UTC, Steven Schveighoffer wrote: On 5/9/17 6:17 AM, Martin Tschierschke wrote: On Tuesday, 9 May 2017 at 08:18:45 UTC, Walter Bright wrote: http://dconf.org/2017/index.html Last wish: Please change the text on the home page :) DConf 2017 is coming up:

Re: Jonathan Blow's presentation [OT]

2017-05-09 Thread Ola Fosheim Grøstad via Digitalmars-d
On Tuesday, 9 May 2017 at 17:25:37 UTC, Nick Sabalausky (Abscissa) wrote: me anyway) - Any idea offhand where to find a good set of clip-style headphones? Unfortunately not. I try to avoid headphones these days, too easy to crank up the volume without noticing, especially if you have good

Re: Fantastic exchange from DConf

2017-05-09 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 9 May 2017 at 16:55:54 UTC, H. S. Teoh wrote: On Tue, May 09, 2017 at 08:18:09AM +, Patrick Schluter via [...] Ouch. Haha, even I forgot about this particularly lovely aspect of C. Hooray, freely call functions without declaring them, and "obviously" they return int! Why not?

Re: Scope checking on static array struct doesn't kick in

2017-05-09 Thread Nordlöw via Digitalmars-d-learn
On Tuesday, 9 May 2017 at 13:30:49 UTC, Nordlöw wrote: I'll write a Bugzilla issue later today. https://issues.dlang.org/show_bug.cgi?id=17388

Re: What are we going to do about mobile?

2017-05-09 Thread H. S. Teoh via Digitalmars-d
On Tue, May 09, 2017 at 09:08:17AM +, Joakim via Digitalmars-d wrote: [...] > On the other hand, even if sales are doubling, that doesn't mean you > aren't dying. Consider Blackberry, whose sales rocketed up even after > the iPhone was first introduced in 2007: > >

[Issue 17388] New: [DIP1000] no escape analysis for auto return scope members

2017-05-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17388 Issue ID: 17388 Summary: [DIP1000] no escape analysis for auto return scope members Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW

Re: Structure of platform specific vs non platform specific code

2017-05-09 Thread Igor via Digitalmars-d-learn
On Tuesday, 9 May 2017 at 15:37:44 UTC, Stefan Koch wrote: On Tuesday, 9 May 2017 at 15:28:20 UTC, WhatMeWorry wrote: On Monday, 8 May 2017 at 21:16:53 UTC, Igor wrote: Hi, I am following Casey Muratori's Handmade Hero and writing it in DLang. This sounds very interesting. Maybe make it a

Re: DConf 2017 Hackathon report

2017-05-09 Thread ANtlord via Digitalmars-d
On Tuesday, 9 May 2017 at 04:35:40 UTC, Ali Çehreli wrote: Please list what we've achieved during the hackathon, including what is started but is likely to be finished in the coming days or months. For me: - Finished updating "Programming in D" to 2.074.0 (the HTML is now up to date but I

Re: Thank you Sociomantic for hosting DConf!

2017-05-09 Thread Steven Schveighoffer via Digitalmars-d-announce
On 5/9/17 6:17 AM, Martin Tschierschke wrote: On Tuesday, 9 May 2017 at 08:18:45 UTC, Walter Bright wrote: http://dconf.org/2017/index.html This was a huge success, from the full house, to the great talks, the cameraderie, and to the tsunami of Pull Requests that resulted from Sunday's

Re: Mir Algorithm v0.5.8: Interpolation, Timeseries and 17 new functions

2017-05-09 Thread 9il via Digitalmars-d-announce
On Tuesday, 9 May 2017 at 17:35:18 UTC, 9il wrote: OK, I changed return type for *Pos functions. No they return positions :-) Now*

Re: Thoughts on some code breakage with 2.074

2017-05-09 Thread H. S. Teoh via Digitalmars-d
On Tue, May 09, 2017 at 02:13:34PM +0200, Adam Wilson via Digitalmars-d wrote: > On 5/8/17 20:33, Brian Schott wrote: > > Recently the EMSI data department upgraded the compiler we use to > > build our data processing code to 2.074. This caused several of the > > thousands of processes to die with

Re: Mir Algorithm v0.5.8: Interpolation, Timeseries and 17 new functions

2017-05-09 Thread 9il via Digitalmars-d-announce
On Monday, 8 May 2017 at 14:26:35 UTC, jmh530 wrote: On Monday, 8 May 2017 at 08:51:32 UTC, 9il wrote: ## New modules ... Great work. Some comments: mir.timeseries is a welcome addition. Calling (time, data) pairs moments will confuse because moment has another meaning in statistics.

Re: Turn .opApply into ranges

2017-05-09 Thread Stefan Koch via Digitalmars-d
On Tuesday, 9 May 2017 at 17:23:36 UTC, Yuxuan Shui wrote: I wondered if I can turn struct that defines opApply into ranges. And it turns out to be surprisingly easy: https://gist.github.com/yshui/716cfe987c89997760cabc2c951ca430 Maybe we can phase out opApply support in foreach? ;) BTW, is

Re: Jonathan Blow's presentation [OT]

2017-05-09 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 05/09/2017 12:58 PM, Ola Fosheim Grøstad wrote: Use a good headset (E.g. Sennheiser HD600 or better) and preferably use the same headset the audio engineer used... Loudspeaker in room -> not the same signal as on the CD. You seem to know a thing or two about audio hardware (more than me

Re: Fantastic exchange from DConf

2017-05-09 Thread H. S. Teoh via Digitalmars-d
On Tue, May 09, 2017 at 07:13:31AM -0700, Walter Bright via Digitalmars-d wrote: > On 5/8/2017 1:55 PM, John Carter wrote: > > On Saturday, 6 May 2017 at 06:26:29 UTC, Joakim wrote: > > > > > Walter: I believe memory safety will kill C. > > > > C/C++ has been granted an extension of life by the

Turn .opApply into ranges

2017-05-09 Thread Yuxuan Shui via Digitalmars-d
I wondered if I can turn struct that defines opApply into ranges. And it turns out to be surprisingly easy: https://gist.github.com/yshui/716cfe987c89997760cabc2c951ca430 Maybe we can phase out opApply support in foreach? ;) BTW, is there a way to get the "element type" from .opApply?

[Issue 3075] Implement parameter contravariance

2017-05-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3075 Walter Bright changed: What|Removed |Added Status|RESOLVED|REOPENED

Re: Fantastic exchange from DConf

2017-05-09 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 05/09/2017 06:29 AM, Adrian Matoga wrote: On Tuesday, 9 May 2017 at 09:22:13 UTC, Joakim wrote: On Tuesday, 9 May 2017 at 06:15:12 UTC, H. S. Teoh wrote: On Mon, May 08, 2017 at 06:33:08PM +, Jerry via Digitalmars-d wrote: [...] Is that a subtle joke, or are you being serious? [...]

Re: Fantastic exchange from DConf

2017-05-09 Thread H. S. Teoh via Digitalmars-d
On Tue, May 09, 2017 at 08:18:09AM +, Patrick Schluter via Digitalmars-d wrote: > On Tuesday, 9 May 2017 at 06:15:12 UTC, H. S. Teoh wrote: > > > > int my_func(mytype_t *input, outbuf_t *output_buf, > > char *buffer, int size) > > { > > /* Typical lazy way

Re: Jonathan Blow's presentation

2017-05-09 Thread Ola Fosheim Grøstad via Digitalmars-d
On Tuesday, 9 May 2017 at 16:26:35 UTC, Ola Fosheim Grøstad wrote: Some things like phasing/smearing in high frequency content and imaging does affect the experience, although the effect is very I want to add that of course, modern commercial music is already ruined by too much compression

Re: Jonathan Blow's presentation

2017-05-09 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 05/09/2017 04:44 AM, Patrick Schluter wrote: On Tuesday, 9 May 2017 at 08:24:40 UTC, Nick Sabalausky (Abscissa) wrote: On 05/09/2017 02:10 AM, Patrick Schluter wrote: Interesting. Any links? Not familiar with what "c't" is. https://www.heise.de/ct/artikel/Kreuzverhoertest-287592.html So,

Re: Fantastic exchange from DConf

2017-05-09 Thread Martin Tschierschke via Digitalmars-d
On Tuesday, 9 May 2017 at 09:22:13 UTC, Joakim wrote: On Tuesday, 9 May 2017 at 06:15:12 UTC, H. S. Teoh wrote: On Mon, May 08, 2017 at 06:33:08PM +, Jerry via Digitalmars-d wrote: [...] Is that a subtle joke, or are you being serious? [...] Heh, I saw you wrote the post and knew it

Re: Jonathan Blow's presentation

2017-05-09 Thread Ola Fosheim Grøstad via Digitalmars-d
On Tuesday, 9 May 2017 at 08:12:20 UTC, Ethan Watson wrote: That's the point of the blind test. It isn't trivially obvious to the casual observer. You might think it is, but you're not a casual observer. Well the point of a blind test is more to establish validity for something having a

Re: Fantastic exchange from DConf

2017-05-09 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 9 May 2017 at 14:13:31 UTC, Walter Bright wrote: On 5/8/2017 1:55 PM, John Carter wrote: On Saturday, 6 May 2017 at 06:26:29 UTC, Joakim wrote: Walter: I believe memory safety will kill C. C/C++ has been granted an extension of life by the likes of valgrind and purify and

Re: DConf 2017 Hackathon report

2017-05-09 Thread Nemanja Boric via Digitalmars-d
On Tuesday, 9 May 2017 at 16:14:57 UTC, Nemanja Boric wrote: On Tuesday, 9 May 2017 at 04:35:40 UTC, Ali Çehreli wrote: Please list what we've achieved during the hackathon, including what is started but is likely to be finished in the coming days or months. For me: - Finished updating

Re: Working code in an upcoming PR by Timon Gehr

2017-05-09 Thread Yuxuan Shui via Digitalmars-d-announce
On Tuesday, 9 May 2017 at 13:19:09 UTC, Timon Gehr wrote: On 07.05.2017 19:03, Stanislav Blinov wrote: On Sunday, 7 May 2017 at 16:57:58 UTC, Andrei Alexandrescu wrote: [...] I see only unsurprising Jpeg artifacts and not much more :) It's too low resolution to make anything out. It's

Re: DConf 2017 Hackathon report

2017-05-09 Thread Nemanja Boric via Digitalmars-d
On Tuesday, 9 May 2017 at 04:35:40 UTC, Ali Çehreli wrote: Please list what we've achieved during the hackathon, including what is started but is likely to be finished in the coming days or months. For me: - Finished updating "Programming in D" to 2.074.0 (the HTML is now up to date but I

[Issue 17354] An overload in a final class can silently hide base methods

2017-05-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17354 Walter Bright changed: What|Removed |Added CC|

[Issue 16600] Wrong error message for ambiguous mutable/immutable constructor

2017-05-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16600 Walter Bright changed: What|Removed |Added Status|RESOLVED|REOPENED

Re: Structure of platform specific vs non platform specific code

2017-05-09 Thread Stefan Koch via Digitalmars-d-learn
On Tuesday, 9 May 2017 at 15:28:20 UTC, WhatMeWorry wrote: On Monday, 8 May 2017 at 21:16:53 UTC, Igor wrote: Hi, I am following Casey Muratori's Handmade Hero and writing it in DLang. This sounds very interesting. Maybe make it a public github project? It can only accessible for those

Re: Structure of platform specific vs non platform specific code

2017-05-09 Thread WhatMeWorry via Digitalmars-d-learn
On Monday, 8 May 2017 at 21:16:53 UTC, Igor wrote: Hi, I am following Casey Muratori's Handmade Hero and writing it in DLang. This sounds very interesting. Maybe make it a public github project?

[Issue 17387] static struct this(ref) not pure

2017-05-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17387 ag0ae...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 17387] New: static struct this(ref) not pure

2017-05-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17387 Issue ID: 17387 Summary: static struct this(ref) not pure Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: minor Priority: P1

Re: -vcg-ast dmd command line switch

2017-05-09 Thread Stefan Koch via Digitalmars-d
On Sunday, 7 May 2017 at 15:16:48 UTC, Ali Çehreli wrote: I've just commented on the following thread on the 'internals' newsgroup: http://forum.dlang.org/thread/tiiuucwivajgsnoos...@forum.dlang.org I think this should be improved to display code that is being mixed-in. Ali I just

[Issue 17386] Internal error: backend\cgcod.c 1841

2017-05-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17386 ag0ae...@gmail.com changed: What|Removed |Added Keywords||ice CC|

[Issue 17386] New: Internal error: backend\cgcod.c 1841

2017-05-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17386 Issue ID: 17386 Summary: Internal error: backend\cgcod.c 1841 Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: critical

Re: Fantastic exchange from DConf

2017-05-09 Thread Walter Bright via Digitalmars-d
On 5/8/2017 1:55 PM, John Carter wrote: On Saturday, 6 May 2017 at 06:26:29 UTC, Joakim wrote: Walter: I believe memory safety will kill C. C/C++ has been granted an extension of life by the likes of valgrind and purify and *-sanitizer. I agree. But one inevitably runs into problems

Re: Error writing file a *.obj

2017-05-09 Thread bachmeier via Digitalmars-d-learn
On Tuesday, 9 May 2017 at 02:33:06 UTC, dummy wrote: On Monday, 8 May 2017 at 12:29:27 UTC, bachmeier wrote: On Monday, 8 May 2017 at 11:56:10 UTC, dummy wrote: When i build some application with dub, i got this error: I'm not a Dub user, but it has its own forum, so you might want to try

Re: Structure of platform specific vs non platform specific code

2017-05-09 Thread rikki cattermole via Digitalmars-d-learn
On 09/05/2017 2:53 PM, Jacob Carlborg wrote: On 2017-05-08 23:16, Igor wrote: Hi, I am following Casey Muratori's Handmade Hero and writing it in DLang. I got to Day 011: The Basics of Platform API Design where Casey explains the best way to structure platform specific vs non-platform specific

Re: DConf 2017 Hackathon report

2017-05-09 Thread Steven Schveighoffer via Digitalmars-d
On 5/9/17 9:19 AM, Steven Schveighoffer wrote: Aaaand, I'm not questioning whether the PR I made is sound, due to the way template-instantiated static ctors work. I'll have to rethink how it works. *now* questioning... -Steve

Re: Structure of platform specific vs non platform specific code

2017-05-09 Thread Jacob Carlborg via Digitalmars-d-learn
On 2017-05-08 23:16, Igor wrote: Hi, I am following Casey Muratori's Handmade Hero and writing it in DLang. I got to Day 011: The Basics of Platform API Design where Casey explains the best way to structure platform specific vs non-platform specific code but his method cannot work in DLang

Re: DIP 1004 Preliminary Review Round 1

2017-05-09 Thread Mike Parker via Digitalmars-d
On Tuesday, 9 May 2017 at 12:52:38 UTC, deadalnix wrote: On Monday, 8 May 2017 at 08:25:24 UTC, Andrej Mitrovic wrote: Thoughts? It seems like the most sensible path forward. Mike ? Works for me.

D language usage by hour of the day and workday/weekend

2017-05-09 Thread Juanjo Alvarez via Digitalmars-d-announce
A coworker from the data science department of my company did some commit-crunching and plotting over 452 million commits on github: https://www.reddit.com/r/programming/comments/6a5bb8/workdays_vs_weekends_morning_vs_night_github/ Looks like (PST timezone) D programmers are more active from

Re: Scope checking on static array struct doesn't kick in

2017-05-09 Thread Nordlöw via Digitalmars-d-learn
On Tuesday, 9 May 2017 at 12:25:29 UTC, Nordlöw wrote: On Tuesday, 9 May 2017 at 11:52:35 UTC, Nordlöw wrote: I've tagged the ref-returning functions (in this case `opSlice`) with `return scope` for my statically allocated array struct at Here's a simpler example

Re: Scope checking on static array struct doesn't kick in

2017-05-09 Thread Stanislav Blinov via Digitalmars-d-learn
On Tuesday, 9 May 2017 at 12:25:29 UTC, Nordlöw wrote: On Tuesday, 9 May 2017 at 11:52:35 UTC, Nordlöw wrote: I've tagged the ref-returning functions (in this case `opSlice`) with `return scope` for my statically allocated array struct at Here's a simpler example

Re: Working code in an upcoming PR by Timon Gehr

2017-05-09 Thread Timon Gehr via Digitalmars-d-announce
On 07.05.2017 19:03, Stanislav Blinov wrote: On Sunday, 7 May 2017 at 16:57:58 UTC, Andrei Alexandrescu wrote: Zoom in on the screen for a nice surprise! http://imgur.com/a/qjI4l -- Andrei I see only unsurprising Jpeg artifacts and not much more :) It's too low resolution to make anything

Re: DConf 2017 Hackathon report

2017-05-09 Thread Steven Schveighoffer via Digitalmars-d
On 5/9/17 12:35 AM, Ali Çehreli wrote: Please list what we've achieved during the hackathon, including what is started but is likely to be finished in the coming days or months. For me: - Finished updating "Programming in D" to 2.074.0 (the HTML is now up to date but I could not get to the

[Issue 17349] Covariant overrides should be allowed

2017-05-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17349 Walter Bright changed: What|Removed |Added See Also|

[Issue 17354] An overload in a final class can silently hide base methods

2017-05-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17354 Walter Bright changed: What|Removed |Added See Also|

Re: Thoughts on some code breakage with 2.074

2017-05-09 Thread David Eckardt via Digitalmars-d
On Tuesday, 9 May 2017 at 12:13:34 UTC, Adam Wilson wrote: Can we PLEASE get more of this? I'm not saying up-end the language, but let's solve some problems. I doubt our corporate users will be very angry. I suspect that most reactions will fall between "minor irritation" and this one. /me

Re: DLang quarterly EU?

2017-05-09 Thread Steven Schveighoffer via Digitalmars-d
On 5/7/17 6:01 PM, John Colvin wrote: On Saturday, 6 May 2017 at 23:53:45 UTC, Ethan Watson wrote: I was speaking to Atila earlier about the things we like about DConf. Sitting around talking to a bunch of computer scientists is fantastic, and not something people generally get to do in their

Re: Static foreach pull request

2017-05-09 Thread Timon Gehr via Digitalmars-d
On 09.05.2017 05:42, Timon Gehr wrote: On 09.05.2017 05:06, Timon Gehr wrote: ... Some examples: https://github.com/tgehr/dmd/blob/71ab1280c88f9f0922fabf89ab3e7e1164b70e8b/src/test_staticforeach.d Better link: https://github.com/tgehr/dmd/blob/static-foreach/src/test_staticforeach.d

[Issue 3075] Implement parameter contravariance

2017-05-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3075 Walter Bright changed: What|Removed |Added See Also|

[Issue 17349] Covariant overrides should be allowed

2017-05-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17349 Walter Bright changed: What|Removed |Added See Also|

[Issue 17349] Covariant overrides should be allowed

2017-05-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17349 Walter Bright changed: What|Removed |Added See Also|

[Issue 16600] Wrong error message for ambiguous mutable/immutable constructor

2017-05-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16600 Walter Bright changed: What|Removed |Added CC|

Re: DIP 1004 Preliminary Review Round 1

2017-05-09 Thread deadalnix via Digitalmars-d
On Monday, 8 May 2017 at 08:25:24 UTC, Andrej Mitrovic wrote: Thoughts? It seems like the most sensible path forward. Mike ?

[Issue 16303] covariant delegates should implicitly convert

2017-05-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16303 Walter Bright changed: What|Removed |Added See Also|

[Issue 17349] Covariant overrides should be allowed

2017-05-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17349 Walter Bright changed: What|Removed |Added See Also|

[Issue 16303] covariant delegates should implicitly convert

2017-05-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16303 Walter Bright changed: What|Removed |Added See Also|

[Issue 3075] Implement parameter contravariance

2017-05-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3075 Walter Bright changed: What|Removed |Added See Also|

Re: Static foreach pull request

2017-05-09 Thread Timon Gehr via Digitalmars-d
On 09.05.2017 08:17, rikki cattermole wrote: On 09/05/2017 7:10 AM, Jack Stouffer wrote: On Tuesday, 9 May 2017 at 03:06:37 UTC, Timon Gehr wrote: ... I'm going to save you some time and tell you that Andrei and Walter are going to require a DIP for this.

Re: Scope checking on static array struct doesn't kick in

2017-05-09 Thread Nordlöw via Digitalmars-d-learn
On Tuesday, 9 May 2017 at 11:52:35 UTC, Nordlöw wrote: I've tagged the ref-returning functions (in this case `opSlice`) with `return scope` for my statically allocated array struct at Here's a simpler example

Re: Thoughts on some code breakage with 2.074

2017-05-09 Thread Adam Wilson via Digitalmars-d
On 5/8/17 20:33, Brian Schott wrote: Recently the EMSI data department upgraded the compiler we use to build our data processing code to 2.074. This caused several of the thousands of processes to die with signal 8 (floating point exceptions). This was caused by the fix to issue 17243. This is

Re: Static foreach pull request

2017-05-09 Thread Timon Gehr via Digitalmars-d
On 09.05.2017 09:26, Daniel N wrote: On Tuesday, 9 May 2017 at 03:42:48 UTC, Timon Gehr wrote: On 09.05.2017 05:06, Timon Gehr wrote: ... Some examples: https://github.com/tgehr/dmd/blob/71ab1280c88f9f0922fabf89ab3e7e1164b70e8b/src/test_staticforeach.d Better link:

Re: DLang quarterly EU?

2017-05-09 Thread Jacob Carlborg via Digitalmars-d
On 2017-05-07 07:41, Walter Bright wrote: Dang, I wish I could participate in that! I guess there could be a separate one for the United States. -- /Jacob Carlborg

Re: DLang quarterly EU?

2017-05-09 Thread Jacob Carlborg via Digitalmars-d
On 2017-05-07 01:53, Ethan Watson wrote: I was speaking to Atila earlier about the things we like about DConf. Sitting around talking to a bunch of computer scientists is fantastic, and not something people generally get to do in their chosen careers as a programmer. EU nations are quite close

Re: Static foreach pull request

2017-05-09 Thread Vladimir Panteleev via Digitalmars-d
On Tuesday, 9 May 2017 at 09:17:06 UTC, Corey wrote: On Tuesday, 9 May 2017 at 03:06:37 UTC, Timon Gehr wrote: (the implementation is the result of two days of exhausting trial-and-error figuring out how the DMD frontend works). First time dealing with the frontend? Heck, two days sounds

Scope checking on static array struct doesn't kick in

2017-05-09 Thread Nordlöw via Digitalmars-d-learn
I've tagged the ref-returning functions (in this case `opSlice`) with `return scope` for my statically allocated array struct at https://github.com/nordlow/phobos-next/blob/master/src/arrayn.d but for some reason the scope-checking (via -dip1000) allows both

Re: Fantastic exchange from DConf

2017-05-09 Thread deadalnix via Digitalmars-d
On Saturday, 6 May 2017 at 17:59:38 UTC, thedeemon wrote: On Saturday, 6 May 2017 at 06:26:29 UTC, Joakim wrote: Walter: I believe memory safety will kill C. And then null safety will kill D. ;) I actually think this is more likely than memory safety killing C. Just because both are very

  1   2   >