Slashdot Mirror


Numerical Computing in Java?

Nightshade queries: "I work for a department in a big financial company that uses equal amounts of C++ and Java. For a variety of reasons, we've decided that Java is the future of the group because of all the benefits of the language (it's so easy to use compared to C++, we can use Eclipse, Ant, jUnit, etc). The problem is that we do a lot of numerical computing and Java has no operator overloading! Languages like C# have operator overloading and because of this company's like CenterSpace have popped up with some nice looking numerical libraries. Try to find numerical packages for Java and it'll be pretty tough. What have people done in terms of numerical computing in Java? We currently use the Jama and Colt libraries for matrices and complex numbers, but these have awkward interfaces without operator overloading and are incomplete (no support for things like symmetric matrices) so we're looking for better solutions. So should we bite the bullet and switch to C#? Should we use a pre-processor like JFront? What have other people done?"

2 of 196 comments (clear)

  1. Re:I hate overloading by Anonymous Coward · · Score: 1, Funny

    I hate function calls, because they hide what's really going on -- registers being pushed to stack, a branch-to-subroutine instruction, to be later followed by a return instruction. ;)

  2. Re:No Operator Overloading is a BAD THING by cft_128 · · Score: 4, Funny
    On top of that, someone could come along and change the code and forget to update the comment to reflect the change. Then you simply have more obfuscated code.

    And that is why I never, ever comment my code.

    --

    Underloved Movies and Pub Quiz: donotquestionme.org