473,320 Members | 1,979 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

CPython VM internals - Wiki page

Various people have asked on c.l.p about documentation of CPython's
virtual machine internals. The usual answers have been to see the dis
module doc for bytecodes and 'read the code' for more. Jakob Sievers
did so and posted his notes, with additions from Martin v. Löwis, as

http://wiki.python.org/moin/CPythonVmInternals

Jul 22 '08 #1
2 1207
Terry Reedy wrote:
Various people have asked on c.l.p about documentation of CPython's
virtual machine internals. The usual answers have been to see the dis
module doc for bytecodes and 'read the code' for more. Jakob Sievers
did so and posted his notes, with additions from Martin v. Löwis, as

http://wiki.python.org/moin/CPythonVmInternals
That's interesting. It's dumber than I thought. All temporaries
on the stack are "boxed" as PyObjects. That's simple and portable,
but slow.

John Nagle
Jul 22 '08 #2
That's interesting. It's dumber than I thought. All temporaries
on the stack are "boxed" as PyObjects. That's simple and portable,
but slow.
Not only that - Python does not ever have the concept of unboxed
values, except for local variables in the C implementations of
arithmetic operations and system calls.

Using true objects is slow only if allocation and deallocation is
slow, which it fortunately isn't.

Regards,
Martin
Jul 22 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Brian van den Broek | last post by:
Hi all, There have been a few posts over the last month or so expressing a bit of exasperation with the "rising tide of newbie's". (Or, more accurately, the rising tide of questions from...
2
by: Michael Barkholt | last post by:
Hi Is there any detailed documentation on the structure of Pythons internals, besides the source code itself? More specifically I am looking for information regarding the C parser, since I am...
44
by: john bailo | last post by:
I microcrap is buying Google -- then I want a GNU search engine ! ( Cant that decrepit creep keep his hands off of anything ? )
302
by: Lee | last post by:
Hi Whenever I use the gets() function, the gnu c compiler gives a warning that it is dangerous to use gets(). Is this due to the possibility of array overflow? Is it correct that the program...
3
by: seberino | last post by:
Anyone have any good advice to someone interested in learning about innards of Python implementation? e.g. What is best place to start? Where can I get a 10,000 ft. overview of general...
0
by: skip | last post by:
After much wailing and gnashing of teeth the past couple of days, I managed to move (most of?) the content from the MacPython wiki to the main Python wiki (*). All pages were created as subpages...
11
by: Andy Watson | last post by:
I have an application that scans and processes a bunch of text files. The content I'm pulling out and holding in memory is at least 200MB. I'd love to be able to tell the CPython virtual machine...
18
by: Guru Jois | last post by:
Hai, Can I get some docs or links to learn the C compiler internals from basic to advanced. It must contains good documentation of how compilers allocates memory to variables. Bye Guru Jois
4
by: Aaron Gray | last post by:
Hi, I am looking to study the CPython source code, but I cannot seem to find the VM code. Also is there any where a detailed list of the opcodes ? Many thanks in advance, Aaron
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.