Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Thanks for that. Would adding extra brackets (turning it into a tree structure) allow the CPU to use multiple ALUs to evaluate branches in parallel?

    (
       (
          ( c < 128 && c > 32 )
       &&
          ( c != b'\t' && c != b'"' )
       )
    &&
       (
          ( c != b',' && c != b'/' )
       &&
          (
             !(c > 57 && c < 65)
          &&
             !(c > 90 && c < 94)
          )
       &&
          (
             c != b'{'
          &&
             c != b'}'
          )
       )
   )


Modern cpus use speculation, they continue executing code after a conditional branch, so you get that automatically.


Thanks - learning a lot today.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: