« first day (2700 days earlier)      last day (2154 days later) » 
00:00 - 14:0014:00 - 00:00

12:04 AM
@EriktheOutgolfer hopperapp.com
 
> Your score reveals fair psychic abilities!
i have esp 😤
 
@Downgoat reading the FAQ... yuck, looks like a very lazy effort to make money
and, of course, "What customers say about Hopper?"
the only place where there are real reviews
 
so the return value of this function is a bool but it's has a movsx (sign ext) on the return register, this should be equivalent to a movzx right since it's a bool?
 
12:22 AM
I'm thinking of making a challenge out of this
 
hmm
 
12:32 AM
@orlp ok that looks a bit impossible
if Alice gets [x, 1] and Bob gets [0, x], they both get x...ya know, you can't have a cake and eat it too
 
@EriktheOutgolfer no they don't
[x, 1] has size 1- x
e.g. [0.7, 1] has size 1 - 0.7 = 0.3
 
what is the size of a vitali set?
 
@LeakyNun vitali set?
 
nvm
@orlp so here's the story
we try to measure the size of sets
 
@orlp isn't that true for (x, 1] and [x, 1)? I thought the size of [a, b] is b - a + 0.(0)1
 
12:36 AM
let's say we focus on subsets of [0,1]
so we want to build a function μ:P([0,1]) -> R, where P is powerset
 
@EriktheOutgolfer 0.(0)1 = 0
 
we list the things our functions should satisfy
1. μ(A) >= 0
2. μ([0,1]) = 1
3. μ is translation-invariant (mod 1)
4. μ is countably additive
it turns out that the 6 conditions are inconsistent (with 2 to be listed)
5. μ is defined everywhere
6. axiom of choice
 
what is translation invariant here?
 
I think Vitali pointed this out if I'm correct, and constructed an example using what is now called a Vitali set, which is constructed using 6
 
|[a, b]| = |[x + a, x + b]|?
 
12:39 AM
@orlp μ(A) = μ(x+A)
 
and countably additive?
 
not just intervals
 
μ(A v B) = μ(A) + μ(B) - μ(A intersect B)?
 
@orlp if A_1, A_2, ... is a bunch of disjoint sets, then μ(A_1) + μ(A_2) + ... = μ(A_1 union ...)
@orlp that's finitely additive
 
ah so 4 doesn't even apply to non-disjoint sets
 
12:41 AM
well that's a corollary, but there might be some convergence problem with infinite inclusion-exclusion
you can certainly derive finite inclusion-exclusion with 4
 
5 seems quite problematic though
 
1-5 are consistent though :P
 
being defined everywhere on the powerset of an uncountable collection is quite the task
 
under ZF, that is
assuming ZF itself is consistent, that is
 
@LeakyNun don't get me wrong, I haven't looked into this at all
 
12:43 AM
oh
 
but my intuition suspects that the axiom of choice is inconsistent with it
 
right, 1-6 are inconsistent
 
is because you need the axiom of choice to begin with to see what a mess you've made by defining this function everywhere on the powerset of the reals
 
right
 
@LeakyNun it feels a bit to me like giving a telescope to an astronomist and then concluding that "telescope + geocentric = inconsistent"
haha
 
12:46 AM
well
 
but that's just my intuition
 
interesting
I see that you believe in the axiom of choice
 
not really
I'm not against it either
but I'm just very skeptical about those... very large sets
 
if you don't, I might say that the telescope is flawed
I see
 
and when I say skeptical I just mean that my intuition is fairly worthless
I think the axiom of choice is kinda sinister
because it is intuitive when applied to finite sets
or countable sets
 
12:48 AM
finite is a theorem, countable isn't, but ok
of ZF
 
sure, but I'm just looking at it from evaluating it intuitively
like someone sees the axiom and will first try it against a finite set
"yeah makes sense"
then a countable set
"sure, I can pick one with some distribution"
 
I think what you mean by countable is actually dependent choice instead of countable choice
 
but then it's too easy to just accept it for uncountable and beyond sets too
 
i.e. choose the things one by one inductively
 
@LeakyNun can you pick a number in [0, 1]?
 
12:50 AM
0.5
 
what made you pick that number?
 
how do I know
psychology, I believe
it makes people choose the number in the middle
I don't believe in free will
 
(hint: any answer you give is inherently countable due to the language you described your picking algorithm in)
 
hmm?
 
there is no finite-time "picking algorithm" that can return an element from an uncountable set
only from a countable subset of that uncountable set
 
12:52 AM
sure, we're just dealing with countably many things anyway
in particular, the computable real numbers
 
@ASCII-only should VSL have enum Goat { a, b } for enum syntax or like enum Goat { case a; case b }
 
@LeakyNun forget computability
 
that isn't what axiom of choice says
you're still choosing from one set
 
