Re: Is it acceptable to not parse unittest blocks when unittests are disabled ?

2017-03-29 Thread XavierAP via Digitalmars-d
On Wednesday, 29 March 2017 at 11:16:28 UTC, deadalnix wrote: Is that an acceptable tradeof ? I would consider this harmful... The spec already states this about unit tests, so I'd guess the decision was taken in the past conscientiously. If you're worried about compilation time, you can a

Re: relax disabled Final!T unary operators

2017-03-29 Thread H. S. Teoh via Digitalmars-d
On Wed, Mar 29, 2017 at 08:11:11PM +, via Digitalmars-d wrote: [...] > As I explained in the bug report > (https://issues.dlang.org/show_bug.cgi?id=17284) the particular > @safe-ty issue has nothing to do with Final. You're right. It seems that the problem is caused by the compiler forgetting

Re: relax disabled Final!T unary operators

2017-03-29 Thread via Digitalmars-d
On Wednesday, 29 March 2017 at 17:59:10 UTC, H. S. Teoh wrote: On Fri, Mar 24, 2017 at 11:00:20AM -0700, H. S. Teoh via Digitalmars-d wrote: (Just wait till I try it on a union... that's gonna throw things off, I'm almost certain.) [...] And just as I predicted: https://issues.dlang.

Re: Is it acceptable to not parse unittest blocks when unittests are disabled ?

2017-03-29 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 29 March 2017 at 19:32:50 UTC, Vladimir Panteleev wrote: On Wednesday, 29 March 2017 at 11:16:28 UTC, deadalnix wrote: I was wondering. When uniitests aren't going to run, it may be desirable to skip parsing altogether, just lexing and counting braces until the matching closing br

Re: Is it acceptable to not parse unittest blocks when unittests are disabled ?

2017-03-29 Thread Stefan Koch via Digitalmars-d
On Wednesday, 29 March 2017 at 19:32:50 UTC, Vladimir Panteleev wrote: On Wednesday, 29 March 2017 at 11:16:28 UTC, deadalnix wrote: I was wondering. When uniitests aren't going to run, it may be desirable to skip parsing altogether, just lexing and counting braces until the matching closing br

Re: Is it acceptable to not parse unittest blocks when unittests are disabled ?

2017-03-29 Thread Vladimir Panteleev via Digitalmars-d
On Wednesday, 29 March 2017 at 11:16:28 UTC, deadalnix wrote: I was wondering. When uniitests aren't going to run, it may be desirable to skip parsing altogether, just lexing and counting braces until the matching closing brace is found. Sorry, is this not already the case? $ dmd test.d $ cat

Re: relax disabled Final!T unary operators

2017-03-29 Thread H. S. Teoh via Digitalmars-d
On Fri, Mar 24, 2017 at 11:00:20AM -0700, H. S. Teoh via Digitalmars-d wrote: > (Just wait till I try it on a union... that's gonna throw things off, > I'm almost certain.) [...] And just as I predicted: https://issues.dlang.org/show_bug.cgi?id=17284 In a nutshell: the compiler rejects a

Re: Is it acceptable to not parse unittest blocks when unittests are disabled ?

2017-03-29 Thread Stefan Koch via Digitalmars-d
On Wednesday, 29 March 2017 at 11:16:28 UTC, deadalnix wrote: I was wondering. When uniitests aren't going to run, it may be desirable to skip parsing altogether, just lexing and counting braces until the matching closing brace is found. Obviously, this means that no error will be found in uni

Re: Is it acceptable to not parse unittest blocks when unittests are disabled ?

2017-03-29 Thread rikki cattermole via Digitalmars-d
On 29/03/2017 1:16 PM, deadalnix wrote: On Wednesday, 29 March 2017 at 11:22:59 UTC, rikki cattermole wrote: Which is basically what you said. It isn't. version needs to be parsed and thus, grammatically valid. Hmm, well that is another thing that could be disabled to shave some time off th

Re: Is it acceptable to not parse unittest blocks when unittests are disabled ?

2017-03-29 Thread deadalnix via Digitalmars-d
On Wednesday, 29 March 2017 at 11:22:59 UTC, rikki cattermole wrote: Which is basically what you said. It isn't. version needs to be parsed and thus, grammatically valid.

Re: Is it acceptable to not parse unittest blocks when unittests are disabled ?

2017-03-29 Thread rikki cattermole via Digitalmars-d
On 29/03/2017 12:16 PM, deadalnix wrote: I was wondering. When uniitests aren't going to run, it may be desirable to skip parsing altogether, just lexing and counting braces until the matching closing brace is found. Obviously, this means that no error will be found in unittests blocks. That can

Is it acceptable to not parse unittest blocks when unittests are disabled ?

2017-03-29 Thread deadalnix via Digitalmars-d
I was wondering. When uniitests aren't going to run, it may be desirable to skip parsing altogether, just lexing and counting braces until the matching closing brace is found. Obviously, this means that no error will be found in unittests blocks. That can contain pretty much anything that lex,

Re: Yet another project with vibe.d

2017-03-29 Thread Chris via Digitalmars-d
On Friday, 24 March 2017 at 21:37:22 UTC, Jonathan M Davis wrote: On Friday, March 24, 2017 12:23:23 Chris via Digitalmars-d wrote: I just wanted to say thank you for vibe.d, Sönke and Kai (for the book). I use vibe.d for all new web projects, and it's great. Less and less JS, more and more D.

Re: Can vibed be fast as Go or Python?

2017-03-29 Thread XavierAP via Digitalmars-d
On Wednesday, 29 March 2017 at 06:54:21 UTC, Jacob Carlborg wrote: On 2017-03-29 08:09, XavierAP wrote: If this could be found in a very short blog post we could share it on LinkedIn and stuff. Everything is closed source so I cannot share the source code. I think even only the performance

Re: Can vibed be fast as Go or Python?

2017-03-29 Thread Paolo Invernizzi via Digitalmars-d
On Wednesday, 29 March 2017 at 02:36:37 UTC, Laeeth Isharc wrote: Education isn't a bad idea, but I think hearing from people who are using it to do things is most powerful in persuading people at this stage. So the talks from Ethan of Remedy and Liran of Weka were very important That's exa

Re: Can vibed be fast as Go or Python?

2017-03-29 Thread Jacob Carlborg via Digitalmars-d
On 2017-03-29 08:09, XavierAP wrote: If this could be found in a very short blog post we could share it on LinkedIn and stuff. Everything is closed source so I cannot share the source code. -- /Jacob Carlborg

Re: Can vibed be fast as Go or Python?

2017-03-29 Thread Jacob Carlborg via Digitalmars-d
On 2017-03-29 03:59, Laeeth Isharc wrote: I'd be really curious to know what performance of the Ruby implementation would be like in Crystal (which might mean changing, but I don't know). They seem to somehow quite often top language benchmarks, though it's hardly a mature language and ecosyste