COJAC, A Numerical Problem Sniffer
During my bachelor at the HES-SO University of applied sciences in Fribourg, I worked on a Java project, COJAC.
COJAC is a tool performing On-the-fly code instrumentation to help uncover numerical problems with integer (overflows) and floating point (smearing, cancellation, infinity, NaN) arithmetic.
Yesterday, Dr Dobbs published an article by one of my professor Frédéric Bapst and myself.
This article discusses the question of numerical problems in programming, and focuses on the approach of using on-the-fly code instrumentation to uncover them at runtime. Two realizations are presented: a complete and stable solution for Java applications, and a proof-of-concept Valgrind add-on for Linux executables. Both tools require no intervention on the source code and no recompilation, and should be helpful as a diagnostic tool for developers, as well as for education purposes for undergraduate programmers.
If you are interested by this project, I invite you to read the article on Dr Dobbs : Project of the Month: Cojac, A Numerical Problem Sniffer
You can also test the tool or browse the source code by downloading it on the COJAC website.
Comments
Comments powered by Disqus