@LeakyNun the mentionable or describable set of numbers or mathematical objects in general, is countable
 
this is still finite choice
 
12:53 AM
because any medium you use to transfer your mention or description of an object
is inherently countable
therefore the objects that you can describe are also countable
 
do you know Konig lemma?
 
not by name
 
locally finite tree that is infinite has an infinite path
 
can you describe it in a bit more words?
what is a locally finite tree?
 
each node has finitely many children
 
12:55 AM
then I don't think it's correct to say it has an infinite path
 
let's just deal with binary trees
 
it has an arbitrarily large path
 
you'd be surprised
if a binary tree is infinite, then there is an infinite path
 
that is, a path of length ω
 
right
 
12:56 AM
but that's distinct from a path of length ∞
@LeakyNun I've seen a similar thing with chess on an infinite plane
 
ok
now this requires dependent choice
 
there are configurations in which black is to move
 
you need to choose a child each time
 
and then afterwards white will mate in ω steps
that is black can delay its mate for ω steps - an arbitrarily large but finite amount
@LeakyNun ok, left child
:P
 
@DestructibleLemon I tried it
> Score: 25 out of 25
> Analysis: Your score reveals excellent psychic abilities!
 
12:59 AM
@orlp oh no, left child has no children
 
Just run console.log(shape[rand_number]);
 
is there a CSS way of changing the style of a button when it is pressed by the user?
 
black to move
by moving up the middle rook N steps he can survive for N + c moves afterwards
 
@HyperNeutrino does :active work?
 
@orlp I see
 
1:02 AM
@LeakyNun so he can survive ω steps
arbitrarily large, but finite
 
:D it does. thanks!
 
@orlp ok 1. that isn't what ω means, ω is actually infinite 2. there is actually an infinite path, not just an arbitrarily large path
 
@LeakyNun alright, so left child doesn't have children
what about the right child?
 
it must have, or else the tree would be finite
it would only have 3 nodes...
 
ok, so if the node we started on has n children
we go to our right child
so we have n-1 children left
 
1:04 AM
our tree is infinite
 
it was locally finite
 
no, we don't have n-1 children left
 
so I can with certainty state that for some n the node we started on has n children, no?
 
each node has finite children
but the child can have a larger number of children
 
ohhhhhhhhhh
you mean direct children?
 
1:05 AM
but that doesn't matter, it suffices to discuss the case for binary trees, i.e. each node has <= 2 direct children
 
AKA branching factor
 
sorry
 
well duh
:P
the real numbers [0, 1] is such a set
 
that wouldn't be a local condition, you know
@orlp sure
 
write them in fractional binary
0 = left child, 1 = right child
then pi is an infinite path in this tree
 
1:06 AM
but that's actually the wrong set to think about it, since 0.0111.... = 0.1000....
if you include everything, you get the Cantor set
Konig lemma and Cantor set and computability are all connected
Fun(Fun(N,2),N) has decidable equality :P
Fun(N,2) is the Cantor set
 
what is Fun?
 
functions
 
that's still unclear :P
Fun(a, b) = ?
@LeakyNun true, forgot about that
 
eh... I mean the functions from N to 2
 
ahh
I don't see how Fun(Fun(N,2),N) has decidable equality
let alone Fun(N,2)
@LeakyNun construct some bijection N <=> polynomials with rational coefficients and arbitrary variables
 
1:16 AM
@orlp Fun(N,2) doesn't
@orlp arbitrary variables?
 
then the function f(n) -> 0/1 "does diophantine equation corresponding to n have a solution?" is undecidable
@LeakyNun x, y, z, ... and so on
 
what's after z?
 
anything you want
 
I see
 
Hilbert's tenth problem is the tenth on the list of mathematical problems that the German mathematician David Hilbert posed in 1900. It is the challenge to provide a general algorithm which, for any given Diophantine equation (a polynomial equation with integer coefficients and a finite number of unknowns) can decide whether the equation has a solution with all unknowns taking integer values. For example, the Diophantine equation 3 x 2 − 2 x y − y ...
it's just an encoding of hilber's tenth problem :P
 
1:17 AM
I thought you told me to do it lol
anyway, that's irrelevant to my claim
 
oh no it was just an argument to show Fun(N, 2) has no decidable equality
 
that isn't decidable equality
it's just a noncomputable function
 
doesn't that imply that you can't test it for equality?
given the function is a black box
 
indeed, let's say that our functions are computable :P
Apr 4 at 11:41, by H.PWiz
@LeakyNun Can you give the solution to your last CMC please?
cf ^
 
I don't really know how to interpret Fun(Fun(N,2),N)
 
@orlp Fun means computable functions now
 
I will look at it more tomorrow
I now need to go to bed
I have an exam :D
@LeakyNun somewhat related I'd say math.stackexchange.com/questions/2469105/…
question by me :P
 
