5 ms·
I also wrote an interpreter, and it's 500x faster than CPython or PyPy. (As it happens, my interpreter can only run a single fixed program, but I'm not worried
by JeremyBanks 12y ago
I also wrote an interpreter, and it's 500x faster than CPython or PyPy.
(As it happens, my interpreter can only run a single fixed program, but I'm not worried: most people won't read past the headline when I announce it.)
- maaaats 12y agoDid you have a point?
- coldtea 12y ago>I also wrote an interpreter, and it's 500x faster than CPython or PyPy That's great! Even if your new interpreter doesn't run all the code that's out there it can serve as a base for further work, it's a nice proof of concept and it's just plain cool hacking. It certainly beats all those people merely posting snarky comments on project announcements. >(As it happens, my interpreter can only run a single fixed program, but I'm not worried: most people won't read past the headline when I announce it.) With sarcasm off now, yeah? They worked on something and they are enthusiastic about the results they get. Perhaps they want to oversell them, in a headline. So what? If people "won't read past the headline" then they also won't be using this PythonJS. So no harm done to them. At worst, you'll be lured to read an interesting article. And if you have any understanding of compilers/interpreters at all, you'll know before the end of it who real-world-usable it would be or not.
- zobzu 12y agoThis kind of thinking generally hurts more than it does good. Large amounts of people will register it in their memory as CPython bad, PythonJS, or really, anything else good. Don't know why, don't know why it's FUD, etc. Next time when they get a choice, they'll bash CPython. Not figuring why everyone uses CPython probably. And you're encouraging that. Probably just thinking it puts you on a higher pedestal or something of the sort. I think its pretty shitty.
- lucian1900 12y agoWell, CPython is embarrassingly slow. The damaging thing is claiming things like PythonJS are implementations of Python, when they merely share syntax and some semantics. They might be fast, but that's not very relevant. Runtimes like PyPy is where we should be looking, since they implement the full Python language and are fast.
- mjolk 12y ago>Well, CPython is embarrassingly slow. Compared to what? Please be specific in your definition of "slow." >Runtimes like PyPy is where we should be looking, since they implement the full Python language and are fast. Why should 'we' be looking to PyPy? Have you run a non-trivial application with pypy (v. standard cpy) and found it to be significantly faster? Even if your code would benefit from JIT, and your code is compatible for running on PyPy, does it benefit more from a compiler switch than CPython + Pandas?
- lucian1900 12y agoCPython is very slow at various things that are common, like function calls and attribute lookup. There is no good reason for this and few runtimes are quite this slow. This sort of overhead adds up and is often annoying to deal with. Yes, I have run non-trivial applications on PyPy and they were significantly faster. Its only downside is libraries that depend on CPython extensions, but there are few of those left. Pandas doesn't do much for removing function call overhead. I don't necessarily have large mathematical datasets, I just want my web service to be easier to write, by not having to care about what CPython is terribly slow at.
- mjolk 12y agoInteresting. Did you profile your code to see where your hot spots were? Whenever I've run web-services on PyPy and got a nice little speed bump, I've found that I could have also made small changes to optimize and get near the same result.