>|> It should be functionally identical to musixflx.c (up to round-off
>|error).
>|
>|Is this just a throw-away line or are there actual systemic differences
>|in the precision of the floating point variables used? Floating point
>|calculations are a CPU function - it would be beneficial if the results
>|strived to be *identical* on the same architecture (a guarantee which TeX
>|provides).
That's because TeX doesn't do floating-point! One of the reasons (the
other being the lack of arrays) that a separate musiflx program was
introduced.
The differences are in the last digit and since there are no significant
numerical calculations involved, I'm guessing the differences arise from
differences in the output formatting.
>|I'm not terribly familiar with Lua, but I would anticipate
>|that C will be more flexible here - both scripts should use the same
>|floating point representation for calculations which will eliminate all
>|sources of non-algorithmic rounding error (if necessary, the C script
>|could be changed).
I think that's called moving the goalposts :+) The differences are
of no practical significance. What I'm looking for are significant
differences, such as the lua script crashing because of a typo.
>|Most of the work I do involves a lot of regression tests against
>|reference copies of known output so I'm always particularly sensitive
>|to statements about rounding "errors" ;o)
The script was produced by a line-by-line translation of the C code. It
doesn't use different calculational algorithms.
>|Are there options available for producing native executables from Lua
>|scripts on at least the major three platforms? If there are, then it
>|would seem an excellent time to look towards dumping the C script
>|entirely - the ability to produce a native executable would mean that
>|anyone using MusiXTeX on a system which doesn't have LuaTeX instead
>|would not have to install a Lua interpreter so it wouldn't make the
>|installation of LuaTeX any harder.
^^^^^^
I'm guessing you meant to write MusiXTeX there.
That would simply perpetuate the maintainance problems of requiring
platform-dependent executables. I think it would be much better to
incorporate the musixflx calculations into musixtex.tex and make
LuaTeX a requirement for MusiXTeX.
Bob
-------------------------------
[email protected] mailing list
If you want to unsubscribe or look at the archives, go to
http://tug.org/mailman/listinfo/tex-music