4 ms·
Hi! This is the second part of my new Python behind the scenes series that covers the compilation of a Python program. I'd be glad to hear your thoughts on this
by r4victor 6y ago
Hi! This is the second part of my new Python behind the scenes series that covers the compilation of a Python program. I'd be glad to hear your thoughts on this part and the series in general.
- Ennea 6y agoThis could be an interesting read, but so far I've only had time to skim it. What I did notice, however, is that some of your images are too wide and get cut off :)
- r4victor 6y agoI know the site is not well adapted for mobiles. I currently use default Pelican theme, which is not responsive, and have plans to change it. Nevertheless, I have no problems with displaying images on any device (desktop/ipad/iphone), so could you elaborate on this? What device do you use? You can email me: victor@tenthousandmeters.com
- Ennea 6y agoDesktop, actually. Full HD. The width of the content is only 800px, but some of your images (like diagram2.png) is 1044px wide. And instead of the image being scaled, it is just being cut off. Edit: Oh yea, there we go. You're using CSS zoom[0], which is non-standard. [0] https://developer.mozilla.org/en-US/docs/Web/CSS/zoom https://developer.mozilla.org/en-US/docs/Web/CSS/zoom
- lordgrenville 6y agoSame for me. Firefox desktop on macOS https://pasteboard.co/Jsysfju.png https://pasteboard.co/Jsysfju.png
- r4victor 6y agoThanks for reporting! Fixed this. I used a non-standard `zoom` attribute, which works in Chrome and Safari. It's a good habit to check how the website looks in all major browsers.
- tasubotadas 6y agoCould you tell us why CPython still doesn't have JIT? What's so hard about it (on Python)?
- creata 6y agoWhy should CPython have a JIT? A good JIT is hard to write, and harder to retrofit. It usually increases startup times, attack surface, and code complexity. Besides, Python already has a handful of JIT-based implementations, and I don't see how adding the reference implementation (which out to be simple!) to that list really improves anything.
- tasubotadas 6y agoYou wrote a lot but didn't contribute to answering the question.
- creata 6y ago1. That's not a lot. 2. It's a forum, not everything has to be a direct response. 3. Either way, this was a direct response: CPython does not have a JIT because there's little reason for it to have a JIT, and many good reasons why it shouldn't. 4. If you want a JIT'd Python so badly, why not use PyPy?
- Rochus 6y agoThere is already https://www.pypy.org/ https://www.pypy.org/ which is about four times faster than CPython (which is not that much actually compared to e.g. V8, see e.g. https://benchmarksgame-team.pages.debian.net/benchmarksgame/which-programs-are-fastest.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...)
- glandium 6y agoCaveat: pypy is not _consistently_ faster than CPython. There are cases where it is slower, sometimes even by a large margin.
- deleted 6y ago[deleted]