Re: Diet-NG 1.0.0 released

2016-09-23 Thread Martin Nowak via Digitalmars-d-announce

On Friday, 23 September 2016 at 11:47:23 UTC, Sönke Ludwig wrote:
The Diet template language is aimed at providing a way to 
define procedurally generated HTML/XML pages (or other output 
formats), with minimal visual noise. Syntax and feature set are 
heavily inspired by pug , but instead of 
JavaScript, all expressions and statements are D statements, 
and everything that can be done at compile-time is done at 
compile-time.


Great news, in particular I like @safe, the new compile-time 
plugin, inline nested tags, and range support.

Also having it idependent of vibe.d will be useful.


Re: Diet-NG 1.0.0 released

2016-09-23 Thread Jinx via Digitalmars-d-announce

On Friday, 23 September 2016 at 11:47:23 UTC, Sönke Ludwig wrote:
The Diet template language is aimed at providing a way to 
define procedurally generated HTML/XML pages (or other output 
formats), with minimal visual noise. Syntax and feature set are 
heavily inspired by pug , but instead of 
JavaScript, all expressions and statements are D statements, 
and everything that can be done at compile-time is done at 
compile-time.


The library is now considered ready for (careful) production 
use and can be used with the latest pre-release versions of 
vibe.d (just add it as a dependency to your project and vibe.d 
will use it for rendering Diet templates automatically).


For more information about the improvements of this library 
over the original implementation that (still) comes with 
vibe.d, see the original announcement: 
https://forum.dlang.org/thread/nn4m62$14r5$1...@digitalmars.com



Source/DUB package:

https://code.dlang.org/packages/diet-ng
https://github.com/rejectedsoftware/diet-ng


Does this basically convert the dt file in to a d file with a 
embedded html output statements?


e.g.,

dt file
html1
d1
html2
d2

corresponding d file:

output(html1);
d1
output(html2);
d2

output outputs the html text directly and the d code is executed. 
Of course, I guess some fixups need to happen on the html code 
for embedded variables and such.


Just wondering about how it is done conceptually.





Re: Diet-NG 1.0.0 released

2016-09-23 Thread NVolcz via Digitalmars-d-announce

On Friday, 23 September 2016 at 11:47:23 UTC, Sönke Ludwig wrote:
The Diet template language is aimed at providing a way to 
define procedurally generated HTML/XML pages (or other output 
formats), with minimal visual noise. Syntax and feature set are



I would like to see a html to diet converter for easy migration. 
(I'm working on one)




Re: Numerical age for D: Mir v0.18.0 is faster then OpenBLAS

2016-09-23 Thread Andrei Alexandrescu via Digitalmars-d-announce

On 09/23/2016 02:14 PM, Ali Çehreli wrote:

On 09/23/2016 06:28 AM, Ilya Yaroshenko wrote:

Could someone with big reddit rating please post the link there? (maybe
Andrei?)


Shall we wait until Monday morning so that you have time to update the
blog and it has more impact on Reddit? :)


Yah awes



Re: Numerical age for D: Mir v0.18.0 is faster then OpenBLAS

2016-09-23 Thread Ilya Yaroshenko via Digitalmars-d-announce

On Friday, 23 September 2016 at 18:14:37 UTC, Ali Çehreli wrote:

On 09/23/2016 06:28 AM, Ilya Yaroshenko wrote:
Could someone with big reddit rating please post the link 
there? (maybe

Andrei?)


Shall we wait until Monday morning so that you have time to 
update the blog and it has more impact on Reddit? :)


Ali


Yes, good idea. Will add Apple and Intel implementations.


Re: Numerical age for D: Mir v0.18.0 is faster then OpenBLAS

2016-09-23 Thread Ali Çehreli via Digitalmars-d-announce

On 09/23/2016 06:28 AM, Ilya Yaroshenko wrote:

Could someone with big reddit rating please post the link there? (maybe
Andrei?)


Shall we wait until Monday morning so that you have time to update the 
blog and it has more impact on Reddit? :)


Ali



Re: Numerical age for D: Mir v0.18.0 is faster then OpenBLAS

2016-09-23 Thread Ilya Yaroshenko via Digitalmars-d-announce

On Friday, 23 September 2016 at 16:48:33 UTC, kinke wrote:

On Friday, 23 September 2016 at 15:01:28 UTC, jmh530 wrote:
On Friday, 23 September 2016 at 13:25:30 UTC, Ilya Yaroshenko 
wrote:

Benchmark:
http://blog.mir.dlang.io/glas/benchmark/openblas/2016/09/23/glas-gemm-benchmark.html



Great work.


+1. Please also provide the used compilers for reproduceability 
and credibility, e.g., its's not clear how OpenBLAS was 
compiled.


