Re: D's Auto Decoding and You

2016-06-03 Thread tsbockman via Digitalmars-d-announce

On Friday, 3 June 2016 at 06:37:59 UTC, Rory McGuire wrote:

This dpaste shows a couple of issues with combining chars in D.

https://dpaste.dzfl.pl/4b006959c5c0

The compiler actually can't handle a combining character 
literal either. see line 10.


Your paste behaves as expected: the "character" types in D are 
defined as single Unicode code units. By definition, the NFD form 
of "é" is not a single code unit. You would need to use a 
Grapheme or [w|d]string for that.


(Of course, one might reasonably question how useful our built-in 
character types actually are compared to ubyte/ushort/uint.)


Re: [Blog post] Operator overloading for structs in D

2016-06-03 Thread Mike Parker via Digitalmars-d-announce

On Friday, 3 June 2016 at 06:47:40 UTC, Minas Mina wrote:



Also, if you post your own articles, Reddit is likely to put 
you on their auto-ban list :-(

What can I do about this?


Announce the post here and ask someone to post it to reddit for 
you.


Re: D's Auto Decoding and You

2016-06-03 Thread Rory McGuire via Digitalmars-d-announce
On Fri, Jun 3, 2016 at 8:58 AM, tsbockman via Digitalmars-d-announce
 wrote:
> On Friday, 3 June 2016 at 06:37:59 UTC, Rory McGuire wrote:
>>
>> This dpaste shows a couple of issues with combining chars in D.
>>
>> https://dpaste.dzfl.pl/4b006959c5c0
>>
>> The compiler actually can't handle a combining character literal either.
>> see line 10.
>
>
> Your paste behaves as expected: the "character" types in D are defined as
> single Unicode code units. By definition, the NFD form of "é" is not a
> single code unit. You would need to use a Grapheme or [w|d]string for that.
>
> (Of course, one might reasonably question how useful our built-in character
> types actually are compared to ubyte/ushort/uint.)

hmm, perhaps it behaves as documented, however I'm not certain that
its expected :).



Re: Button: A fast, correct, and elegantly simple build system.

2016-06-03 Thread Dicebot via Digitalmars-d-announce

On Wednesday, 1 June 2016 at 04:34:23 UTC, Jason White wrote:
Why is having dependencies so damaging for build systems? Does 
it really matter with a package manager like Dub? If there is 
another thread that answers these questions, please point me to 
it.


Rephrasing one famous advice, "every added tooling dependency in 
an open-source project reduces amount of potential contributors 
by half" :) Basically, one can expect that anyone working with D 
will have dmd/phobos and, hopefully, dub. No matter how cool 
Button is, if it actually needs to be installed in contributor 
system to build a project, it is very unlikely to be widely used.


That issue can be reduced by making Button itself trivially built 
from plain dmd/phobos/dub install and configuring the project to 
bootstrap it if not already present - but that only works if you 
don't also need to install bunch of additional tools like sqlite 
or make.


From that perspective, the best build system you could possibly 
have would look like this:


```
#!/usr/bin/rdmd

import std.build;

// define your build script as D code
```


Re: Beta release vibe.d 0.7.29-beta.2

2016-06-03 Thread Martin Tschierschke via Digitalmars-d-announce

On Thursday, 2 June 2016 at 08:27:03 UTC, Sönke Ludwig wrote:
The release candidate is planned for the 6th, so please take a 
moment to test this release.

[...]

All changes:
https://github.com/rejectedsoftware/vibe.d/blob/master/CHANGELOG.md

DUB package:
http://code.dlang.org/packages/vibe-d/0.7.29-beta.2


After a longer period of using:
  dependency "vibe-d" version="~cache-diet-templates"
branch, I gave it a try and realized a speed increase.
Unfortunately I made no measurements but my impression is Vibe is
becoming still faster and faster.

   Thats great!

When do you think the cache-diet-templates - feature will be 
available

in the master?



Re: D's Auto Decoding and You

2016-06-03 Thread Steven Schveighoffer via Digitalmars-d-announce

On 6/2/16 5:33 PM, Andrei Alexandrescu wrote:

On 6/2/16 5:27 PM, Steven Schveighoffer wrote:

On 6/2/16 5:21 PM, jmh530 wrote:

On Tuesday, 17 May 2016 at 14:06:37 UTC, Jack Stouffer wrote:


If you think there should be any more information included in the
article, please let me know so I can add it.


