Re: Release D 2.076.0

2017-09-01 Thread Yuxuan Shui via Digitalmars-d-announce

On Friday, 1 September 2017 at 14:03:26 UTC, Martin Nowak wrote:

Glad to announce D 2.076.0.

This release comes with static foreach, many -betterC 
enhancements, various phobos additions, an -mcpu=avx2 switch, 
and lots of bugfixes.


Thanks to everyone involved in this .

http://dlang.org/download.html 
http://dlang.org/changelog/2.076.0.html


- -Martin


" -betterC enhancements " is listed twice in the changelog


Re: Release D 2.076.0

2017-09-01 Thread Mike Parker via Digitalmars-d-announce

On Friday, 1 September 2017 at 17:49:59 UTC, Ali Çehreli wrote:

On 09/01/2017 09:42 AM, Ali Çehreli wrote:

> One more correction: It says "to the conv function template"
but the
> code uses to!uint.

Mike doesn't make it easy: How about changing "comv" to "conv" 
in the "correction". :o)


Ali


Double thanks, Ali!


Re: D as a Better C

2017-09-01 Thread Azi Hassan via Digitalmars-d-announce

On Wednesday, 30 August 2017 at 22:48:45 UTC, Adam D. Ruppe wrote:

On Wednesday, 30 August 2017 at 22:22:23 UTC, Azi Hassan wrote:

extern(C) int main(int argc, char*[] argv, char*[] env)


That's a D array of pointers. A D array is larger than a C 
"array" argument, thus you're skipping past it.


The correct declaration is (int argc, char** argv, char** env).

(I'd argue that is the correct way to write it in C too, that's 
how I always do and it works there. But I just loathe C's 
arrays anyway.)


Brilliant, thanks ! I just re-read the blog post and it uses the 
char** syntax too, but I didn't pay attention to it.


Re: Release D 2.076.0

2017-09-01 Thread jmh530 via Digitalmars-d-announce

On Friday, 1 September 2017 at 21:29:08 UTC, Ali wrote:


to be clear
- Implement DIP 1010 - Static foreach
is mentioned twice in the changelog, as points 1 and 6


BetterC is also on there twice.


Re: Release D 2.076.0

2017-09-01 Thread Ali via Digitalmars-d-announce

On Friday, 1 September 2017 at 17:33:26 UTC, Ali wrote:

On Friday, 1 September 2017 at 14:03:26 UTC, Martin Nowak wrote:

http://dlang.org/changelog/2.076.0.html

- -Martin


static foreach is so nice, it is implemented twice :)


to be clear
- Implement DIP 1010 - Static foreach
is mentioned twice in the changelog, as points 1 and 6


Re: Released vibe.d 0.8.1

2017-09-01 Thread WebFreak001 via Digitalmars-d-announce

On Thursday, 31 August 2017 at 11:56:53 UTC, aberba wrote:
On Wednesday, 30 August 2017 at 16:53:40 UTC, Matthias Klumpp 
wrote:

[...]


Even with mysql (using mysql-native), the absent of something 
like


struct User {
@optional int userName; //its ok if row doesn't have this 
column

@as("phone_number") string phoneNumber;

}

User[] users;

foreach(row; ...)
{
users ~= row.toStruct!User;
}



MongoDB has facilities for these stuff automatically thats why 
using it seem convenient and speeds up stuff. Mysql-lited does 
this thing but the package does allow much control nor give 
much query info like mysql-native.



I've heard good news about postgresql however, its driver could 
still benefit from this kind of abstraction using CTFE and UDAs.


try my library I released ages ago for this 
https://github.com/WebFreak001/MongoSchemaD


Re: Release D 2.076.0

2017-09-01 Thread Ali Çehreli via Digitalmars-d-announce

On 09/01/2017 09:42 AM, Ali Çehreli wrote:

> One more correction: It says "to the conv function template" but the
> code uses to!uint.