ok
 
Does anyone know how to get the last item from the stack in Actually? tio.run/##S0wuKU3Myan8/7889/9/SwA
 
1:42 AM
btw @ASCII-only i think i have find alternative to cloud9 call codenvy
@ASCII-only pls ping when u come online
 
Anonymous
1:59 AM
@Oliver Stack or list? To move the last item on the stack to the top, use (. To get the last element of a list, use N.
 
@Mego Sorry, I did mean list. Thanks!
 
Anonymous
Welcome :)
 
4:10 AM
@quartata I feel like your twitter gave me cancer
and/or I'm now an idiot
 
@Riker what tweet did it
I need this for a study I'm running
 
Anonymous
4:30 AM
@quartata Your flavor of misspelled surrealist humor is a treasure
6
 
@quartata Has your study found anything yet
using the world,s strongest most technologically sophistcated laser pointer to carve 'kilroy was here"" onto mars
@quartata ^ Here's what did it for me
 
@Pavel i need more fake impressionist paintings
@Pavel this one was a Treat
quite proud of it
@Mego thank you. i hate it
@Riker Just out of curiosity, what were you doing with the Boids?
I never asked
 
5:08 AM
anyone here good with IDA
I am using MakeUnknown but that doesn't get registered as a patch, so how do I take my modifications w/ MakeUnknown to be able to exported in a diff
 
6:02 AM
@quartata You have a very nice twitter.
Thank you
 
 
1 hour later…
7:12 AM
I don't see how closing popular questions as dupes of older inactive ones help the site...?
If you notice it early, sure, go ahead and hammer it. If it has twice the number of answers and more upvotes than the old one. Keep it, and if anything, close the other one...
14
Q: Find the Squarish Root

Cat WizardWrite code that when given a positive number \$x\$ as input, outputs the largest positive divisor of \$x\$ less than or equal to the square root of \$x\$. In other words find the largest \$n > 0\$ such that \$\exists m\geq n:m\cdot n=x\$ (Exists \$m\$ greater than or equal to \$n\$ such that \...

I'm very tempted to undo Peter's hammer, but I don't want to do it single handedly...
 
7:48 AM
The old question has not received any answers or votes after the new one was closed as a duplicate. The only result has been to kill all interest in the question.
 
8:12 AM
@StewieGriffin Now it does.
I mean, instead of hammer back somebody can just move their answer there, it would be easier right? ...
Without HNQ... probably a good thing.
Why is there so many mathjax-related messages starred :/
I would argue that the old question is no worse than the new one - in fact the highest voted answer there has higher score (and is more interesting, probably faster too)
Q. Did we have HNQ a few years ago?
 
@StewieGriffin I find the old question much easier to understand. Maybe a mod can move all the answers to the old one?
 
@Adám (also called "merge")
Although there is a problem. Although the core challenge is the same, the output format is different (the old one is {i, n/i}; the new one is i)
So they can't just be moved.
Can anyone help me with this? (need to read the linked question for context)
For me ctrl+shift+up gives A and ctrl+shift+down gives B. — user202729 6 mins ago
 
@user202729 I didn't notice. As the new one requires less, I think we should reopen.
 
TypeError: 'HistoryIterator' object is not iterable
 
@Adám But the core challenge is the same. Also converting between formats are trivial.
 
8:27 AM
hmm
 
@user202729 True. But as you say, it doesn't hurt the site.
 
Having multiple similar challenges does. We should only have one.
(in particular: not fully golfed solution without them being aware of a better one, interesting method being not known, etc.)
 
 
1 hour later…
9:46 AM
my server hosting doesn't allow access to pip, not even to --user
this is annoying as heck, you have to unpack and install everything manually.
 
I agree, the best would be if people started answering that one instead. The problem is: they don't (or rather, most people don't).
 
uh, what are you referring to
 
And the HNQ is not only negative. It attracts new users to the site, which is a good thing.
@user202729 this one.
I'm on the phone, so replying, hyperlinking etc is cumbersome.
 
10:01 AM
@StewieGriffin Yes I know...
The 3rd question is "which challenge is better" -- as I said above, IMO they're equally good.
 
I was looking through the transcript and saw how Euclid is pronounced something eff-klee-dees in Greek. Now I kind of want to ask Erik about how to pronounce every Greek name I've ever heard in mythology, science, and mathematics
 
But I supposed I'd start with Archimedes, Socrates, Plato, and the person Indonesia calls Aristoteles
 
@Sherlock9 Why don't you ask Google? (yes Google can pronounce everything in every language, but a bit inaccurate in my experience)
 
Sorry, I won't bombard you
I'm just kind of a linguistics nut about transliteration
ar-ki-mi-dis, so-kra-tis, pla-ton, a-ris-to-te-lis, for those wondering
 
