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

2018-01-31 Thread Andrew Benton via Digitalmars-d
On Tuesday, 30 January 2018 at 20:45:44 UTC, Andrei Alexandrescu wrote: https://www.quora.com/Why-hasnt-D-started-to-replace-C++ Andrei I think that the largest issue there is probably the marketing and advocacy. When Rust was about the same share as D, it had much better marketing.

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

2018-01-31 Thread rjframe via Digitalmars-d
On Wed, 31 Jan 2018 10:55:56 +, Benny wrote: > On Wednesday, 31 January 2018 at 10:35:06 UTC, Benny wrote: >> Let me say this again > > *uch* Never mind this rant. I am just fed up with the issues. I will not > post anymore as its just a wast of time for everybody involved. I wouldn't call

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

2018-01-31 Thread Martin Tschierschke via Digitalmars-d
On Wednesday, 31 January 2018 at 11:42:14 UTC, Seb wrote: [...] This is about to change soon for D. There's WIP to use OpenCollective The announcement should happen soon. Stay tuned! [...] Here's a spoiler: 1) Andrei does an excellent job at managing his students [1] and there work over the

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

2018-01-31 Thread Jack Stouffer via Digitalmars-d
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 sign of adoption and ecosystem growth. I've only ever seen people complain about D

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

2018-01-31 Thread Martin Tschierschke via Digitalmars-d
On Wednesday, 31 January 2018 at 12:03:22 UTC, rjframe wrote: On Wed, 31 Jan 2018 10:55:56 +, Benny wrote: [...] Anyway, mostly because of your recent posts I'm going to take a look at DlangIDE. If we can package a cross-platform IDE+compiler+dub as a single download and you're ready to

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

2018-01-31 Thread Paolo Invernizzi via Digitalmars-d
On Wednesday, 31 January 2018 at 11:42:14 UTC, Seb wrote: On Wednesday, 31 January 2018 at 10:35:06 UTC, Benny wrote: [...] Not sure why that's a bad thing. They all have their ups and downs: [...] That's the most refreshing post on D future since a long time. Thanks, really. /Paolo

Re: ExpressionTuple is referenced in the specs, but doesn't seem to be defined

2018-01-31 Thread Nick Treleaven via Digitalmars-d
On Friday, 26 January 2018 at 19:44:21 UTC, Dechcaudron wrote: See, for instance, definition https://dlang.org/spec/class.html#class_properties. If it is defined anywhere, I cannot seem to find it. It's now called an Expression List: https://dlang.org/ctarguments.html#homogenous-lists I'll

Re: How to proceed with learning to code Windows desktop applications?

2018-01-31 Thread Arredondo via Digitalmars-d-learn
On Tuesday, 30 January 2018 at 18:52:18 UTC, I Lindström wrote: On Tuesday, 30 January 2018 at 12:30:36 UTC, rjframe wrote: VS release builds compile to native now by default; for easy Windows programming, you really can't beat C# and drawing the GUI (Windows Forms, not necessarily the new

Re: How to proceed with learning to code Windows desktop applications?

2018-01-31 Thread rumbu via Digitalmars-d-learn
On Monday, 29 January 2018 at 22:55:12 UTC, I Lindström wrote: Hello all! I've been doing console apps for about a year and a half now, but my requirements are reaching the limits of easy to use with ASCII-based UI and typed commands so I'm thinking of moving into GUI-era with my projects. I

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

2018-01-31 Thread drug via Digitalmars-d
It would be really nice if we could know about current WIP a little bit more... And regularly.

Re: Don't expect class destructors to be called at all by the GC

2018-01-31 Thread Bienlein via Digitalmars-d-learn
On Thursday, 21 December 2017 at 18:45:27 UTC, Adam D. Ruppe wrote: On Thursday, 21 December 2017 at 18:20:19 UTC, H. S. Teoh wrote: When the scoped destruction of structs isn't an option, RefCounted!T seems to be a less evil alternative than an unreliable class dtor. :-/ Alas, RefCounted

Re: The daily D riddle

2018-01-31 Thread Jorge Lima via Digitalmars-d
On Sunday, 28 January 2018 at 06:44:06 UTC, Shachar Shemesh wrote: On 28/01/18 08:33, Mike Franklin wrote: On Sunday, 28 January 2018 at 06:25:51 UTC, Shachar Shemesh wrote: What will the following code print? Do not use the compiler: import std.stdio; struct A { int a = 1; void

Re: How to proceed with learning to code Windows desktop applications?

2018-01-31 Thread John Chapman via Digitalmars-d-learn
On Wednesday, 31 January 2018 at 11:52:20 UTC, rumbu wrote: On Windows platform, WPF is the way to go right now. Once you accommodate yourself with XAML (descriptive language for designing windows and controls), you can step up from WPF to modern Windows apps (UWP). Unfortunately, none of

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

2018-01-31 Thread Jack Stouffer via Digitalmars-d
On Wednesday, 31 January 2018 at 10:55:56 UTC, Benny wrote: On Wednesday, 31 January 2018 at 10:35:06 UTC, Benny wrote: Let me say this again *uch* Never mind this rant. I am just fed up with the issues. I will not post anymore as its just a wast of time for everybody involved. It's quite

what is local package map(local-packages.json) for dub while doing building?

2018-01-31 Thread Johann via Digitalmars-d-learn
$ dub build -b release -v Using dub registry url 'https://code.dlang.org/' Refreshing local packages (refresh existing: true)... Looking for local package map at /var/lib/dub/packages/local-packages.json Looking for local package map at /home/john/.dub/packages/local-packages.json Refreshing

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

2018-01-31 Thread Seb via Digitalmars-d
On Wednesday, 31 January 2018 at 10:35:06 UTC, Benny wrote: * three compilers Not sure why that's a bad thing. They all have their ups and downs: - dmd SUPER fast compilation - ldc multiarch + good optimization + cross-compilation - gdc multiarch + good optimization (in many cases better

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

2018-01-31 Thread Michael via Digitalmars-d
On Wednesday, 31 January 2018 at 07:56:37 UTC, Andrew Benton wrote: On Tuesday, 30 January 2018 at 20:45:44 UTC, Andrei Alexandrescu wrote: https://www.quora.com/Why-hasnt-D-started-to-replace-C++ Andrei I think that the largest issue there is probably the marketing and advocacy. When Rust

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

2018-01-31 Thread bachmeier via Digitalmars-d
On Wednesday, 31 January 2018 at 16:13:51 UTC, John Gabriele wrote: I've never seen that page. Would've helped me to see it earlier. The D download page should include a blurb with a link to that install page. I tried going to github.com/dlang/dlang.org, finding the download page, and

Inline code in the docs - the correct way

2018-01-31 Thread Jakub Łabaj via Digitalmars-d
What is the current state of the art of writing inline code in the documentation? Wiki says "use `...` instead of $(D ...)": https://wiki.dlang.org/Contributing_to_Phobos#Documentation_style. Some arguments made here: https://github.com/dlang/phobos/pull/5183#issuecomment-281895450 suggest

Re: Should the "front" range primitive be "const" ?

2018-01-31 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/30/18 8:05 PM, Jonathan M Davis wrote: Except that unless front returns by ref, it really doesn't matter whether front is const unless it's violating the range API, since front is supposed to return the same value until popFront is called (or if it's assigned a new value via a front that

Re: rdmd main.d leads to Segmentation fault

2018-01-31 Thread Timoses via Digitalmars-d-learn
On Wednesday, 31 January 2018 at 08:40:26 UTC, Kagamin wrote: On Tuesday, 30 January 2018 at 16:56:28 UTC, Timoses wrote: Output: https://pastebin.com/raw/SSx0P1Av Helps? Looks like TLS is not initialized. And I would need to do what about it? Sorry, I'm not familiar with assembly code

Re: Inline code in the docs - the correct way

2018-01-31 Thread H. S. Teoh via Digitalmars-d
On Wed, Jan 31, 2018 at 03:40:04PM +, Jakub Łabaj via Digitalmars-d wrote: > What is the current state of the art of writing inline code in the > documentation? > > Wiki says "use `...` instead of $(D ...)": > https://wiki.dlang.org/Contributing_to_Phobos#Documentation_style. > > Some

Re: Release D 2.078.1

2018-01-31 Thread Atila Neves via Digitalmars-d-announce
On Thursday, 25 January 2018 at 20:11:54 UTC, Rainer Schuetze wrote: On 25.01.2018 14:54, Atila Neves wrote: On Tuesday, 23 January 2018 at 15:16:02 UTC, Andre Pany wrote: On Tuesday, 23 January 2018 at 13:08:35 UTC, thedeemon wrote: On Monday, 22 January 2018 at 20:43:56 UTC, Martin Nowak

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

2018-01-31 Thread John Gabriele via Digitalmars-d
On Wednesday, 31 January 2018 at 11:42:14 UTC, Seb wrote: On Wednesday, 31 January 2018 at 10:35:06 UTC, Benny wrote: And 3 different installation method's depending on the platform. Windows: DMD installer, LDC manually extract zip and setup path, GDC ... That's only an issue on Windows.

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

2018-01-31 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 31 January 2018 at 14:22:03 UTC, Jack Stouffer wrote: It's quite easy to tell when criticism is made in good or bad faith Is it? Why do so many people have problems with it then? Stupidity? and at this point I'm going to reply to every rant in bad faith on here about how

Re: Release D 2.078.1

2018-01-31 Thread Arjan via Digitalmars-d-announce
On Wednesday, 31 January 2018 at 15:58:02 UTC, Atila Neves wrote: On Thursday, 25 January 2018 at 20:11:54 UTC, Rainer Schuetze wrote: On 25.01.2018 14:54, Atila Neves wrote: [...] Visual Studio is supposed to be detected by dmd now, either from the environment or from the registry.

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

2018-01-31 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 31 January 2018 at 13:54:25 UTC, Jack Stouffer wrote: I've only ever seen people complain about D in this area. Never once have I seen someone argue that the existence of PyPy hurts Python or gogcc hurts Go. Well, I've seen that people think that MS C++ is keeping C++ back

[Issue 18344] New: Downloads page should link to https://dlang.org/install.html

2018-01-31 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18344 Issue ID: 18344 Summary: Downloads page should link to https://dlang.org/install.html Product: D Version: D2 Hardware: All OS: All Status: NEW

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

2018-01-31 Thread H. S. Teoh via Digitalmars-d
On Wed, Jan 31, 2018 at 05:20:59PM +, Seb via Digitalmars-d wrote: > On Wednesday, 31 January 2018 at 16:13:51 UTC, John Gabriele wrote: > > I've never seen that page. Would've helped me to see it earlier. The > > D download page should include a blurb with a link to that install > > page. >

Terminating multiple processes

2018-01-31 Thread Russel Winder via Digitalmars-d-learn
So, I have an application which has a sort of nano-services architecture, basically it is a set of communicating processes. Terminating those processes blocked on an input channel is quite easy, send a terminate message on the input channel. But what about a process that has no input channel, one

Re: How to proceed with learning to code Windows desktop applications?

2018-01-31 Thread DanielG via Digitalmars-d-learn
On Wednesday, 31 January 2018 at 12:25:36 UTC, John Chapman wrote: Just to say that it is actually possible to write modern Windows apps in D - I've done it. WinRT is just COM. Granted it's not as easy as using Microsoft's language projections, but it's doable if you really want to. The

Re: enforce (i > 0) for i = int.min does not throw

2018-01-31 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/30/18 3:37 PM, kdevel wrote: On Sunday, 28 January 2018 at 19:17:49 UTC, Steven Schveighoffer wrote: This is insane. i > 0 is used in so many places. The only saving grace appears to be that int.min is just so uncommonly seen in the wild. And another one that it does not happen when

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

2018-01-31 Thread kinke via Digitalmars-d
On Wednesday, 31 January 2018 at 11:42:14 UTC, Seb wrote: On Wednesday, 31 January 2018 at 10:35:06 UTC, Benny wrote: * three compilers Not sure why that's a bad thing. They all have their ups and downs: - dmd SUPER fast compilation - ldc multiarch + good optimization + cross-compilation -

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

2018-01-31 Thread David Gileadi via Digitalmars-d
On 1/31/18 9:13 AM, John Gabriele wrote: On Wednesday, 31 January 2018 at 11:42:14 UTC, Seb wrote: On Wednesday, 31 January 2018 at 10:35:06 UTC, Benny wrote: And 3 different installation method's depending on the platform. Windows: DMD installer, LDC manually extract zip and setup path, GDC

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

2018-01-31 Thread jmh530 via Digitalmars-d
On Wednesday, 31 January 2018 at 17:02:06 UTC, Ola Fosheim Grøstad wrote: Is it? Why do so many people have problems with it then? Stupidity? Perhaps the D front page can say "Now with 1 Standard Library!" ;) Ok, and now you are entering a messy space, define "legitimate"? I think the

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

2018-01-31 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 31 January 2018 at 19:59:23 UTC, Seb wrote: ... and Mike did put _a lot_ of effort in pushing colorful error messages: Yes, that was a direct result of that forum post I alluded to. It isn't something he (or most anyone else, in my experience) really cares about, but he felt if

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

2018-01-31 Thread Seb via Digitalmars-d
On Wednesday, 31 January 2018 at 16:13:51 UTC, John Gabriele wrote: I've never seen that page. Would've helped me to see it earlier. The D download page should include a blurb with a link to that install page. They are there - hover over them: https://imgur.com/a/JvZwI I submitted it

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

2018-01-31 Thread jmh530 via Digitalmars-d
On Wednesday, 31 January 2018 at 16:13:51 UTC, John Gabriele wrote: On Wednesday, 31 January 2018 at 11:42:14 UTC, Seb wrote: That's only an issue on Windows. For Posix there's the official install.sh script [1]. [1] https://dlang.org/install.html I've never seen that page. Would've helped

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

2018-01-31 Thread Seb via Digitalmars-d
On Wednesday, 31 January 2018 at 16:13:51 UTC, John Gabriele wrote: I've never seen that page. Would've helped me to see it earlier. The D download page should include a blurb with a link to that install page. BTW that's why opening issues is so important: - everyone has a different

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

2018-01-31 Thread 12345swordy via Digitalmars-d
On Tuesday, 30 January 2018 at 23:36:59 UTC, H. S. Teoh wrote: On Tue, Jan 30, 2018 at 10:12:07PM +, Ola Fosheim Grøstad via Digitalmars-d wrote: On Tuesday, 30 January 2018 at 21:49:39 UTC, H. S. Teoh wrote: > [...] Well, it isn't relevant for those people who would adopt D anyway.

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

2018-01-31 Thread John Gabriele via Digitalmars-d
On Wednesday, 31 January 2018 at 17:30:54 UTC, H. S. Teoh wrote: On Wed, Jan 31, 2018 at 05:20:59PM +, Seb via Digitalmars-d Please let us know what would help you to find this page quicker. Wow. I set out *deliberately* looking for that link, and couldn't find it until I looked at

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

2018-01-31 Thread Jack Stouffer via Digitalmars-d
On Wednesday, 31 January 2018 at 17:02:06 UTC, Ola Fosheim Grøstad wrote: Ok, and now you are entering a messy space, define "legitimate"? Actionable, clear, and made with the intent to better the language/ecosystem and not just to complain. Development processes need continuous

Re: Terminating multiple processes

2018-01-31 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/31/18 12:44 PM, Russel Winder wrote: So, I have an application which has a sort of nano-services architecture, basically it is a set of communicating processes. Terminating those processes blocked on an input channel is quite easy, send a terminate message on the input channel. But what

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

2018-01-31 Thread Seb via Digitalmars-d
On Wednesday, 31 January 2018 at 12:34:01 UTC, Martin Tschierschke wrote: On Wednesday, 31 January 2018 at 12:03:22 UTC, rjframe wrote: On Wed, 31 Jan 2018 10:55:56 +, Benny wrote: [...] Anyway, mostly because of your recent posts I'm going to take a look at DlangIDE. If we can package

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

2018-01-31 Thread Nicholas Wilson via Digitalmars-d
On Wednesday, 31 January 2018 at 18:16:40 UTC, 12345swordy wrote: On Tuesday, 30 January 2018 at 23:36:59 UTC, H. S. Teoh wrote: On Tue, Jan 30, 2018 at 10:12:07PM +, Ola Fosheim Grøstad via Digitalmars-d wrote: On Tuesday, 30 January 2018 at 21:49:39 UTC, H. S. Teoh wrote: > [...] Well,

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

2018-01-31 Thread Steven Schveighoffer via Digitalmars-d
On 1/31/18 5:35 AM, Benny wrote: Auto generated libraries where all functions are dumped into massive one pagers. https://dlang.org/phobos/std_datetime_date.html Is this readable when the first two pages are this: jan feb mar apr may jun jul aug sep oct nov dec sun mon tue wed thu fri sat

Re: How to get a range from std.container.array for use with std.format.sformat?

2018-01-31 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/30/18 2:19 PM, cc wrote: Still doesn't work without the cast it seems.. auto rng = str[]; rng.sformat!"%s:%s"("some", "string"); // Error: template std.format.sformat cannot deduce function from argument types !("%s:%s")(RangeT!(Array!char), string, string) I

[Issue 18344] Downloads page should link to https://dlang.org/install.html

2018-01-31 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18344 bachm...@yahoo.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

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

2018-01-31 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 31 January 2018 at 19:00:57 UTC, Jack Stouffer wrote: For some reason this ranks below colourful error-messages. That's just something that Walter was able to bang out in an hour Yet he recently, months after starting, complained that "technical debt", specifically citing

Re: Inline code in the docs - the correct way

2018-01-31 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 31 January 2018 at 17:14:56 UTC, H. S. Teoh wrote: But otherwise, the two are equivalent. (In fact, backticks translate directly into $(D ...) in the ddoc code. They are just syntactic sugar.) No, they aren't. The `` is different in several ways including doing character

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

2018-01-31 Thread 12345swordy via Digitalmars-d
On Tuesday, 30 January 2018 at 20:45:44 UTC, Andrei Alexandrescu wrote: https://www.quora.com/Why-hasnt-D-started-to-replace-C++ Andrei For me personally, there are some really nasty bugs regarding default attributes (@nogc/@safe) that prevent me from using D in personal code projects.

[Issue 18345] New: std.datetime documentation isn't properly split

2018-01-31 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18345 Issue ID: 18345 Summary: std.datetime documentation isn't properly split Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Keywords: ddoc

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

2018-01-31 Thread Andrei Alexandrescu via Digitalmars-d
On 01/31/2018 05:55 AM, Benny wrote: On Wednesday, 31 January 2018 at 10:35:06 UTC, Benny wrote: Let me say this again *uch* Never mind this rant. I am just fed up with the issues. I will not post anymore as its just a wast of time for everybody involved. A few of the points were

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

2018-01-31 Thread Seb via Digitalmars-d
On Wednesday, 31 January 2018 at 17:30:54 UTC, H. S. Teoh wrote: Wow. I set out *deliberately* looking for that link, and couldn't find it until I looked at your screenshot. I definitely wouldn't have found it if I didn't even know it was there. I'm no UI consultant, but that link

Re: Release D 2.078.1

2018-01-31 Thread Rainer Schuetze via Digitalmars-d-announce
On 31/01/2018 16:58, Atila Neves wrote: On Thursday, 25 January 2018 at 20:11:54 UTC, Rainer Schuetze wrote: On 25.01.2018 14:54, Atila Neves wrote: On Tuesday, 23 January 2018 at 15:16:02 UTC, Andre Pany wrote: On Tuesday, 23 January 2018 at 13:08:35 UTC, thedeemon wrote: On Monday, 22

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

2018-01-31 Thread H. S. Teoh via Digitalmars-d
On Wed, Jan 31, 2018 at 08:05:37PM +, Adam D. Ruppe via Digitalmars-d wrote: > On Wednesday, 31 January 2018 at 19:59:23 UTC, Seb wrote: > > ... and Mike did put _a lot_ of effort in pushing colorful error > > messages: > > Yes, that was a direct result of that forum post I alluded to. It >

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

2018-01-31 Thread Benny via Digitalmars-d
On Wednesday, 31 January 2018 at 11:42:14 UTC, Seb wrote: Here's a spoiler: 1) Andrei does an excellent job at managing his students [1] and there work over the last couple of months has been tremendous. As the experiment with UPB was very successful, there will be more projects like this

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

2018-01-31 Thread John Gabriele via Digitalmars-d
On Wednesday, 31 January 2018 at 20:03:11 UTC, Adam D. Ruppe wrote: {snip} (well, I tried to get it upstream but I think upstream is a brick wall and not worth trying anymore) That is very concerning to hear.

Re: DConf 2018: Register Now!

2018-01-31 Thread David Gileadi via Digitalmars-d-announce
On 1/31/18 3:02 PM, Seb wrote: It was the middle of November when DConf 2018 was announced here on the DBlog in a Q & A session with Andrei Alexandrescu. Since then, the DConf train has slowly been building up steam as things have been happening behind the scenes. Now it’s full steam ahead!

Re: Inline code in the docs - the correct way

2018-01-31 Thread H. S. Teoh via Digitalmars-d
On Wed, Jan 31, 2018 at 06:31:34PM +, Adam D. Ruppe via Digitalmars-d wrote: > On Wednesday, 31 January 2018 at 17:14:56 UTC, H. S. Teoh wrote: > > But otherwise, the two are equivalent. (In fact, backticks translate > > directly into $(D ...) in the ddoc code. They are just syntactic > >

DConf 2018: Register Now!

2018-01-31 Thread Seb via Digitalmars-d-announce
It was the middle of November when DConf 2018 was announced here on the DBlog in a Q & A session with Andrei Alexandrescu. Since then, the DConf train has slowly been building up steam as things have been happening behind the scenes. Now it’s full steam ahead!

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

2018-01-31 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 31 January 2018 at 19:00:57 UTC, Jack Stouffer wrote: That's just something that Walter was able to bang out in an hour, should have been done years ago, and was excited about. So it isn't a big deal, but IMO that should be left to an IDE or shell. Back to the argument about

Re: DConf 2018: Register Now!

2018-01-31 Thread David Gileadi via Digitalmars-d-announce
On 1/31/18 3:08 PM, David Gileadi wrote: On 1/31/18 3:02 PM, Seb wrote: It was the middle of November when DConf 2018 was announced here on the DBlog in a Q & A session with Andrei Alexandrescu. Since then, the DConf train has slowly been building up steam as things have been happening behind

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

2018-01-31 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 31 January 2018 at 21:42:47 UTC, Ali wrote: The kinda small discussion on ycombinator https://news.ycombinator.com/item?id=16270841 Interesting... most of them don't grok C++, D, Java or Go... Hope people don't look to ycombinator for answers.

Re: Terminating multiple processes

2018-01-31 Thread Arek via Digitalmars-d-learn
On Wednesday, 31 January 2018 at 17:44:37 UTC, Russel Winder wrote: So, I have an application which has a sort of nano-services architecture, basically it is a set of communicating processes. Terminating those processes blocked on an input channel is quite easy, send a terminate message on the

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

2018-01-31 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 31 January 2018 at 18:05:30 UTC, jmh530 wrote: contribute their skills. For instance, Mike Parker's work on the D blog has been a great improvement in communication the past year or two. Yep, to have a living blog is very important IMHO.

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

2018-01-31 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 31 January 2018 at 18:05:30 UTC, jmh530 wrote: contribute their skills. For instance, Mike Parker's work on the D blog has been a great improvement in communication the past year or two. Yep, having a living blog is very important I think. It is always something I look at when

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

2018-01-31 Thread Ali via Digitalmars-d
On Tuesday, 30 January 2018 at 20:45:44 UTC, Andrei Alexandrescu wrote: https://www.quora.com/Why-hasnt-D-started-to-replace-C++ Andrei The kinda small discussion on ycombinator https://news.ycombinator.com/item?id=16270841

Re: Inline code in the docs - the correct way

2018-01-31 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 31 January 2018 at 21:34:47 UTC, H. S. Teoh wrote: Coming from you, I'm a little surprised. Weren't you one of the people complaining that ddoc macro syntax is ugly? $(H1 Rebuttal) It depends how you use it. For large blocks or for small, special bits, it doesn't bother me.

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

2018-01-31 Thread H. S. Teoh via Digitalmars-d
On Wed, Jan 31, 2018 at 09:07:39PM +, John Gabriele via Digitalmars-d wrote: > On Wednesday, 31 January 2018 at 20:03:11 UTC, Adam D. Ruppe wrote: > > > > {snip} (well, I tried to get it upstream but I think upstream is a > > brick wall and not worth trying anymore) > > That is very

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

2018-01-31 Thread Walter Bright via Digitalmars-d
On 1/31/2018 11:59 AM, Seb wrote: ... and Mike did put _a lot_ of effort in pushing colorful error messages: Yes, and he did a nice job of it. The results are attractive, worthwhile, and resolves a specific complaint people had about dmd's error messages.

adrdox vs markdown vs ddoc

2018-01-31 Thread Adam D. Ruppe via Digitalmars-d
FYI I am changing the subject line with this post since it is branching off the original question of simple best practices of code in ddoc. On Thursday, 1 February 2018 at 00:19:53 UTC, H. S. Teoh wrote: In general, almost all text macro / formatting systems, from LaTeX to HTML to ddoc, are

Re: enforce (i > 0) for i = int.min does not throw

2018-01-31 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/31/18 6:19 PM, Azi Hassan wrote: On Saturday, 27 January 2018 at 14:13:49 UTC, kdevel wrote: I would expect this code enforce3.d --- import std.exception; void main () {    int i = int.min;    enforce (i > 0); } --- to throw an "Enforcement failed" exception, but it doesn't: $ dmd

Re: Inline code in the docs - the correct way

2018-01-31 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, January 31, 2018 16:19:53 H. S. Teoh via Digitalmars-d wrote: > In general, almost all text macro / formatting systems, from LaTeX to > HTML to ddoc, are universally ugly and verbose when it comes to tables, > and makes my eyes bleed. The only exception I've found so far is > >

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

2018-01-31 Thread H. S. Teoh via Digitalmars-d
On Wed, Jan 31, 2018 at 05:16:21PM -0800, Walter Bright via Digitalmars-d wrote: > On 1/31/2018 1:19 PM, H. S. Teoh wrote: > > I'd rather stick with just B > > dmd -color=off file.d Thanks! Though, as I said, it doesn't bother me quite enough to want to go through the effort of explicitly

Re: enforce (i > 0) for i = int.min does not throw

2018-01-31 Thread Azi Hassan via Digitalmars-d-learn
On Saturday, 27 January 2018 at 14:13:49 UTC, kdevel wrote: I would expect this code enforce3.d --- import std.exception; void main () { int i = int.min; enforce (i > 0); } --- to throw an "Enforcement failed" exception, but it doesn't: $ dmd enforce3.d $ ./enforce3 [nothing] I

Re: The daily D riddle

2018-01-31 Thread Amorphorious via Digitalmars-d
On Sunday, 28 January 2018 at 06:44:40 UTC, Jonathan M Davis wrote: On Sunday, January 28, 2018 08:25:51 Shachar Shemesh via Digitalmars-d wrote: What will the following code print? Do not use the compiler: import std.stdio; struct A { int a = 1; void initialize() { a = a.init; }

Re: The daily D riddle

2018-01-31 Thread Walter Bright via Digitalmars-d
On 1/31/2018 4:19 PM, Amorphorious wrote: [...] Don't berate other forum members.

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

2018-01-31 Thread Walter Bright via Digitalmars-d
On 1/31/2018 1:19 PM, H. S. Teoh wrote: I'd rather stick with just B dmd -color=off file.d

Re: Should the "front" range primitive be "const" ?

2018-01-31 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/31/18 7:49 PM, Jonathan M Davis wrote: On Wednesday, January 31, 2018 11:58:38 Steven Schveighoffer via Digitalmars-d-learn wrote: On 1/30/18 8:05 PM, Jonathan M Davis wrote: Except that unless front returns by ref, it really doesn't matter whether front is const unless it's violating the

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

2018-01-31 Thread Walter Bright via Digitalmars-d
On 1/31/2018 5:54 AM, Jack Stouffer 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 sign of adoption and ecosystem growth.

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

2018-01-31 Thread Walter Bright via Digitalmars-d
https://www.reddit.com/r/programming/comments/7udfs4/is_anyone_replacing_c_with_d/

Re: Inline code in the docs - the correct way

2018-01-31 Thread H. S. Teoh via Digitalmars-d
On Wed, Jan 31, 2018 at 10:55:38PM +, Adam D. Ruppe via Digitalmars-d wrote: > On Wednesday, 31 January 2018 at 21:34:47 UTC, H. S. Teoh wrote: > > Coming from you, I'm a little surprised. Weren't you one of the > > people complaining that ddoc macro syntax is ugly? > > $(H1 Rebuttal) > >

Re: Should the "front" range primitive be "const" ?

2018-01-31 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, January 31, 2018 11:58:38 Steven Schveighoffer via Digitalmars-d-learn wrote: > On 1/30/18 8:05 PM, Jonathan M Davis wrote: > > Except that unless front returns by ref, it really doesn't matter > > whether > > front is const unless it's violating the range API, since front is > >

Re: Inline code in the docs - the correct way

2018-01-31 Thread Adam D. Ruppe via Digitalmars-d
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 just use it in most cases as long as the code fits on a single

Re: Inline code in the docs - the correct way

2018-01-31 Thread Steven Schveighoffer via Digitalmars-d
On 1/31/18 5:55 PM, Adam D. Ruppe wrote: Now though, inline code like $(D) and $(REF) are ambiguous. They are short enough that they'd normally fall into my "ok with it" zone like $(B)... but they are also so common and I want to encourage their use. And having three shifted characters that

[Issue 18346] New: implicit conversion from int to char in `"foo" ~ 255` should be illegal

2018-01-31 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18346 Issue ID: 18346 Summary: implicit conversion from int to char in `"foo" ~ 255` should be illegal Product: D Version: D2 Hardware: x86 OS: Mac OS X

Re: adrdox vs markdown vs ddoc

2018-01-31 Thread Seb via Digitalmars-d
On Thursday, 1 February 2018 at 01:23:38 UTC, Adam D. Ruppe wrote: Now, if a 5-character insertion requires 29 edit operations, what do you think the programmer is going to do? Keep up with it, or let the documentation stay slightly suboptimal and out-of-date because it is a hassle? To be

Re: Don't expect class destructors to be called at all by the GC

2018-01-31 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, January 31, 2018 10:51:10 DanielG via Digitalmars-d-learn wrote: > On Wednesday, 31 January 2018 at 10:34:53 UTC, Mike Parker wrote: > > delete is deprecated: > > > > https://dlang.org/deprecate.html#delete > > Ah, thanks! Actually double-thanks, because my progress through > your

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

2018-01-31 Thread Seb via Digitalmars-d
On Wednesday, 31 January 2018 at 21:19:50 UTC, H. S. Teoh wrote: On Wed, Jan 31, 2018 at 08:05:37PM +, Adam D. Ruppe via Digitalmars-d wrote: On Wednesday, 31 January 2018 at 19:59:23 UTC, Seb wrote: > ... and Mike did put _a lot_ of effort in pushing colorful > error messages: Yes, that

[Issue 3968] Some way to do certain implicit casts with operator overloading

2018-01-31 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3968 Simen Kjaeraas changed: What|Removed |Added Status|NEW |RESOLVED

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

2018-01-31 Thread Seb via Digitalmars-d
On Wednesday, 31 January 2018 at 19:54:05 UTC, Adam D. Ruppe wrote: On Wednesday, 31 January 2018 at 19:00:57 UTC, Jack Stouffer wrote: For some reason this ranks below colourful error-messages. That's just something that Walter was able to bang out in an hour Yet he recently, months after

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

2018-01-31 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 31 January 2018 at 10:35:06 UTC, Benny wrote: Auto generated libraries where all functions are dumped into massive one pagers. This is why I just forked the documentation (well, I tried to get it upstream but I think upstream is a brick wall and not worth trying anymore)

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

2018-01-31 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, January 31, 2018 17:16:21 Walter Bright via Digitalmars-d wrote: > On 1/31/2018 1:19 PM, H. S. Teoh wrote: > > I'd rather stick with just B > >dmd -color=off file.d I have to wonder if my settings are right. I've never noticed any color in error messages. Messing around with

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

2018-01-31 Thread Walter Bright via Digitalmars-d
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.

Re: Inline code in the docs - the correct way

2018-01-31 Thread Walter Bright via Digitalmars-d
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 { }, [ ], < >, and #if/#elif/#else/#endif (!). It's

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

2018-01-31 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 1 February 2018 at 02:24:44 UTC, H. S. Teoh wrote: I thought that *is* the color support that was added? If you're expecting IDE-style syntax highlighting, I think you're setting your expectations a little high for something that ostensibly was banged out in a couple of hours.

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

2018-01-31 Thread Walter Bright via Digitalmars-d
On 1/31/2018 6:14 PM, Jonathan M Davis wrote: I have to wonder if my settings are right. I've never noticed any color in error messages. Messing around with some errors right now, the only color I see is that "Error:" is in red, and some of the text is bolded, so it's white instead of the grey

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

2018-01-31 Thread Walter Bright via Digitalmars-d
On 1/31/2018 3:38 PM, H. S. Teoh wrote: A "small fry" like myself wouldn't dare to push the merge button on changes of this kind of magnitude, since it could have drastic consequences that I can't foresee due to not having a full grasp of the full scale of what is being changed.

Re: Inline code in the docs - the correct way

2018-01-31 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, January 31, 2018 18:58:29 Walter Bright via Digitalmars-d 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 > ),

  1   2   >