Re: add phobos module std.halffloat ?

2012-12-21 Thread tn
On Wednesday, 19 December 2012 at 19:52:41 UTC, Robert Jacques wrote: On Wed, 19 Dec 2012 09:35:39 -0600, Andrei Alexandrescu wrote: On 12/19/12 2:30 AM, Walter Bright wrote: https://github.com/D-Programming-Language/phobos/pull/1018/files Shouldn't it be part of std.numeric? Related, we

Re: add phobos module std.halffloat ?

2012-12-19 Thread Robert Jacques
On Thu, 20 Dec 2012 00:06:04 -0600, Rob T wrote: On Wednesday, 19 December 2012 at 20:44:19 UTC, Robert Jacques wrote: See std.numeric.CustomFloat. It supports quarter, half, single, double and 80-bit. The wikipedia article on the floating point (IEEE 754) includes a Quad type but not a

Re: add phobos module std.halffloat ?

2012-12-19 Thread Rob T
On Wednesday, 19 December 2012 at 20:44:19 UTC, Robert Jacques wrote: See std.numeric.CustomFloat. It supports quarter, half, single, double and 80-bit. The wikipedia article on the floating point (IEEE 754) includes a Quad type but not a double-quad or 96-bit type. 96-bit Should be possible

Re: add phobos module std.halffloat ?

2012-12-19 Thread Walter Bright
On 12/19/2012 2:22 AM, ponce wrote: On Wednesday, 19 December 2012 at 07:30:54 UTC, Walter Bright wrote: https://github.com/D-Programming-Language/phobos/pull/1018/files If that ever helps, I implemented this fast conversion ftp://www.fox-toolkit.org/pub/fasthalffloatconversion.pdf for a half

Re: add phobos module std.halffloat ?

2012-12-19 Thread Walter Bright
On 12/19/2012 12:28 PM, Martin Drašar wrote: Also it did not work when I tried it in two different browsers. I have temporary uploaded correctly working pdf version here: http://mysharegadget.com/528634723 Thanks, that worked.

Re: add phobos module std.halffloat ?