Mike doesn't make it easy: How about changing "comv" to "conv" in the 
"correction". :o)


Ali



Re: Release D 2.076.0

2017-09-01 Thread Ali via Digitalmars-d-announce

On Friday, 1 September 2017 at 14:03:26 UTC, Martin Nowak wrote:

Glad to announce D 2.076.0.

This release comes with static foreach, many -betterC 
enhancements, various phobos additions, an -mcpu=avx2 switch, 
and lots of bugfixes.


Thanks to everyone involved in this .

http://dlang.org/download.html 
http://dlang.org/changelog/2.076.0.html


- -Martin


static foreach is so nice, it is implemented twice :)


Re: Release D 2.076.0

2017-09-01 Thread Ali Çehreli via Digitalmars-d-announce

On 09/01/2017 09:34 AM, Mike Parker wrote:


Good catch. Thanks!


Great piece Mike!

One more correction: It says "to the conv function template" but the 
code uses to!uint.


Ali



Re: Release D 2.076.0

2017-09-01 Thread Mike Parker via Digitalmars-d-announce

On Friday, 1 September 2017 at 16:16:03 UTC, Joakim wrote:



Nice writeup of the major features of this release, think it 
really helps.


Typo in blog post - dramtically


Good catch. Thanks!



Also, changelog still lists this as a beta, to be released.


There was an issue with rebuilding the site, but a fix is 
imminent.





Re: Release D 2.076.0

2017-09-01 Thread Joakim via Digitalmars-d-announce

On Friday, 1 September 2017 at 15:24:57 UTC, Mike Parker wrote:

On Friday, 1 September 2017 at 14:03:26 UTC, Martin Nowak wrote:

Glad to announce D 2.076.0.


Blogged and reddited:

https://dlang.org/blog/2017/09/01/dmd-2-076-0-released/

https://www.reddit.com/r/programming/comments/6xf77f/version_20760_of_dmd_the_d_reference_compiler/


Nice writeup of the major features of this release, think it 
really helps.


Typo in blog post - dramtically

Also, changelog still lists this as a beta, to be released.


Re: Release D 2.076.0

2017-09-01 Thread Mike Parker via Digitalmars-d-announce

On Friday, 1 September 2017 at 14:03:26 UTC, Martin Nowak wrote:

Glad to announce D 2.076.0.


Blogged and reddited:

https://dlang.org/blog/2017/09/01/dmd-2-076-0-released/

https://www.reddit.com/r/programming/comments/6xf77f/version_20760_of_dmd_the_d_reference_compiler/


Release D 2.076.0

2017-09-01 Thread Martin Nowak via Digitalmars-d-announce
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Glad to announce D 2.076.0.

This release comes with static foreach, many -betterC enhancements,
various phobos additions, an -mcpu=avx2 switch, and lots of bugfixes.

Thanks to everyone involved in this .

http://dlang.org/download.html
http://dlang.org/changelog/2.076.0.html

- -Martin
-BEGIN PGP SIGNATURE-

iQIzBAEBCgAdFiEEpzRNrTw0HqEtE8TmsnOBFhK7GTkFAlmpaK4ACgkQsnOBFhK7
GTlxPg//YaOkpg2uMiUWAav5cpfoiRA1cyZpsK5IaW1dKIoe7kMSk6QBINSucvCS
7wylRCkgA5PjMqwt3D+SM/+WYR5AVXfhaaGtl2vBDqyCJmP5emYkeTmj5MmYFRWZ
/2UIslPtuAE3lTZhG2U/bQtUeiyCKbnz44HTNU00At+Ak39HBZx3MgTrkM7nDAAS
ZJusWgR4x/omOnF4+bcmBX76seUJOhoe1PZaqIhx6n8lumRxE89zQS9Z5Cmzkv4R
8+Q1OF4q2Aks3lUWxMtOR3klAsOnClgNpSYkmW2KYhZ/2O90KDASmjYny9dlTYSE
5B3yHwjNNK8zEa48VlIluckNokr4BjOfCU9hBfCgAvFisggj3Pn0K+X+yfTFn4Sk
KDMWpzD5gPbTScHW88FbTKoYQF0fFWQ07GnYxWSpRl35xBV9hy3PO1vxtOU4qCiG
YklJZxr0twJzGLa7SXEDjY8Y38OBwYoUPFL+4GTx9zWNOGvJXEUpl2OTHywFD6da
C+nOtSln5c0xMbhGC+rahrGgVVaFOIq8oRyJL6XzFgXzvlttGvAgkrd/B5ZZricG
ii507ZZVWB7Lpgktxb+4hBG0nt745SHgd4WRCe2JA6QVQuAPdScLKaFJaejLkrx1
A7kGL3n3DN9HHGqD8AByaR+pmRVt3qxpc19TzAJt/JI/gNnVTA8=
=RRqA
-END PGP SIGNATURE-


Re: D on Tiobe Index

2017-09-01 Thread Vadim Lopatin via Digitalmars-d-announce

On Thursday, 31 August 2017 at 14:57:28 UTC, bitwise wrote:
What I would most like to see in the future would be a more 
complete and simplified set of tools for D.


I believe there should be at least one full-featured tool for 
each operating system, which includes syntax highlighting, 
auto-complete, symbol-information on hover, go to declaration, 
and runtime debugging for D. It should also include at least 
basic syntax highlighting for C++, and the ability to build and 
link that C++ code with the D program. I believe this tool 
should be self contained, and installable with a single click. 
An end user of the D programming language should never have to 
know anything about what dependencies are needed or installed 
for a given addon/extension.


I believe such a set of tools is well within reach. Some 
existing tools are already very close to what I've described 
above.


I believe DlangIDE can become such tool.
Runs on all platforms. Small.

which includes syntax highlighting, auto-complete, 
symbol-information on hover, go to declaration,


Supports it using embedded DCD.


and runtime debugging for D.


Debugging needs a lot of improvements to became usable.

Project is easy to contribute for D developers since written in D.




Re: GitBook about D on embedded ARM Linux

2017-09-01 Thread aberba via Digitalmars-d-announce

On Thursday, 31 August 2017 at 14:43:22 UTC, thinwybk wrote:
There is no single point of entry to find information about how 
to use D on ARM Linux. I created a small project on GitHub 
https://github.com/fkromer/d-on-embedded-linux-arm which shall 
enable absolute beginners (of embedded Linux and D) to get 
started as fast as possible. The project is in sync with a 
GitBook page 
https://fkromer.gitbooks.io/d-on-embedded-linux-arm/content/. 
The BeagleBone Black https://beagleboard.org/black is used as 
exemplary development board (a lot of information and tutorials 
available e.g. here http://exploringbeaglebone.com/, board 
hardware is extensible easily and in a modular manner with 
"capes" https://beagleboard.org/cape 
http://elinux.org/Beagleboard:BeagleBone_Capes).


That's interesting. Might do some DIY robotics in future.



Re: D on Tiobe Index

2017-09-01 Thread Mark via Digitalmars-d-announce

On Thursday, 31 August 2017 at 17:40:16 UTC, bitwise wrote:

On Thursday, 31 August 2017 at 16:37:35 UTC, SrMordred wrote:

On Thursday, 31 August 2017 at 14:57:28 UTC, bitwise wrote:

https://www.tiobe.com/tiobe-index/d/


What happened in 2009?


My first thought was that it was related to the D1 -> D2 
transition, but that wasn't it. Considering that I had to ask 
for the graph to be generated though, I figured that it may 
have been omitted on purpose due to low sample size, i.e. noisy 
results. I wouldn't worry too much about it.


Clearly the popularity of D is well correlated with U.S. real 
estate prices. :D