Re: On reddit: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread psychoticRabbit via Digitalmars-d
On Thursday, 1 February 2018 at 00:57:16 UTC, Walter Bright wrote: https://www.reddit.com/r/programming/comments/7udfs4/is_anyone_replacing_c_with_d/ I think what will get people really interested in D, is an updated book from Andrei. I'm sure plenty of people (particulary C++ programmers) w

Re: On reddit: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread psychoticRabbit via Digitalmars-d
On Thursday, 1 February 2018 at 09:51:16 UTC, psychoticRabbit wrote: On Thursday, 1 February 2018 at 00:57:16 UTC, Walter Bright wrote: https://www.reddit.com/r/programming/comments/7udfs4/is_anyone_replacing_c_with_d/ I think what will get people really interested in D, is an updated book fr

Re: Inline code in the docs - the correct way

2018-02-01 Thread Seb via Digitalmars-d
On Thursday, 1 February 2018 at 01:27:43 UTC, Adam D. Ruppe wrote: On Wednesday, 31 January 2018 at 15:40:04 UTC, Jakub Łabaj wrote: What is the current state of the art of writing inline code in the documentation? To give you a quick answer, the tide is going toward ``. You should probably j

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Russel Winder via Digitalmars-d
On Wed, 2018-01-31 at 16:13 +, John Gabriele via Digitalmars-d wrote: > […] > this older language from times past, before C++11, and using ddoc > for docs instead of markdown contributes to this perception. Let > me know if you'd like help in translating D website and doc pages > from ddoc t

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Martin Tschierschke via Digitalmars-d
On Wednesday, 31 January 2018 at 18:35:50 UTC, Seb wrote: [...] Like: https://github.com/adamdruppe/arsd/blob/master/simpledisplay.d And the examples from D-Lang Tour. So you only push a button [try D], and get a running environment to play around. Like this? https://tour.dlang.org/tour/en/

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Russel Winder via Digitalmars-d
On Wed, 2018-01-31 at 13:14 +, Michael via Digitalmars-d wrote: > […] > I agree that marketing is a pretty serious problem for D. Many > people just aren't aware of it. Even for people who do not > […] Some suggestions: More people putting more good projects using D on GitLab, BitBucket, L

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Russel Winder via Digitalmars-d
On Wed, 2018-01-31 at 13:54 +, Jack Stouffer via Digitalmars-d wrote: > On Wednesday, 31 January 2018 at 07:56:37 UTC, Andrew Benton > wrote: > > E.g. three compilers > > Every other compiled language (and a lot of scripting ones) uses > the fact of multiple compilers for the language as a s

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread rjframe via Digitalmars-d
On Thu, 01 Feb 2018 11:11:20 +, Martin Tschierschke wrote: > Idea: There should be some kind of news ticker for all enhancements and > important decisions, maybe at first just via twitter with a special > #tag beside #dlang where all updates are announced. And a place on the > homepage, whe

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Nicholas Wilson via Digitalmars-d
On Thursday, 1 February 2018 at 11:20:00 UTC, Russel Winder wrote: On Wed, 2018-01-31 at 13:14 +, Michael via Digitalmars-d wrote: […] I agree that marketing is a pretty serious problem for D. Many people just aren't aware of it. Even for people who do not […] Some suggestions: More pe

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Russel Winder via Digitalmars-d
On Thu, 2018-02-01 at 11:49 +, Nicholas Wilson via Digitalmars-d wrote: > […] > > Ali gave a keynote at C++Now(?) last year(?). I think it was. What is needed though is follow ups. ACCU, C++Now, etc. all need a steady trickle of sessions. -- Russel. =

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread bachmeier via Digitalmars-d
On Thursday, 1 February 2018 at 11:11:20 UTC, Martin Tschierschke wrote: Idea: There should be some kind of news ticker for all enhancements and important decisions, maybe at first just via twitter with a special #tag beside #dlang where all updates are announced. And a place on the homepage,

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Nicholas Wilson via Digitalmars-d
On Thursday, 1 February 2018 at 12:03:43 UTC, Russel Winder wrote: On Thu, 2018-02-01 at 11:49 +, Nicholas Wilson via Digitalmars-d wrote: […] Ali gave a keynote at C++Now(?) last year(?). I think it was. What is needed though is follow ups. ACCU, C++Now, etc. all need a steady trickle o

