News for hackers. Stuff that matters.
Re:Compiler Optimizations are Awesome by std_throwaway on Thursday June 01, 2017 @02:10AM (#14458325)
People use Python to actually do stuff. Performance-wise it's a nightmare but usability outweighs it in many many cases.
Re:Compiler Optimizations are Awesome by coldtea on Thursday June 01, 2017 @02:55AM (#14458465)
Plus it's only a nightmare "performance-wise" when it's actually slow in wall clock time.

Often it's so fast that it doesn't matter at all that it can be 1/100 slower then C. 0.1 sec is still good even if it's not 0.001 secs.

Re:Compiler Optimizations are Awesome by josefx on Thursday June 01, 2017 @07:15AM (#14459350)
One of the things I hate about meld, it is a great diff tool most of the time, the 0.1 sec . The moment I diff a larger project I cannot even scroll its directory tree without lag and that is after waiting for it to load. The "it is just 0.1 sec" doesn't scale at all.
Re:Compiler Optimizations are Awesome by dom0 on Thursday June 01, 2017 @06:49AM (#14459247)
Python performance is uh ah... difficult. I work on a piece of software that has a lot of hot paths in Python code, and it's not nice. Combined with deployment and tooling issues it made me wonder quite a few times now, whether the a little bit lower contribution barrier is worth all these hassles.
Re:Compiler Optimizations are Awesome by aeroevan on Thursday June 01, 2017 @12:37PM (#14461840)
Cython is a very nice way to transition hot python paths into a C extension. The best part is that it's a python superset, so it should provide some speed up without any typing information (and can be very fast once the hot paths are all in cdef'd functions).
Re:Compiler Optimizations are Awesome by dom0 on Thursday June 01, 2017 @01:34PM (#14462466)
https://news.ycombinator.com/item?id=14376961

Further, it doesn't help with the required restructuring; when the functionality is scattered across a dozen or more modules (complex software + good Python practice), then you first have to pull the functionality needed for the path you're trying to get fast together. That leads to duplication, removing abstractions and most certainly vetoes from other people.

Re:Compiler Optimizations are Awesome by nickpsecurity on Thursday June 01, 2017 @01:09PM (#14462194)
Beat me to it. Cython was a great solution to this problem.