On 07/24/2014 10:11 AM, Ali Çehreli wrote:
I have completed the translation of the book. Phew... :) However, there
is still more work, like adding a UDA chapter and working on many little
TODO items.
The following was the final chapter, which actually only scratches the
surface of the very
Before submitting my pull request, I would like to hear your opinion
about the naming of the squared modulus function, since we won't be able
to change it once it is released.
I picked `abs2` for consistency with `abs` and because it is
mathematically more accurate than C++'s `norm`.
What do
On 06/29/2014 11:04 PM, John Colvin wrote:
[...]
mixin(`alias real` ~ (real.sizeof*8).stringof ~ ` = real;`);
is more useful to me.
Be careful : this code is tricky ! real.sizeof is the storage size, ie
16 bytes on x86_64.
The following happily compiles ;-)
import std.conv: to;
I am trying to define custom format specifiers (as described here [1])
for the following wrapper struct :
import std.stdio;
import std.format: formattedWrite, FormatSpec;
import std.string: format;
struct wrapper(T) {
private T val;
public this(T newVal) pure { val = newVal;
On 06/29/2014 04:22 PM, Ali Çehreli wrote:
On 06/29/2014 04:55 AM, Element 126 wrote:
I've certainly missed something
formatValue passes your tests:
import std.stdio;
import std.format: formattedWrite, FormatSpec, formatValue;
import std.string: format;
struct wrapper(T) {
private T
On 06/28/2014 12:33 PM, Russel Winder via Digitalmars-d wrote:
On Sat, 2014-06-28 at 09:07 +, John Colvin via Digitalmars-d wrote:
[…]
I still maintain that the need for the precision of 80bit reals
is a niche demand. Its a very important niche, but it doesn't
justify having its relatively
On 06/27/2014 03:04 PM, dennis luehring wrote:
Am 27.06.2014 14:20, schrieb Russel Winder via Digitalmars-d:
On Fri, 2014-06-27 at 11:10 +, John Colvin via Digitalmars-d wrote:
[âŠ]
I understand why the current situation exists. In 2000 x87 was
the standard and the 80bit precision came
On 06/27/2014 08:19 PM, Kagamin wrote:
On Friday, 27 June 2014 at 14:50:14 UTC, Kai Nacke wrote:
The doubledouble type is available for PowerPC. In fact, I try to use
this for my PowerPC64 port of LDC. The partial support here is a bit
annoying but I did not find the time to implement the
On 06/14/2014 09:04 PM, Dmitry Olshansky wrote:
Recalling the previous discussion of throwing exception being costly, I
thought the idiom of pay as you go is worth incorporating into the
standard library.
In brief:
throw exception(CPU temperature is below, 2.5, K);
vs
throw new