DMD 2.071.1 and Issue 15925 - [REG 2.071] Import declaration from mixin templates are ignored

2016-06-29 Thread captaindet via Digitalmars-d
the changelog to 2.071.1 lists 15925 as a fixed regression, and https://issues.dlang.org/show_bug.cgi?id=15925 lists it as "RESOLVED FIXED" however, the issue as originally submitted still exists in 2.071.1. so what is going on? for me as a non-core dev it is difficult to get the gist of the di

Re: Is there an embeddable HTTP server in D?

2016-06-29 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 30 June 2016 at 00:10:54 UTC, ketmar wrote: Adam's cgi.d from arsd repo[1] contains built-in server implementation too, it as one of the available options. Indeed. To use this, download cgi.d: https://raw.githubusercontent.com/adamdruppe/arsd/master/cgi.d then make a program like

Re: stub out your gc without hacking on druntime

2016-06-29 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 30 June 2016 at 04:07:03 UTC, Hiemlick Hiemlicker wrote: Can one use this to hook in to any phobo's lib functions? Yeah, you could. Easier though is to just copy the phobos lib file, modify it, then compile it into your program explicitly: cp dmd2/src/phobos/std/file.d . # edit

Re: stub out your gc without hacking on druntime

2016-06-29 Thread Hiemlick Hiemlicker via Digitalmars-d
On Tuesday, 11 June 2013 at 12:13:05 UTC, Adam D. Ruppe wrote: On Tuesday, 11 June 2013 at 03:08:36 UTC, H. S. Teoh wrote: [...] Yea, that's the idea here. Like Simen said, if these were errors, your program wouldn't even start, so noop is better. Though gc_init should call thread_init, whic

Re: -dip25 switch: time to make it always on?

2016-06-29 Thread Walter Bright via Digitalmars-d
On 6/29/2016 7:02 PM, ketmar wrote: thank you. this is the first time i can really make at least some sense of it. so, basically, in @safe code i should explicitly mark returning `ref`s, or compiler will complain? Yup. That's all there is to it.

Re: -dip25 switch: time to make it always on?

2016-06-29 Thread ketmar via Digitalmars-d
On Thursday, 30 June 2016 at 01:54:27 UTC, Walter Bright wrote: On 6/29/2016 5:08 PM, ketmar wrote: On Wednesday, 29 June 2016 at 20:52:52 UTC, Walter Bright wrote: On 6/29/2016 8:26 AM, Adam D. Ruppe wrote: tbh, I've never been able to figure out what it is even supposed to do and thus never

Re: -dip25 switch: time to make it always on?

2016-06-29 Thread Walter Bright via Digitalmars-d
On 6/29/2016 5:08 PM, ketmar wrote: On Wednesday, 29 June 2016 at 20:52:52 UTC, Walter Bright wrote: On 6/29/2016 8:26 AM, Adam D. Ruppe wrote: tbh, I've never been able to figure out what it is even supposed to do and thus never actually used it, despite being interested in the subject. One

Re: -dip25 switch: time to make it always on?

2016-06-29 Thread deadalnix via Digitalmars-d
On Wednesday, 29 June 2016 at 10:02:08 UTC, Dicebot wrote: Please don't. There is a dire need to fix the implementation first, currently DIP25 is almost unusable for anyone who doesn't know exact limits of the feature - compiler diagnostics are pretty much non-existent. Right now it is miles aw

Re: year to date pull statistics (2016-06-25)

2016-06-29 Thread Brad Roberts via Digitalmars-d
total open: 295 created since 2016-01-01 and still open: 159 created closed delta 2016-06-26 - today 47 37-10 2016-06-19 - 2016-06-25 44 24-20 2016-06-12 - 2016-06-18 37 48 11 2016-06-05 - 2016-06-11 40 42 2 2016

Re: Is there an embeddable HTTP server in D?

2016-06-29 Thread ketmar via Digitalmars-d
Adam's cgi.d from arsd repo[1] contains built-in server implementation too, it as one of the available options. [1] https://github.com/adamdruppe/arsd

Re: -dip25 switch: time to make it always on?

2016-06-29 Thread ketmar via Digitalmars-d
On Wednesday, 29 June 2016 at 20:52:52 UTC, Walter Bright wrote: On 6/29/2016 8:26 AM, Adam D. Ruppe wrote: tbh, I've never been able to figure out what it is even supposed to do and thus never actually used it, despite being interested in the subject. One way to find out is to turn it on and

Re: Google's code ownership

2016-06-29 Thread qznc via Digitalmars-d
On Wednesday, 29 June 2016 at 20:09:52 UTC, Dechcaudron wrote: On Wednesday, 29 June 2016 at 20:06:18 UTC, Seb wrote: How about doing something similar for Phobos? On a related note Facebook open-sourced it's "mention-bot" [2] that could be helpful in case no owners are defined. I second it.

Re: Blocking points for further D adoption

2016-06-29 Thread qznc via Digitalmars-d
On Thursday, 2 June 2016 at 18:14:08 UTC, Jack Stouffer wrote: On Thursday, 2 June 2016 at 15:40:28 UTC, Seb wrote: I heard this a lot too. "You don't have a web server in your standard libary?? It's 2016!" Just to be clear, it's not a good idea to have a full blown server in your stdlib. No

Re: -dip25 switch: time to make it always on?

2016-06-29 Thread Meta via Digitalmars-d
On Wednesday, 29 June 2016 at 20:51:56 UTC, Walter Bright wrote: On 6/29/2016 6:45 AM, Jacob Carlborg wrote: How is it a success? Grepping on "return ref" gives back four results in Phobos and one in druntime. It was designed to solve the returning reference problem with as few annotations a

Re: Call to Action: making Phobos @safe

2016-06-29 Thread Walter Bright via Digitalmars-d
On 6/29/2016 10:25 AM, Atila Neves wrote: On Saturday, 25 June 2016 at 22:56:12 UTC, Walter Bright wrote: On 6/25/2016 3:44 PM, Walter Bright wrote: 4. Add @safe to the unittest A unittest that is deliberately unsafe should be annotated with @system. Meaning that any un-annotated unittest nee

Re: -dip25 switch: time to make it always on?

2016-06-29 Thread Walter Bright via Digitalmars-d
On 6/29/2016 8:26 AM, Adam D. Ruppe wrote: tbh, I've never been able to figure out what it is even supposed to do and thus never actually used it, despite being interested in the subject. One way to find out is to turn it on and let it do the work for you.

Re: -dip25 switch: time to make it always on?

2016-06-29 Thread Walter Bright via Digitalmars-d
On 6/29/2016 6:45 AM, Jacob Carlborg wrote: How is it a success? Grepping on "return ref" gives back four results in Phobos and one in druntime. It was designed to solve the returning reference problem with as few annotations as possible. Needing only 4 annotations in the entire runtime librar

Re: Is there an embeddable HTTP server in D?

2016-06-29 Thread Dicebot via Digitalmars-d
On Wednesday, 29 June 2016 at 20:39:45 UTC, Arun Chandrasekaran wrote: In C++ land, I've used cpp-netlib[0] to create a HTTP server. Is there a similar library in D? cpp-netlib uses Boost ASIO and it supports synchronous and asynchronous HTTP servers. It also support HTTP client API (which I'

Is there an embeddable HTTP server in D?

2016-06-29 Thread Arun Chandrasekaran via Digitalmars-d
In C++ land, I've used cpp-netlib[0] to create a HTTP server. Is there a similar library in D? cpp-netlib uses Boost ASIO and it supports synchronous and asynchronous HTTP servers. It also support HTTP client API (which I've not used). Arun [0] http://cpp-netlib.org/0.11.2/index.html

Re: Google's code ownership

2016-06-29 Thread Dechcaudron via Digitalmars-d
On Wednesday, 29 June 2016 at 20:06:18 UTC, Seb wrote: How about doing something similar for Phobos? On a related note Facebook open-sourced it's "mention-bot" [2] that could be helpful in case no owners are defined. I second it. Hopefully this will turn out in a shorter review process for Ph

Google's code ownership

2016-06-29 Thread Seb via Digitalmars-d
From the recent article "Why Google Stores Billions of Lines of Code in a Single Repository" a very interesting excerpt about their code ownership [1]: An important aspect of Google culture that encourages code quality is the expectation that all code is reviewed before being committed to the

Add more feature categories to Wiki/Editors

2016-06-29 Thread WebFreak001 via Digitalmars-d
https://wiki.dlang.org/Editors Some plugins/editors can do even more than these few feature categories listed there. Adding them there might help users decide between editors because of some feature they really like. I thought of 2 additional categories so far: Debugging and Profiling Also

Re: C++17 is feature complete

2016-06-29 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 29 June 2016 at 16:38:07 UTC, Enamex wrote: That's what I said. They're not in the C++17 spec but we won't be waiting for C++Next for them, hopefully. Grafting a meaningful module system on top of a 40 years old language is full of pitfalls and making the wrong choice would be a

Possible to Animate Program

2016-06-29 Thread Hiemlick Hiemlicker via Digitalmars-d
Is it possible to add a hook to every function call/delegate/lambda both start and end? What about the ability to essentially log a programs execution path, then "play it back" and only view the source code one is interested in along with the state at any moment in time. Similar to debugging

Re: Call to Action: making Phobos @safe

2016-06-29 Thread Atila Neves via Digitalmars-d
On Wednesday, 29 June 2016 at 17:33:18 UTC, Lodovico Giaretta wrote: On Wednesday, 29 June 2016 at 17:25:31 UTC, Atila Neves wrote: On Saturday, 25 June 2016 at 22:56:12 UTC, Walter Bright wrote: On 6/25/2016 3:44 PM, Walter Bright wrote: 4. Add @safe to the unittest A unittest that is delib

Re: Phobos posix.mak -> D file using reggae: round 2

2016-06-29 Thread Atila Neves via Digitalmars-d
On Monday, 18 April 2016 at 15:15:26 UTC, Atila Neves wrote: Here's[1] another attempt at converting the Makefile for POSIX systems to D using reggae[2]. I first tried my hand at writing a parser for Makefiles using Pegged and machine translating to D. I learned a lot about parsing and GNU make

Re: Call to Action: making Phobos @safe

2016-06-29 Thread Lodovico Giaretta via Digitalmars-d
On Wednesday, 29 June 2016 at 17:25:31 UTC, Atila Neves wrote: On Saturday, 25 June 2016 at 22:56:12 UTC, Walter Bright wrote: On 6/25/2016 3:44 PM, Walter Bright wrote: 4. Add @safe to the unittest A unittest that is deliberately unsafe should be annotated with @system. Meaning that any un-

Re: std.experimental.randomized_unittest_benchmark is ready for comments

2016-06-29 Thread Jack Stouffer via Digitalmars-d
On Sunday, 19 June 2016 at 19:03:55 UTC, Robert burner Schadek wrote: On Sunday, 19 June 2016 at 18:51:09 UTC, Jack Stouffer wrote: I would like to try this out on my date parsing library, but I don't see a way to generate strings of a specific format. take a look at https://github.com/dlang/

Re: Call to Action: making Phobos @safe

2016-06-29 Thread Atila Neves via Digitalmars-d
On Saturday, 25 June 2016 at 22:56:12 UTC, Walter Bright wrote: On 6/25/2016 3:44 PM, Walter Bright wrote: 4. Add @safe to the unittest A unittest that is deliberately unsafe should be annotated with @system. Meaning that any un-annotated unittest needs corrective action one way or the other

Status of std.async?

2016-06-29 Thread Shammah Chancellor via Digitalmars-d
So, I've used vibed a bit in the past and really like it, but am hesitant to base other network based clients on it. I see now that there are several other Async libraries for D, including one native one. It also looks like Sonke is working on another native async library. My question is th

Re: C++17 is feature complete

2016-06-29 Thread Enamex via Digitalmars-d
On Tuesday, 28 June 2016 at 19:27:36 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 28 June 2016 at 18:50:25 UTC, Enamex wrote: Also, C++17 is 'getting' Modules and Concepts Lite later in tech specs... that don't even have working drafts according to this [https://isocpp.org/std/status] (but have

Re: static if enhancement

2016-06-29 Thread Wyatt via Digitalmars-d
On Friday, 24 June 2016 at 18:27:07 UTC, Steven Schveighoffer wrote: void fun(T)(T obj) { static if (!hasMember(T, "gun")) throw new Exception("No gun"); obj.gun; } Call with something that doesn't have a gun member, and even without the reachability warnings (no -w switch), it doesn'

Re: -dip25 switch: time to make it always on?

2016-06-29 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 29 June 2016 at 09:40:45 UTC, Walter Bright wrote: It's been a strong success. tbh, I've never been able to figure out what it is even supposed to do and thus never actually used it, despite being interested in the subject.

Re: -dip25 switch: time to make it always on?

2016-06-29 Thread Jacob Carlborg via Digitalmars-d
On 29/06/16 11:40, Walter Bright wrote: It was added for 2.067 back in March of 2015: https://dlang.org/changelog/2.067.0.html It's been a strong success. Time to make it the default instead of enabled by a switch? How is it a success? Grepping on "return ref" gives back four results in Phob

Re: Accessing types by context