2012-12-19 Thread Robert Jacques
On Wed, 19 Dec 2012 04:49:59 -0600, d coder wrote: On Wed, Dec 19, 2012 at 3:43 PM, Iain Buclaw wrote: How difficult would you think it would be to scale down (or up) this library type so it can be an emulated IEEE type of any size? (The whole shebang eg: quarter, half, single, double, quad,

Re: add phobos module std.halffloat ?

2012-12-19 Thread Martin Drašar
Dne 19.12.2012 20:48, Walter Bright napsal(a): On 12/19/2012 2:22 AM, ponce wrote: On Wednesday, 19 December 2012 at 07:30:54 UTC, Walter Bright wrote: https://github.com/D-Programming-Language/phobos/pull/1018/files If that ever helps, I implemented this fast conversion ftp://www.fox-toolki

Re: add phobos module std.halffloat ?

2012-12-19 Thread Robert Jacques
On Wed, 19 Dec 2012 05:47:38 -0600, Iain Buclaw wrote: On 19 December 2012 11:30, tn wrote: On Wednesday, 19 December 2012 at 10:13:56 UTC, Iain Buclaw wrote: On 19 December 2012 08:55, Walter Bright wrote: On 12/19/2012 12:47 AM, Alex Rønne Petersen wrote: On 19-12-2012 08:35, Jacob Carl

Re: add phobos module std.halffloat ?

2012-12-19 Thread Robert Jacques
On Wed, 19 Dec 2012 13:48:29 -0600, Walter Bright wrote: On 12/19/2012 2:22 AM, ponce wrote: On Wednesday, 19 December 2012 at 07:30:54 UTC, Walter Bright wrote: https://github.com/D-Programming-Language/phobos/pull/1018/files If that ever helps, I implemented this fast conversion ftp://

Re: add phobos module std.halffloat ?

2012-12-19 Thread Robert Jacques
On Wed, 19 Dec 2012 09:35:39 -0600, Andrei Alexandrescu wrote: On 12/19/12 2:30 AM, Walter Bright wrote: https://github.com/D-Programming-Language/phobos/pull/1018/files Shouldn't it be part of std.numeric? Related, we should have a decision point "this must go through the review proces

Re: add phobos module std.halffloat ?

2012-12-19 Thread Walter Bright
On 12/19/2012 2:13 AM, Iain Buclaw wrote: How difficult would you think it would be to scale down (or up) this library type so it can be an emulated IEEE type of any size? (The whole shebang eg: quarter, half, single, double, quad, double-quad, 80bit and 96-bit). Just interested as I think that

Re: add phobos module std.halffloat ?

2012-12-19 Thread Walter Bright
On 12/19/2012 2:22 AM, ponce wrote: On Wednesday, 19 December 2012 at 07:30:54 UTC, Walter Bright wrote: https://github.com/D-Programming-Language/phobos/pull/1018/files If that ever helps, I implemented this fast conversion ftp://www.fox-toolkit.org/pub/fasthalffloatconversion.pdf for a half

Re: add phobos module std.halffloat ?

2012-12-19 Thread Andrei Alexandrescu
On 12/19/12 2:30 AM, Walter Bright wrote: https://github.com/D-Programming-Language/phobos/pull/1018/files Shouldn't it be part of std.numeric? Related, we should have a decision point "this must go through the review process" vs. "the pull review process is sufficient". New modules definite

Re: add phobos module std.halffloat ?

2012-12-19 Thread Iain Buclaw
On 19 December 2012 11:30, tn wrote: > On Wednesday, 19 December 2012 at 10:13:56 UTC, Iain Buclaw wrote: > >> On 19 December 2012 08:55, Walter Bright >> wrote: >> >> On 12/19/2012 12:47 AM, Alex Rønne Petersen wrote: >>> >>> On 19-12-2012 08:35, Jacob Carlborg wrote: On 2012-12-19

Re: add phobos module std.halffloat ?

2012-12-19 Thread tn
On Wednesday, 19 December 2012 at 10:13:56 UTC, Iain Buclaw wrote: On 19 December 2012 08:55, Walter Bright wrote: On 12/19/2012 12:47 AM, Alex Rønne Petersen wrote: On 19-12-2012 08:35, Jacob Carlborg wrote: On 2012-12-19 08:30, Walter Bright wrote: https://github.com/D-**Programming-L

Re: add phobos module std.halffloat ?

2012-12-19 Thread d coder
On Wed, Dec 19, 2012 at 3:43 PM, Iain Buclaw wrote: > How difficult would you think it would be to scale down (or up) this > library type so it can be an emulated IEEE type of any size? (The whole > shebang eg: quarter, half, single, double, quad, double-quad, 80bit and > 96-bit). Just interest

Re: add phobos module std.halffloat ?

2012-12-19 Thread ponce
On Wednesday, 19 December 2012 at 07:30:54 UTC, Walter Bright wrote: https://github.com/D-Programming-Language/phobos/pull/1018/files If that ever helps, I implemented this fast conversion ftp://www.fox-toolkit.org/pub/fasthalffloatconversion.pdf for a half wrapper here: https://github.com/p0n

Re: add phobos module std.halffloat ?

2012-12-19 Thread Iain Buclaw
On 19 December 2012 08:55, Walter Bright wrote: > On 12/19/2012 12:47 AM, Alex Rønne Petersen wrote: > >> On 19-12-2012 08:35, Jacob Carlborg wrote: >> >>> On 2012-12-19 08:30, Walter Bright wrote: >>> https://github.com/D-**Programming-Language/phobos/**pull/1018/files

Re: add phobos module std.halffloat ?

2012-12-19 Thread Walter Bright
On 12/19/2012 12:47 AM, Alex Rønne Petersen wrote: On 19-12-2012 08:35, Jacob Carlborg wrote: On 2012-12-19 08:30, Walter Bright wrote: https://github.com/D-Programming-Language/phobos/pull/1018/files Cool, Walter does a pull request. Should this be put in the review queue or is this a small

Re: add phobos module std.halffloat ?

2012-12-19 Thread Alex Rønne Petersen
On 19-12-2012 08:35, Jacob Carlborg wrote: On 2012-12-19 08:30, Walter Bright wrote: https://github.com/D-Programming-Language/phobos/pull/1018/files Cool, Walter does a pull request. Should this be put in the review queue or is this a small enough change to be added anyway? Seems a bit ove

Re: add phobos module std.halffloat ?

2012-12-18 Thread Jacob Carlborg
On 2012-12-19 08:30, Walter Bright wrote: https://github.com/D-Programming-Language/phobos/pull/1018/files Cool, Walter does a pull request. Should this be put in the review queue or is this a small enough change to be added anyway? -- /Jacob Carlborg

add phobos module std.halffloat ?

2012-12-18 Thread Walter Bright
https://github.com/D-Programming-Language/phobos/pull/1018/files