Re: Weak Purity Blog Post

2016-03-30 Thread sarn via Digitalmars-d-announce
Yeah, there's a lot more stuff I could have talked about, but I think I'll leave it for other posts. About testing, I think the way protection works in D (i.e., private members are accessible within the same file) is important, too. I was a bit suspicious of that feature when I first looked

Re: Beta D 2.071.0-b2

2016-03-30 Thread Basile B. via Digitalmars-d-announce
On Wednesday, 30 March 2016 at 12:04:19 UTC, Basile B. wrote: On Wednesday, 30 March 2016 at 11:03:51 UTC, Martin Nowak wrote: Second beta for the 2.071.0 release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.071.0.html Please report any bugs at

Re: Weak Purity Blog Post

2016-03-30 Thread Jon D via Digitalmars-d-announce
On Monday, 28 March 2016 at 01:44:02 UTC, sarn wrote: D's implementation of functional purity supports "weak" purity - functions that can mutate arguments but are otherwise traditionally pure. I wrote a post about some of the practical benefits of this kind of purity:

Re: Blog article on new import changes

2016-03-30 Thread H. S. Teoh via Digitalmars-d-announce
On Tue, Mar 29, 2016 at 11:25:27AM -0400, Steven Schveighoffer via Digitalmars-d-announce wrote: > I anticipate 2.071.0 is going to cause a lot of deprecation messages > and strange errors to occur, due to the fixes of very long-standing > import bugs. > > I wrote a blog post (actually my first

Re: Blog article on new import changes

2016-03-30 Thread Walter Bright via Digitalmars-d-announce
On 3/30/2016 5:58 AM, Steven Schveighoffer wrote: Thanks for the feedback. And thanks for writing the article. Much appreciated.

Re: simple VFS implementation

2016-03-30 Thread ketmar via Digitalmars-d-announce
p.s. it's only for opening files with known names and doing file i/o. it doesn't support other FS operations (like getting list of files, or file renaming), as i wrote it for using in my game engines, and i don't need such operations there. so i won't add that, it's out of scope of the

Re: simple VFS implementation

2016-03-30 Thread ketmar via Digitalmars-d-announce
oops. almost forgot to mention that it works only with POSIX systems now. windoze port *may* be done in the future (it's not that hard — basically, replace fopen/fseek/etc. imports and calls). sure, you can DIY and send me a patch too.

simple VFS implementation

2016-03-30 Thread ketmar via Digitalmars-d-announce
here[1] you can get a simple VFS system (yep, another one!). it introduces `VFile` struct (kinda like `std.stdio.File`, but with less features), which can wrap your own custom streams, `std.stdio.File`, libc `FILE*`, integer file descriptor... actually, anything you'll do a simple wrapper for.

Re: Beta D 2.071.0-b2

2016-03-30 Thread John Colvin via Digitalmars-d-announce
On Wednesday, 30 March 2016 at 16:00:34 UTC, Luís Marques wrote: On Wednesday, 30 March 2016 at 15:48:28 UTC, John Colvin wrote: That would be me. Waiting for merge: https://github.com/Homebrew/homebrew/pull/50539 Thanks! Would it be against the homebrew spirit for the DMD recipe to link to

Re: Beta D 2.071.0-b2

2016-03-30 Thread Luís Marques via Digitalmars-d-announce
On Wednesday, 30 March 2016 at 15:48:28 UTC, John Colvin wrote: That would be me. Waiting for merge: https://github.com/Homebrew/homebrew/pull/50539 Thanks! Would it be against the homebrew spirit for the DMD recipe to link to some URL like <...lastest-devel.tar.gz>? After all, that already

Re: Beta D 2.071.0-b2

2016-03-30 Thread John Colvin via Digitalmars-d-announce
On Wednesday, 30 March 2016 at 13:04:08 UTC, Luís Marques wrote: On Wednesday, 30 March 2016 at 11:03:51 UTC, Martin Nowak wrote: Second beta for the 2.071.0 release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.071.0.html Please report any bugs at

Small rdmd wrapper for windows

2016-03-30 Thread Steve Biedermann via Digitalmars-d-announce
Hi, I made a simple wrapper around rdmd, which can be used to make .d files executable on windows and supports import paths. (A bat and a .d file) Not really a big announcement, but maybe useful to some of you. https://github.com/hardliner66/rdmd_windows

Re: Beta D 2.071.0-b2

2016-03-30 Thread Luís Marques via Digitalmars-d-announce
On Wednesday, 30 March 2016 at 11:03:51 UTC, Martin Nowak wrote: Second beta for the 2.071.0 release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.071.0.html Please report any bugs at https://issues.dlang.org -Martin Who maintains the homebrew recipe? The --devel

Re: Blog article on new import changes

2016-03-30 Thread Steven Schveighoffer via Digitalmars-d-announce
On 3/29/16 11:08 PM, xenon325 wrote: On Tuesday, 29 March 2016 at 15:25:27 UTC, Steven Schveighoffer wrote: I anticipate 2.071.0 is going to cause a lot of deprecation messages and strange errors to occur, due to the fixes of very long-standing import bugs. I wrote a blog post (actually my

Re: Beta D 2.071.0-b2

2016-03-30 Thread Basile B. via Digitalmars-d-announce
On Wednesday, 30 March 2016 at 11:03:51 UTC, Martin Nowak wrote: Second beta for the 2.071.0 release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.071.0.html Please report any bugs at https://issues.dlang.org -Martin Two regressions found in previous beta are now

Beta D 2.071.0-b2

2016-03-30 Thread Martin Nowak via Digitalmars-d-announce
Second beta for the 2.071.0 release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.071.0.html Please report any bugs at https://issues.dlang.org -Martin

Re: Weak Purity Blog Post

2016-03-30 Thread Nordlöw via Digitalmars-d-announce
On Monday, 28 March 2016 at 01:44:02 UTC, sarn wrote: I wrote a post about some of the practical benefits of this kind of purity: https://theartofmachinery.com/2016/03/28/dirtying_pure_functions_can_be_useful.html Great. It would be nice if you added a section that discusses purity in

Re: Blog article on new import changes

2016-03-30 Thread Martin Nowak via Digitalmars-d-announce
On 03/29/2016 05:25 PM, Steven Schveighoffer wrote: > I wrote a blog post (actually my first ever) on this, let me know what > you think (and please, any clarifications/errors, let me know): > > http://www.schveiguy.com/blog/2016/03/import-changes-in-d-2-071/ Thanks

Re: Beta D 2.071.0-b1

2016-03-30 Thread Martin Nowak via Digitalmars-d-announce
On 03/28/2016 10:54 PM, deadalnix wrote: >> This doesn't look like a bugfix or anything urgent, so it seems like >> it can wait for 2.072. > > This is type system breaking, if that is not important or a bugfix, I'm > not sure what is. The PR didn't address the stable branch, but also missed the

Re: Weak Purity Blog Post

2016-03-30 Thread sarn via Digitalmars-d-announce
On Monday, 28 March 2016 at 09:59:12 UTC, ag0aep6g wrote: On 28.03.2016 03:44, sarn wrote: https://theartofmachinery.com/2016/03/28/dirtying_pure_functions_can_be_useful.html From there: Well, you can get the usual (“strong”) purity guarantee just by making all pointer or reference type