News for hackers. Stuff that matters.
Re:A 100x speedup with unsafe Python by jandrese on Monday May 06, 2024 @09:41PM (#40281384)
Seems to me if you could do most of the work in Python and then just make the critical loop unsafe and 100x faster then that would certainly have some appeal.
Re:A 100x speedup with unsafe Python by gibolt on Monday May 06, 2024 @10:15PM (#40281611)
Plenty of people would gladly not have to learn another language (especially C).

You could also benefit from testing blocks of code with safety enabled to have more confidence when safety is removed.

Re:A 100x speedup with unsafe Python by KeplerBoy on Tuesday May 07, 2024 @02:09AM (#40282845)
It was explained pretty well in the blog: Installing the OpenCV python package is easy, fast and painless as long as you're happy with the default binary. Building OpenCV from source to get it into a C/C++ program can quickly turn into a multi-hour adventure, if you're not familiar with building sizeable C++ projects.
Re:A 100x speedup with unsafe Python by TylerE on Tuesday May 07, 2024 @02:53AM (#40283072)
Or if you’re going to learn another language might as well learn nim. Keep most of the python syntax, ditch the performance and the packaging insanity.