Re: Ali's talk C++Now 2017: Competitive Advantage with D on Reddit!

2017-06-08 Thread Stanislav Blinov via Digitalmars-d-announce

On Friday, 9 June 2017 at 05:07:37 UTC, Ali Çehreli wrote:

On 06/08/2017 01:39 AM, Walter Bright wrote:

https://www.reddit.com/r/programming/comments/6fz3yh/cnow_2017_competitive_advantage_with_d/



Can someone verify and make corrections to my response to 
LordJebbs please:



https://www.reddit.com/r/programming/comments/6fz3yh/cnow_2017_competitive_advantage_with_d/dinumey/

Thank you,
Ali


Indeed, there is no special thread.

I'd say for the more relaxed reddit audience it can be put like 
this: the GC isn't "running" at all. Not persistently, not at all 
times, not in any special thread. It is not actively scanning 
anything. Any allocation on GC heap made by *any* thread *may* 
cause a collection, which is performed there and then in the same 
thread that triggered said allocation, and is observed as part of 
that allocation. All registered threads except the one that 
triggered the allocation (and thus, collection) are paused for 
scanning and resumed afterwards. Threads not registered with the 
runtime or those that were explicitly detached from the runtime 
are expected to not hold any pointers to the GC heap, and are 
neither paused nor scanned.


Re: Ali's talk C++Now 2017: Competitive Advantage with D on Reddit!

2017-06-08 Thread Ali Çehreli via Digitalmars-d-announce

On 06/08/2017 01:39 AM, Walter Bright wrote:

https://www.reddit.com/r/programming/comments/6fz3yh/cnow_2017_competitive_advantage_with_d/



Can someone verify and make corrections to my response to LordJebbs please:


https://www.reddit.com/r/programming/comments/6fz3yh/cnow_2017_competitive_advantage_with_d/dinumey/

Thank you,
Ali



Re: Compile-Time Sort in D

2017-06-08 Thread Stefan Koch via Digitalmars-d-announce

On Friday, 9 June 2017 at 01:34:14 UTC, Mike Parker wrote:

On Thursday, 8 June 2017 at 19:07:50 UTC, cym13 wrote:



Seeing that the one and only D example in the nim article is a 
broken one (using static instead of enum or static immutable 
for 'b') we should have started with a correct example before 
showing the broken one... Good to know for next time.


static variables are initialized with compile-time values. They 
don't need be immutable for that.


they need immutable if you want to use them again at compile-time.
Therefore it is a good habit to get into.


Re: Compile-Time Sort in D

2017-06-08 Thread Mike Parker via Digitalmars-d-announce

On Thursday, 8 June 2017 at 19:07:50 UTC, cym13 wrote:



Seeing that the one and only D example in the nim article is a 
broken one (using static instead of enum or static immutable 
for 'b') we should have started with a correct example before 
showing the broken one... Good to know for next time.


static variables are initialized with compile-time values. They 
don't need be immutable for that.


mysql-native v1.1.0 - small bugfix update

2017-06-08 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-announce
mysql-native is a native D client driver for MySQL/MariaDB. It works 
with or without Vibe.d.


Small bugfix update:

- Fixed: #99: Update dub.sdl to allow vibe-d 0.8.* releases.

- Fixed: #111: NEWDECIMAL type returns the wrong value. Since this type 
is intended as arbitrary precision, the server itself sends it as a 
string. In order to avoid unexpected loss of precision, mysql-native 
does not attempt to convert the string to a floating-point type. If 
conversion to floating point is required, users can simply pass the 
string to Phobos's to!real.





Vittorio Romeo comments on his D impressions at C++Now 2017

2017-06-08 Thread Ali Çehreli via Digitalmars-d-announce
Vittorio is a new friend who I met at C++Now 2017. He is also the author 
of a DIP on "Value closures":


  https://github.com/SuperV1234/DIPs/blob/master/DIPs/DIP.md

I'm happy that he talks favorably of D during the following chat (you 
should continue watching him till the end until he gives the microphone 
away (not when he first attempts to give it away)):


  https://youtu.be/QsYuEsZVy3I?t=994

Some more here:

  https://youtu.be/QsYuEsZVy3I?t=2209

Some of the other participants talk about appreciating the "other 
language" keynotes as well.


Ali


Re: Ali's talk C++Now 2017: Competitive Advantage with D on Reddit!

2017-06-08 Thread Andrei Alexandrescu via Digitalmars-d-announce

On 6/8/17 5:03 PM, Wulfklaue wrote:

