Re: auto*

2017-07-06 Thread Patrick Schluter via Digitalmars-d
On Thursday, 6 July 2017 at 20:24:24 UTC, FoxyBrown wrote: On Thursday, 6 July 2017 at 18:11:13 UTC, H. S. Teoh wrote: On Thu, Jul 06, 2017 at 06:10:57PM +, FoxyBrown via Digitalmars-d wrote: Create an auto pointer, handy in some cases and fits in the language as a natural generalization.

Re: {OT} Youtube Video: newCTFE: Starting to write the x86 JIT

2017-04-25 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 25 April 2017 at 09:09:00 UTC, Ola Fosheim Grøstad wrote: On Monday, 24 April 2017 at 17:48:50 UTC, Stefan Koch wrote: [...] Oh, ok. AFAIK The decoding of indexing modes into micro-ops (the real instructions used inside the CPU, not the actual op-codes) has no effect on the

Re: Fantastic exchange from DConf

2017-05-14 Thread Patrick Schluter via Digitalmars-d
What does that snippet do ? What should it do? int caca(void) { for(int i=0x; i!=0x8000; i++) printf("coucou"); }

Re: Thoughts on some code breakage with 2.074

2017-05-11 Thread Patrick Schluter via Digitalmars-d
On Wednesday, 10 May 2017 at 19:06:40 UTC, Ali Çehreli wrote: On 05/10/2017 11:49 AM, Jonathan M Davis via Digitalmars-d wrote: > On Wednesday, May 10, 2017 05:05:59 Ali Çehreli via Digitalmars-d wrote: >> On 05/09/2017 10:34 AM, H. S. Teoh via Digitalmars-d wrote: >> > After upgrading the

Re: Fantastic exchange from DConf

2017-05-09 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 9 May 2017 at 14:13:31 UTC, Walter Bright wrote: On 5/8/2017 1:55 PM, John Carter wrote: On Saturday, 6 May 2017 at 06:26:29 UTC, Joakim wrote: Walter: I believe memory safety will kill C. C/C++ has been granted an extension of life by the likes of valgrind and purify and

Re: Fantastic exchange from DConf

2017-05-10 Thread Patrick Schluter via Digitalmars-d
On Wednesday, 10 May 2017 at 06:28:31 UTC, H. S. Teoh wrote: On Tue, May 09, 2017 at 09:19:08PM -0400, Nick Sabalausky [...] Perhaps I'm just being cynical, but my current unfounded hypothesis is that the majority of C/C++ programmers ... Just a nitpick, could we also please stop conflating

Re: Fantastic exchange from DConf

2017-05-10 Thread Patrick Schluter via Digitalmars-d
On Wednesday, 10 May 2017 at 11:16:57 UTC, Atila Neves wrote: [...] The likelihood of a randomly picked C/C++ programmer not even knowing what a profiler is, much less having used one, is extremely high in my experience. I worked with a lot of embedded C programmers with several years of

Re: Jonathan Blow's presentation

2017-05-09 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 9 May 2017 at 02:13:19 UTC, Nick Sabalausky (Abscissa) wrote: On 05/08/2017 03:28 PM, Jack Stouffer wrote: Uncompressed? Seriously? I assume that really means FLAC or something rather than truly uncompressed, but even still...sounds more like a bullet-list

Re: Thoughts on some code breakage with 2.074

2017-05-09 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 9 May 2017 at 17:34:48 UTC, H. S. Teoh wrote: On Tue, May 09, 2017 at 02:13:34PM +0200, Adam Wilson via Digitalmars-d wrote: > [...] [...] [...] [...] I don't represent any company, but I have to also say that I *appreciate* breaking changes that reveal latent bugs in my code.

Re: Fantastic exchange from DConf

