Re: D Logic bug

2018-10-11 Thread Patrick Schluter via Digitalmars-d
On Thursday, 11 October 2018 at 14:35:34 UTC, James Japherson wrote: Took me about an hour to track this one down! A + (B == 0) ? 0 : C; D is evaluating it as (A + (B == 0)) ? 0 : C; As it should. The whole point of the parenthesis was to associate. I usually explicitly associate precis

Re: D Logic bug

2018-10-12 Thread Patrick Schluter via Digitalmars-d
On Thursday, 11 October 2018 at 23:17:15 UTC, Jonathan Marler wrote: On Thursday, 11 October 2018 at 21:57:00 UTC, Jonathan M Davis wrote: On Thursday, October 11, 2018 1:09:14 PM MDT Jonathan Marler via Digitalmars-d wrote: On Thursday, 11 October 2018 at 14:35:34 UTC, James Japherson wrote:

Re: D Logic bug

2018-10-12 Thread Patrick Schluter via Digitalmars-d
On Thursday, 11 October 2018 at 23:17:57 UTC, Jonathan M Davis wrote: On Thursday, October 11, 2018 8:35:34 AM MDT James Japherson via Digitalmars-d wrote: Certainly, major languages like C, C++, Java, and C# all do it the way that D does, and they all have the same kind of precedence for the

Re: D Logic bug

2018-10-12 Thread Patrick Schluter via Digitalmars-d
On Friday, 12 October 2018 at 13:15:22 UTC, Steven Schveighoffer wrote: On 10/12/18 6:06 AM, Kagamin wrote: On Thursday, 11 October 2018 at 23:17:15 UTC, Jonathan Marler wrote: [...] That's https://issues.dlang.org/show_bug.cgi?id=14186 Wow, interesting that C precedence is different from C

Re: Shared - Another Thread

2018-10-18 Thread Patrick Schluter via Digitalmars-d
On Wednesday, 17 October 2018 at 22:56:26 UTC, H. S. Teoh wrote: If something might be used by someone else it's better not to touch it, unless one has confirmation it is not used by someone else. This is what shared has to enforce. Yes. But how can the compiler statically verify this? Bec

Re: Shared - Another Thread

2018-10-18 Thread Patrick Schluter via Digitalmars-d
On Thursday, 18 October 2018 at 16:24:39 UTC, Manu wrote: On Thu., 18 Oct. 2018, 5:05 am Patrick Schluter via Digitalmars-d, < digitalmars-d@puremagic.com> wrote: On Wednesday, 17 October 2018 at 22:56:26 UTC, H. S. Teoh wrote: >> If something might be used by someone else it&

Re: Shared - Another Thread

2018-10-18 Thread Patrick Schluter via Digitalmars-d
On Thursday, 18 October 2018 at 17:01:46 UTC, Stanislav Blinov wrote: On Thursday, 18 October 2018 at 16:31:33 UTC, Vijay Nayar wrote: Imagine a simple algorithm that does logic on very long numbers, split into bytes. One multi-threaded implementation may use 4 threads. The first operating o

Re: D Binding to GUI libraries

2018-10-21 Thread Patrick Schluter via Digitalmars-d
On Sunday, 21 October 2018 at 18:24:30 UTC, Jacob Carlborg wrote: On 2018-10-21 19:29, Russel Winder wrote: But who apart from Eclipse and JetBrains uses Java for desktop GUI applications? There's probably a ton of business/enterprise applications that are written in Java. But I don't car

Re: Linux signal handling - notifying a condition variable

2018-03-15 Thread Patrick Schluter via Digitalmars-d
On Thursday, 15 March 2018 at 19:23:26 UTC, Dmitry Olshansky wrote: On Thursday, 15 March 2018 at 17:30:50 UTC, Jim King wrote: [...] Another option if you are on linux is to use eventfd. Then you can trigger it with simple write on eventfd descriptor. As far as waiting goes it’s either rea

Re: Linux signal handling - notifying a condition variable

2018-03-15 Thread Patrick Schluter via Digitalmars-d
On Thursday, 15 March 2018 at 16:51:59 UTC, Jim King wrote: I am trying to add graceful shutdown support to a test harness. In the test harness, a server class consumes a thread to accept connections and service them. In order to stop the server, it has to be interrupted. This interruption m

Re: About making Phobos @safe

2018-03-24 Thread Patrick Schluter via Digitalmars-d
On Friday, 23 March 2018 at 20:33:40 UTC, Jack Stouffer wrote: On Friday, 23 March 2018 at 17:31:09 UTC, Jesse Phillips wrote: [...] If @safe doesn't protect against buffer overflows then chuck the whole thing out the window and start over. [...] zlib sources are included in phobos. It do

Re: newCTFE Status March 2018

2018-03-31 Thread Patrick Schluter via Digitalmars-d
On Friday, 30 March 2018 at 20:46:32 UTC, Stefan Koch wrote: On Friday, 30 March 2018 at 20:15:20 UTC, 12345swordy wrote: On Friday, 30 March 2018 at 19:48:02 UTC, Stefan Koch wrote: [...] How close are you to finish this? 85 to 90% maybe. Ok, so it will take 90% of the total to get to the

Re: newCTFE Status March 2018

2018-03-31 Thread Patrick Schluter via Digitalmars-d
On Saturday, 31 March 2018 at 08:29:22 UTC, Stefan Koch wrote: On Saturday, 31 March 2018 at 08:19:39 UTC, Patrick Schluter wrote: On Friday, 30 March 2018 at 20:46:32 UTC, Stefan Koch wrote: On Friday, 30 March 2018 at 20:15:20 UTC, 12345swordy wrote: On Friday, 30 March 2018 at 19:48:02 UTC,

Re: Deprecating this(this)

2018-04-01 Thread Patrick Schluter via Digitalmars-d
On Sunday, 1 April 2018 at 10:49:22 UTC, bachmeier wrote: On Sunday, 1 April 2018 at 10:04:04 UTC, Johannes Loher wrote: This seems really sudden, april fool's joke? Not really sure, as there are real problems with this(this)... What I was wondering too. I mean, breaking changes just don't ha

Re: that is bug?

2018-04-07 Thread Patrick Schluter via Digitalmars-d
On Saturday, 7 April 2018 at 14:28:05 UTC, kdevel wrote: On Saturday, 7 April 2018 at 09:56:43 UTC, Jonathan M Davis wrote: true?stt="AA":stt="BB";-///Out:BB [...] Assignment takes precendence over the ternary operator. That's not true. Not in D and not in C/C++ The

Re: that is bug?

2018-04-08 Thread Patrick Schluter via Digitalmars-d
On Saturday, 7 April 2018 at 20:57:23 UTC, kdevel wrote: On Saturday, 7 April 2018 at 16:52:00 UTC, Patrick Schluter wrote: [...] The odd man out is C++ [1], assignment has higher precedence because of right to left evaluation. Your reference [1] is not even a witness to your claim. The prec

Re: that is bug?

2018-04-08 Thread Patrick Schluter via Digitalmars-d
On Sunday, 8 April 2018 at 10:03:33 UTC, kdevel wrote: On Sunday, 8 April 2018 at 07:22:19 UTC, Patrick Schluter wrote: You may find an in-depth discussion of the C++ case in https://stackoverflow.com/questions/7499400/ternary-conditional-and-assignment-operator-precedence My formulation was

Re: that is bug?

2018-04-08 Thread Patrick Schluter via Digitalmars-d
On Sunday, 8 April 2018 at 16:47:59 UTC, Patrick Schluter wrote: On Sunday, 8 April 2018 at 10:03:33 UTC, kdevel wrote: On Sunday, 8 April 2018 at 07:22:19 UTC, Patrick Schluter wrote: [...] To summarize: C++ works as expected and C prevents the assigment because the conditional operator doe

Re: that is bug?

2018-04-09 Thread Patrick Schluter via Digitalmars-d
On Monday, 9 April 2018 at 14:28:54 UTC, MattCoder wrote: On Monday, 9 April 2018 at 03:35:07 UTC, Ali Çehreli wrote: ... I don't have any problem with that part either. The following makes sense to me. I may have even used it in the past (likely in C++): (cond ? a : b) = foo; ... For

Re: Small Buffer Optimization for string and friends

2018-04-15 Thread Patrick Schluter via Digitalmars-d
On Sunday, 8 April 2012 at 09:46:28 UTC, Vladimir Panteleev wrote: On Sunday, 8 April 2012 at 05:56:36 UTC, Andrei Alexandrescu wrote: Walter and I discussed today about using the small string optimization in string and other arrays of immutable small objects. On 64 bit machines, string occup

Re: core.stdc and betterC

2018-04-29 Thread Patrick Schluter via Digitalmars-d
On Sunday, 29 April 2018 at 15:40:20 UTC, Jacob Carlborg wrote: On 2018-04-29 16:42, dd886k wrote: [...] Looks like "putchar" is inlined [1]. That means the "putchar" you're referencing is not the one in the C standard library but it's implemented in druntime. That means you need to link wit

Re: Sealed classes - would you want them in D?

2018-05-15 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 15 May 2018 at 02:32:05 UTC, KingJoffrey wrote: On Tuesday, 15 May 2018 at 02:00:17 UTC, 12345swordy wrote: On Tuesday, 15 May 2018 at 00:28:42 UTC, KingJoffrey wrote: On Monday, 14 May 2018 at 19:40:18 UTC, 12345swordy wrote: [...] If 'getting a module to respect the enscapsulat

Re: Of possible interest: fast UTF8 validation

2018-05-17 Thread Patrick Schluter via Digitalmars-d
On Thursday, 17 May 2018 at 05:01:54 UTC, Joakim wrote: On Wednesday, 16 May 2018 at 20:11:35 UTC, Andrei Alexandrescu wrote: On 5/16/18 1:18 PM, Joakim wrote: On Wednesday, 16 May 2018 at 16:48:28 UTC, Dmitry Olshansky wrote: On Wednesday, 16 May 2018 at 15:48:09 UTC, Joakim wrote: On Wednesd

Re: Of possible interest: fast UTF8 validation

2018-05-17 Thread Patrick Schluter via Digitalmars-d
On Thursday, 17 May 2018 at 15:37:01 UTC, Andrei Alexandrescu wrote: On 05/17/2018 09:14 AM, Patrick Schluter wrote: I'm in charge at the European Commission of the biggest translation memory in the world. Impressive! Is that the Europarl? No, Euramis. The central translation memory develope

Re: Of possible interest: fast UTF8 validation

2018-05-17 Thread Patrick Schluter via Digitalmars-d
On Thursday, 17 May 2018 at 15:16:19 UTC, Joakim wrote: On Thursday, 17 May 2018 at 13:14:46 UTC, Patrick Schluter wrote: This is not practical, sorry. What happens when your message loses the header? Exactly, the rest of the message is garbled. Why would it lose the header? TCP guarantees del

Re: Of possible interest: fast UTF8 validation

2018-05-17 Thread Patrick Schluter via Digitalmars-d
On Thursday, 17 May 2018 at 23:16:03 UTC, H. S. Teoh wrote: On Thu, May 17, 2018 at 07:13:23PM +, Patrick Schluter via Digitalmars-d wrote: [...] [...] Yes. Imagine if we standardized on a header-based string encoding, and we wanted to implement a substring function over a string that

Re: Online impersonation

2018-05-24 Thread Patrick Schluter via Digitalmars-d
On Thursday, 24 May 2018 at 06:32:23 UTC, Dukc wrote: On Wednesday, 23 May 2018 at 17:31:40 UTC, Steven Schveighoffer wrote: The IP address is included in the headers of the newsgroup. All of them came from the same IP. I have a filter on my thunderbird client to flag certain IPs, and his was a

Re: Ideas for students' summer projects

2018-05-24 Thread Patrick Schluter via Digitalmars-d
On Thursday, 24 May 2018 at 18:07:53 UTC, Patrick Schluter wrote: On Wednesday, 23 May 2018 at 01:33:19 UTC, Mike Franklin wrote: On Tuesday, 22 May 2018 at 16:27:05 UTC, Eduard Staniloiu wrote: Let the brainstorming begin! I would like to see a dependency-less Phobos-like library that can

Re: Ideas for students' summer projects

2018-05-24 Thread Patrick Schluter via Digitalmars-d
On Wednesday, 23 May 2018 at 01:33:19 UTC, Mike Franklin wrote: On Tuesday, 22 May 2018 at 16:27:05 UTC, Eduard Staniloiu wrote: Let the brainstorming begin! I would like to see a dependency-less Phobos-like library that can be used by the DMD compiler, druntime, -betterC, and other runtime

Re: Morale of a story: ~ is the right choice for concat operator

2018-05-26 Thread Patrick Schluter via Digitalmars-d
On Friday, 25 May 2018 at 23:05:51 UTC, Jonathan M Davis wrote: Sure, it can be argued that this should be unnecessary and that the programmer should just get it right, but it's not an altogether uncommon bug to screw up case statements and invadvertently fall through to the next one when you

Re: Replacing C's memcpy with a D implementation

2018-06-10 Thread Patrick Schluter via Digitalmars-d
On Sunday, 10 June 2018 at 13:45:54 UTC, Mike Franklin wrote: On Sunday, 10 June 2018 at 13:16:21 UTC, Adam D. Ruppe wrote: memcpyD: 1 ms, 725 μs, and 1 hnsec memcpyD2: 587 μs and 5 hnsecs memcpyASM: 119 μs and 5 hnsecs Still, the ASM version is much faster. rep movsd is very CPU dependend

Re: DIP 1015--removal of implicit conversion from integer and character literals to bool--Community Review Round 1

2018-06-21 Thread Patrick Schluter via Digitalmars-d
On Wednesday, 20 June 2018 at 08:16:21 UTC, Mike Parker wrote: This is the feedback thread for the first round of Community Review for DIP 1015, "Deprecation and removal of implicit conversion from integer and character literals to bool": https://github.com/dlang/DIPs/blob/7c2c39243d0d747191f0

Re: Sign the installers

2018-06-27 Thread Patrick Schluter via Digitalmars-d
On Thursday, 28 June 2018 at 01:34:22 UTC, Jonathan M Davis wrote: On Wednesday, June 27, 2018 17:59:42 Brad Roberts via Digitalmars-d wrote: On 6/27/2018 5:34 PM, Jonathan M Davis via Digitalmars-d wrote: > On Wednesday, June 27, 2018 17:26:36 Manu via Digitalmars-d > wrote: >> I guess people

Re: Sutter's ISO C++ Trip Report - The best compliment is when someone else steals your ideas....

2018-07-13 Thread Patrick Schluter via Digitalmars-d
On Friday, 13 July 2018 at 20:12:36 UTC, Steven Schveighoffer wrote: On 7/13/18 3:53 PM, Paolo Invernizzi wrote: On Friday, 13 July 2018 at 13:15:39 UTC, Steven Schveighoffer wrote: On 7/13/18 8:55 AM, Adam D. Ruppe wrote: [...] But it doesn't scale if you use OS processes, it's too heavywe

Re: Truncate is missing from std.stdio.File, will this do the trick?