I was a little confused by something in the main autodecoding thread, so
I read your article again. Unfortunately, I don't think my confusion is
resolved. I was trying one of your examples (full code I used below).
You claim it works, but I keep getting assertion failures. I'm just
running it with rdmd on Windows 7.


import std.algorithm : canFind;

void main()
{
string s = "cassé";

assert(s.canFind!(x => x == 'é'));
}


If that é above is an e followed by a combining character, then you will
get the error. This is because autodecoding does not auto normalize as
well -- the code points have to match exactly.


Indeed. FWIW I just copied OP's code from Thunderbird into Chrome (on
OSX) and it worked: https://dpaste.dzfl.pl/09b9188d87a5

Should I assume some normalization occurred on the way?


I think it depends on what your browser presents. But impossible to tell 
without being on the OP's machine to see what it's actually stored as. 
Thunderbird may have normalized as well!


-Steve


Re: Beta release vibe.d 0.7.29-beta.2

2016-06-03 Thread Sönke Ludwig via Digitalmars-d-announce

Am 03.06.2016 um 11:01 schrieb Martin Tschierschke:

On Thursday, 2 June 2016 at 08:27:03 UTC, Sönke Ludwig wrote:

The release candidate is planned for the 6th, so please take a moment
to test this release.

[...]

All changes:
https://github.com/rejectedsoftware/vibe.d/blob/master/CHANGELOG.md

DUB package:
http://code.dlang.org/packages/vibe-d/0.7.29-beta.2


After a longer period of using:
   dependency "vibe-d" version="~cache-diet-templates"
branch, I gave it a try and realized a speed increase.
Unfortunately I made no measurements but my impression is Vibe is
becoming still faster and faster.

Thats great!

When do you think the cache-diet-templates - feature will be available
in the master?


I should probably merge the branch into master now (so that it gets into 
0.7.30) and keep it optional (-version=VibeCacheDietTemplates) so that 
it can get some broader real-world test coverage. I'll look into that 
ASAP (probably not today any more, though).


Re: Facebook is using D in production starting today

2016-06-03 Thread Steven Schveighoffer via Digitalmars-d-announce

On 6/3/16 2:27 AM, Animesh wrote:

On Friday, 11 October 2013 at 00:36:12 UTC, Andrei Alexandrescu wrote:

Today I committed the first 5112 lines of D code to Facebook's
repository. The project is in heavy daily use at Facebook. Compared to
the original version (written in C++) we've measured massive wins in
all of source code size, build speed, and running speed.

In all likelihood we'll follow up with a blog post describing the
process.


Andrei


Really Cool, I have been using D as a hobby but this is a good point to
feel Dee Over IT.


Note to viewers: the OP is almost 3 years old.

-Steve



Fast Deterministic Selection

2016-06-03 Thread Andrei Alexandrescu via Digitalmars-d-announce
I just put a pre-publication draft of a paper on a new algorithm for the 
selection problem. I'll submit an implementation to D's standard library 
in the near future.


http://arxiv.org/pdf/1606.00484v1.pdf

https://www.reddit.com/r/programming/comments/4mclsd/fast_deterministic_selection_pdf/

https://news.ycombinator.com/newest (as of the time of this message)

https://twitter.com/incomputable/status/738707845953294336

https://www.facebook.com/andrei.alexandrescu/posts/10207502362690711


Andrei


Re: Fast Deterministic Selection

2016-06-03 Thread Stefan Koch via Digitalmars-d-announce

On Friday, 3 June 2016 at 12:27:13 UTC, Andrei Alexandrescu wrote:
I just put a pre-publication draft of a paper on a new 
algorithm for the selection problem. I'll submit an 
implementation to D's standard library in the near future.


http://arxiv.org/pdf/1606.00484v1.pdf

https://www.reddit.com/r/programming/comments/4mclsd/fast_deterministic_selection_pdf/

https://news.ycombinator.com/newest (as of the time of this 
message)


https://twitter.com/incomputable/status/738707845953294336

https://www.facebook.com/andrei.alexandrescu/posts/10207502362690711


Andrei


Thanks.
I am looking forward to a good read.


Re: Beta D 2.071.1-b2

2016-06-03 Thread Jack Stouffer via Digitalmars-d-announce

On Sunday, 29 May 2016 at 21:53:23 UTC, Martin Nowak wrote:

Second beta for the 2.071.1 release.

http://dlang.org/download.html#dmd_beta 
http://dlang.org/changelog/2.071.1.html


Please report any bugs at https://issues.dlang.org

-Martin


Please consider pulling https://github.com/dlang/phobos/pull/4401