Re: adrdox vs markdown vs ddoc

2018-02-01 Thread Kagamin via Digitalmars-d
On Thursday, 1 February 2018 at 01:23:38 UTC, Adam D. Ruppe wrote: In CS terms, it turned a constant-time edit into a O(n) operation, scaling linearly with the number of rows. Well, there's line-oriented tabular data format, forgot the name (re*-something), it looks like definition list: ---

Re: How programmers transition between languages

2018-02-01 Thread Russel Winder via Digitalmars-d
On Tue, 2018-01-30 at 11:55 +, rjframe via Digitalmars-d wrote: > On Tue, 30 Jan 2018 10:38:31 +, Russel Winder wrote: > […] > > Are you sure? Every project on my PC places the build files in > $PROJECTDIR/.dub/build; the source is in ~/.dub/packages. I see the source of the dependencies

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Russel Winder via Digitalmars-d
On Thu, 2018-02-01 at 12:06 +, Nicholas Wilson via Digitalmars-d wrote: > […] > Indeed, I will be giving a talk at IWOCL (an OpenCL conference) a > week after DConf, promoting DCompute to the numerics folk. Please send this in to ACCU 2019 during the CfP 2018-10-?? to 2018-11- ?? as a 90 min

[RFC] IDE starter kit

2018-02-01 Thread rjframe via Digitalmars-d
As a followup to [0], I want to take a look at packaging DlangIDE with a DMD compiler and tools, so we have an out-of-the box IDE for people giving D a try. This would be independent of the rest of the system, so moving on (either to Visual Studio, ldc, gdc, or whatever the programmer's preferre

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Nicholas Wilson via Digitalmars-d
On Thursday, 1 February 2018 at 12:22:56 UTC, Russel Winder wrote: On Thu, 2018-02-01 at 12:06 +, Nicholas Wilson via Digitalmars-d wrote: […] Indeed, I will be giving a talk at IWOCL (an OpenCL conference) a week after DConf, promoting DCompute to the numerics folk. Please send this i

Re: D build and SCons

2018-02-01 Thread Russel Winder via Digitalmars-d
On Thu, 2017-12-28 at 10:21 -0800, H. S. Teoh via Digitalmars-d wrote: > > […] Apologies for taking so long to get to this. > OK, I may have worded things poorly here. What I meant was that with > "traditional" build systems like make or SCons, whenever you needed > to > rebuild the source tree

Re: The daily D riddle - this parameter

2018-02-01 Thread Nick Treleaven via Digitalmars-d
On Sunday, 28 January 2018 at 06:44:28 UTC, Timothee Cour wrote: likewise the following compiles, but IMO should not: class A{ void fun(this a){}} (instead we should have typeof(this) Yes, it's also confusing reading it, I thought it was template this for a second. It even works if fun is stat

Re: Inline code in the docs - the correct way

2018-02-01 Thread Jakub Łabaj via Digitalmars-d
I can see that ddoc is a pretty hot topic here ;) On Thursday, 1 February 2018 at 01:27:43 UTC, Adam D. Ruppe wrote: To give you a quick answer, the tide is going toward ``. You should probably just use it in most cases as long as the code fits on a single line. If it is a multi-line sample, us

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Mike Parker via Digitalmars-d
On Thursday, 1 February 2018 at 12:04:11 UTC, bachmeier wrote: I had hoped the blog would be used for that purpose. Obviously it is not. And it won't be. I had vaguely imagined using it for semi-regular news updates from the core D team, but I realized early on that isn't going to pan out.

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Seb via Digitalmars-d
On Thursday, 1 February 2018 at 11:40:32 UTC, rjframe wrote: On Thu, 01 Feb 2018 11:11:20 +, Martin Tschierschke wrote: Idea: There should be some kind of news ticker for all enhancements and important decisions, maybe at first just via twitter with a special #tag beside #dlang where al

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Russel Winder via Digitalmars-d
On Thu, 2018-02-01 at 12:55 +, Nicholas Wilson via Digitalmars-d wrote: > […] > > OK, will do. Might need to work on getting some more content to > fill out the time but should be doable. Hopefully by then > DCompute will support Vulkan, assuming that I can get consensus > to get Vulkan as

Re: Inline code in the docs - the correct way

2018-02-01 Thread Steven Schveighoffer via Digitalmars-d
On 1/31/18 9:58 PM, Walter Bright wrote: On 1/31/2018 5:37 PM, Steven Schveighoffer wrote: Where it breaks down is when you have many nested tags, and you end with ) Long ago, I adjusted my text editor so that when the cursor is placed on ), the matching ( is found. Ditto for { }, [ ], <

Re: adrdox vs markdown vs ddoc

2018-02-01 Thread ag0aep6g via Digitalmars-d
On 02/01/2018 07:18 AM, Seb wrote: It tells quite a bit about the complexity of Ddoc that I had to add support for -D to run.dlang.io ... [...] I'm not a fan of Ddoc by any means, but that has been fixed in Ddoc does this too now: https://run.dlang.io/is/75Z55o Uhh, is it a good idea to gener

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Benny via Digitalmars-d
On Thursday, 1 February 2018 at 11:21:37 UTC, Russel Winder wrote: D should be proud of having a reference compiler, a GCC-based one, and an LLVM-based one. This is a Good Thing™, let no-one undermine this. Nothing wrong with choice as long as that choice does not introduces issues. Currently

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Russel Winder via Digitalmars-d
On Thu, 2018-02-01 at 15:27 +, Benny via Digitalmars-d wrote: > […] > Nothing wrong with choice as long as that choice does not > introduces issues. Currently there are 3 compilers but also 3 > different ways to install ( depending on the platform ). DMD has > a installer, LDC needs a manua

Re: Inline code in the docs - the correct way

2018-02-01 Thread H. S. Teoh via Digitalmars-d
On Thu, Feb 01, 2018 at 09:09:28AM -0500, Steven Schveighoffer via Digitalmars-d wrote: > On 1/31/18 9:58 PM, Walter Bright wrote: > > On 1/31/2018 5:37 PM, Steven Schveighoffer wrote: > > > Where it breaks down is when you have many nested tags, and you > > > end with ) > > > > Long ago, I a

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread H. S. Teoh via Digitalmars-d
On Thu, Feb 01, 2018 at 03:47:50PM +, Russel Winder via Digitalmars-d wrote: > On Thu, 2018-02-01 at 15:27 +, Benny via Digitalmars-d wrote: > > > […] > > Nothing wrong with choice as long as that choice does not > > introduces issues. Currently there are 3 compilers but also 3 > > diffe

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Seb via Digitalmars-d
On Thursday, 1 February 2018 at 16:17:45 UTC, H. S. Teoh wrote: On Thu, Feb 01, 2018 at 03:47:50PM +, Russel Winder via Digitalmars-d wrote: On Thu, 2018-02-01 at 15:27 +, Benny via Digitalmars-d wrote: > […] > Nothing wrong with choice as long as that choice does not > introduces issu

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Benny via Digitalmars-d
On Thursday, 1 February 2018 at 15:47:50 UTC, Russel Winder wrote: For me: aptitude install ldc aptitude install gdc aptitude install dmd-bin aptitude install dub Seems to work fine, and no conflicts. […] Please try Windows and then come back ;)

