Re: "Programming in D" is up-to-date

2017-05-13 Thread Mark via Digitalmars-d-announce

On Sunday, 14 May 2017 at 04:44:26 UTC, bluecat wrote:

On Saturday, 13 May 2017 at 23:22:41 UTC, Ali Çehreli wrote:
I've updated the book to 2.074.0. I've updated all paper and 
electronic versions at all publishers. However, I recommend 
that you wait a week or so before ordering (e.g. from Amazon) 
so that you get the latest version. (The copyright and Preface 
pages should say May 2017.)


You can download the up-to-date versions here:

  http://ddili.org/ders/d.en/index.html

The fonts are indeed embedded in the PDF, EPUB, and AZW3 
formats. You may have to experiment with configuration 
settings of your e-reader to enable the embedded fonts. YMMV. 
:/


Ali


I just wanted to say thank you very much for your book. It has 
been invaluable to me while learning D. Keep up the great work!


Seconded.


Re: "Programming in D" is up-to-date

2017-05-13 Thread bluecat via Digitalmars-d-announce

On Saturday, 13 May 2017 at 23:22:41 UTC, Ali Çehreli wrote:
I've updated the book to 2.074.0. I've updated all paper and 
electronic versions at all publishers. However, I recommend 
that you wait a week or so before ordering (e.g. from Amazon) 
so that you get the latest version. (The copyright and Preface 
pages should say May 2017.)


You can download the up-to-date versions here:

  http://ddili.org/ders/d.en/index.html

The fonts are indeed embedded in the PDF, EPUB, and AZW3 
formats. You may have to experiment with configuration settings 
of your e-reader to enable the embedded fonts. YMMV. :/


Ali


I just wanted to say thank you very much for your book. It has 
been invaluable to me while learning D. Keep up the great work!


"Programming in D" is up-to-date

2017-05-13 Thread Ali Çehreli via Digitalmars-d-announce
I've updated the book to 2.074.0. I've updated all paper and electronic 
versions at all publishers. However, I recommend that you wait a week or 
so before ordering (e.g. from Amazon) so that you get the latest 
version. (The copyright and Preface pages should say May 2017.)


You can download the up-to-date versions here:

  http://ddili.org/ders/d.en/index.html

The fonts are indeed embedded in the PDF, EPUB, and AZW3 formats. You 
may have to experiment with configuration settings of your e-reader to 
enable the embedded fonts. YMMV. :/


Ali


Re: DCOnf 2017 videos online

2017-05-13 Thread Dmitry via Digitalmars-d-announce

https://wiki.dlang.org/Videos#Talks_and_presentations

also added.


Re: Mir Algorithm v0.5.16: @safe ndslice; shortcuts; topology.pairwise instead of isSorted and isStrictlyMonotonic

2017-05-13 Thread 9il via Digitalmars-d-announce

https://github.com/libmir/mir-algorithm/releases/tag/v0.5.16


Mir Algorithm v0.5.16: @safe ndslice; shortcuts; topology.pairwise instead of isSorted and isStrictlyMonotonic

2017-05-13 Thread 9il via Digitalmars-d-announce

### Slice is safe now

User-defined iterators must care about their safety except bounds 
checks.

Bounds are checked in ndslice code.

### Deprecations

 - `tuple` was renamed to `refTuple`
 - `isSorted` and `isStrictlyMonotonic` are deprecated. Use 
`pairwise` and `all` instead.


`[float.nan, 1].isSorted` is true both for Mir and Phobos, but it 
must be false.

`*.pairwise!"a <= b".all` solves this issue explicitly.

```d
import mir.ndslice.algorithm: all;
import mir.ndslice.slice;
import mir.ndslice.sorting: sort;
import mir.ndslice.topology: pairwise;

auto arr = [1, 1, 2].sliced;

assert(arr.pairwise!"a <= b".all);
assert(!arr.pairwise!"a < b".all);

arr = [4, 3, 2, 1].sliced;

assert(!arr.pairwise!"a <= b".all);
assert(!arr.pairwise!"a < b".all);

sort(arr);

assert(arr.pairwise!"a <= b".all);
assert(arr.pairwise!"a < b".all);
```

### New API

- `pairwise` - pairwise map for vectors. It is shortcut for 
`topology.slide`.

- `Slice.field` - returns underlying array for contiguous ndslices
- Definition shortcuts for Slice
  - `UniversalVector`
  - `ContiguousMatrix`
  - `CanonicalMatrix`
  - `UniversalMatrix`
  - `ContiguousTensor`
  - `CanonicalTensor`
  - `UniversalTensor`



Re: DCOnf 2017 videos online

2017-05-13 Thread Joakim via Digitalmars-d-announce

On Monday, 8 May 2017 at 09:42:25 UTC, Mike Parker wrote:

On Monday, 8 May 2017 at 01:42:49 UTC, Jack Stouffer wrote:



https://www.youtube.com/playlist?list=PL3jwVPmk_PRxo23yyoc0Ip_cP3-rCm7eB


I assume you're handling the reddit post?


Yeah, I'll post it once the videos are all uploaded.


Looks like they're all up now.