3 ms·
Guido's response, which is entirely unprovoked and rude (given that it is for a small volunteer effort, that has already achieved something admirable, doesn't a
by coldtea 12y ago
Guido's response, which is entirely unprovoked and rude (given that it is for a small volunteer effort, that has already achieved something admirable, doesn't ask anything from him, and doesn't harm his CPython in any way), seems to me worse than anything I've read from Linus (who's just a dog that barks but doesn't bite, and just uses the insults for emphasis).
This is pure condescending tone...
- pwr22 12y agoLooks like typical impulsive defensiveness, doesn't portray him well as a person
- ori_b 12y agoLooks like the response I would expect from someone who has seen tons of "Why not just compile it and see it get magically faster?!?!" queries. It's easy to compile it, but making the compilation actually useful for a dynamic language is HARD. There's a reason that most dynamic languages will either interpret or JIT, and it's not because the JIT writers overlooked something obvious. A naive translation of the code will remove a little bit of overhead from the bytecode dispatch, but the resulting code bloat will blow out instruction caches for any reasonable sized code. In small programs with one translation unit, analysis can sometimes work to speed things up, but it quickly becomes either undecidable or intractable. Basically, on dynamic languages, you can often see static compilation being worse than a naive attempt at native code, especially once the hot path for the interpreter fits in cache, but the generated native code no longer does. Wanting to see results on real world benchmarks is entirely reasonable.
- coldtea 12y agoI don't know. Lua (the non JIT version) runs circles around Python -- without compilation. And when adding compilation into the game, I don't see CL as any less dynamic (probably more) than Python, and yet it goes to near C speeds too.
- reikonomusha 12y agoCL goes near C speeds with an INCREDIBLE amount of work to make your program as static and C-like as possible. It also requires intimate knowledge of your particular implementation. Sometimes it's not even possible (!) to get C speed because of things like float boxing across function boundaries.
- coldtea 12y agoI'll give you that -- but, while not C-speed, it still runs circles around Python when coding in a idiomatic style too.