10:24 AM
@user202729 I too think they are equally good. But I don't see why killing a very active challenge is a good thing. Had it been done when there were 3 answers I would agree, but when there are 30 questions then i disagree.
And I too think it should be a post-by-post thing, although the comments I wrote were general...
 
10:36 AM
0
Q: Bake me some moji

AdámGiven a byte stream which is valid UTF-8 and Windows-1252 (most languages will simply take this as a UTF-8 string), convert it from (that is, pretend it is) Windows-1252 to UTF-8. Examples: £ → £ £ → £ £ → £ I ♥ UTF-8 → I ♥ UTF-8 árvíztűrÅ‘ tükörfúrógép → árvÃztűrÅ‘ tükÃ...

 
@NewMainPosts Whoa, that was pretty much instant.
 
Although obviously /dev/stdin is a byte stream, do we have some "equivalent substitution"?
For example is an array of ints in 0..255 ok?
 
@user202729 Asking me, right?
 
Yes, but I think this can apply to other challenges too.
Those which requires "byte stream".
 
@user202729 Well, how about a string or character list?
@user202729 Good meta Q.
 
10:44 AM
Because a non lazy list is not exactly equivalent to a byte stream.
But streams can be buffered too.
In this particular challenge it does not require interactive so laziness doesn't matter.
 
@user202729 Would it be better if it said "sequence" instead of "stream"?
 
For example: For Jelly taking an array of bytes (an Python3 list of Python3 int) gives a huge advantages over taking a Python3 string.
 
@user202729 But how about a Python3 list of length-1 Python3 strings?
 
Equally hard.
In Jelly the only way to get bytes from string (without Python eval) is to get its Unicode codepoint then encode it into UTF8 manually.
Oops...
Jelly string is Python list of length 1 Python string by default.
 
@user202729 :-)
 
10:50 AM
Except in input. Confusing.
 
@user202729 That's because Jelly tries to mimic J, where there are no strings, only character lists.
 
That's because Jelly tries to be golfy. Having functions to manipulate strings and lists separately is not golfy.
Anyway... is an array of integers in 0..255 acceptable?
 
@Adám nah, Jelly doesn't try to mimic anything here :P
 
@user202729 Consensus does not mention that possibility. The opinion that allows it is at +6/-4 so I guess not.
 
A valid UTF8 byte stream is not a string...
 
11:00 AM
@user202729 Any ideas how to phrase it?
 
You may specify that the input is an UTF8 string?
CMP: How do you write string literals that is too long in Python? (1): Use backslash; (2) concatenate many strings together.
 
what is "too long"
 
Something that doesn't fit in the currently working window.
(I asked that because of an annoying bug in sublime text fold)
 
@user202729 It already says most languages will simply take this as a UTF-8 string.
 
@Adám So "if your language can take an UTF8 string then take it. Otherwise do whatever you want"?
Sounds a bit weird. And have some language bias.
 
11:06 AM
@user202729 Something like that.
 
@user202729 actually, I'd recommend a combination of (1) and (2)
s = 'This ' + \
    'strin' + \
    'g is ' + \
    'long'
 
@EriktheOutgolfer Why do you need \ then... ah... you do need that when there are no parentheses.
 
@user202729 I'm not. All languages may use all methods. It is probably just easier and shorter to take a UTF-8 string.
 
That's about my suggestion‌​.
 
@user202729 if you do something like this, the result will be ruined
s = 'This \
     strin\
     g is \
     long'
 
11:11 AM
@EriktheOutgolfer Yes I know, leading spaces.
 
@user202729 OK, but what I mean is that you may take a UTF-8 string, if you can, but feel free to use any method.
@EriktheOutgolfer We have discussed this problem regarding allowing APL strings to span multiple lines.
 
I mean in cases like
 
@Adám the problem is different here; the leading whitespace on every line except the first will be included in the string
 
s = ('This' +
       'string' +
       'is')
I can't just do
 
@EriktheOutgolfer No, that is exactly the problem we encountered. I proposed:
 
11:13 AM
  s = 'This\
string\
is'
because sublime text folding bug.
 
s←'This
   string
   is long'
 
yeah ^^^ = yuck
 
 
1 hour later…
12:34 PM
Python: is there await for in arrays? eg. [x await for x in r.users()]
 
So r.users() is a coroutine?
What about list = await r.users(); [x for x in list]?
 
that throws an exception, wait
 TypeError: object ReactionIterator can't be used in 'await' expression
And yes, r.users() is a coroutine.
never mind, it had to be async, not await. problem solved
 
1:08 PM
I broke my Linux :(
 
00:00 - 14:0014:00 - 00:00

« first day (2700 days earlier)      last day (2154 days later) »