4 ms·
I used to do that in Python with the numba jit. Write Python code that generates a Python code that then gets compiled. It's a fragile horrible mess, and the n
by Certhas 2y ago
I used to do that in Python with the numba jit. Write Python code that generates a Python code that then gets compiled.
It's a fragile horrible mess, and the need to do this was a major reason for me to switch away from Python. It's a bit like asking why we don't just pass all arguments to functions as strings. Yeah, people write stringly typed code, but it should rarely be necessary, and your language should provide means to avoid it.