Загрузка видео...

Не удалось загрузить видео

На главную

Math is art. Machine instructions are an abstraction derived from mathematical operations at the hardware level. Assembly is a low-level representation of these instructions. Your C code compiles down to assembly, and Python was implemented in C. Learn the math.

18,693 просмотров • 1 год назад •via X (Twitter)

Комментарии: 11

Фото профиля Fantasm Lister (mog/acc)
Fantasm Lister (mog/acc)1 год назад

Amazing!

Фото профиля tetsuo.sol – mog/acc
tetsuo.sol – mog/acc1 год назад

🤍

Фото профиля Matt Figdore
Matt Figdore2 лет назад

This is the biggest productivity cheat code right now. Kiss reading documents goodbye. You can get an instant summary of any document with this tool.

Фото профиля /̵͇̿̿/'̿'̿ ̿ ̿̿ ̿̿ ̿̿ ∑:
/̵͇̿̿/'̿'̿ ̿ ̿̿ ̿̿ ̿̿ ∑:1 год назад

remilio

Фото профиля tetsuo.sol – mog/acc
tetsuo.sol – mog/acc1 год назад

remilio

Фото профиля Aemilivs
Aemilivs1 год назад

But... Machine instructions are specific implementations of mathematical operations, not abstractions derrived from them

Фото профиля tetsuo.sol – mog/acc
tetsuo.sol – mog/acc1 год назад

yeah you're kind of right.

Фото профиля TRiM
TRiM1 год назад

Everything is math..

Фото профиля @unknown
@unknown1 год назад

This is strong

Фото профиля nathfavour🚀👨🏾‍💻
nathfavour🚀👨🏾‍💻1 год назад

Learn the math 📍

Фото профиля 🌠
🌠1 год назад

@KefitzatHaderek

Похожие видео

FINALLY finishing up a MASSIVE PR from hell for the Sega Dreamcast port of Grand Theft Auto 3! This is an actual hardware capture now of the DC version under a high load, which would've previously been a slideshow, between the dynamic lighting from the sirens, the amount of rigid bodies in the physics simulation from the cars, and the high-speed chase placing high-demands on asset streaming... I went through all of the low-level common math infrastructure in both the engine and at the RenderWare driver layer and made numerous optimizations, before slowly working my way up to optimizing individual algorithms at the application layer using the new math routines. Firstly, the common low-level floating-point math routines for everything from trig and inverse square root operations to floor(), ceiling(), and clamp(), were replaced with what was meticulously found (in Compiler Explorer) to be the optimal patterns for GCC 14.2.0, targeting our SH architecture (sometimes favoring C builtins, sometimes inline SH4 ASM). Next, in the layer above, with inline SH4 assembly, the common matrix math and linear algebra routines were accelerated using the Dreamcast's vector instructions. Some cleverness went down here, such as cramming matrix metadata into unused insignificant bits of an element, combining loading two matrices with multiplying them, fast transposes, fast quaternion multiplication using 4 dot products, etc. Once the foundation was laid, some of the Renderware code such as the calculations for the lighting, updating bounding volumes, and deriving UV coordinates for specular environment maps on the cars was made faster automatically. The main gainz were actually made rewriting a decent amount of the collision intersection and contact resolution code, though, from using C++-style overloaded operators for multiplying single 4D vectors by a 4x4 matrix to doing batches of 4D vectors by the same matrix. This SUBSTANTIALLY reduced the number of times the backing 4x4 matrix bank had to be reloaded and allowed me to keep it resident within registers while it was being used by the intersection algorithms!

Falco Girgis

114,524 просмотров • 1 год назад