Re: Another computer algebra system : smib



Richard Fateman wrote:
Dave wrote:
.

I would say to the original poster, the best way to make your code more robust is to test it on other systems.

I think that this notion of "robust" is questionable. Making a program run very very well on a common configuration of hardware and software strikes me as far more valuable than trying to water it down so it runs on many different hardware and software configurations.

The failures of code in one or more of the multiple Sage environments merely illustrates how poorly the notion of "machine independence" is supported by the C specification, current C compilers, and whatever else you need. (Does Python break this way too?)

I suspect that most of the bugs you find in these porting efforts have nothing to do with computer algebra system algorithms or the libraries that other people have written; fixing the bugs is, I suspect, a distraction from the building of a good system on one platform. And certainly not much of a "learning experience" unless your idea is that learning computer algebra has to do with fiddling with optimization settings on C compilers.

Not necessarily so. Older compilers often accept significant errors that trigger errors on newer compilers. Switching from one CPU architecture to another often exposes uninitialized memory, latent race conditions, etc.

Just today, such a port (by me of another company's system) exposed a few functions being called with the default C prototype (headers not included) and a couple enumerated variables being filled with values from a different enumeration.

There are times when porting causes me to groan (usually to an ancient solaris box); but its generally not too hard, and the code often benefits from the added attention.

- Daniel
.



Relevant Pages

  • Re: Another computer algebra system : smib
    ... run very very well on a common configuration of hardware and software strikes me as far more valuable than trying to water it down so it runs on many different hardware and software configurations. ... And certainly not much of a "learning experience" unless your idea is that learning computer algebra has to do with fiddling with optimization settings on C compilers. ...
    (sci.math.symbolic)
  • Compiler positions available for week ending January 29
    ... advertise a position having something to do with compilers and must also ... performance computing technologies. ... hardware resource utilisation. ... You'll be working at the forefront of embedded and hardware technologies, ...
    (comp.compilers)
  • Re: Fortran 2008 (was Re: Statement function host association)
    ... optimizing compiler for f77 code for their hardware. ... Other vendors were involved in this process too. ... compilers, but also there are numerous independent commercial ... 15 years or so of the new language features, array syntax still has ...
    (comp.lang.fortran)
  • Re: Learning embedded coding, which uC?
    ... used Forth 10 or more years ago, modern Forth compilers ... terms of target memory usage. ... bottom-up debugging on the target hardware. ... Stephen Pelc, stephenXXX@xxxxxxxxxxxxxxxxxxxxxxxxxx ...
    (comp.arch.embedded)
  • Re: What will Microsoft use its ARM license for?
    ... instruction set might be easier for compilers to deal ... system effort for 801 in the mid-70s ... ... compensating with more sophisticated compilers and softare. ... another example was lack of hardware protection (reduced hardware ...
    (comp.arch)