3 ms·
There is real and legitimate compiler and JIT research, like PyPy, that could lead to reasonably efficient implementations for dynamic languages that can be exp
by heretohelp 14y ago
There is real and legitimate compiler and JIT research, like PyPy, that could lead to reasonably efficient implementations for dynamic languages that can be expressed in RPython.
It is not, however, under any circumstances going to lead to code that's any faster than what an experienced C programmer can produce.
That's a "hard problem" in the mathematical sense is essentially impossible for reasons related to the halting problem and writing programs that can holistically analyze programs. For similar reasons, I find the type-fascism of the Haskell community amusing, although I find stronger type systems useful.
If aren't familiar with the implications and realities of systems programming and/or compiler implementation, stop making false statements about it.
Ask questions, read books, but don't toss out ridiculous bull-honkey like:
>thanks in particular to projects like cython that let you write python code that gets converted over and compiled as c++ that's often more performant than the c++ code that devs might write themselves.
I'm actually pretty familiar with Cython and have spent many man-hours optimizing Python code.
I'm a relatively terrible C++ and C programmer, but I can still produce code that profoundly outpaces Cython.
The only way to write C/C++ code slower than Cython is to use the wrong goddamn algorithm or data structure. (like std::list when you should be using std::vector)
Also, the protocol holds for me here too. I'd gladly say all of this to your face. Stop projecting manufactured confabulations about programming into the ether.
- MartinCron 14y agoTo be clear. I'm not the one who said anything about Cython or cross-compiling or anything. I hadn't even heard of Cython before and I don't have any strong opinions about it. I don't doubt that you're right about all of the facts, that hand-rolled C will be faster than something cross-compiled unless the C coder did something profoundly wrong. I'm sure that lots of people are surprised and annoyed that all systems and kernel-level work is done with a language as out-of-fashion as C and ask stupid questions on other forums. You're right. The original poster was wrong. You win. Hooray! But, here's the thing, I don't care how right you are, I care that you're violating the #1 commenting guideline and the thing that I generally like about this community, which is "be civil". So, even if you're the sort of person who wouldn't be civil to my face, please be civil here. If you can do that much for me, I'll gladly buy you a coffee or beer if you're ever in Seattle and you can be as rude as you like to my face. Fair?
- heretohelp 14y agoOkay, I'll be nice. You're using the community guidelines as a shield to hide behind while you de-emphasize the fact that you were completely wrong and feigning to compensate for your total lack of experience in the relevant subject. Stop using the community guidelines a shield. Own up to the fact that you were more than merely ignorant, you were aggressively promulgating and infecting others with falsehoods borne from your ignorance which is a kind of behavior I can't even begin to fathom the reasons for. This is where it starts. This is how the incorrect campfire knowledge starts. CompSci and software engineering are rife with this plague and you are subject zero. CompSci is notorious for being, get this, unscientific because of the amount of false folk knowledge that gets bandied about. Our lack of rigor, from the point of a view of an experimentalist and also an engineer, is dishonorable and unnecessary. Your behavior shames all professional programmers. So, lesson learned. I'll honey up my criticisms. I'll find ways to communicate that are pleasant and convincing. That doesn't change that you'll never be free of my contempt, even if I'm being nice. Keep the beer and coffee, you want to do me a favor? Don't ever do that again.
- MartinCron 14y agoYou are confusing me with someone else. I wasn't the one who made the original claim.
- heretohelp 14y agoFair, but don't defend the propagation of things like that.
- MartinCron 14y agoI promise I won't. You seem to be a very talented writer. Have you ever considered using your powers for good instead of for evil? :)
- heretohelp 14y ago