Courtney Miles

Results 14 comments of Courtney Miles

Your observations are the expected behaviour according to the [Markdown specification](https://daringfireball.net/projects/markdown/syntax#list). > It’s important to note that the actual numbers you use to mark the list have no effect on...

PR #36 introduces flexibility around this. Note that from what I could see, the maths for generating the integers requires a binary numbers. This means you could restrict the numbers...

PR #36 introduces flexibility around this. Note that from what I could see, the maths for generating the integers requires a binary numbers. This means you could restrict the numbers...

I have tried setting `Optimus::MAX_ID` to 2^32-1 and 4294967311 (the next largest prime after 2^32) and I'm finding that `\OptimusTest::testEncodeDecodeWithXor()` periodically fails. Checking the prime versus inverse-prime with `(PRIME *...

An upfront **word of warning**: I'm not a mathematician. So most of the concepts in this are completely foreign to me. And what I'm about to say is based on...

Ahah! So I have confirmation that the strategy used in Optimus does not require primes and a Mersenne Prime as a `MAXINT` -- [A practical use of multiplicative inverses](https://ericlippert.com/2013/11/14/a-practical-use-of-multiplicative-inverses/) So...

Hmmm... so I was way off. The maths was all perfect. The problem comes back to PHPs handling of extremely large integers. With 2^32 for `MAXINT`, and small enough `PRIME`...

Hey @jenssegers, I thought I would drag the conversation about getting this to work with any sized Max Int out of the PR into this ticket. > Couldn't get it...

> did you eventually find a solution? No I didn't, sorry. It was taking too much time and I had to move on. So I'm unsure if there is a...