Re: K-Nearest Neighbor + pointger alignments

2014-06-10 Thread bearophile via Digitalmars-d-announce
Ali Cehreli: I wonder what bearophile's response will be. ;) Despite looking like a silly sequence of optimizations, I do have some general comments on that text. Thanks to Kenji (https://github.com/D-Programming-Language/dmd/pull/3650 ) this code is now valid: void foo(size_t N)(ref

Re: K-Nearest Neighbor + pointger alignments

2014-06-10 Thread Walter Bright via Digitalmars-d-announce
On 6/10/2014 1:46 AM, bearophile wrote: I don't like D to throw away static information that can be used to avoid run-time crashes, this is the opposite of what is usually called a safe language. To be pedantic, D being a safe language means memory safe, not no seg faults of any sort.

Re: K-Nearest Neighbor

2014-06-09 Thread Ali Çehreli via Digitalmars-d-announce
On 06/09/2014 06:34 PM, Andrei Alexandrescu wrote: Just found this: http://www.reddit.com/r/programming/comments/27qjxd/knearest_neighbor_in_d_language/ Andrei I wonder what bearophile's response will be. ;) Ali