Re: adrdox vs markdown vs ddoc

2018-02-01 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 1 February 2018 at 06:18:52 UTC, Seb wrote: To be fair, I feel with you and all the tables I have created are formatted as good as DDoc allows, e.g. Yeah, that's not bad, really. I think that's actually significantly better than the Markdown table syntax - adding a new function o

Re: On reddit: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread H. S. Teoh via Digitalmars-d
> On Thursday, 1 February 2018 at 00:57:16 UTC, Walter Bright wrote: > > https://www.reddit.com/r/programming/comments/7udfs4/is_anyone_replacing_c_with_d/ [...] The only useful comment I got out of that is the link to this thought-provoking article about the so-called Blub Paradox: http:

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread John Gabriele via Digitalmars-d
On Thursday, 1 February 2018 at 03:00:07 UTC, Walter Bright wrote: On 1/31/2018 5:58 PM, H. S. Teoh wrote: cosmetic features. I tough lesson I've learned is that cosmetics matter, a lot. Sometimes much more than substance. There's no getting away from it. This is one reason I recommend mar

Re: adrdox vs markdown vs ddoc

2018-02-01 Thread H. S. Teoh via Digitalmars-d
On Thu, Feb 01, 2018 at 05:33:21PM +, Adam D. Ruppe via Digitalmars-d wrote: > On Thursday, 1 February 2018 at 06:18:52 UTC, Seb wrote: > > To be fair, I feel with you and all the tables I have created are > > formatted as good as DDoc allows, e.g. > > Yeah, that's not bad, really. I think tha

