Re: Announcement: Axiom, a Forth Based Universal Game Programming System
- From: Krishna Myneni <krishnamyneni@xxxxxxxxxxxxx>
- Date: Wed, 29 Aug 2007 04:37:24 -0500
slava@xxxxxxxxx wrote:
On Aug 28, 9:08 pm, Krishna Myneni <krishnamyn...@xxxxxxxxxxxxx>
wrote:
Originally, in the days of DOS, I used
32-bit floats in an application named xyplot, to conserve memory. Now, I
actually have data which I cannot plot with this program, because the number of
significant digits is insufficient. This limitation is forcing a rewrite of a
good-sized program.
Krishna Myneni
Changing the floating point precision should not require a *rewrite*.
Slava
By "rewrite" I mean that the C++ files have to be examined, and data which is
declared as "float" must be changed to "double". Similar changes must me made to
the class declarations. I'm not sure that a simple global replace will suffice.
For example, there may be explicit casts of double numbers to float, which
should be removed. Also, casts from float to double will be redundant and should
be removed. I would be uneasy with a global replace, without doing a careful
examination of the code in parallel.
XYPLOT's built-in Forth interpreter does use double floats (two cell fp numbers
on a shared stack), so none of the Forth modules will have to change, except for
a couple of interface words which are responsible for moving data back and forth
between the Forth environment and the C++ portions.
Krishna
.
- Follow-Ups:
- Re: Announcement: Axiom, a Forth Based Universal Game Programming System
- From: John Passaniti
- Re: Announcement: Axiom, a Forth Based Universal Game Programming System
- References:
- Re: Announcement: Axiom, a Forth Based Universal Game Programming System
- From: dreamwafer
- Re: Announcement: Axiom, a Forth Based Universal Game Programming System
- From: Marcel Hendrix
- Re: Announcement: Axiom, a Forth Based Universal Game Programming System
- From: dreamwafer
- Re: Announcement: Axiom, a Forth Based Universal Game Programming System
- From: Krishna Myneni
- Re: Announcement: Axiom, a Forth Based Universal Game Programming System
- From: slava@xxxxxxxxx
- Re: Announcement: Axiom, a Forth Based Universal Game Programming System
- Prev by Date: Re: RFD: Reworking of TO (Version 3)
- Next by Date: Re: Current Standings: Number Prefixes
- Previous by thread: Re: Announcement: Axiom, a Forth Based Universal Game Programming System
- Next by thread: Re: Announcement: Axiom, a Forth Based Universal Game Programming System
- Index(es):
Relevant Pages
|