Re: On the D Blog: Lomuto's Comeback

2020-05-31 Thread Arjan via Digitalmars-d-announce
On Thursday, 14 May 2020 at 13:26:23 UTC, Mike Parker wrote: After reading a paper that grabbed his curiosity and wouldn't let go, Andrei set out to determine if Lomuto partitioning should still be considered inferior to Hoare for quicksort on modern hardware. This blog post details his

Re: DIP 1028 "Make @safe the Default" is dead

2020-05-31 Thread Walter Bright via Digitalmars-d-announce
On 5/30/2020 4:39 AM, Nick Treleaven wrote: To preserve this, then please can we have `@safe module foo;`. This would change the default on a module basis to @safe, but still infer e.g. function template bodies as @system where necessary. This feature would allow modules from different

Re: Tensorflow wrapper for D

2020-05-31 Thread jmh530 via Digitalmars-d-announce
On Sunday, 31 May 2020 at 14:43:46 UTC, 9il wrote: by Shigeki Karita https://github.com/ShigekiKarita/tfd Cool.

Re: DIP 1028 "Make @safe the Default" is dead

2020-05-31 Thread Avrina via Digitalmars-d-announce
On Sunday, 31 May 2020 at 19:15:19 UTC, Walter Bright wrote: On 5/30/2020 4:39 AM, Nick Treleaven wrote: To preserve this, then please can we have `@safe module foo;`. This would change the default on a module basis to @safe, but still infer e.g. function template bodies as @system where

Pretty-printing D arrays with Mir

2020-05-31 Thread tastyminerals via Digitalmars-d-announce
I often print arrays to see how they look and their contents. NumPy has a nice way of pretty-printing the arrays, and I was lacking this in D. For the sake of practice, I wrote a small package. It uses mir.ndslice but works for both standard D arrays and Mir Slices. import pretty_array;

Re: Pretty-printing D arrays with Mir

2020-05-31 Thread jmh530 via Digitalmars-d-announce
On Sunday, 31 May 2020 at 22:40:09 UTC, tastyminerals wrote: I often print arrays to see how they look and their contents. NumPy has a nice way of pretty-printing the arrays, and I was lacking this in D. For the sake of practice, I wrote a small package. It uses mir.ndslice but works for both

Tensorflow wrapper for D

2020-05-31 Thread 9il via Digitalmars-d-announce
by Shigeki Karita https://github.com/ShigekiKarita/tfd

Re: Tensorflow wrapper for D

2020-05-31 Thread Greatsam4sure via Digitalmars-d-announce
On Sunday, 31 May 2020 at 14:43:46 UTC, 9il wrote: by Shigeki Karita https://github.com/ShigekiKarita/tfd Thanks for this great work. I will give it a try later. Tensorflow in D is worthwhile

Re: Tensorflow wrapper for D

2020-05-31 Thread Greatsam4sure via Digitalmars-d-announce
On Sunday, 31 May 2020 at 14:43:46 UTC, 9il wrote: by Shigeki Karita https://github.com/ShigekiKarita/tfd Thanks for this great work. I will give it a try later. Tensorflow im D is whatwhile

Re: Pretty-printing D arrays with Mir

2020-05-31 Thread mw via Digitalmars-d-announce
On Sunday, 31 May 2020 at 23:10:44 UTC, jmh530 wrote: On Sunday, 31 May 2020 at 22:40:09 UTC, tastyminerals wrote: I often print arrays to see how they look and their contents. NumPy has a nice way of pretty-printing the arrays, and I was lacking this in D. ┌ ┐ │┌

Re: Tensorflow wrapper for D

2020-05-31 Thread Shigeki Karita via Digitalmars-d-announce
On Sunday, 31 May 2020 at 14:43:46 UTC, 9il wrote: by Shigeki Karita https://github.com/ShigekiKarita/tfd Thanks for sharing my work. Currently, I am working on code generation for all the operations in https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/ops/ops.pbtxt