3 ms·
What's the point of the wrapper? import simulation from 'simulation_code_written_in_c' simulation.run() What value does the above code have?
by snicker7 6y ago
What's the point of the wrapper?
import simulation from 'simulation_code_written_in_c'
simulation.run()
What value does the above code have?
- coldtea 6y agoThat particular strawman code little. Code that e.g. can be configured to load data in a particular way, and then run in a particular way, and is then run, hella fast in C, does. Numpy is not: import nympy numpy.run Neither is pandas and others... You might as well ask "what is the point of glue languages". Just ask anybody who ever embedded e.g. Python/Lua/Guile/etc in a C/C++ program (which has similar mechanics)...
- snicker7 6y ago"What is the point of glue languages" indeed. Loading parameters into a program makes sense for a scripting language, especially for interacting with code you didn't write. But when 99% of your problem is solved with custom-made C/C++/whatever (as is the case with simulations), the value-add of a glue language is very little. Professionally, I've written trading simulations in C++ where Python was used for glue code. It added very little value and added more dependencies/headaches. Julia could've have replaced both.