Java, anyone?
Friday, 1. June 2007, 05:03:09
There's only one problem - It's 9522 lines long :|
In the meantime, I've been working on a python module for mathematical functions that are a bit higher than the standard library. They're not very fast, as they're written in python, but I'm trying to optimize them as much as possible. One upset I found was that the traditional python idiom for adding large strings : ''.join(huge_list) vs string += string : Is actually losing relevance. Of course I didn't test every possible contingency, but for smaller strings, string addition is faster, while for larger strings, the join idiom is faster.
I also found that most linux distributions come with a console command factor, which outputs the prime factors of a given number. Although it's pretty fast, its algorithm is still fairly primitive.
I'll put my math module (which I've tentatively called imath
Now, back to 9522 lines of java... :|















