Re: Blog post: What D got wrong

2018-12-19 Thread Dgame via Digitalmars-d-announce
On Thursday, 13 December 2018 at 18:29:39 UTC, Adam D. Ruppe wrote: The attribute spam is almost longer than the function itself. I often wished for something like module foo.bar; default(@safe, pure); function foo() { } // is annotated with @safe & pure @deny(pure) // or pure(false)

(Oh My) Gentool 0.0.3

2018-12-19 Thread evilrat via Digitalmars-d-announce
(Oh My) Gentool - Yet another C/C++ binding generator. I'm glad to announce the new release - version 0.0.3 is now live. Though I have to release it earlier than I would like to, and there is some features I haven't finished, overall I'm ok with how it did. This release will be the last point

Re: Blog post: What D got wrong

2018-12-19 Thread Walter Bright via Digitalmars-d-announce
On 12/13/2018 10:29 AM, Adam D. Ruppe wrote: The attribute spam is almost longer than the function itself. Attributes only start to matter when creating code that will be around for a long time (such as reusable libraries). It's a waste of effort for short term code.

Re: Blog post: What D got wrong

2018-12-19 Thread Rubn via Digitalmars-d-announce
On Wednesday, 19 December 2018 at 19:58:53 UTC, Neia Neutuladh wrote: On Wed, 19 Dec 2018 17:28:01 +, Vijay Nayar wrote: Could you please elaborate a little bit more on this? In the linked program, I had expected that "ref" would return a reference to "a" that would behave similar to a

Re: Blog post: What D got wrong

2018-12-19 Thread Neia Neutuladh via Digitalmars-d-announce
On Wed, 19 Dec 2018 17:28:01 +, Vijay Nayar wrote: > Could you please elaborate a little bit more on this? In the linked > program, I had expected that "ref" would return a reference to "a" that > would behave similar to a pointer. They work like pointers that automatically dereference when

Re: Announcing Elembuf

2018-12-19 Thread Steven Schveighoffer via Digitalmars-d-announce
On 12/19/18 12:54 PM, H. S. Teoh wrote: On Wed, Dec 19, 2018 at 11:56:44AM -0500, Steven Schveighoffer via Digitalmars-d-announce wrote: I had expected *some* improvement, I even wrote a "grep-like" example that tries to keep a lot of data in the buffer such that moving the data will be an

Re: Announcing Elembuf

2018-12-19 Thread H. S. Teoh via Digitalmars-d-announce
On Wed, Dec 19, 2018 at 11:56:44AM -0500, Steven Schveighoffer via Digitalmars-d-announce wrote: > On 12/18/18 8:41 PM, H. S. Teoh wrote: > > On Tue, Dec 18, 2018 at 01:56:18PM -0500, Steven Schveighoffer via > > Digitalmars-d-announce wrote: [...] > > > Although I haven't tested with network

Re: Blog post: What D got wrong

2018-12-19 Thread Vijay Nayar via Digitalmars-d-announce
On Wednesday, 12 December 2018 at 07:44:12 UTC, Walter Bright wrote: On 12/11/2018 4:51 AM, Nicholas Wilson wrote: > Returning a reference Wow, thats f*ck'n stupid! https://run.dlang.io/is/SAplYw It's quite deliberate. ref in C++ is a type constructor, but it's so special-cased to behave

Re: Announcing Elembuf

2018-12-19 Thread Steven Schveighoffer via Digitalmars-d-announce
On 12/18/18 8:41 PM, H. S. Teoh wrote: On Tue, Dec 18, 2018 at 01:56:18PM -0500, Steven Schveighoffer via Digitalmars-d-announce wrote: On 12/18/18 10:36 AM, H. S. Teoh wrote: On Tue, Dec 18, 2018 at 08:00:48AM +, Cyroxin via Digitalmars-d-announce wrote: [...] While the focus of this

Re: D is helping from porch pirates

2018-12-19 Thread Patrick Schluter via Digitalmars-d-announce
On Wednesday, 19 December 2018 at 08:02:41 UTC, Piotrek wrote: On Monday, 17 December 2018 at 23:13:18 UTC, Daniel Kozák wrote: https://gma.abc/2zWvXCl D supports the bright side of life ;) That's a good spirit. Thanks for sharing. Cheers, Piotrek I found that approach more fun

Re: This Week in D is back

2018-12-19 Thread Adam D. Ruppe via Digitalmars-d-announce
Here's a fun fact about the setup: the files are actually written as D modules. The source code looks like // just docs: title /++ Article content +/ module Blog.Posted_date; Now, that might seem a little silly, but it provides some interesting advantages (I should have wrote about this in

Re: This Week in D is back

2018-12-19 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 19 December 2018 at 14:17:53 UTC, bauss wrote: Thank you Adam for bringing it back. I enjoyed it back when it last ran. You might enjoy looking at the "home" page too: http://dpldocs.info/this-week-in-d/Blog.html links to the old ones, and to the Tip of the Week index from

Re: This Week in D is back

2018-12-19 Thread bauss via Digitalmars-d-announce
On Monday, 17 December 2018 at 22:01:07 UTC, Adam D. Ruppe wrote: Well, I am getting back into it: http://dpldocs.info/this-week-in-d/Blog.Posted_2018_12_17.html I have been waiting for this! Thank you Adam for bringing it back. I enjoyed it back when it last ran.

Re: LDC 1.13.0

2018-12-19 Thread Joakim via Digitalmars-d-announce
On Sunday, 16 December 2018 at 15:57:25 UTC, kinke wrote: Glad to announce LDC 1.13: * Based on D 2.083.1. * The Windows packages are now fully self-sufficient, i.e., a Visual Studio/C++ Build Tools installation isn't required anymore. * Substantial debug info improvements. * New

Re: D is helping from porch pirates

2018-12-19 Thread Piotrek via Digitalmars-d-announce
On Monday, 17 December 2018 at 23:13:18 UTC, Daniel Kozák wrote: https://gma.abc/2zWvXCl D supports the bright side of life ;) That's a good spirit. Thanks for sharing. Cheers, Piotrek