On Thursday, 8 June 2017 at 20:38:33 UTC, Ali Çehreli wrote:
That link doesn't work for me. Besides, I've heard that it's better 
not to click through a link as HN either rates it lower or flags it as 
spam.


Not sure though, I'm just contributing to cargo cult... :)

Ali


Removed the old one and add new one with the full youtube link:

https://news.ycombinator.com/item?id=14517183


Posting direct HN links in any forum is a sure way to have the entry 
classified as spam (HN uses an algorithm that flags as spam many 
accesses that do not have their own site as referrer). -- Andrei


Re: Ali's talk C++Now 2017: Competitive Advantage with D on Reddit!

2017-06-08 Thread Ali Çehreli via Digitalmars-d-announce

On 06/08/2017 02:03 PM, Wulfklaue wrote:


Removed the old one and add new one with the full youtube link:


That worked. Thanks. I recommend others not to click on the link but 
search for "competitive advantage with d" on the main page instead:


  https://news.ycombinator.com/news

Ali



Re: Ali's talk C++Now 2017: Competitive Advantage with D on Reddit!

2017-06-08 Thread Wulfklaue via Digitalmars-d-announce

On Thursday, 8 June 2017 at 20:38:33 UTC, Ali Çehreli wrote:
That link doesn't work for me. Besides, I've heard that it's 
better not to click through a link as HN either rates it lower 
or flags it as spam.


Not sure though, I'm just contributing to cargo cult... :)

Ali


Removed the old one and add new one with the full youtube link:

https://news.ycombinator.com/item?id=14517183


Re: Ali's talk C++Now 2017: Competitive Advantage with D on Reddit!

2017-06-08 Thread Wulfklaue via Digitalmars-d-announce

On Thursday, 8 June 2017 at 20:38:33 UTC, Ali Çehreli wrote:

On 06/08/2017 01:29 PM, Wulfklaue wrote:
That link doesn't work for me. Besides, I've heard that it's 
better not to click through a link as HN either rates it lower 
or flags it as spam.


Not sure though, I'm just contributing to cargo cult... :)

Ali


Strange because its the same link that was used in the reddit 
topic. Its just Belgium Youtube link ( owned by Google in the 
whois, so fairly sure its official :) ).


Re: Ali's talk C++Now 2017: Competitive Advantage with D on Reddit!

2017-06-08 Thread Ali Çehreli via Digitalmars-d-announce

On 06/08/2017 01:29 PM, Wulfklaue wrote:

On Thursday, 8 June 2017 at 08:39:58 UTC, Walter Bright wrote:

https://www.reddit.com/r/programming/comments/6fz3yh/cnow_2017_competitive_advantage_with_d/



Added to Hacker News ... https://news.ycombinator.com/item?id=14516927


That link doesn't work for me. Besides, I've heard that it's better not 
to click through a link as HN either rates it lower or flags it as spam.


Not sure though, I'm just contributing to cargo cult... :)

Ali



Re: Ali's talk C++Now 2017: Competitive Advantage with D on Reddit!

2017-06-08 Thread Wulfklaue via Digitalmars-d-announce

On Thursday, 8 June 2017 at 08:39:58 UTC, Walter Bright wrote:

https://www.reddit.com/r/programming/comments/6fz3yh/cnow_2017_competitive_advantage_with_d/


Added to Hacker News ... 
https://news.ycombinator.com/item?id=14516927


Re: Compile-Time Sort in D

2017-06-08 Thread ag0aep6g via Digitalmars-d-announce

On 06/08/2017 09:07 PM, cym13 wrote:
Seeing that the one and only D example in the nim article is a broken 
one (using static instead of enum or static immutable for 'b') we should 
have started with a correct example before showing the broken one... 
Good to know for next time.


Broken? It works just fine.


Re: Compile-Time Sort in D

2017-06-08 Thread cym13 via Digitalmars-d-announce

On Wednesday, 7 June 2017 at 21:47:58 UTC, John Carter wrote:

On Monday, 5 June 2017 at 14:23:34 UTC, Mike Parker wrote:

https://dlang.org/blog/2017/06/05/compile-time-sort-in-d/


Seems like you have inspired people...

http://blog.zdsmith.com/posts/compiletime-sort-in-nim.html


Seeing that the one and only D example in the nim article is a 
broken one (using static instead of enum or static immutable for 
'b') we should have started with a correct example before showing 
the broken one... Good to know for next time.


Ali's talk C++Now 2017: Competitive Advantage with D on Reddit!

2017-06-08 Thread Walter Bright via Digitalmars-d-announce

https://www.reddit.com/r/programming/comments/6fz3yh/cnow_2017_competitive_advantage_with_d/