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

> Say that you’re looping through an array of pairs of 2D vectors and calculating the dot product of each pair. In C++ you can use your 2D vector class without any additional cost. In CL you either need to remove that abstraction (and deal with flat arrays of scalars) or incur the cost of boxing.

Or maybe use compiler macros to remove the abstraction without the cost of boxing?



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

Search: