Re: Rename 'D' to 'D++'

2017-03-30 Thread Ali via Digitalmars-d
On Saturday, 11 March 2017 at 15:27:50 UTC, Kagamin wrote: D•• :D thanks for sharing https://img.memesuper.com/9d0f96eb3d5a68cff0a3dd357957895b_muahaha-muahaha-meme_625-833.jpeg

Re: DMD 64-bit Windows

2017-03-30 Thread Inquie via Digitalmars-d
On Friday, 31 March 2017 at 05:42:08 UTC, Inquie wrote: On Friday, 11 November 2016 at 17:04:08 UTC, Mario Silva wrote: On Thursday, 10 November 2016 at 10:24:43 UTC, Rene Zwanenburg wrote: On Thursday, 10 November 2016 at 09:35:00 UTC, Mario Silva wrote: I haven't tried it yet, but I would wan

Re: DMD 64-bit Windows

2017-03-30 Thread Inquie via Digitalmars-d
On Friday, 11 November 2016 at 17:04:08 UTC, Mario Silva wrote: On Thursday, 10 November 2016 at 10:24:43 UTC, Rene Zwanenburg wrote: On Thursday, 10 November 2016 at 09:35:00 UTC, Mario Silva wrote: I haven't tried it yet, but I would want to avoid changing the compiler at this point, since we

Re: Reading on D safety?

2017-03-30 Thread Walter Bright via Digitalmars-d
On 3/30/2017 5:48 AM, qznc wrote: The topic of safety is an important one imho. It comes up again and again. D has a good story to tell about being easier than Rust and safer than C++. How should this be addressed? A blog article? I'll be presenting on the topic at DConf and will be following

[your code here]

2017-03-30 Thread April Dale via Digitalmars-d
I need some informations on what this is

Re: The nail in the coffin of C++ or why don't GO there...

2017-03-30 Thread Dmitry Olshansky via Digitalmars-d
On 3/30/17 1:03 PM, Ervin Bosenbacher wrote: On Thursday, 30 March 2017 at 10:28:01 UTC, dennis luehring wrote: Am 30.03.2017 um 08:58 schrieb Ervin Bosenbacher: That is the same, that came as a shock to me. most compilers (for many languages) can optimize your super-trivial example down to n

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

2017-03-30 Thread Dukc via Digitalmars-d
On Thursday, 30 March 2017 at 17:22:20 UTC, Stefan Koch wrote: SDC has the goal to be more principled. And Not to be Mr. fast and loose, right ? If a file parses it'd better be syntactically correct! All of it. Just an idea, but could the solution for SDC be to enable unittests by default, dis

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

2017-03-30 Thread XavierAP via Digitalmars-d
On Thursday, 30 March 2017 at 09:04:28 UTC, ixid wrote: On Thursday, 30 March 2017 at 06:53:47 UTC, XavierAP wrote: 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 compil

Re: The nail in the coffin of C++ or why don't GO there...

2017-03-30 Thread Jon Degenhardt via Digitalmars-d
On Thursday, 30 March 2017 at 11:03:03 UTC, Ervin Bosenbacher wrote: Tried again, threw in summing up a number 10 million times and repeat the arrays 10 million times, I have used arrays on the stack for the D version. And when I am talking about performance I am curious about CPU bound stuff.

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

2017-03-30 Thread Stefan Koch via Digitalmars-d
On Thursday, 30 March 2017 at 14:28:41 UTC, deadalnix wrote: On Wednesday, 29 March 2017 at 19:32:50 UTC, Vladimir Panteleev wrote: Sorry, is this not already the case? $ dmd test.d $ cat test.d void main() { import std.stdio; writeln("Hello, world!"); } unittest { foo

[your code here]

2017-03-30 Thread Justin Brown via Digitalmars-d
8 4

Re: The nail in the coffin of C++ or why don't GO there...

2017-03-30 Thread Swoorup Joshi via Digitalmars-d
On Thursday, 30 March 2017 at 13:59:45 UTC, bachmeier wrote: On Thursday, 30 March 2017 at 12:27:33 UTC, Ervin Bosenbacher wrote: On Thursday, 30 March 2017 at 11:41:46 UTC, rjframe wrote: On Thu, 30 Mar 2017 11:15:10 +, Ervin Bosenbacher wrote: [...] You can integrate D and Python with

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

2017-03-30 Thread deadalnix via Digitalmars-d
On Wednesday, 29 March 2017 at 19:32:50 UTC, Vladimir Panteleev wrote: Sorry, is this not already the case? $ dmd test.d $ cat test.d void main() { import std.stdio; writeln("Hello, world!"); } unittest { foo bar {} baz more-syntax!errors)blah } $ dmd test.d $ ./test He

Re: The nail in the coffin of C++ or why don't GO there...

2017-03-30 Thread bachmeier via Digitalmars-d
On Thursday, 30 March 2017 at 12:27:33 UTC, Ervin Bosenbacher wrote: On Thursday, 30 March 2017 at 11:41:46 UTC, rjframe wrote: On Thu, 30 Mar 2017 11:15:10 +, Ervin Bosenbacher wrote: I have already accepted the fact that if I want to optimize my Python code in certain situations, not al

Re: The nail in the coffin of C++ or why don't GO there...

2017-03-30 Thread Shachar Shemesh via Digitalmars-d
On 30/03/17 09:58, Ervin Bosenbacher wrote: Performance test: rvinMacBookProLimegg:source ervinbosenbacher$ time ./app [31, 28, 31] [30, 31, 30] [31, 31, 30] [31, 30, 31] real0m0.004s user0m0.001s sys0m0.001s ErvinMacBookProLimegg:source ervinbosenbacher$ time ./a.out [31, 28, 31]

Reading on D safety?

2017-03-30 Thread qznc via Digitalmars-d
Safety of C has been in the (hacker) news lately [0]. When I tried to tell people about D, I had no good link to share on the topic. The spec for @safe [1] is not comprehensive. The article of SafeD [2] is fluffy and without much meat. The C to D comparison is too much irrelevant stuff. I fo

Re: The nail in the coffin of C++ or why don't GO there...

2017-03-30 Thread Ervin Bosenbacher via Digitalmars-d
On Thursday, 30 March 2017 at 11:41:46 UTC, rjframe wrote: On Thu, 30 Mar 2017 11:15:10 +, Ervin Bosenbacher wrote: I have already accepted the fact that if I want to optimize my Python code in certain situations, not all because you can use better algos, data structures, etc then I have t

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

2017-03-30 Thread drug via Digitalmars-d
30.03.2017 14:47, rjframe пишет: On Thu, 30 Mar 2017 09:04:28 +, ixid wrote: Why is it harmful (actually asking, not telling you you're wrong)? I thought we were going to use a pay for what you use philosophy, if a unit test is not run then why is it paid for? A person that doesn't run `d

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

2017-03-30 Thread rjframe via Digitalmars-d
On Thu, 30 Mar 2017 09:04:28 +, ixid wrote: > Why is it harmful (actually asking, not telling you you're wrong)? I > thought we were going to use a pay for what you use philosophy, if a > unit test is not run then why is it paid for? A person that doesn't run `dmd -unittest` (or `dub test`) p

Re: The nail in the coffin of C++ or why don't GO there...

2017-03-30 Thread rjframe via Digitalmars-d
On Thu, 30 Mar 2017 11:15:10 +, Ervin Bosenbacher wrote: > I have already accepted the fact that if > I want to optimize my Python code in certain situations, not all because > you can use better algos, data structures, etc then I have to drop down > to C++ or C using say pybind11. Instead of

Re: The nail in the coffin of C++ or why don't GO there...

2017-03-30 Thread H. S. Teoh via Digitalmars-d
On Thu, Mar 30, 2017 at 11:15:10AM +, Ervin Bosenbacher via Digitalmars-d wrote: [...] > I am happy with D. Welcome aboard! T -- The richest man is not he who has the most, but he who needs the least.

Re: The nail in the coffin of C++ or why don't GO there...

2017-03-30 Thread Ervin Bosenbacher via Digitalmars-d
On Thursday, 30 March 2017 at 10:28:01 UTC, dennis luehring wrote: Am 30.03.2017 um 08:58 schrieb Ervin Bosenbacher: That is the same, that came as a shock to me. most compilers (for many languages) can optimize your super-trivial example down to nothing - for at least the last 10 years or m

Re: The nail in the coffin of C++ or why don't GO there...

2017-03-30 Thread Ervin Bosenbacher via Digitalmars-d
On Thursday, 30 March 2017 at 10:28:01 UTC, dennis luehring wrote: Am 30.03.2017 um 08:58 schrieb Ervin Bosenbacher: That is the same, that came as a shock to me. most compilers (for many languages) can optimize your super-trivial example down to nothing - for at least the last 10 years or m

Re: The nail in the coffin of C++ or why don't GO there...

2017-03-30 Thread Ervin Bosenbacher via Digitalmars-d
On Thursday, 30 March 2017 at 10:28:01 UTC, dennis luehring wrote: Am 30.03.2017 um 08:58 schrieb Ervin Bosenbacher: That is the same, that came as a shock to me. most compilers (for many languages) can optimize your super-trivial example down to nothing - for at least the last 10 years or m

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

2017-03-30 Thread Claude via Digitalmars-d
On Wednesday, 29 March 2017 at 19:43:52 UTC, Vladimir Panteleev wrote: 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 al

Re: The nail in the coffin of C++ or why don't GO there...

2017-03-30 Thread dennis luehring via Digitalmars-d
Am 30.03.2017 um 08:58 schrieb Ervin Bosenbacher: That is the same, that came as a shock to me. most compilers (for many languages) can optimize your super-trivial example down to nothing - for at least the last 10 years or more so whats the point? you're talkin about "performance is critica

Re: Can vibed be fast as Go or Python?

2017-03-30 Thread Martin Nowak via Digitalmars-d
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 03/28/2017 09:32 AM, Suliman wrote: > I found very interesting Python async framework japronto > https://github.com/squeaky-pl/japronto > > Test show that in some cases japronto may work as fast as Go. > > Can vibed be competitor (or even bette

Re: Can vibed be fast as Go or Python?

2017-03-30 Thread Martin Nowak via Digitalmars-d
On 03/28/2017 08:16 PM, Jacob Carlborg wrote: > I create a test at work, compared an existing Ruby implementation > of an API end point to a Go implementation and a D implementation. > The D implementation was five times faster. Unfortunately my > colleagues paid more attention to the result that s

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

2017-03-30 Thread ixid via Digitalmars-d
On Thursday, 30 March 2017 at 06:53:47 UTC, XavierAP wrote: 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 conscient

Re: DConf Hackathon

2017-03-30 Thread Nicholas Wilson via Digitalmars-d
On Thursday, 30 March 2017 at 07:28:12 UTC, Adam Wilson wrote: Hello fellow DConfers! In the spirit of "the DConf 2017 hackathon isn't a hackathon in the traditional sense as most of the time and focus will hopefully be spent discussing, planning and developing future D projects"; I was think

DConf Hackathon

2017-03-30 Thread Adam Wilson via Digitalmars-d
Hello fellow DConfers! In the spirit of "the DConf 2017 hackathon isn't a hackathon in the traditional sense as most of the time and focus will hopefully be spent discussing, planning and developing future D projects"; I was thinking that it might be beneficial to pull together a list of areas

Re: The nail in the coffin of C++ or why don't GO there...

2017-03-30 Thread XavierAP via Digitalmars-d
On Thursday, 30 March 2017 at 06:58:30 UTC, Ervin Bosenbacher wrote: That is the same, that came as a shock to me. I believe for this slicing D might be even faster for a larger example/megaloop, because slicing does not necessarily copy unless needed. As you say the key is being able to w

The nail in the coffin of C++ or why don't GO there...

2017-03-30 Thread Ervin Bosenbacher via Digitalmars-d
Just would like to share something. For months I couldn't decide what language to use for my pet project, analysed dozens of languages from rust to go and I always fell back to C++ (performance is critical for me). After rust I had a look at DLang but as a C++ veteran I had my (wrong) feelings,