4 ms·
Looks cool. But why asm? Generating C or C++ code and letting the GCC optimizer do the heavy lifting for you could probably get you a massive perf boost.
by john_moscow 9y ago
Looks cool. But why asm? Generating C or C++ code and letting the GCC optimizer do the heavy lifting for you could probably get you a massive perf boost.
- ianai 9y agoBecause the people who talk down python for not being c/c++ "would win".
- john_moscow 9y agoWhy? Both C/C++ and Python are just tools and they have different strong/weak sides. I can't see much harm in combining the strong sides of 2 worlds. That said, isn't PyPy (https://pypy.org/ https://pypy.org/) already doing the same thing?
- ianai 9y agoI wasnt being serious - in line with the headline "for fun and no profit". Optimizing python with calls out to optimized c/c++ code has always been a thing. I think a large part of the interest here is novelty.
- viraptor 9y agoCython already does this. Including using type hints.