2017-05-09 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 9 May 2017 at 06:15:12 UTC, H. S. Teoh wrote: int my_func(mytype_t *input, outbuf_t *output_buf, char *buffer, int size) { /* Typical lazy way of null-checking (that will blow up * later) */

Re: Jonathan Blow's presentation

2017-05-09 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 9 May 2017 at 08:24:40 UTC, Nick Sabalausky (Abscissa) wrote: On 05/09/2017 02:10 AM, Patrick Schluter wrote: On Tuesday, 9 May 2017 at 02:13:19 UTC, Nick Sabalausky (Abscissa) wrote: On 05/08/2017 03:28 PM, Jack Stouffer wrote: Uncompressed? Seriously? I assume that really means

Re: Fantastic exchange from DConf

2017-05-09 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 9 May 2017 at 06:15:12 UTC, H. S. Teoh wrote: On Mon, May 08, 2017 at 06:33:08PM +, Jerry via Digitalmars-d wrote: strncpy(buf, src, sizeof(buf)); Quick, without looking: what's wrong with the above line of code? Not so obvious, huh? The problem is that strncpy

Re: Fantastic exchange from DConf

2017-05-09 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 9 May 2017 at 16:55:54 UTC, H. S. Teoh wrote: On Tue, May 09, 2017 at 08:18:09AM +, Patrick Schluter via [...] Ouch. Haha, even I forgot about this particularly lovely aspect of C. Hooray, freely call functions without declaring them, and "obviously" they return int! Why not?

Re: Fantastic exchange from DConf

2017-05-18 Thread Patrick Schluter via Digitalmars-d
On Thursday, 18 May 2017 at 06:36:55 UTC, Paulo Pinto wrote: On Thursday, 18 May 2017 at 05:07:38 UTC, Patrick Schluter wrote: On Thursday, 18 May 2017 at 00:58:31 UTC, Steven Schveighoffer wrote: On 5/17/17 8:27 PM, H. S. Teoh via Digitalmars-d wrote: [...] What will cause a shift is a

Re: Fantastic exchange from DConf

2017-05-17 Thread Patrick Schluter via Digitalmars-d
On Thursday, 18 May 2017 at 00:58:31 UTC, Steven Schveighoffer wrote: On 5/17/17 8:27 PM, H. S. Teoh via Digitalmars-d wrote: On Wed, May 17, 2017 at 04:16:59PM -0700, Walter Bright via Digitalmars-d wrote: On 5/17/2017 1:46 PM, H. S. Teoh via Digitalmars-d wrote: [...] It may not be the

Re: DIP 1003 Formal Review

2017-05-17 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 16 May 2017 at 19:25:25 UTC, Steven Schveighoffer wrote: 1) Consistency with functions without contracts. This only applies to the "naked" version which has ugly }{ in it. The other options people are asking about are replacing body with a keyword, which I think you agree would

Re: D is really cool

2017-05-13 Thread Patrick Schluter via Digitalmars-d
On Saturday, 13 May 2017 at 11:05:26 UTC, bachmeier wrote: On Saturday, 13 May 2017 at 06:47:54 UTC, nkm1 wrote: Atilla's library... but, as someone on Reddit said, at the moment that is rather "unergonomic". I'm sure that will get better over time, though. At least I don't see why not. Most

Re: Fantastic exchange from DConf

2017-05-14 Thread Patrick Schluter via Digitalmars-d
On Sunday, 14 May 2017 at 00:05:56 UTC, Dibyendu Majumdar wrote: On Saturday, 6 May 2017 at 06:26:29 UTC, Joakim wrote: Walter: I believe memory safety will kill C. Hi, I think that comparing languages like D to C is not appropriate. C is a high level assembler and has different design

Re: dlang website design

2017-06-23 Thread Patrick Schluter via Digitalmars-d
On Friday, 23 June 2017 at 13:43:00 UTC, ag0aep6g wrote: On 06/23/2017 08:49 AM, Ecstatic Coder wrote: "Systems programming" may scare users away who think they're not good enough for that kind of programming. True. "General-purpose programming" is a better fit, in my opinion. In mine

Re: DIP 1009--Improve Contract Usability--Preliminary Review Round 1

2017-06-23 Thread Patrick Schluter via Digitalmars-d
On Thursday, 22 June 2017 at 22:12:57 UTC, MysticZach wrote: On Thursday, 22 June 2017 at 21:56:29 UTC, Timon Gehr wrote: On 22.06.2017 23:51, MysticZach wrote: On Thursday, 22 June 2017 at 21:41:55 UTC, MysticZach wrote: The whole double parentheses is a bit ugly to me. Is there any problem

Re: D Milestones

2017-06-26 Thread Patrick Schluter via Digitalmars-d
On Monday, 26 June 2017 at 12:58:00 UTC, Andrea Fontana wrote: On Monday, 26 June 2017 at 10:14:08 UTC, Martin Tschierschke wrote: I think it would be good for all which want to invest their time in learning D to know more about the history and probably the future of D. D frontend written in

comp.lang.c thread about D

2017-06-20 Thread Patrick Schluter via Digitalmars-d
Funny. Someone replied to a post from 1988 concerning the D language. The original thread (not read yet) from 1988 even has messages from Walter. https://groups.google.com/forum/#!topic/comp.lang.c/y0uGj6tHe2E%5B201-225%5D original thread

Re: What is your favorite D feature? [Call for snippets]

2017-06-22 Thread Patrick Schluter via Digitalmars-d
On Thursday, 22 June 2017 at 07:00:17 UTC, Seb wrote: Thanks a lot, but I was looking for small snippets (< 10 LoC) than could be used to show the awesomeness of D at the roulette enum E {IN = -1, V1, V2, V3, X1 } mixin({ string code = "enum EBIT : ulong { "~

Re: Non-x86 targets for DMD

2017-05-25 Thread Patrick Schluter via Digitalmars-d
On Thursday, 25 May 2017 at 21:15:57 UTC, Patrick Schluter wrote: On Thursday, 25 May 2017 at 20:47:42 UTC, solidstate1991 wrote: On Monday, 22 May 2017 at 14:49:46 UTC, Stefan Koch wrote: Conditional execution is not in the later models of ARM, I believe. Also does not really provide

Re: Non-x86 targets for DMD

2017-05-25 Thread Patrick Schluter via Digitalmars-d
On Thursday, 25 May 2017 at 20:47:42 UTC, solidstate1991 wrote: On Monday, 22 May 2017 at 14:49:46 UTC, Stefan Koch wrote: Conditional execution is not in the later models of ARM, I believe. Also does not really provide advantages over conditional jumps, except in rare circumstances. That

Re: C and memory safety comments by me

2017-05-19 Thread Patrick Schluter via Digitalmars-d
On Friday, 19 May 2017 at 13:45:04 UTC, Steven Schveighoffer wrote: On 5/19/17 9:35 AM, Tobias Mueller wrote: They do however say that the actual knowledge about Rust in the D community seems to be rather small, compared to the amount of criticism against it. And TBQH I have to agree. To

Re: std.csv Performance Review

2017-06-04 Thread Patrick Schluter via Digitalmars-d
On Sunday, 4 June 2017 at 06:15:24 UTC, H. S. Teoh wrote: On Sun, Jun 04, 2017 at 05:41:10AM +, Jesse Phillips via (Note that this is much less of a limitation than it seems; for example you could use std.mmfile to memory-map the file into your address space so that it doesn't actually

Re: std.csv Performance Review

2017-06-04 Thread Patrick Schluter via Digitalmars-d
On Sunday, 4 June 2017 at 06:54:46 UTC, Patrick Schluter wrote: On Sunday, 4 June 2017 at 06:15:24 UTC, H. S. Teoh wrote: On Sun, Jun 04, 2017 at 05:41:10AM +, Jesse Phillips via (Note that this is much less of a limitation than it seems; for example you could use std.mmfile to memory-map

Re: atomic operations compared to c++

2017-06-14 Thread Patrick Schluter via Digitalmars-d
On Wednesday, 14 June 2017 at 12:15:49 UTC, Russel Winder wrote: On Wed, 2017-06-14 at 12:28 +0100, rikki cattermole via Digitalmars-d wrote: > [...] Step back a moment. C++ and Java are trying to stop programmers using these features, in favour of using higher level abstractions. In C++

Re: Isn't it about time for D3?

2017-06-13 Thread Patrick Schluter via Digitalmars-d
Before even contemplating a big disrupting language split like proposed by the OP, wouldn't it first more appropriate to write a nice article, DIP, blog, whatever, listing the defects of the current language that can not be solved by progressive evolution? I haven't the impression that the

Re: Warning, ABI breakage from 2.074 to 2.075

2017-05-25 Thread Patrick Schluter via Digitalmars-d
On Thursday, 25 May 2017 at 14:36:43 UTC, Jonathan M Davis wrote: On Thursday, May 25, 2017 13:23:57 Joakim via Digitalmars-d wrote: On Thursday, 25 May 2017 at 10:42:44 UTC, Basile B. wrote: > Static libraries that are > - compiled with dmd 2.074 (maybe previous versions too) > - call format()

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

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

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.

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

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.

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

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

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

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

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

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

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

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

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

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

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

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

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: 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

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: [...]

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

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:

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. [...]

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

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: 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

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

2017-10-31 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: 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

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

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

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

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

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

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

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

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

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

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":

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

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

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,

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

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: 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.

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

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

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

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

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

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

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

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

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:

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 18:46:50 UTC, Steven Schveighoffer wrote: On 2/24/18 7:00 AM, Patrick Schluter wrote: On Saturday, 24 February 2018 at 04:41:44 UTC, H. S. Teoh wrote: [...] Last week I saw a video showing how a forum was shutdown because it was alledgedly full of racists.

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

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: 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

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: 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

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

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

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

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

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 =

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: 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

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

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

<    1   2   3   4   5   >