3 ms·
This is a bit misleading. No framework is doing computation in the language you write your model in. The code you write in any of these frameworks just calls wr
by argonaut 11y ago
This is a bit misleading. No framework is doing computation in the language you write your model in. The code you write in any of these frameworks just calls wrappers around the underlying C/C++/Cuda implementation.
- frik 11y agoYou are right, my statement was a bit misleading. These Lua and Python based frameworks call the high performance implementation which is coded usually in C/C++/Cuda/Fortran/etc. Nevertheless the Lua <-> C interface is lightweight and it certainly helps if the overhead is low. I know a guy who wrote a fast SAT solver in C, though called it with various slow bash scripts. I asked him why he uses bash, he mentioned it doesn't matter. In the end Microsoft's SAT solver beat him, exactly because they cared about such details too.