2018-07-24 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 24 July 2018 at 00:15:37 UTC, spikespaz wrote: I needed a truncate function on the `std.stdio.File` object, so I made this function. Does it look okay? Are there any cross-platform improvements you can think of that should be added? import std.stdio: File; void truncate(File fil

Re: Comparing D vs C++ (wierd behaviour of C++)

2018-07-24 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 24 July 2018 at 14:08:26 UTC, Daniel Kozak wrote: I am not C++ expert so this seems wierd to me: #include #include using namespace std; int main(int argc, char **argv) { char c = 0xFF; std::string sData = {c,c,c,c}; unsigned int i = (sData[0]&0xFF)*256

Re: Comparing D vs C++ (wierd behaviour of C++)

2018-07-24 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 24 July 2018 at 14:41:17 UTC, Ecstatic Coder wrote: On Tuesday, 24 July 2018 at 14:08:26 UTC, Daniel Kozak wrote: I am not C++ expert so this seems wierd to me: #include #include using namespace std; int main(int argc, char **argv) { char c = 0xFF; std::string sD

Re: Comparing D vs C++ (wierd behaviour of C++)

2018-07-24 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 24 July 2018 at 19:24:05 UTC, Ecstatic Coder wrote: On Tuesday, 24 July 2018 at 15:08:35 UTC, Patrick Schluter wrote: On Tuesday, 24 July 2018 at 14:41:17 UTC, Ecstatic Coder wrote: On Tuesday, 24 July 2018 at 14:08:26 UTC, Daniel Kozak wrote: I am not C++ expert so this seems wier

Re: Comparing D vs C++ (wierd behaviour of C++)

2018-07-24 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 24 July 2018 at 19:39:10 UTC, Ecstatic Coder wrote: He gets different results with and without optimization because without optimization the result of the calculation is spilled to the i unsigned int and then reloaded for the print call. This save and reload truncated the value to i

Re: Comparing D vs C++ (wierd behaviour of C++)

2018-07-24 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 24 July 2018 at 20:59:22 UTC, Patrick Schluter wrote: On Tuesday, 24 July 2018 at 19:24:05 UTC, Ecstatic Coder wrote: On Tuesday, 24 July 2018 at 15:08:35 UTC, Patrick Schluter wrote: On Tuesday, 24 July 2018 at 14:41:17 UTC, Ecstatic Coder wrote: On Tuesday, 24 July 2018 at 14:08:

Re: Engine of forum

2018-08-21 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 21 August 2018 at 06:53:18 UTC, Daniel N wrote: On Tuesday, 21 August 2018 at 03:42:21 UTC, Ali wrote: Many of those new comers who ask about the forum software .. they never stick, they dont complain, or question, or try to change for the better, they simply leave I think this

Re: Is @safe still a work-in-progress?

2018-08-22 Thread Patrick Schluter via Digitalmars-d
On Wednesday, 22 August 2018 at 04:49:15 UTC, Mike Franklin wrote: On Wednesday, 22 August 2018 at 04:23:52 UTC, Jonathan M Davis wrote: The reality of the matter is that the DIP system is a formal way to propose language changes in order to convince Walter and Andrei that those changes shoul

Re: This thread on Hacker News terrifies me

2018-09-02 Thread Patrick Schluter via Digitalmars-d
On Sunday, 2 September 2018 at 04:21:44 UTC, Jonathan M Davis wrote: On Saturday, September 1, 2018 9:18:17 PM MDT Nick Sabalausky (Abscissa) via Digitalmars-d wrote: So honestly, I don't find it at all surprising when an application can't handle not being able to write to disk. Ideally, it _

Re: This is why I don't use D.

2018-09-05 Thread Patrick Schluter via Digitalmars-d
On Wednesday, 5 September 2018 at 15:34:14 UTC, Jonathan M Davis wrote: On Wednesday, September 5, 2018 9:28:38 AM MDT H. S. Teoh via Digitalmars-d wrote: On Wed, Sep 05, 2018 at 09:18:24AM -0600, Jonathan M Davis via Digitalmars-d wrote: [...] > 3rd party libraries are usually the real proble

Re: DIP25/DIP1000: My thoughts round 2

2018-09-05 Thread Patrick Schluter via Digitalmars-d
On Wednesday, 5 September 2018 at 01:06:47 UTC, Paul Backus wrote: On Tuesday, 4 September 2018 at 16:36:20 UTC, Nick Treleaven wrote: My syntax for parameters that may get aliased to another parameter is to write the parameter number that may escape it in its scope attribute: On Sunday, 2 Se

Re: This is why I don't use D.

2018-09-06 Thread Patrick Schluter via Digitalmars-d
On Thursday, 6 September 2018 at 12:33:21 UTC, Everlast wrote: On Wednesday, 5 September 2018 at 12:32:33 UTC, Andre Pany wrote: On Wednesday, 5 September 2018 at 06:47:00 UTC, Everlast wrote: [...] You showed as a painful issue in our eco system which we can work on, thank you. You do not

Re: Source changes should include date of change

2018-09-08 Thread Patrick Schluter via Digitalmars-d
On Saturday, 8 September 2018 at 12:36:01 UTC, Paul Backus wrote: On Saturday, 8 September 2018 at 11:29:15 UTC, Josphe Brigmo wrote: Um, I didn't say don't use Git! Your illogic is that you believe that one can have only one or the other when one can have both. Hence, you are excluding a com

Re: Mobile is the new PC and AArch64 is the new x64

2018-09-16 Thread Patrick Schluter via Digitalmars-d
On Saturday, 15 September 2018 at 15:25:55 UTC, Joakim wrote: You've probably heard of the possibly apocryphal story of how Blackberry and Nokia engineers disassembled the first iPhone and dismissed it because it only got a day of battery life, while their devices lasted much longer. They tho

Re: phobo's std.file is completely broke!

2018-09-17 Thread Patrick Schluter via Digitalmars-d
On Monday, 17 September 2018 at 12:37:13 UTC, Temtaime wrote: On Sunday, 16 September 2018 at 22:49:26 UTC, Vladimir Panteleev wrote: To elaborate: On Sunday, 16 September 2018 at 22:40:45 UTC, Vladimir Panteleev wrote: If *YOU* are OK with the consequences of complexity, implement this in YO

Re: Walter's Guide to Translating Code From One Language to Another

2018-09-21 Thread Patrick Schluter via Digitalmars-d
On Friday, 21 September 2018 at 06:24:14 UTC, Peter Alexander wrote: On Friday, 21 September 2018 at 06:00:33 UTC, Walter Bright wrote: I've learned this the hard way, and I've had to learn it several times because I am a slow learner. I've posted this before, and repeat it because bears repeat

Re: Updating D beyond Unicode 2.0

2018-09-24 Thread Patrick Schluter via Digitalmars-d
On Monday, 24 September 2018 at 13:26:14 UTC, Steven Schveighoffer wrote: 2. There are no rules about what *encoding* is acceptable, it's implementation defined. So various compilers have different rules as to what will be accepted in the actual source code. In fact, I read somewhere that not e

Re: OT: Bad translations

2018-09-25 Thread Patrick Schluter via Digitalmars-d
On Wednesday, 26 September 2018 at 02:12:07 UTC, Ali Çehreli wrote: On 09/24/2018 08:17 AM, 0xEAB wrote: > - Non-idiomatic translations of tech terms [2] This is something I had heard from a Digital Research programmer in early 90s: English message was something like "No memory left" and the

Re: Warn on unused imports?

2018-10-05 Thread Patrick Schluter via Digitalmars-d
On Thursday, 4 October 2018 at 18:55:01 UTC, Nick Sabalausky (Abscissa) wrote: On 09/26/2018 06:00 AM, Anonymouse wrote: On Tuesday, 25 September 2018 at 13:03:30 UTC, FeepingCreature wrote: I'm playing with a branch of DMD that would warn on unused imports: Would just like to say that I love

Re: Deep nesting vs early returns

2018-10-05 Thread Patrick Schluter via Digitalmars-d
On Friday, 5 October 2018 at 16:02:49 UTC, Nick Treleaven wrote: On Thursday, 4 October 2018 at 06:43:02 UTC, Gopan wrote: I have seen people enclosing the function logic inside a while(1) merely to stick on to single return at the end. while(1) { ... break; //otherwise return

Re: Deep nesting vs early returns

2018-10-06 Thread Patrick Schluter via Digitalmars-d
On Saturday, 6 October 2018 at 05:36:59 UTC, Paolo Invernizzi wrote: On Friday, 5 October 2018 at 19:04:26 UTC, Nick Sabalausky (Abscissa) wrote: On 10/04/2018 11:40 PM, rikki cattermole wrote: [...] It's not *my* statement about newer/older. If you recall the programming atmosphere around 2

Re: DIP 1011-extern(delegate)--Formal Review

2017-08-12 Thread Patrick Schluter via Digitalmars-d
On Friday, 11 August 2017 at 17:57:30 UTC, Dominikus Dittes Scherkl wrote: On Friday, 11 August 2017 at 10:45:03 UTC, Mike Parker wrote: The first stage of the formal review for DIP 1011 [1], "extern(delegate)", is now underway. I see no problem with this DIP. And even if the usecase is rare,

Re: Quora

2017-08-20 Thread Patrick Schluter via Digitalmars-d
On Sunday, 20 August 2017 at 02:44:13 UTC, Jonathan M Davis wrote: On Saturday, August 19, 2017 15:17:52 Ecstatic Coder via Digitalmars-d wrote: > Its called necro-posting. > I'm surprised that post isn't read-only. Call it like you want, but I ee people putting new answers/comments to years o

Re: Quora

2017-08-20 Thread Patrick Schluter via Digitalmars-d
On Sunday, 20 August 2017 at 08:45:24 UTC, Rico Decho wrote: So, editing and answering old questions is encouraged on stackoverflow and imho it is a good thing, nothing is more annoying than googling for a question and only finding answers in old mailing lists that apply only to a compiler/sys

Re: Note from a donor

2017-10-26 Thread Patrick Schluter via Digitalmars-d
On Thursday, 26 October 2017 at 12:36:40 UTC, jmh530 wrote: On Thursday, 26 October 2017 at 11:32:26 UTC, Andrei Alexandrescu wrote: A wizard-style installation with links to things and a good flow might help a lot here. Is that possible? -- Andrei The DMD installer is already a Wizard on Wi

Re: Note from a donor

2017-10-29 Thread Patrick Schluter via Digitalmars-d
On Sunday, 29 October 2017 at 03:46:35 UTC, codephantom wrote: On Sunday, 29 October 2017 at 02:09:31 UTC, 12345swordy wrote: It seems to me that you have a major case of anti-windows bias here, as I never have any issues on my main windows machine. Actually, it's the very opposite...I'm stron

Re: Required Reading: "How Non-Member Functions Improve Encapsulation"

2017-10-30 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 31 October 2017 at 01:47:39 UTC, Steven Schveighoffer wrote: On 10/30/17 9:44 PM, codephantom wrote: On Monday, 30 October 2017 at 23:03:12 UTC, H. S. Teoh wrote: But in D, UFCS allows obj.func() to work for both member functions and free functions, so if the client code uses the

Re: [OT] Windows dying

2017-11-02 Thread Patrick Schluter via Digitalmars-d
On Thursday, 2 November 2017 at 05:13:42 UTC, H. S. Teoh wrote: On Thu, Nov 02, 2017 at 04:13:39AM +, codephantom via Digitalmars-d wrote: On Wednesday, 1 November 2017 at 18:42:07 UTC, Bo wrote: > /Signed: A pissed off Windows user I think you've summed it all up right there ;-) But serio

Re: [OT] Windows dying

2017-11-02 Thread Patrick Schluter via Digitalmars-d
On Thursday, 2 November 2017 at 06:28:52 UTC, codephantom wrote: But Ken Thompson summed it all up nicely: "You can't trust code that you did not totally create yourself." Even that is wrong. You can trust code you create yourself only if it was reviewed by others as involved as you. I do no

Re: Improve "Improve Contract Syntax" DIP 1009

2017-11-02 Thread Patrick Schluter via Digitalmars-d
On Thursday, 2 November 2017 at 08:58:03 UTC, codephantom wrote: but now we want free floating statements in D? like: -- in(a > 0) in(b >= 0, "b cannot be negative!") out(r; r > 0, "return must be positive") out(; a != 0) Now, I'm new to D (I only disco

Re: What is the FreeBSD situation?

2017-11-05 Thread Patrick Schluter via Digitalmars-d
On Sunday, 5 November 2017 at 09:17:37 UTC, Walter Bright wrote: On 11/4/2017 1:54 AM, Rainer Schuetze wrote: On 04.11.2017 09:30, Walter Bright wrote: On 11/3/2017 5:29 AM, Rainer Schuetze wrote: Note that dmd still runs on Windows XP, though it is not officially supported. You just need to

Re: What is the FreeBSD situation?

2017-11-06 Thread Patrick Schluter via Digitalmars-d
On Sunday, 5 November 2017 at 20:28:38 UTC, Walter Bright wrote: On 11/5/2017 3:13 AM, Patrick Schluter wrote: On Sunday, 5 November 2017 at 09:17:37 UTC, Walter Bright wrote: I run dmd regularly on an XP box, but that just means dmd itself runs on XP. (I converted the front end of DMC++ to D,

Re: [OT] Windows dying

2017-11-07 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 7 November 2017 at 20:44:57 UTC, Jerry wrote: It's amazing how many people are so lazy to download Visual Studio, and some of the stupidest reason for not wanting to download it to boot. It has nothing to do with lazyness. If you're behind a proxy that abomination of a installer o

Re: [OT] mobile rising

2017-11-07 Thread Patrick Schluter via Digitalmars-d
On Wednesday, 8 November 2017 at 01:13:00 UTC, codephantom wrote: On Wednesday, 8 November 2017 at 00:09:51 UTC, Ola Fosheim Grøstad wrote: [...] Redhat have demonstrated that it can be done. GPL is not the obstacle. The obstacle is the desire to control/dominate a market. There, GPL will do

Re: Project Elvis

2017-11-10 Thread Patrick Schluter via Digitalmars-d
On Friday, 10 November 2017 at 19:59:29 UTC, meppl wrote: On Friday, 10 November 2017 at 05:23:53 UTC, Adam Wilson wrote: On 11/6/17 12:20, Michael wrote: I can't quite see why this proposal is such a big deal to people - as has been restated, it's just a quick change in the parser for a sligh

Re: Project Elvis

2017-11-11 Thread Patrick Schluter via Digitalmars-d
On Saturday, 11 November 2017 at 03:49:24 UTC, codephantom wrote: On Saturday, 11 November 2017 at 01:37:01 UTC, 12345swordy wrote: You should take your own advice first, when you insult other people by calling them "Microsoft fanboys". Take your snark somewhere else. and btw. if you had gone

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-19 Thread Patrick Schluter via Digitalmars-d
On Sunday, 19 November 2017 at 04:19:32 UTC, codephantom wrote: On Sunday, 19 November 2017 at 04:04:04 UTC, Walter Bright wrote: I wish there was a null for int types. At least we sort of have one for char types, 0xFF. And there's that lovely NaN for floating point! Too bad it's woefully under

Re: First Impressions!

2017-11-28 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 28 November 2017 at 04:17:18 UTC, A Guy With an Opinion wrote: On Tuesday, 28 November 2017 at 04:12:14 UTC, ketmar wrote: A Guy With an Opinion wrote: That is true, but I'm still unconvinced that making the person's program likely to error is better than initializing a number to

Re: First Impressions!

2017-11-28 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 28 November 2017 at 04:19:40 UTC, A Guy With an Opinion wrote: On Tuesday, 28 November 2017 at 04:17:18 UTC, A Guy With an Opinion wrote: [...] Also, C and C++ didn't just have undefined behavior, sometimes it has inconsistent behavior. Sometimes int a; is actually set to 0. It's

Re: First Impressions!

2017-11-30 Thread Patrick Schluter via Digitalmars-d
On Thursday, 30 November 2017 at 17:40:08 UTC, Jonathan M Davis wrote: [...] And if you're not dealing with Asian languages, UTF-16 uses up more space than UTF-8. Not even that in most cases. Only if you use unstructured text can it happen that UTF-16 needs less space than UTF-8. In most ca

Re: First Impressions!

2017-11-30 Thread Patrick Schluter via Digitalmars-d
On Thursday, 30 November 2017 at 17:40:08 UTC, Jonathan M Davis wrote: English and thus don't as easily hit the cases where their code is wrong. For better or worse, UTF-16 hides it better than UTF-8, but the problem exists in both. To give just an example of what can go wrong with UTF-16. R

Re: First Impressions!

2017-11-30 Thread Patrick Schluter via Digitalmars-d
On Thursday, 30 November 2017 at 19:37:47 UTC, Steven Schveighoffer wrote: On 11/30/17 1:20 PM, Patrick Schluter wrote: On Thursday, 30 November 2017 at 17:40:08 UTC, Jonathan M Davis wrote: English and thus don't as easily hit the cases where their code is wrong. For better or worse, UTF-16 hi

Re: First Impressions!

2017-12-01 Thread Patrick Schluter via Digitalmars-d
On Friday, 1 December 2017 at 06:07:07 UTC, Patrick Schluter wrote: On Thursday, 30 November 2017 at 19:37:47 UTC, Steven Schveighoffer wrote: On 11/30/17 1:20 PM, Patrick Schluter wrote: [...] iopipe handles this: http://schveiguy.github.io/iopipe/iopipe/textpipe/ensureDecodeable.html I

Re: First Impressions!

2017-12-01 Thread Patrick Schluter via Digitalmars-d
On Friday, 1 December 2017 at 12:21:22 UTC, A Guy With a Question wrote: On Friday, 1 December 2017 at 06:07:07 UTC, Patrick Schluter wrote: On Thursday, 30 November 2017 at 19:37:47 UTC, Steven Schveighoffer wrote: On 11/30/17 1:20 PM, Patrick Schluter wrote: [...] iopipe handles this: htt

Re: First Impressions!

2017-12-02 Thread Patrick Schluter via Digitalmars-d
On Friday, 1 December 2017 at 23:16:45 UTC, H. S. Teoh wrote: On Fri, Dec 01, 2017 at 03:04:44PM -0800, Walter Bright via Digitalmars-d wrote: On 11/30/2017 9:23 AM, Kagamin wrote: > On Tuesday, 28 November 2017 at 03:37:26 UTC, rikki > cattermole wrote: > > Be aware Microsoft is alone in think

Re: First Impressions!

2017-12-02 Thread Patrick Schluter via Digitalmars-d
On Saturday, 2 December 2017 at 10:35:50 UTC, Patrick Schluter wrote: On Friday, 1 December 2017 at 23:16:45 UTC, H. S. Teoh wrote: [...] That's true in theory, in practice it's not that severe as the CJK languages are never isolated and appear embedded in a lot of ASCII. You can read here a

Re: First Impressions!

2017-12-02 Thread Patrick Schluter via Digitalmars-d
On Saturday, 2 December 2017 at 10:20:10 UTC, Walter Bright wrote: On 12/1/2017 8:08 PM, Jonathan M Davis wrote: [...] Yup. I've presented that point of view a couple times on HackerNews, and some Unicode people took umbrage at that. The case they presented fell a little flat. [...] Wher

Re: First Impressions!

2017-12-03 Thread Patrick Schluter via Digitalmars-d
On Saturday, 2 December 2017 at 22:16:09 UTC, Joakim wrote: On Friday, 1 December 2017 at 23:16:45 UTC, H. S. Teoh wrote: On Fri, Dec 01, 2017 at 03:04:44PM -0800, Walter Bright via Digitalmars-d wrote: On 11/30/2017 9:23 AM, Kagamin wrote: > On Tuesday, 28 November 2017 at 03:37:26 UTC, rikki

Re: Adding Markdown to Ddoc

2017-12-08 Thread Patrick Schluter via Digitalmars-d
On Friday, 8 December 2017 at 15:53:41 UTC, Steven Schveighoffer wrote: On 12/8/17 7:42 AM, WebFreak001 wrote: On Friday, 8 December 2017 at 11:10:16 UTC, Seb wrote: On Friday, 8 December 2017 at 10:13:28 UTC, Walter Bright wrote: On 12/8/2017 1:48 AM, Jacob Carlborg wrote: * Using emoji Th

Re: Adding Markdown to Ddoc

2017-12-08 Thread Patrick Schluter via Digitalmars-d
On Friday, 8 December 2017 at 18:11:56 UTC, Steven Schveighoffer wrote: On 12/8/17 12:09 PM, Patrick Schluter wrote: On Friday, 8 December 2017 at 15:53:41 UTC, Steven Schveighoffer wrote: On 12/8/17 7:42 AM, WebFreak001 wrote: On Friday, 8 December 2017 at 11:10:16 UTC, Seb wrote: [...] pl

Re: Adding Markdown to Ddoc

2017-12-11 Thread Patrick Schluter via Digitalmars-d
On Monday, 11 December 2017 at 15:45:07 UTC, Guillaume Piolat wrote: On Monday, 11 December 2017 at 14:22:37 UTC, Jakob Bornecrantz wrote: And to add more, CommonMark on the other hand has a full spec written and several test that covers the difficult to get right parts of Markdown/CommonMark

Re: D downloads

2017-12-24 Thread Patrick Schluter via Digitalmars-d
On Saturday, 23 December 2017 at 21:04:52 UTC, Laeeth Isharc wrote: http://erdani.com/d/downloads.daily.png Bad data, one off spike, or something else? OOps, hadn't seen this thread. Sorry.

What happened in december that the downloads exploded?

2017-12-24 Thread Patrick Schluter via Digitalmars-d
What happenned in december that the downloads literaly exploded http://erdani.com/d/downloads.daily.png An increase by nearly 4x the normal increase is surprizing to say the least.

Re: Maybe D is right about GC after all !

2017-12-24 Thread Patrick Schluter via Digitalmars-d
On Sunday, 24 December 2017 at 15:00:09 UTC, Dylan Graham wrote: On Saturday, 23 December 2017 at 08:15:04 UTC, Dan Partelly wrote: On Saturday, 23 December 2017 at 01:12:53 UTC, Dylan Graham wrote: language it should be, not the language some C++ programmer wants but is never going to use anyw

Re: Maybe D is right about GC after all !

2017-12-25 Thread Patrick Schluter via Digitalmars-d
On Sunday, 24 December 2017 at 22:21:28 UTC, Tony wrote: On Sunday, 24 December 2017 at 22:04:00 UTC, Dan Partelly wrote: 1995. A dark year. Two of the crappiest language ever devised by man arrived. Both gained traction. Java, through marketing. PhP though tribalism. What makes Java a "cr

Re: What do you want to see for a mature DLang?

2017-12-30 Thread Patrick Schluter via Digitalmars-d
On Friday, 29 December 2017 at 22:05:31 UTC, I Love Stuffing wrote: On Friday, 29 December 2017 at 09:46:05 UTC, JN wrote: AFAIK Rust doesn't have templates, but generics. Generics usually have much cleaner error messages because they are mostly used for generic functions and classes, meanwhile

Re: What don't you switch to GitHub issues

2018-01-02 Thread Patrick Schluter via Digitalmars-d
On Monday, 1 January 2018 at 18:32:37 UTC, Pjotr Prins wrote: On Monday, 1 January 2018 at 02:02:03 UTC, rjframe wrote: That's probably not the best method of effecting change. It killed off the discussion nicely, indeed. I am just going to share my thoughts a little. Github, in my opinion,

Re: Some Observations on the D Development Process

2018-01-04 Thread Patrick Schluter via Digitalmars-d
On Friday, 5 January 2018 at 04:14:57 UTC, Steven Schveighoffer wrote: On 1/4/18 10:28 PM, Walter Bright wrote: (Yes, I got the flu shot, and the durned thing did not work.) I had a flu shot once in my adult life. Never been sicker. Won't ever get it again. The only people I ever saw with a

Re: __traits(documentation, X)

2018-01-18 Thread Patrick Schluter via Digitalmars-d
On Thursday, 18 January 2018 at 16:48:45 UTC, Adam D. Ruppe wrote: On Thursday, 18 January 2018 at 16:41:04 UTC, Steven Schveighoffer wrote: Furthermore, I'd ask, if it's possible today, why do we need a __traits to do it? It is an enormous pain to do it now well, sort of, actually, the w

Re: __traits(documentation, X)

2018-01-18 Thread Patrick Schluter via Digitalmars-d
On Thursday, 18 January 2018 at 18:31:28 UTC, Steven Schveighoffer wrote: On 1/18/18 11:48 AM, Adam D. Ruppe wrote: [...] This is how I'd imagine doing something like this. I don't see it being a huge pain, just an extra build step. [...] Did you mean not really harmful? But in any case

Re: Inline code in the docs - the correct way OT: lisp

2018-02-05 Thread Patrick Schluter via Digitalmars-d
On Monday, 5 February 2018 at 14:50:38 UTC, Steven Schveighoffer wrote: On 2/5/18 1:27 AM, H. S. Teoh wrote: On Sun, Feb 04, 2018 at 02:34:31PM -0500, Steven Schveighoffer via Digitalmars-d wrote: [...] I don't have a hard time with braces. It tends to be worse with parentheses. Generally the

Re: Which language futures make D overcompicated?

2018-02-09 Thread Patrick Schluter via Digitalmars-d
On Friday, 9 February 2018 at 18:44:08 UTC, Meta wrote: On Friday, 9 February 2018 at 18:21:55 UTC, Bo wrote: * scope() .. just call it "defer" just as every other language now does. It only confuses people who come from other languages. Its now almost a standard. By using scope people have ha

Re: proposal: heredoc comments to allow `+/` in comments, eg from urls or documented unittests

2018-02-12 Thread Patrick Schluter via Digitalmars-d
On Monday, 12 February 2018 at 03:17:20 UTC, Walter Bright wrote: On 2/11/2018 6:26 PM, Elie Morisse wrote: Wow, you converted DMC++'s front-end to D? Yes, it's just frustrating for me to work on C++ code anymore. :-) To chime in on that, Calypso i.e the LDC+Clang equivalent of what you de

Re: Annotation of functions

2018-02-21 Thread Patrick Schluter via Digitalmars-d
On Wednesday, 21 February 2018 at 01:53:42 UTC, psychoticRabbit wrote: On Tuesday, 20 February 2018 at 13:40:16 UTC, bauss wrote: I should probably have put an example usage to show how it's used: This makes we want to go back and program in C again ;-) (but thanks for taking the time

Re: How do you get comfortable with Dlang.org's Forum?

2018-02-24 Thread Patrick Schluter via Digitalmars-d
On Friday, 23 February 2018 at 22:01:44 UTC, bachmeier wrote: On Friday, 23 February 2018 at 17:56:29 UTC, Biocyberman wrote: Speaking on behalf of myself, after additional inputs from many excellent and respectful users in this 'forum'. I can say that, on the scale of 1 (least geeky) to 10 (mo

Re: How do you get comfortable with Dlang.org's Forum?

2018-02-24 Thread Patrick Schluter via Digitalmars-d
On Saturday, 24 February 2018 at 04:41:44 UTC, H. S. Teoh wrote: On Sat, Feb 24, 2018 at 04:18:29AM +, MattCoder via Digitalmars-d wrote: On Friday, 23 February 2018 at 13:47:16 UTC, biocyberman wrote: > 1. No post editing... You should be grateful for this, because I hate systems like: Fo

  1   2   3   >