This Week in D May 17, 2015

Welcome to This Week in D! Each week, we'll summarize what's been going on in the D community and write brief advice columns to help you get the most out of the D Programming Language.

The D Programming Language is a general purpose programming language that offers modern convenience, modeling power, and native efficiency with a familiar C-style syntax.

This Week in D has an RSS feed.

This Week in D is edited by Adam D. Ruppe. Contact me with any questions, comments, or contributions.

Statistics

Open D Jobs

A new page has been added to the D Wiki listing open D jobs. Take a look if you're interested, and add yours if you know of one that is available!

Major changes

std.typetuple was renamed to std.meta.

Destructors and postblits that handle child objects as well are now available to user code without complex workarounds which will aid manual memory management correctness.

In the community

DConf 2015

Monday is last day for DConf 2015 registrations - the conference is a little over one week away!

Community announcements

See more at digitalmars.D.announce.

Significant Forum Discussions

See more at forum.dlang.org and keep up with community blogs at Planet D.

Tip of the week

Quick tip this week, but one I didn't know myself! Courtesy of Stack Overflow.

If you want a raw byte-by-byte range of a file, the easiest way is to do file.byChunk(arbitrary_chunk_size).joiner. To use this, import std.stdio, std.algorithm;.

My answer to that question also shows other ways to get ranges, but the joiner is the main one - it puts the various chunks together into one range of bytes, where you can fetch them individually.

joiner is documented here and can be used in a variety of cases.


Find more D tips at the D idioms list or buy my D Cookbook for a more in-depth examination of many D tricks.

If you'd like to submit a tip, email me.

Upcoming events

Learn more about D

To learn more about D and what's happening in D: