1
A script in C or C++ could write algorithms in Lua (by Brut force, that is, test several possible combinations) based on a database with the results of the algorithms.
The idea is to get to the most efficient algorithm for a certain goal, for example, I developed an algorithm for calculating statistics, I want to get to a more efficient, without losing focus.
Is there any library or way to test the speed of a code in Lua or C/C++ using C++?
I’m not sure this brute-force strategy is such a good idea. First, in the general case it is impossible to write an algorithm to decide whether a given program obeys a given specification - its tests with the data bank will allow false positives. Also, your search space grows exponentially with the length of the program which means that you will need a lot of luck to be able to find some non-trivial solution.
– hugomg