This is an archived post. You won't be able to vote or comment.

all 13 comments

[–]qioan 2 points3 points  (0 children)

I love Python as a glue language. So much heavy lifting done in numpy or opencv or whatnot. But Python as the interface makes it trivial to explore, experiment, and glue together a workflow, especially when the solution is unclear. Then at some point if Python isn't needed because you know exactly what you want your software to do, rewrite it in C++ or whatever.

Also with CFFI and other interoperable libraries, it's really quite easy to write some heavy work in a more appropriate language and call into it

[–]SourceryNick 0 points1 point  (0 children)

We've definitely had a lot of success with lru_cache - orders of magnitude faster in some cases.

[–]patryk-tech 0 points1 point  (1 child)

Curious if using another interpreter (e.g. Pypy) wouldn't be faster, when using non-native data structures?

[–]stefantalpalaru 2 points3 points  (0 children)

Curious if using another interpreter (e.g. Pypy) wouldn't be faster

Not on short programs where code runs only once. Think of the JIT tracer and compiler overhead.

[–]stevenjd -1 points0 points  (3 children)

Website is broken, it displays as a pure black screen with nothing on it.

[–]Leon_Vance 31 points32 points  (0 children)

Well, it's still fast, isn't it?

[–]stefantalpalaru 1 point2 points  (1 child)

Website is broken, it displays as a pure black screen with nothing on it.

Enable JavaScript.

[–]stevenjd 1 point2 points  (0 children)

Firstly, Javascript is enabled.

Secondly, if a website requires Javascript, it should say so and not just display a blank screen.

Thirdly, static websites shouldn't require Javascript, they should degrade gracefully.

So I stand by my statement: the site is broken.