« first day (2146 days earlier)      last day (1258 days later) » 

12:21 AM
3
Q: Higher or Lower guessing game

K00lmanAfter an extended absence from coding, I decided I would make something to try and get back on my feet again. I ended up making a project that I have made several times before, a higher-lower guessing game. Now while the coding process went well and I came out with something that works quite well...

 
 
2 hours later…
2:34 AM
11
Q: Weird scoping behavior in python

snickerdoodles777Consider the following snippet of python code: x = 1 class Foo: x = 2 def foo(): x = 3 class Foo: print(x) # prints 3 Foo.foo() As expected, this prints 3. But, if we add a single line to the above snippet, the behavior changes: x = 1 class Foo: x = 2 ...

 
 
4 hours later…
6:52 AM
12
Q: Difference observed between MSVC14.1 and gcc8.3 when a destructor call for an automatic variable amends a function return value

BathshebaConsider the following (to be compiled with C++14) #include <iostream> #include <vector> // Foo adds an element to a std::vector passed by reference // on construction in the destructor struct Foo { Foo(std::vector<double>& v) : m_v(v){ } ~Foo(){ m_v.push_back(1.0); } ...

 
7:52 AM
6
Q: Euler characteristic of the simplicial complex of sets of elements in a semilattice with non-zero meet

Christian GorskiIn a combinatorial computation, I came across the following quantity: Consider a finite meet semilattice $L$, that is, a finite poset which is closed under $\min$. Denote the least element of $L$ by $0$. Now, define $Z := \{ S \subset L : \min S = 0 \}$. I want to compute the quantity $$ \chi := ...

 
 
3 hours later…
11:21 AM
2
Q: What's the deal with Möbius pseudorandomness?

Milo MosesAs I do more number theory, and in particular analytic number theory, I keep hearing more about the Möbius function $\mu(n)$ and how it is supposedly "pseudorandom". The values of the Möbius function at $n$ are determined by a formula, so what does this mean? Also, why is it so important that the...

 
 
11 hours later…
10:34 PM
5
Q: Compact object and compact generator in a category

gcfsjfcusI found two definitions of compact object. (Lurie, Jacob (2009), Higher topos theory, p.392) Let $\mathcal{C}$ be a category which admits filtered colimits. An object $C \in \mathcal{C}$ is said to be compact if the corepresentable functor $$ \operatorname{Hom}_{e}(C, \bullet) $$ commutes with f...

 

« first day (2146 days earlier)      last day (1258 days later) »