Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > CPython VM internals - Wiki page

Reply
Thread Tools

CPython VM internals - Wiki page

 
 
Terry Reedy
Guest
Posts: n/a
 
      07-22-2008
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

 
Reply With Quote
 
 
 
 
John Nagle
Guest
Posts: n/a
 
      07-22-2008
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
 
Reply With Quote
 
 
 
 
Martin v. Löwis
Guest
Posts: n/a
 
      07-22-2008
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
.Net VC++ Java C++ Windows Internals Unix Internals Jobs Gooogle Java 2 05-11-2007 02:23 PM
.Net VC++ Java C++ Windows Internals Unix Internals Jobs Gooogle C++ 1 05-10-2007 06:53 PM
.Net VC++ Java C++ Windows Internals Unix Internals Jobs Gooogle C Programming 0 05-10-2007 06:39 PM
.Net VC++ Java C++ Windows Internals Unix Internals Jobs Gooogle Javascript 0 05-10-2007 06:38 PM
general Wiki format question and Python Wiki markup parsing libraries chris Python 4 05-17-2004 05:27 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57