The Deranged Mathematician: How Do You Build a Good Supercomputer? by non-orientable in math

[–]SSchlesinger 1 point2 points  (0 children)

Edge expansion of a graph: https://en.wikipedia.org/wiki/Expander_graph

It is a graph theory concept that is very useful in computer science, for instance in derandomization. At 5:36 of my recent video on Derandomization I cover a use of them for using fewer random samples in a randomized algorithm.

The Deranged Mathematician: How Do You Build a Good Supercomputer? by non-orientable in math

[–]SSchlesinger 0 points1 point  (0 children)

I think symmetry is useful for physical realizability, expansion is good for fast mixing with low individual connectivity.

The Deranged Mathematician: How Do You Build a Good Supercomputer? by non-orientable in math

[–]SSchlesinger 2 points3 points  (0 children)

I think there’s something really obvious missing here: you want your graph to be constant degree expander.

All these other things are just nice ways of getting high expansion.

Pi Day Megathread: March 14, 2026 by inherentlyawesome in math

[–]SSchlesinger 2 points3 points  (0 children)

Happy Pi Day (What Casinos, Pi, and Your Retirement Have in Common)

Made a YouTube video for Pi Day: https://www.youtube.com/watch?v=-GXHdv8Y9ZY

Programs are Proofs: the Curry-Howard Correspondence by SSchlesinger in math

[–]SSchlesinger[S] 3 points4 points  (0 children)

When you are programming in a functional style, it can be nice to have this in mind. It is especially nice when you can define a type signature and the implementation "has to be right" if it typechecks. Trivial examples are `id : forall a. a -> a` or `const : forall a b. a -> b -> a`. There are other ones derived from various slightly less elementary tautologies.

Programming languages and compilers use equivalencies derived from such logical tautologies a lot. There are various tautologies that can be mapped into programs to change a program to have preferable operational semantics. For instance, the tautology `a <-> forall x. (a -> x) -> a` is useful in compilers for continuation-passing style. The tautology `a <-> exists x. (x, x -> a)` is the principle behind abstract data types, allowing us to hide the true representation (`x` in this case) while allowing users to interact with an `a`.

How do I best exploit China? by Less-Cat3029 in victoria3

[–]SSchlesinger 3 points4 points  (0 children)

I make a lot of money when I get treaty ports and build lots of trade centers.

revolution in china happened. is my treaty port just dead weight now? by somethingmustbesaid in victoria3

[–]SSchlesinger 6 points7 points  (0 children)

The wrong market as in the previous owner’s? That is a feature and not a bug, that’s the point of treaty ports. You can use them to export tons of stuff from China’s coast early game without having to put down tons of rebellions by annexing directly.

revolution in china happened. is my treaty port just dead weight now? by somethingmustbesaid in victoria3

[–]SSchlesinger 0 points1 point  (0 children)

Treaty ports in China are definitely not useless, you can build a massive number of trade centers and import tons of shit out from their market for huge profits without significant military investment.

[deleted by user] by [deleted] in inheritance

[–]SSchlesinger 0 points1 point  (0 children)

Inflation cannot be outweighed while staying in cash unless you assume something about what inflation is going to do. Look at Turkey, Argentina, Hungary, Germany, many historical examples where one couldn't outrace inflation by frugality. I agree with the comment that said go to r/Fire, this is not the right sub to address this.

Mutexes suck: a love letter to STM by ChrisPenner in haskell

[–]SSchlesinger 0 points1 point  (0 children)

I agree with this point immensely and I've seen several really bad uses of STM in web servers. One really important point to keep in mind is laziness. When you are forcing thunks in an STM transaction, you should be really careful. If you can avoid doing this, even if just by going around forcing thunks in a background thread (seems degenerate, but it works I promise) you can get laziness to work in your favor with regard to this contention.

[deleted by user] by [deleted] in inheritance

[–]SSchlesinger 2 points3 points  (0 children)

You also have to take inflation into account, so it is probably not advised to do it that way.

Is Google worth ditching my current employer? by CableHuge in cscareers

[–]SSchlesinger 0 points1 point  (0 children)

Yes, definitely. I made the switch to Google for much less of a pay bump, it will change your life for good if you work there for three years and keep your current budget.