Nov 5 2015, 6:02 pm
In response to Ghost of ET
|
|
Ghost of ET wrote:
|
A few more diagnostics while I try and work out an algorithm for doing division, which has proven to be more difficult than I'd hoped.
These outputs are all doing BigInt arithmetic. That is, operations between two BigInt objects rather than between a BigInt object and an integer. /* Once I get division done, I'll be able to compute remainders and therefore can finally do conversion into decimal. It's really, really simple to convert into any base this is an integer exponent of 2 (and just because of that, I already have methods to convert to binary, quaternary, octal, hexadecimal, and base-64), but decimal is obviously not so it's not as easy to do. Unfortunately, doing division well is probably going to be difficult because division is not as well-behaved as multiplication or addition. We'll see what ends up happening, though hopefully it doesn't take too long to work something out. Getting division done is basically the last big hurdle to documenting the library properly and getting it out. |
Marketing is great. It's daresay essential to the livelihood of a game. But all the time i see too many people think about the hype first without understanding the economic science behind game announcements and trailers. It comes down to timing andbusually occurs toward the very end of a game's dev cycle, or at least once a stable, feature complete beta is done.
|
So much for my dreams of making a trailer for genesis without any gameplay and just words.
|
In response to Popisfizzy
|
|
That looks complicated af.
|
In response to Ghost of ET
|
|
Ghost of ET wrote:
That looks complicated af. How?... It's just profiler output... |
In response to Kats
|
|
It looks complicated to someone who doesnt know what they are looking at.
|
In response to Kats
|
|
Kats wrote:
Ghost of ET wrote: Doesn't matter what output it is, if you don't understand the syntax Subtracting 1 + 1 + ... + 1 + 1 from 0xfffffff0 for 65,635 times in hexadecimal is 0xfffefff1 Is fucking witchcraft. |
In response to Rushnut
|
|
Rushnut wrote:
Doesn't matter what output it is, if you don't understand the syntax > Is fucking witchcraft. Yeah... I could do to rewrite that. It's supposed to more akin to "The result of subtracting 1 from 0xfffffff0 65,535 times, in hexadecimal, is 0xfffefff1." |
what's 0xfffffff0 and why would you want to subtract 1 from it 65 thousand times????
|
In response to Ghost of ET
|
|
Ghost of ET wrote:
what's 0xfffffff0 and why would you want to subtract 1 from it 65 thousand times???? The 0x indicates it's a number in hexadecimal (which is standard in programming, though not elsewhere). fffffff0 in decimal is 4,294,967,280. As for why I want to do it, it's a stress test to see how well this library handles performing lots of operations in a small time frame. So far, this library is performing better than I'd expected it to. |
I'll concede to that notion. Can't place any blame on someone for not knowing. It's always a good day when you learn something new. :P
Unless... I mean... you learn that your spouse is cheating on you... then it's a pretty crap day. |
In response to Kats
|
|
Bad day =(?
|
In response to Ghost of ET
|
|
Ghost of ET wrote:
How does fffffff0 = 4,294,967,280 <3? u can also do octal, 037777777760 will equal that |
In response to Ghost of ET
|
|
Ghost of ET wrote:
How does fffffff0 = 4,294,967,280 <3? In base 16 (hexadecimal), 0 through 1 are equal to their respective values in base 10 (decimal). The difference is that there are five more 'primitive' digits that are equal to 11, 12, 13, 14, and 15. These are typically labelled A, B, C, D, E, and F for convenience. From there, it comes down to positional notation. Must like 123 'means' 1*100 + 2*10 + 3*1 = 1*102 + 2*101 + 1*100, in hexadecimal something like F1B 'means' F*162 + 1*161 + B*160 = 15*16*16 + 16 + 11 = 3,867. Therefore, FIB16 = 3,86710. It's by this logic that fffffff016 = 4,294,967,28010. |
https://en.wikipedia.org/wiki/Hexadecimal
Do some research on it. It's really useful in computational mathematics since it's far less verbose than binary. |
Im changing my proffession from computer programming to book author. Life will be so much more simpler that way.
|
In response to Ghost of ET
|
|
Ghost of ET wrote:
How does fffffff0 = 4,294,967,280 <3? It's base 16, so with that, A = 10, B = 11, C = 12, D = 13, E = 14, and F = 15. From my understanding, you multiply out the numbers in their places (ex, ff = (16*15)+15, which is 230+15 = 255) |