PSA: If some of you missed it code-golf.io also allows Haskell submissions. I feel like the Haskell golfers should be more present and I could certainly do with some more competition ;P
@H.PWiz I've been wondering for days how you managed that score :S
@flawr Which integer-based algorithm?
I think, given enough time/resources, pretty much any algo could be adjusted to integer math, st. it would be possible to compute the first 1000 digits.. But I'm not good enough with maths :(
I've been trying to get this to work, but it does not converge at all..
@flawr I think that would be prohibitively expensive to use, but in any case my current implementation didn't get near an error of O(1/n) ..
@flawr Yeah, I was wondering the same..
Also, how would you even get close to Conway's constant? Seems like the straight forward way of implementing the actual series will never converge.. Probably we'll need to golf that polynomial and start approximating the solution to it -.-
@BMO It looks like this polynomial has exactly one zero between 1 and 2, so we could use the bisection algorithm to approximate the root. This needs log2(10) = 3,... iterations per digit, so we need just around 3k iterations.
@flawr Fibonacci's fun, not a technique you see much on this site
@BMO Yeah, some solutions use the polynomial, others compress it. I don't have any clever Haskell compression, especially since it's quite fussy about what unicode characters it lets you use
@H.PWiz As far as I know, Haskell is really liberal.. There's one submission on cg.SE where we were able to leverage some really weird unicode-whitespace chars and it accepted them as actual whitespaces
OK I found my string test file and the forbidden character classes in strings are [OtherPunctuation,LineSeparator,ParagraphSeparator,Control,Format,Surrogate,PrivateUse,NotAssigned].
About 112802 characters are permitted out of the 1114111 total.
Oh also I'm on GHC 8.0.1 still (every time I consider upgrading I hear about some fiendish bug), so it's possible the Unicode database has got upgrades since.
Oh BTW "forbidden character classes in strings" should be in string literals, in case someone misunderstood - the Char type itself allows everything between 0 and 1114111.
@BMO Certainly not, I'm purely a hobbyist and these days I rarely do more than the occasional golfing.