Re: Battle-plan for CTFE

2016-06-03 Thread Stefan Koch via Digitalmars-d-announce

On Monday, 9 May 2016 at 16:57:39 UTC, Stefan Koch wrote:


I will post more details as soon as I dive deeper into the code.


Okay I briefly evaluated the current IR dmd uses for backend 
communication, and it seems usable for the purposes of a 
CTFE-Interpreter/JIT.


The Memory-Management issue is mostly orthogonal to CTFE.
But nonetheless very important.



Re: Beta D 2.071.1-b2

2016-06-03 Thread Johan Engelen via Digitalmars-d-announce

On Monday, 30 May 2016 at 09:24:21 UTC, Johan Engelen wrote:

On Sunday, 29 May 2016 at 21:53:23 UTC, Martin Nowak wrote:

Second beta for the 2.071.1 release.

http://dlang.org/download.html#dmd_beta 
http://dlang.org/changelog/2.071.1.html


Please report any bugs at https://issues.dlang.org


I've merged it into LDC, CI testers are running!


Thumbs up!
LDC master is now at 2.071.1-b2, and it can compile Weka's 
codebase fine (one remaining issue, but most likely not frontend 
related).


cheers,
  Johan



The Official D Blog is Live

2016-06-03 Thread Mike Parker via Digitalmars-d-announce
The D Blog was born at DConf this year. With help from Jack 
Stouffer, it is now live at:


http://dlang.org/blog/

The inaugural post is a short list of some of the work Andrei is 
doing with the D Foundation. That's one of the things you can 
expect to see -- updates on what's going on behind the scenes, 
sometimes with more detail than what you see in this first post. 
You will also see posts regarding projects in the D community at 
large (and I am going to scour the web for projects from people 
who don't post here -- I know they're out there) and guest posts 
from certain people I intend to prod into action. I hope it 
becomes a source of useful information for the community and 
beyond.


It may take a short bit for me to get my blog legs back. It's 
been a long time since I've done this on a regular basis. Once I 
find my rhythm, I hope to establish a regular posting pattern.


The theme is not set in stone, so if you have any suggestions 
fire away.


Re: The Official D Blog is Live

2016-06-03 Thread WebFreak001 via Digitalmars-d-announce

On Friday, 3 June 2016 at 19:33:31 UTC, Mike Parker wrote:
The theme is not set in stone, so if you have any suggestions 
fire away.


The font is way too big!


Re: The Official D Blog is Live

2016-06-03 Thread Jack Stouffer via Digitalmars-d-announce

On Friday, 3 June 2016 at 19:33:31 UTC, Mike Parker wrote:
The D Blog was born at DConf this year. With help from Jack 
Stouffer, it is now live at:


http://dlang.org/blog/


IMO we should disable the comment section. Right now we are just 
asking for spam, and I don't think we want to be in the position 
of moderating each of these sections. Plus, all of the D tech 
discussions happen on reddit, HN, or on here, so I don't think we 
will be missing anything.


Re: The Official D Blog is Live

2016-06-03 Thread Rory McGuire via Digitalmars-d-announce
On 03 Jun 2016 22:35, "Jack Stouffer via Digitalmars-d-announce" <
digitalmars-d-announce@puremagic.com> wrote:
>
> On Friday, 3 June 2016 at 19:33:31 UTC, Mike Parker wrote:
>>
>> The D Blog was born at DConf this year. With help from Jack Stouffer, it
is now live at:
>>
>> http://dlang.org/blog/
>
>
> IMO we should disable the comment section. Right now we are just asking
for spam, and I don't think we want to be in the position of moderating
each of these sections. Plus, all of the D tech discussions happen on
reddit, HN, or on here, so I don't think we will be missing anything.

Would be nice if the comment section was an interface to a specific news
group here. Keeping things in one place.


Re: The Official D Blog is Live

2016-06-03 Thread Steven Schveighoffer via Digitalmars-d-announce

On 6/3/16 4:50 PM, Rory McGuire via Digitalmars-d-announce wrote:


On 03 Jun 2016 22:35, "Jack Stouffer via Digitalmars-d-announce"
mailto:digitalmars-d-announce@puremagic.com>> wrote:


On Friday, 3 June 2016 at 19:33:31 UTC, Mike Parker wrote:


The D Blog was born at DConf this year. With help from Jack Stouffer,

it is now live at:


http://dlang.org/blog/



IMO we should disable the comment section. Right now we are just

