NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Speeding up C++ code with template lambdas (lemire.me)
jeffbee 2 days ago [-]
Hrmm. What exactly is the value of the lambda in this scenario? The case for it seems aesthetic. Anyway, lambdas are not anonymous. They have a name but the author is not allowed to know it. So it seems like six of these or half a dozen of those.
usefulcat 2 days ago [-]
I agree that in this particular case most compilers would be able to take advantage of the compile time constant even without any templates. But I also suspect there could be other cases where templates might be useful or necessary.
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 23:55:38 GMT+0000 (Coordinated Universal Time) with Vercel.