floating point and other comments
Alex Shinn
(18 Dec 2003 02:58 UTC)
|
Re: floating point and other comments
Ken Dickey
(18 Dec 2003 16:17 UTC)
|
Re: floating point and other comments
Alex Shinn
(19 Dec 2003 01:55 UTC)
|
Re: floating point and other comments
Ken Dickey
(20 Dec 2003 02:34 UTC)
|
Re: floating point and other comments
Alex Shinn
(20 Dec 2003 08:56 UTC)
|
Re: floating point and other comments
bear
(20 Dec 2003 19:00 UTC)
|
Re: floating point and other comments
Alex Shinn
(22 Dec 2003 02:16 UTC)
|
Re: floating point and other comments
bear
(23 Dec 2003 02:01 UTC)
|
Re: floating point and other comments
Alex Shinn
(23 Dec 2003 04:38 UTC)
|
Re: floating point and other comments
Ken Dickey
(22 Dec 2003 02:56 UTC)
|
Re: floating point and other comments
Per Bothner
(20 Dec 2003 18:05 UTC)
|
Re: floating point and other comments
Ken Dickey
(22 Dec 2003 00:41 UTC)
|
Re: floating point and other comments
Alex Shinn
(22 Dec 2003 03:50 UTC)
|
Re: floating point and other comments
Ken Dickey
(22 Dec 2003 17:05 UTC)
|
Re: floating point and other comments Alex Shinn (23 Dec 2003 05:23 UTC)
|
Re: floating point and other comments
Alex Shinn
(23 Dec 2003 05:26 UTC)
|
On Mon, Dec 22, 2003 at 09:09:03AM +0100, Ken Dickey wrote: > A good start. Ugh, no it wasn't, it was a very sloppy rip-off of my previous code which introduced several bugs. The ~A fix was also broken. I apologize for the poor code and attach a new version. > Unfortunately, the code did not do the whole job. I don't think anybody has suggested doing the whole job. This is, after all, "Intermediate Format." The problem is choosing the right balance of features to include in SRFI-48. I really think ~w,dF should be included and it does not complicate the code greatly. > E.g.: [snip] All examples work now as you expected, and the code is no larger. I specifically don't handle non-numbers for ~F, I'm not sure if we want to support that. It also handles complex numbers but we may want to remove that. > I am willing to do the work, but I suspect that handling such cases > would make the code larger--and cons more. The code only cons' more if you use ~F or parameters. So if you don't use the new features it behaves just as it did before. There are still no set!s. ~F is kind of a clumsy (I was too lazy to lookup a real floating point formatter algorithm :) but I suspect it is more compact as it is now. Generally your goals of code space efficiency and runtime heap efficiency are at odds with one another - better algorithms tend to be longer. Specifically you claim display:number->string can be more efficient than (display (number->string ...)) but the reference implementation doesn't take advantage of that. Which is more important, and does either really matter for a SRFI? -- Alex