asking for spam, and I don't think we want to be in the position of
moderating each of these sections. Plus, all of the D tech discussions
happen on reddit, HN, or on here, so I don't think we will be missing
anything.

Would be nice if the comment section was an interface to a specific news
group here. Keeping things in one place.



Yes. That would be cool if posting a blog post could be linked to the 
announcement, and then the comment section was a mini-dfeed instance 
that posted the result to the actual forum.


-Steve


Re: Facebook is using D in production starting today

2016-06-03 Thread Meta via Digitalmars-d-announce
On Friday, 11 October 2013 at 00:36:12 UTC, Andrei Alexandrescu 
wrote:
Today I committed the first 5112 lines of D code to Facebook's 
repository. The project is in heavy daily use at Facebook. 
Compared to the original version (written in C++) we've 
measured massive wins in all of source code size, build speed, 
and running speed.


In all likelihood we'll follow up with a blog post describing 
the process.



Andrei


Since this thread has been brought back to life anyway, does 
anyone know if Facebook is still using D now that Andrei has left?


Re: The Official D Blog is Live

2016-06-03 Thread Mike Parker via Digitalmars-d-announce

On Friday, 3 June 2016 at 19:34:22 UTC, WebFreak001 wrote:

On Friday, 3 June 2016 at 19:33:31 UTC, Mike Parker wrote:
The theme is not set in stone, so if you have any suggestions 
fire away.


The font is way too big!


Jack touched up the theme a bit. Looks better now.


Re: The Official D Blog is Live

2016-06-03 Thread Mike Parker via Digitalmars-d-announce

On Friday, 3 June 2016 at 20:34:53 UTC, Jack Stouffer wrote:


IMO we should disable the comment section. Right now we are 
just asking for spam, and I don't think we want to be in the 
position of moderating each of these sections. Plus, all of the 
D tech discussions happen on reddit, HN, or on here, so I don't 
think we will be missing anything.


The blog will potentially attract people who do not frequent the 
forums. From that perspective, I think we should give comments a 
try. I do anticipate getting a good deal of spam, but in my 
experience, Akismet is pretty effective.


At the moment, I've got it configured to require moderation for 
anyone's first comment, so even if there is a lot of spam it 
won't be visible. If comment moderation becomes too much for me 
to handle, I'll look at other options.





Re: The Official D Blog is Live

2016-06-03 Thread Mike Parker via Digitalmars-d-announce
On Friday, 3 June 2016 at 21:15:46 UTC, Steven Schveighoffer 
wrote:
On 6/3/16 4:50 PM, Rory McGuire via Digitalmars-d-announce 
wrote:




Would be nice if the comment section was an interface to a 
specific news

group here. Keeping things in one place.



Yes. That would be cool if posting a blog post could be linked 
to the announcement, and then the comment section was a 
mini-dfeed instance that posted the result to the actual forum.





If anyone wants to develop a Wordpress plugin for it, I'll give 
it a try. PHP ain't my thing. I'd hate to waste my Akismet 
subscription, though :)




Re: The Official D Blog is Live

2016-06-03 Thread Adam D. Ruppe via Digitalmars-d-announce

On Saturday, 4 June 2016 at 01:17:10 UTC, Mike Parker wrote:
The blog will potentially attract people who do not frequent 
the forums. From that perspective, I think we should give 
comments a try.


I agree, part of the fun of a blog is the comments!


Re: The Official D Blog is Live

2016-06-03 Thread Walter Bright via Digitalmars-d-announce

Pretty dazz! Thanks, Mike!


Re: The Official D Blog is Live

2016-06-03 Thread bachmeier via Digitalmars-d-announce

On Friday, 3 June 2016 at 19:33:31 UTC, Mike Parker wrote:
The D Blog was born at DConf this year. With help from Jack 
Stouffer, it is now live at:


http://dlang.org/blog/


This is a big deal for marketing the language. Thanks for doing 
it.


With respect to blog comments, this article talks about the 
experiences of bloggers that turned comments off and then back on:

http://www.socialmediaexaminer.com/blog-comments-revisited-why-major-bloggers-are-turning-comments-back-on-michael-hyatt-brian-clark/

"Once comments returned, many people told him they just stopped 
dropping by the blog, because it didn’t feel hospitable. It felt 
cold, sterile, and uninviting. Since comments have been back, 
traffic is growing again, and is up 20% over the same period last 
year. Michael says comments have created some vitality on the 
blog and it feels like somebody is home."


And with any luck, bikeshedding discussions will move to the 
blog, leaving General for its intended purpose.