Hacker Newsnew | past | comments | ask | show | jobs | submit | dg44768's commentslogin

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.


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) }


I thought that too. I think the point there was that you don’t have to push this notion as afar as in/out of functions: that just flipping them within a function can be beneficial.


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: