Shedskin Architecture

68 views
Skip to first unread message

Prankster

unread,
Aug 31, 2012, 5:32:50 PM8/31/12
to shedskin...@googlegroups.com
I was wondered about how shedskin is converted python program into c++???
I am interested in shedskin development.I would like to know  its basic mechanism means how it converts python to  c++?
Has it any toolchain like pypy??wht makes it is faster than cpythan??

Joaquin Duo

unread,
Sep 1, 2012, 10:59:04 AM9/1/12
to shedskin...@googlegroups.com
Hi Prankster!
(is that your first name?)


Probably someone will give you a proper explanation. But for a quick answer, I can suggest you to read the code.
It's quite self explanatory.
From there you can get more specific questions and post them back here.

Cheers!
Joaquín

Prankster

unread,
Sep 3, 2012, 12:40:06 AM9/3/12
to shedskin...@googlegroups.com
Hi Joaquin,
                 I have seen many codes that generated by shedskin.I want to contribute something in shedskin development.
u didn't get my point.I  would like to know shedskins internal architecture i meant which algorithm has been used??
What are steps for converting python to c++ I meant compiler phases??

cheers
Prasad

Jérémie Roquet

unread,
Sep 3, 2012, 4:34:03 AM9/3/12
to shedskin...@googlegroups.com
Hi Prankster,

2012/9/3 Prankster <pmm...@gmail.com>:
> I would like to know shedskins internal architecture
> i meant which algorithm has been used??
> What are steps for converting python to c++ I meant compiler phases??

Have a look at Mark's master thesis¹: while the algorithms described
there have changed with time, this should be a good starting point.

2012/8/31 Prankster <pmm...@gmail.com>:
> Has it any toolchain like pypy??

CPython + GCC + GNU Make

You also need to have boehm gc and PCRE.

> wht makes it is faster than cpythan??

Please note that Shedskin is not *always* faster than CPython. It's
often the case because compiling Python with Shedskin means that your
code will be translated to native machine code, whereas CPython is
/mostly/ an interpreter (it doesn't even have a JIT — PyPy does). It
also means that you can get the benefits of a very mature C++ compiler
like GCC for optimizations.

Best regards,

¹ https://sites.google.com/site/markdufour/shedskin.pdf?attredirects=1

--
Jérémie
Reply all
Reply to author
Forward
0 new messages