2016-06-29 Thread Jacob Carlborg via Digitalmars-d
On 29/06/16 05:11, Hiemlick Hiemlicker wrote: Suppose one has void test(myEnum e) enum myEnum { A,B,C } It would be very cool if we could do test(A) instead of test(myEnum.A). by context, the compiler can look first in the scope for something named A then look in the enum itself and prepend m

Re: I have a problem with D

2016-06-29 Thread Bienlein via Digitalmars-d
You can make use of the visitor pattern. The user that created some subclass then only needs to fill the visitor method with some stuff and that's it. The visitor was already initialized when created which happened before it was handed in to the visitor method of the subclass as a method parame

Re: GSoC 2016 - std.experimental.xml after a month

2016-06-29 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 29 June 2016 at 12:06:23 UTC, Lodovico Giaretta wrote: the idea is that if we have a good, modular, extendable XML library, then we can build everything on top of it as separate projects. This is because one person cannot maintain all the possible extensions (XPath, XSD, JAXB, XQu

Re: GSoC 2016 - std.experimental.xml after a month

2016-06-29 Thread Lodovico Giaretta via Digitalmars-d
On Tuesday, 28 June 2016 at 12:14:40 UTC, Nikolay wrote: DOM - Any plans for Xpath? DTD check - What about XSD? XSD is more popular now. Also it would be nice to have something like JAXB (automatically bind and map DLang struct/classes to/from XML). But it may be part of next iteration or pro

Re: -dip25 switch: time to make it always on?

2016-06-29 Thread Walter Bright via Digitalmars-d
On 6/29/2016 3:02 AM, Dicebot wrote: See this d.learn discussion (http://forum.dlang.org/thread/vtvtukooicwspxzzo...@forum.dlang.org) for example of diagnostics problems I am talking about. Please post bug reports to bugzilla. Brad set up bugzilla because using the n.g. as a buglist was a comp

Re: Accessing types by context

2016-06-29 Thread Lodovico Giaretta via Digitalmars-d
On Wednesday, 29 June 2016 at 10:51:39 UTC, qznc wrote: On Wednesday, 29 June 2016 at 03:11:52 UTC, Hiemlick Hiemlicker wrote: Suppose one has void test(myEnum e) enum myEnum { A,B,C } It would be very cool if we could do test(A) instead of test(myEnum.A). by context, the compiler can look f

Re: Accessing types by context

2016-06-29 Thread qznc via Digitalmars-d
On Wednesday, 29 June 2016 at 03:11:52 UTC, Hiemlick Hiemlicker wrote: Suppose one has void test(myEnum e) enum myEnum { A,B,C } It would be very cool if we could do test(A) instead of test(myEnum.A). by context, the compiler can look first in the scope for something named A then look in the

Re: GC pathological case behaviour

2016-06-29 Thread Martin Nowak via Digitalmars-d
On Tuesday, 28 June 2016 at 21:20:01 UTC, Ola Fosheim Grøstad wrote: Not necessarily, if the 10K allocations results in system calls, but try to remove the 1ms delay, set setMaxMailboxSize to a millon and set it to ignore. (i.e. if the box is full you bypass sending). Yes your overflowing you

Re: -dip25 switch: time to make it always on?

2016-06-29 Thread Martin Nowak via Digitalmars-d
On Wednesday, 29 June 2016 at 10:02:08 UTC, Dicebot wrote: Please don't. There is a dire need to fix the implementation first, currently DIP25 is almost unusable for anyone who doesn't know exact limits of the feature - compiler diagnostics are pretty much non-existent. Right now it is miles aw

Re: -dip25 switch: time to make it always on?

2016-06-29 Thread Dicebot via Digitalmars-d
Please don't. There is a dire need to fix the implementation first, currently DIP25 is almost unusable for anyone who doesn't know exact limits of the feature - compiler diagnostics are pretty much non-existent. Right now it is miles away from what I'd call a success. See this d.learn discuss

-dip25 switch: time to make it always on?

2016-06-29 Thread Walter Bright via Digitalmars-d
It was added for 2.067 back in March of 2015: https://dlang.org/changelog/2.067.0.html It's been a strong success. Time to make it the default instead of enabled by a switch?

Re: Accessing types by context

2016-06-29 Thread Anonymouse via Digitalmars-d
On Wednesday, 29 June 2016 at 05:06:08 UTC, Hiemlick Hiemlicker wrote: On Wednesday, 29 June 2016 at 03:50:35 UTC, Carl Vogel wrote: On Wednesday, 29 June 2016 at 03:11:52 UTC, Hiemlick [...] Doesn't the with statement solve your problem here? with (myEnum) { test(A); test(B); tes