Re: How programmers transition between languages

2018-02-01 Thread Joakim via Digitalmars-d
On Monday, 29 January 2018 at 11:48:07 UTC, Russel Winder wrote: I am less convinced by this argument. Go, Rust, and especially Java have shown the power of tribalism and belonging to the one true tribe eschewing all others. Java is a superb example of this: the JVM is now a polyglot platform,

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread John Gabriele via Digitalmars-d
On Thursday, 1 February 2018 at 11:06:09 UTC, Russel Winder wrote: On Wed, 2018-01-31 at 16:13 +, John Gabriele via Digitalmars-d wrote: […] this older language from times past, before C++11, and using ddoc for docs instead of markdown contributes to this perception. Let me know if you'd l

Re: On reddit: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 1 February 2018 at 19:10:29 UTC, H. S. Teoh wrote: somewhat correlate with his 20-25% macros figure. The fact that D brings powerful metaprogramming features to the average coder in a form that's not intimidating (or less intimidating than, say, C++ templates with that horrific syn

Re: An idea for commercial support for D

2018-02-01 Thread Jacob Carlborg via Digitalmars-d
On 2018-01-31 09:43, Joakim wrote: Back when I first wrote about mixing open and closed source like this in my 2010 Phoronix article, nobody considered it a world-beating model. Maybe people now assume I'm just keying these ideas off the success of Android in using a similar mixed model, but my

Re: How programmers transition between languages

2018-02-01 Thread Jacob Carlborg via Digitalmars-d
On 2018-02-01 13:19, Russel Winder wrote: I see the source of the dependencies both in ~/.dub/packages and in the project .dub directory, but I see the compilation products in ~/.dub/packages. I'm wondering if this might be different versions of Dub behaving differently. I have 79 packages i

Re: An idea for commercial support for D

2018-02-01 Thread Joakim via Digitalmars-d
On Thursday, 1 February 2018 at 20:52:43 UTC, Jacob Carlborg wrote: On 2018-01-31 09:43, Joakim wrote: Back when I first wrote about mixing open and closed source like this in my 2010 Phoronix article, nobody considered it a world-beating model. Maybe people now assume I'm just keying these id

Re: [RFC] IDE starter kit

2018-02-01 Thread Jacob Carlborg via Digitalmars-d
On 2018-02-01 13:21, rjframe wrote: CONS: - Working outside the IDE requires installing D again, from the official installer. If this pack isn't immediately abandoned, multiple D versions are in use that could cause headaches or confusion if the programmer doesn't pay attention. With

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Walter Bright via Digitalmars-d
On 2/1/2018 3:11 AM, Martin Tschierschke wrote: Idea: There should be some kind of news ticker for all enhancements and important decisions, maybe at first just via twitter  with a special #tag beside #dlang where all updates are announced. And a place on the homepage, where this feed is displ

Re: [RFC] IDE starter kit

2018-02-01 Thread rjframe via Digitalmars-d
On Thu, 01 Feb 2018 22:38:51 +0100, Jacob Carlborg wrote: > On 2018-02-01 13:21, rjframe wrote: > >> CONS: >> - Working outside the IDE requires installing D again, from the >> official >>installer. If this pack isn't immediately abandoned, multiple D >>versions are in use that could caus

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Andrei Alexandrescu via Digitalmars-d
On 01/31/2018 06:38 PM, H. S. Teoh wrote: And I'll be frank that sometimes Andrei can take some effort to convince, and it takes a certain amount of dogged persistence (and thick-skin) to get through to him sometimes. And it doesn't help that he has so much on his plate, and generally doesn't hav

Re: [RFC] IDE starter kit