clang and recent ldc beta. C compiler does not matter because 
OpenBLAS Haswell kernels was written in assembler. Mir support 
only LDC compiler.




Re: Numerical age for D: Mir v0.18.0 is faster then OpenBLAS

2016-09-23 Thread kinke via Digitalmars-d-announce

On Friday, 23 September 2016 at 15:01:28 UTC, jmh530 wrote:
On Friday, 23 September 2016 at 13:25:30 UTC, Ilya Yaroshenko 
wrote:

Benchmark:
http://blog.mir.dlang.io/glas/benchmark/openblas/2016/09/23/glas-gemm-benchmark.html



Great work.


+1. Please also provide the used compilers for reproduceability 
and credibility, e.g., its's not clear how OpenBLAS was compiled.


Re: Numerical age for D: Mir v0.18.0 is faster then OpenBLAS

2016-09-23 Thread jmh530 via Digitalmars-d-announce
On Friday, 23 September 2016 at 13:25:30 UTC, Ilya Yaroshenko 
wrote:

Benchmark:
http://blog.mir.dlang.io/glas/benchmark/openblas/2016/09/23/glas-gemm-benchmark.html



Great work.


Re: Numerical age for D: Mir v0.18.0 is faster then OpenBLAS

2016-09-23 Thread Ilya Yaroshenko via Digitalmars-d-announce

On Friday, 23 September 2016 at 14:55:02 UTC, John Colvin wrote:
On Friday, 23 September 2016 at 13:25:30 UTC, Ilya Yaroshenko 
wrote:
Mir is LLVM-accelerated Generic Numerical Library for Science 
and Machine Learning.


Benchmark:
http://blog.mir.dlang.io/glas/benchmark/openblas/2016/09/23/glas-gemm-benchmark.html

Mir v0.18.0 release notes:
https://github.com/libmir/mir/releases/tag/v0.18.0
The release includes Mir's D Foundation GSoC project.

Do not forget to star the project:
https://github.com/libmir/mir

Best regards,
Ilya


Looks excellent. I tested compared to Apple's Accelerate BLAS 
and got similar results.


Environment variables to set single thread for cblas:
for openBLAS: OPENBLAS_NUM_THREADS=1
for Accelerate (Apple): VECLIB_MAXIMUM_THREADS=1
for intel MKL: MKL_NUM_THREADS=1


Thank you, John. Will add them to the blog


Re: Numerical age for D: Mir v0.18.0 is faster then OpenBLAS

2016-09-23 Thread John Colvin via Digitalmars-d-announce
On Friday, 23 September 2016 at 13:25:30 UTC, Ilya Yaroshenko 
wrote:
Mir is LLVM-accelerated Generic Numerical Library for Science 
and Machine Learning.


Benchmark:
http://blog.mir.dlang.io/glas/benchmark/openblas/2016/09/23/glas-gemm-benchmark.html

Mir v0.18.0 release notes:
https://github.com/libmir/mir/releases/tag/v0.18.0
The release includes Mir's D Foundation GSoC project.

Do not forget to star the project:
https://github.com/libmir/mir

Best regards,
Ilya


Looks excellent. I tested compared to Apple's Accelerate BLAS and 
got similar results.


Environment variables to set single thread for cblas:
for openBLAS: OPENBLAS_NUM_THREADS=1
for Accelerate (Apple): VECLIB_MAXIMUM_THREADS=1
for intel MKL: MKL_NUM_THREADS=1


Re: Numerical age for D: Mir v0.18.0 is faster then OpenBLAS

2016-09-23 Thread Joakim via Digitalmars-d-announce
On Friday, 23 September 2016 at 13:25:30 UTC, Ilya Yaroshenko 
wrote:
Mir is LLVM-accelerated Generic Numerical Library for Science 
and Machine Learning.


Benchmark:
http://blog.mir.dlang.io/glas/benchmark/openblas/2016/09/23/glas-gemm-benchmark.html

Mir v0.18.0 release notes:
https://github.com/libmir/mir/releases/tag/v0.18.0
The release includes Mir's D Foundation GSoC project.


Nice work.  The blog post is a bit short though: it might benefit 
from some usage samples showing how the equivalent D code is much 
nicer to write and read.  The benchmark source shows that the C 
API calls are much longer than D, highlight that in the post.


People don't just want speed and portability, they want ease of 
use.  Show them that D will be easier.


Re: Numerical age for D: Mir v0.18.0 is faster then OpenBLAS

2016-09-23 Thread Ilya Yaroshenko via Digitalmars-d-announce
On Friday, 23 September 2016 at 13:31:35 UTC, Guillaume Piolat 
wrote:
On Friday, 23 September 2016 at 13:25:30 UTC, Ilya Yaroshenko 
wrote:

Benchmark:
http://blog.mir.dlang.io/glas/benchmark/openblas/2016/09/23/glas-gemm-benchmark.html



Nice but you should explain how to reproduce the results, if 
only to give more credit to the post.


The benchmark source code can be found here 
https://github.com/libmir/mir/blob/master/benchmarks/glas/gemm_report.d.


The post will be updated with the link soon.


Re: Numerical age for D: Mir v0.18.0 is faster then OpenBLAS

2016-09-23 Thread Guillaume Piolat via Digitalmars-d-announce
On Friday, 23 September 2016 at 13:25:30 UTC, Ilya Yaroshenko 
wrote:

Benchmark:
http://blog.mir.dlang.io/glas/benchmark/openblas/2016/09/23/glas-gemm-benchmark.html



Nice but you should explain how to reproduce the results, if only 
to give more credit to the post.


Re: Numerical age for D: Mir v0.18.0 is faster then OpenBLAS

2016-09-23 Thread Ilya Yaroshenko via Digitalmars-d-announce
Could someone with big reddit rating please post the link there? 
(maybe Andrei?)


Numerical age for D: Mir v0.18.0 is faster then OpenBLAS

2016-09-23 Thread Ilya Yaroshenko via Digitalmars-d-announce
Mir is LLVM-accelerated Generic Numerical Library for Science and 
Machine Learning.


Benchmark:
http://blog.mir.dlang.io/glas/benchmark/openblas/2016/09/23/glas-gemm-benchmark.html

Mir v0.18.0 release notes:
https://github.com/libmir/mir/releases/tag/v0.18.0
The release includes Mir's D Foundation GSoC project.

Do not forget to star the project:
https://github.com/libmir/mir

Best regards,
Ilya


The Origins of Learning D

2016-09-23 Thread Mike Parker via Digitalmars-d-announce
I thought I'd go with a bit of light reading on the blog this 
week, as there are a few heavy-duty posts in the pipeline. The 
origin stories of two of the published (modern) D books have 
already been posted to the D blog ([1] and [2]). This week I've 
contributed a post on my own 'Learning D'.


Post:
https://dlang.org/blog/2016/09/23/the-origins-of-learning-d/

Reddit:
https://www.reddit.com/r/programming/comments/544lo4/the_origins_of_the_learning_d_book/

[1] 
https://dlang.org/blog/2016/06/29/programming-in-d-a-happy-accident/
[2] 
http://dlang.org/blog/2016/08/04/the-origins-of-the-d-cookbook/


Diet-NG 1.0.0 released

2016-09-23 Thread Sönke Ludwig via Digitalmars-d-announce
The Diet template language is aimed at providing a way to define 
procedurally generated HTML/XML pages (or other output formats), with 
minimal visual noise. Syntax and feature set are heavily inspired by pug 
, but instead of JavaScript, all expressions and 
statements are D statements, and everything that can be done at 
compile-time is done at compile-time.


The library is now considered ready for (careful) production use and can 
be used with the latest pre-release versions of vibe.d (just add it as a 
dependency to your project and vibe.d will use it for rendering Diet 
templates automatically).


For more information about the improvements of this library over the 
original implementation that (still) comes with vibe.d, see the original 
announcement: https://forum.dlang.org/thread/nn4m62$14r5$1...@digitalmars.com



Source/DUB package:

https://code.dlang.org/packages/diet-ng
https://github.com/rejectedsoftware/diet-ng


undeaD is now an official D repository!

2016-09-23 Thread Walter Bright via Digitalmars-d-announce

https://github.com/dlang/undeaD

Need an obsolete Phobos module? Here they are, back from the dead and upgraded 
to work with the latest D


Current modules included:

std.bitarray
std.date
std.datebase
std.dateparse
std.regexp
std.stream and friends

---

Thanks to Martin Nowak for his help making this official.


Re: Ocean v2.1.1 released

2016-09-23 Thread Daniel Kozak via Digitalmars-d-announce

On Friday, 23 September 2016 at 03:04:29 UTC, Chris Wright wrote:

What does Ocean do?


From github repo:

Ocean is a general purpose library, compatible with both D1 and 
D2, with a focus on supporting the development of 
high-performance, real-time applications. This focus has led to 
several noteworthy design choices:


Ocean is not cross-platform. The only supported platform is Linux.
Ocean assumes a single-threaded environment. Fiber-based 
multi-tasking is favoured, internally.
Ocean aims to minimise use of the D garbage collector. GC collect 
cycles can be very disruptive to real-time applications, so Ocean 
favours a model of allocating resources once then reusing them, 
wherever possible.
Ocean began life as an extension of Tango, some elements of which 
were eventually merged into Ocean.