00:00 - 22:0022:00 - 00:00

10:03 PM
@thejonymyster Generally speaking, `sqrt` only has one solution, but `x^2 = a` has 2. Convention is that `sqrt` takes the positive branch

right of course
but even if you do say "sqrt has two solutions", thats not the same as "sqrt has one solution which isnt equal to itself"
which is what that message is saying

"isn't equal to itself" is non-sensical

(exactly!)
see the message i was responding to:
1 hour ago, by forest
@WheatWizard sqrt(-1) = sqrt(-1) is false though?

complete and utter NaNsense

10:09 PM
@DLosc Javascript is non-sensical :P

Actually, as much as I would love to poke fun at JavaScript, I think it must be part of the official standard for floats. Python does it too.

10:33 PM
677

I was a member of the IEEE-754 committee, I'll try to help clarify things a bit. First off, floating-point numbers are not real numbers, and floating-point arithmetic does not satisfy the axioms of real arithmetic. Trichotomy is not the only property of real arithmetic that does not hold for fl...

Yeah a lot of complains about JS are actually complaints about IEEE floats

0

Make a Brainfuck Interpreter code-golfinterpreter There already is a Brainfuck interpreter question, but it is from 2011 and not up to date with current site standards and vague in places. I have proposed reposting this in chat, and it was well-received. Here goes. Objective Given the Brainfuck c...

@thejonymyster `x => (x => y)` is equivalent to `!x || (!x || y)` but || is associative so that's just `(!x || !x) || y` or `!x || y` which is `x => y` as desired

10:50 PM
@DLosc It's even worse in Java, where a string is not equal to itself.

It's not a string thing
The value of something is a reference, and reference equality causes that
Which is really really annoying

I know

But sometimes a string literal can equal itself

I guess lyal is today. Did we learn Coconut yet or not?
We kind of did like 2 hours before it ended (kind of)

Actually wait this one is more bizarre: Try it online!
String interning is wack
@Steffan +1 to learning Coconut again

11:03 PM
@cairdcoinheringaahing Now that the first answer has size 2, "The nth answer should be a starting configuration of cells within an n×n bounding box" is incorrect :P
In the meantime I discovered max(p3) >= 175 and max(p4) >= 431
@Bubbler Or I guess you can just start your first answer with `# 2. p2=1` or something

@Bubbler Yeah, I was planning on this
Otherwise, it requires me to post two starting answers, and I don't really need to do that

Yeah, it also violates the second rule

And the first :P

lol yeah :P
and since 4x4 so many random starting states result in one or more free gliders

How many unique starting configs are there for a given n x n grid? It's bounded by \\$n^2\\$ below and above by \\$n!n^2\\$, but I can't think of a better approximation

11:21 PM
How did you get the upper bound of n!n^2? I'd say more like 2^(n^2)

@Bubbler There's \\$n^2\\$ configs for each \\$i = 1, 2, ..., n\\$ living starting cells, with each former \\$i\\$ configs being counted for each \\$i\\$
I think
But \\$2^{n^2}\\$ sounds more accurate

2^(n^2) is simply "on or off for each of n^2 grid cells"

11:37 PM
The exact number of configs w.r.t. reflection/rotation is oeis.org/A054247
and I somehow got the correct initial terms using Burnside's lemma. This is so cool

11:54 PM
@user string literals always equal themselves because they're interned

lyal?

yes
Welcome to the twenty-fifth Learn You A Lang for Great Good! Today, we'll be learning Coconut. During the event, feel free to post CMCs to practice Coconut (CoMCs), ask questions about the language, and so on.
5

nope
its 3 minutes early

whatever