T.J. Żelawski

@tjzel.dev

Software Engineer @Software Mansion I maintain some React Native open-source libraries

My talk titled "Your GPU is a JavaScript Runtime*" just landed on YouTube! 👨‍💻 I answer WHY and HOW we compile JS/TS to WGSL, how it improves interop for the whole ecosystem, and the added dimension of customizability it unlocks for WebGPU libraries Video below ⬇️ #webgpu #typegpu #typescript

Bild

C++ enjoyers, is there some syntax sugar to reduce boilerplate of `weak_ptr` locking in memory-safe lambdas referencing `this`? I'm tired of making the `return` block everytime and I don't want to nest either.

AnimationFrameBatchinator::JsiRequestAnimationFrame
AnimationFrameBatchinator::getJsiRequestAnimationFrame() {
  return [weakThis = weak_from_this()](
             facebook::jsi::Runtime &rt, const facebook::jsi::Value &callback) {
    const auto strongThis = weakThis.lock();
    if (!strongThis) {
      return;
    }

    strongThis->addToBatch(callback);
    strongThis->flush();
  };
}

We have just released an RC version of Reanimated, 3.17.0-rc.0 🥳 It has significant changes in the native code structure. It's an important milestone for our goal of moving Worklets to a separate library. If you can, please check if it compiles in your project 🙏 All feedback is welcome!