248 karma · joined Jan 5, 2013 (13y ago) · 106 submissions
comment 8mo ago · link · parent
comment 12mo ago · link · parent
On the other hand, at least for me, the scene was craft for crafts sake. Nobody would pay for somebody to optimize assembly code by the byte just to make art!
Spacepigs rule!
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
But taking a step back: It is making very strong predictions for a future state of what I would consider a chaotic system. As the author identifies as a Physicist and not a Psychic, why is there no mention of uncertainty? No mention of how you would test or refute the prediction?
Looking at very selectively picked graphs is like reading tea leaves.
If even just a few people read the article and change their investment strategy as a result you already affected the outcome.
comment 1y ago · link · parent
https://v8.dev/blog/wasm-tail-call
the key here is that there are new, different opcodes that can be tail call optimized! Because tail call optimizing the old op code would break the spec. It all makes sense, but is kind of amazing.
comment 1y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
One neat feature is that you can import Chrome traces. Instrument with normal JS perf marker API! The Tracy UI is just so much better for viewing them.
That said, the title confuses me: I am always thinking of Tracy as an instrumented profiler, not a sampling profiler. I only ever used it as instrumented.
Sampling: Profiler takes stack samples of any code, at fixed frequency, gives you rough hotspots. Instrumented: Report sample points to profiler. Requires putting profiling point into the code to be analyzed.
comment 3y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
We did it for 4k intros back in the day: https://www.pouet.net/prod.php?which=289.
One fun optimization trick was the 0x66 prefix: Switching from 16bit to 32bit mode also switched the trade-off in opcode sizes. So in that intro most of the audio code runs in 16bit mode, while the graphics (which is actually not palette but full 32bit color) runs in 32bit mode.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
To be proficient in reading or writing assembly (versus higher level languages) means to deal with a stream of instructions. Once you are fluent with that concept parsing individual instructions is a lookup. Operand ordering is just a small part of that. It can be x86, arm, or tis-100.
Switching between x86-intel and x86-at&t is no different than switching between x86 and arm.
comment 4y ago · link · parent
But if I were to teach modern GPUs and rendering I would recommend starting with something like https://tayfunkayhan.wordpress.com/2018/11/24/rasterization-...
comment 4y ago · link · parent
On the other hand: How do you teach performance engineering? I learned it in the Demoscene, which was simply a competition. "I can do this effect in 2 cycles less". Not everybody will be a good performance engineer. Or should be! I feel like the people who do good in performance engineering will be competitive and find their win in whatever environment. Maybe that is a good context for the book: That's what people did to win!