Readit News logoReadit News
dg44768 commented on Fast Symbolic Computation for Robotics   symforce.org/... · Posted by u/pmaddams
dg44768 · 2 years ago
SymForce is a symbolic computation and code generation library that combines the development speed and flexibility of symbolic mathematics in Python with the performance of autogenerated, highly optimized code in C++ or any target runtime language.
dg44768 commented on Push ifs up and fors down   matklad.github.io/2023/11... · Posted by u/celeritascelery
dg44768 · 2 years ago
Thanks for the article. Maybe I’m confused, but why in the section near the end about how the two recommendations go together, why is the code this:

if condition { for walrus in walruses { walrus.frobnicate() } } else { for walrus in walruses { walrus.transmogrify() } } and not this?

if condition { frobnicate_batch(walruses) } else { transmogrify_batch(walruses) }

u/dg44768

KarmaCake day5November 16, 2023View Original