Once upon a time, in 2014, Nintendo took hard losses. Their president Satoru Iwata cut his own pay by 50%. Legendary game designer Shigeru Miyamoto willingly took a 30% cut. Other board members also cut their pay by 20%. They did this to avoid firing staff. This is leadership.
"a + b", this one line of Python code executes thousands of lines of C behind the scenes. My latest article explains what goes on in the CPython runtime to execute this seemingly simple operation. You will learn about:
- Dynamic dispatch implementation in CPython
- What is the abstract object interface in CPython and its role in dynamic dispatch
- What is the PyTypeObject struct and its role in the CPython runtime
- How the various types in CPython implement operators and make them available to the runtime for dynamic dispatch to work.
- And, look inside the implementation of the float type to understand this more concretely.
The article includes 13 annotated code listings from CPython with all the explanations. Check it out: https://t.co/ttxZN8K2SC
@borssyri All the videos of your game are beautiful! I'm curious, how did you do your lighting? Shaders? Built in to a game engine? I love the stepped lighting values and the not-circular shape of it.
@JuhanaMyllys Oh interesting! Never heard of the process of starting with black and white then adding color later - is that to help avoid getting too bogged down in color selection early on?
@GlazeGoose@ENDESGA I think a better answer (to why not use a function) is that sometimes you don't want the code to have to be in a different place but you still want "early-return"-like behavior. Why must early-return also require the code to be in a different place and reusable?
@Seraphaestus@ENDESGA IMO if code isn't reused it doesn't need to be its own function, and that adds indirection and makes debugging harder. Extract logic into a function later when you actually start reusing it.🧵/🧵
@Seraphaestus@ENDESGA An issue with encapsulation is that you sometimes have to add complexity to enable the encapsulation itself. Eg. if you want a func to return 2 values (in many langs) you need a struct. /🧵
I want more games set in a single small location that you end up intimately familiar with by the end. Clever re-use of areas, gating and world events keeping it feeling fresh.
I think it’s more the absolute Irony of this take. None of us streamers are in any moral position/nor are we Spielberging our content here.
Streamers are cam models, we just exploit a different emotion.
@Franrekk It is interesting that, from a distance, this has the ~vibes~ of pixel art, like jagged lines, limited-ish color palette, just without actual aligned pixels when you look closely
you are more capable than you could ever believe.
you are able to do things you think are impossible.
you are immensely powerful if you allow yourself to be.
you are alive, you are never alone.