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
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:
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
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
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
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&
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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 _
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 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.
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
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
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
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,
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
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
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
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
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
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
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
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
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 - 100 of 236 matches
Mail list logo