James Logan

@ponderingpothos.bsky.social

Scientific computing in rust and python, firmware in rust, and the occasional circuit board design & testing. Propulsion engineer in a previous life.

New blog post for the WebGPU aficionados! WGSL layout rules are annoying, and I got tired of mismatched CPU/GPU layouts (because the failure mode usually required rebooting my entire laptop) As it turns out, it's not too hard to automatically cross-check them, with the power of runtime reflection!

Testing WebGPU data layouts with Facet

Using Facet's run-time reflection to check the layout of structs against their definitions in WebGPU shaders

mattkeeter.com

C++ programmers really will say 'you use borrow checkers? that pales in effectiveness to my strategy, properly de/allocating memory' and then not properly de/allocate memory

I'm almost there it's so pretty!! 😭 this is the first time I've made extensive use of complex numbers in shader code, which has been fun! it's an analytic 2D lighting system through piecewise conformal maps representing angular light/"sky" exposure, which means you get fully analytic penumbras!

a partially finished analytic 2D lighting solution, showing both the angular and radial component with a checkerboard pattern and color coding

Key to efficient learning is realizing how we ACTUALLY learn, not just what FEELS like learning. I wrote a Claude Skill for some friends to help them think about this and they've liked it -- see Principles for some directions you could explore github.com/DrCatHicks/l...

GitHub - DrCatHicks/learning-opportunities: A Claude Code skill for deliberate skill development during AI-assisted coding

A Claude Code skill for deliberate skill development during AI-assisted coding - DrCatHicks/learning-opportunities

github.com

Outer Wilds, if you haven't played it yet, is one of the best games of all time. It's a fun space exploration game with a timeloop twist, and 90% of all game progress happens in your head, as you learn things about the universe and your situation. Absolutely play it if you haven't yet.

Mobius Digital Games@mobiusdigitalgames.com · 6mo ago

PSA Outer Wilds is 50% off on Steam till Thursday! This is the biggest discount it's ever gotten; usually sales max at 40%. store.steampowered.com/app/753640/O...