Pinned Tweet
Made a lava lamp shader for Unity. It's not a real simulation, just an artistic effect using clever tricks to fake the lighting and a "temperature" property for the blobs to make them rise when they get to the bottom and fall after they "cool down" at the top.
↓ Code Below ↓
1
153
The most genius mathematician in 200 years: Yeah man, you can't count the reals, every scheme you come up with will fail
Some random software developer in 2026: ah, but have you considered floating point precision
I think I just came up with a way to have the uncountable set of real numbers (aleph-one) to actually be countable. I had this idea after taking the hottest shower of my life.
Now I am dumb but I was thinking about how rational numbers are in fact countable. You do this by going through a 2 dimensional grid of natural numbers and you traverse it like a sneaky snake diagonally. thus you get 1/1, 2/1, 1/2, ... and so on.
But you cannot do this with real numbers because irrational numbers cannot be represented by a fraction. But this bothered me because in some sense you can represent a lot of real numbers via computer bits and computer bits are in fact walkable. So why are they not a countable infinity...
Then i thought, ok what if you started off with an 8 bit floating point number. Now this would represent some small set of all possible real numbers. But you could theoretically go through all of those numbers. They are countable.
Then I thought, well... wait a second, that approximates some of the real numbers. If you go to 16 bit, you approximate more.
The thing that makes the rational number thing work is that you just have to see how you could walk it infinitely, thus its countable.
If all real numbers could be represented eventually by having a bigger and bigger floating point representation of numbers, couldn't there exist a countable solution to this?
byte_size = 1
while (true)
for byte_size ** 8
count_this_real_number
byte_size += 1
... wouldn't all any and all real numbers eventually be counted?
1. no I am not high
2. yes I understand I am a moron
3. I just always found the fact rational numbers countable but irrational numbers not so bothersome ...
4. I didn't proof read this
8
Maybe I should finally learn Godot...
Introducing Unity Spark — a new way to create a game, iterate on it with others, publish it, and play it - all without writing a line of code.
You'll build with artist-created assets from the Unity Asset Store, and then you can take your game to the next level by refining it in a new web-based editor.
Prompt it. Perfect it. Publish it. Inspired games, with artist-created assets, built on Unity.
Closed beta coming soon.
6
Christopher Gallegos retweeted
People outside tech starting to realize how quality software and typing/generating code fast are not correlated
variable = changed at runtime
constant = set at runtime then doesn't change
static = set at compile time then doesn't change
anything else is a mental illness
61
One side-quest on this journey was finding this funny little function in the source code which projects a point along the z-axis onto the objects xy-plane
The best way to do this is obviously... a raycast😂
But make sure you do two because the plane could be behind the point too
Spent the last few days banging my head against the seemingly simple problem of trying to replicate Unity's gizmo for their CapsuleCollider2D.
Would not recommend to anyone who values their sanity.
1
49
Spent the last few days banging my head against the seemingly simple problem of trying to replicate Unity's gizmo for their CapsuleCollider2D.
Would not recommend to anyone who values their sanity.
The existence of euclidean zoning implies the existence of non-euclidean zoning
59
A simple mental image I use to understand the concept of independence in probability:
It's like a Punnett square where the areas represent the probability of an event happening. Independent events are ones that can be aligned within the square.
1
33
Christopher Gallegos retweeted
Q: "why should I care about math?"
WRONG: "because you'll use it in everyday life"
WRONG: "a lot of jobs require it"
WRONG: "it improves how you think"
WRONG: "it's like an art form"
CORRECT: "you'll be granted divine sight"
This graph is very funny to anyone who knows what a second derivative is:
Concave up
Concave down
Concave up
Concave down
etc...
This quoted post is unavailable.
46