2018-02-01 Thread Seb via Digitalmars-d
On Thursday, 1 February 2018 at 12:21:24 UTC, rjframe wrote: As a followup to [0], I want to take a look at packaging DlangIDE with a DMD compiler and tools, so we have an out-of-the box IDE for people giving D a try. This would be independent of the rest of the system, so moving on (either to

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Meta via Digitalmars-d
On Wednesday, 31 January 2018 at 11:42:14 UTC, Seb wrote: Yes, obviously the current situation isn't ideal, but it's not too bad either and we have found one good, but probably not so well-known yet way to tackle this: the dlang-community organization on GH (https://github.com/dlang-community)

Re: An idea for commercial support for D

2018-02-01 Thread psychoticRabbit via Digitalmars-d
On Wednesday, 31 January 2018 at 08:43:46 UTC, Joakim wrote: ... My time-limited model makes sure all source is made open eventually, once the developers have been paid for their work. This deceptive hybrid model (based I my understanding of it per the description above) is really offensiv

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread psychoticRabbit via Digitalmars-d
On Thursday, 1 February 2018 at 17:13:52 UTC, Seb wrote: curl https://i.dlang.io/install.sh | bash -s dmd Yeah..let's all run an untrusted shell script (with unknown contents), right off the web. Will people never learn?

Re: [RFC] IDE starter kit

2018-02-01 Thread rjframe via Digitalmars-d
On Fri, 02 Feb 2018 01:23:46 +, Seb wrote: > I wouldn't worry about the compiler being duplicated as (1) it's pretty > small (~30 MB with docs and all) and (2) I have seen so many NodeJS > projects doing simple things with multiple gigabytes of dependencies. > And if that really turns out to b

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Arun Chandrasekaran via Digitalmars-d
On Friday, 2 February 2018 at 02:15:55 UTC, psychoticRabbit wrote: On Thursday, 1 February 2018 at 17:13:52 UTC, Seb wrote: curl https://i.dlang.io/install.sh | bash -s dmd Yeah..let's all run an untrusted shell script (with unknown contents), right off the web. Will people never learn?

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread rjframe via Digitalmars-d
On Fri, 02 Feb 2018 01:42:08 +, Meta wrote: > On Wednesday, 31 January 2018 at 11:42:14 UTC, Seb wrote: > >> Yes, obviously the current situation isn't ideal, but it's not too bad >> either and we have found one good, but probably not so well-known yet >> way to tackle this: the dlang-communi

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Seb via Digitalmars-d
On Friday, 2 February 2018 at 02:33:30 UTC, rjframe wrote: On Fri, 02 Feb 2018 01:42:08 +, Meta wrote: On Wednesday, 31 January 2018 at 11:42:14 UTC, Seb wrote: Yes, obviously the current situation isn't ideal, but it's not too bad either and we have found one good, but probably not so w

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Seb via Digitalmars-d
On Friday, 2 February 2018 at 02:25:47 UTC, Arun Chandrasekaran wrote: On Friday, 2 February 2018 at 02:15:55 UTC, psychoticRabbit wrote: On Thursday, 1 February 2018 at 17:13:52 UTC, Seb wrote: curl https://i.dlang.io/install.sh | bash -s dmd Yeah..let's all run an untrusted shell script (w

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread psychoticRabbit via Digitalmars-d
On Friday, 2 February 2018 at 02:25:47 UTC, Arun Chandrasekaran wrote: On Friday, 2 February 2018 at 02:15:55 UTC, psychoticRabbit wrote: On Thursday, 1 February 2018 at 17:13:52 UTC, Seb wrote: curl https://i.dlang.io/install.sh | bash -s dmd Yeah..let's all run an untrusted shell script (w

Re: Quora: Why hasn't D started to replace C++?

2018-02-01 Thread Nerve via Digitalmars-d
On Thursday, 1 February 2018 at 15:27:02 UTC, Benny wrote: Suggestion: Is it maybe not better to have one "front-end" compiler visible that people download Example: D run main.d D run main.d --compiler ldc ( not installed? Auto download and compile using dub ) D run main.d --compiler ldc -

Re: [RFC] IDE starter kit

2018-02-01 Thread b4s1L3 b. via Digitalmars-d
On Thursday, 1 February 2018 at 12:21:24 UTC, rjframe wrote: As a followup to [0], I want to take a look at packaging DlangIDE with a DMD compiler and tools, so we have an out-of-the box IDE for people giving D a try. This would be independent of the rest of the system, so moving on (either to