Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Condiv
May 7, 2008

Sorry to undo the effort of paying a domestic abuser $10 to own this poster, but I am going to lose my dang mind if I keep seeing multiple posters who appear to be Baloogan.

With love,
a mod


i'm trying to make a non-poo poo version of biginteger and bigdecimal for scala. so far it seems to be going well though i've only got bigint partially implemented. i've got about a 5-30% speedup compared to original, but I haven't tested what happens when i start using the algorithms in https://github.com/tbuktu/bigint, hoping for some real massive performance increases.

Adbot
ADBOT LOVES YOU

Condiv
May 7, 2008

Sorry to undo the effort of paying a domestic abuser $10 to own this poster, but I am going to lose my dang mind if I keep seeing multiple posters who appear to be Baloogan.

With love,
a mod


Cold on a Cob posted:

i thought scala compiled down to bytecode, shouldn't it already have this stuff? i don't know diddly about scala though obviously, so i guess not.

it has java's biginteger, which is a pile of crap. if you look at the benchmarks game, the scala and java versions using biginteger for calculating digits of pi are around 6x slower than the same bench using libgmp. Part of that is because biginteger uses long multiplication in all cases and never attempts to use any of the algorithms that are good for larger numbers like toom-cook. you can see the end result of adding these algorithms to biginteger on the github page i linked.

my version is a scala value class that uses an array of longs as the underlying storage for the type. i haven't got any of the faster multiplication algorithms added yet, but my version has a general 5-30% speedup for long multiplication and a 30% speedup for addition and subtraction operations

Condiv
May 7, 2008

Sorry to undo the effort of paying a domestic abuser $10 to own this poster, but I am going to lose my dang mind if I keep seeing multiple posters who appear to be Baloogan.

With love,
a mod



heh

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply