473,837 Members | 1,498 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Shed Skin Python-to-C++ Compiler 0.0.21, Help needed

Hi all,

I have recently released version 0.0.20 and 0.0.21 of Shed Skin, an
optimizing Python-to-C++ compiler. Shed Skin allows for translation of
pure (unmodified), implicitly statically typed Python programs into
optimized C++, and hence, highly optimized machine language. Besides
many bug fixes and optimizations, these releases add the following
changes:

-support for 'bisect', 'collections.de que' and 'string.maketra ns'
-improved 'copy' support
-support for 'try, else' construction
-improved error checking for dynamic types
-printing of floats is now much closer to CPython

For more details about Shed Skin and a collection of 27 programs, at a
total of about 7,000 lines, that it can compile (resulting in an
average speedup of about 39 times over CPython and 11 times over Psyco
on my computer), please visit the homepage at:

http://mark.dufour.googlepages.com

I could really use more help it pushing Shed Skin further. Simple ways
to help out, but that can save me lots of time, are to find smallish
code fragments that Shed Skin currently breaks on, and to help
improve/optimize the (C++) builtins and core libraries. I'm also
hoping someone else would like to deal with integration with CPython
(so Shed Skin can generate extension modules, and it becomes easier to
use 'arbitrary' external CPython modules such as 're' and 'pygame'.)
Finally, there may be some interesting Master's thesis subjects in
improving Shed Skin, such as transforming heap allocation into stack-
and static preallocation, where possible, to bring performance even
closer to manual C++. Please let me know if you are interested in
helping out, and/or join the Shed Skin mailing list.
Thanks!
Mark Dufour.
--
"One of my most productive days was throwing away 1000 lines of code"
- Ken Thompson
Mar 31 '07 #1
31 2810
Mark Dufour wrote:
Shed Skin allows for translation of pure (unmodified), implicitly
statically typed Python programs into optimized C++, and hence,
^^^^^
highly optimized machine language.
^^^^^^^^^^^^^^^ ^

Wow, I bet all C++ compiler manufacturers would want you to work for
them.

Regards,
Björn

--
BOFH excuse #23:

improperly oriented keyboard

Mar 31 '07 #2

BjörnMark Dufour wrote:
>Shed Skin allows for translation of pure (unmodified), implicitly
statically typed Python programs into optimized C++, and hence,
highly optimized machine language.
Bjoern ^^^^^^^^^^^^^^^ ^

BjoernWow, I bet all C++ compiler manufacturers would want you towork
Bjoernfor them.

Why are you taking potshots at Mark? He's maybe onto something and he's
asking for help. If he can generate efficient C++ code from implicitly
statically type Python it stands to reason that he can take advantage of the
compiler's optimization facilities.

Skip
Mar 31 '07 #3
sk**@pobox.com wrote:
Why are you taking potshots at Mark?
What suggests that I'm "taking potshots" at Mark?
He's maybe onto something and he's asking for help. If he can
generate efficient C++ code from implicitly statically type Python
it stands to reason that he can take advantage of the compiler's
optimization facilities.
Yes, compilers do output optimized machine code. But generally
calling that code "highly optimized" is, IMHO, exaggeration.

Regards,
Björn

--
BOFH excuse #426:

internet is needed to catch the etherbunny

Mar 31 '07 #4
On Mar 31, 8:38 am, Bjoern Schliessmann <usenet-
mail-0306.20.chr0n.. .@spamgourmet.c omwrote:
Mark Dufour wrote:
Shed Skin allows for translation of pure (unmodified), implicitly
statically typed Python programs into optimized C++, and hence,

^^^^^highly optimized machine language.

^^^^^^^^^^^^^^^ ^

Wow, I bet all C++ compiler manufacturers would want you to work for
them.

Regards,

Björn

--
BOFH excuse #23:

improperly oriented keyboard

Mark has been doing an heroic job so far.
Shedskin is an impressive piece of software and, if pypy hadn't been
started some time ago, it should have gotten more attention from the
community.
I think he should be taken very seriously.

He is the first programmer I know who actually released working
code(and a lot of it) of a project that actually manages to speed up
python by a large margin, by means of advanced type inference
techniques.
Other people, in the past, have attended conferences and made
spectacular announcements of projects that could speed up python by
60x or more, but never ever released any code.

Mark has been working quietly for a long time, and his works deserves
a lot of credit (and hopefully, some help).


Mar 31 '07 #5
"Luis M. González" <lu*****@gmail. comwrites:
On Mar 31, 8:38 am, Bjoern Schliessmann <usenet-
mail-0306.20.chr0n.. .@spamgourmet.c omwrote:
Mark Dufour wrote:
Shed Skin allows for translation of pure (unmodified), implicitly
statically typed Python programs into optimized C++, and hence,
^^^^^highly optimized machine language.

^^^^^^^^^^^^^^^ ^

Wow, I bet all C++ compiler manufacturers would want you to work for
them.

Regards,

Björn

--
BOFH excuse #23:

improperly oriented keyboard


Mark has been doing an heroic job so far.
Shedskin is an impressive piece of software and, if pypy hadn't been
started some time ago, it should have gotten more attention from the
community.
Regardless of its merrits, it's GPL'ed which I assume is an immediate turn-off
for many in the community.

'as
Mar 31 '07 #6
Alexander Schmolck wrote:
>
Regardless of its merrits, it's GPL'ed which I assume is an immediate turn-off
for many in the community.
In the way that tools such as gcc are GPL-licensed, or do you have
something else in mind?

Paul

Apr 1 '07 #7
On Mar 31, 6:45 pm, Alexander Schmolck <a.schmo...@gma il.comwrote:
Regardless of its merrits, it's GPL'ed which I assume is an immediate turn-off
for many in the community.
Why would that be? GPL'ed code libraries can be a turn-off for those
who want to release commercial products using them, but a GPL'ed
utility such as a compiler bears no relationship or encumbrance on the
compiled object code it generates.

-- Paul

Apr 1 '07 #8
"Paul McGuire" <pt***@austin.r r.comwrites:
Why would that be? GPL'ed code libraries can be a turn-off for those
who want to release commercial products using them, but a GPL'ed
utility such as a compiler bears no relationship or encumbrance on the
compiled object code it generates.
For some of us, doing volunteer work on non-GPL projects is a
turn-off. I don't mind writing code that goes into proprietary
products, but I expect to get paid for it just like the vendors of the
products expect to get paid. If I'm working for free I expect the
code to stay free. This is why I don't contribute code to Python on
any scale.
Apr 1 '07 #9
Luis M. González wrote:
I think he should be taken very seriously.
Agreed.

Okay, it seems focusing a discussion on one single point is
difficult for many people. Next time I'll be mind-bogglingly clear
that even the last one understands after reading it one time ...

Regards,
Björn

Fup2 p

--
BOFH excuse #46:

waste water tank overflowed onto computer

Apr 1 '07 #10

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

Similar topics

0
1973
by: nail | last post by:
Hi. So, in a webpartzone I put 3 webusercontrols like the following code: <asp:WebPartZone SkinID="wp1" ID="WebPartZone1" Runat="server" Height="75px" Width="382px" DragHighlightColor="244, 198, 96" HeaderText="WebPart" Padding="5" PartChromeType="TitleAndBorder"> <PartTitleStyle BackColor="LightSteelBlue" ForeColor="Black"></PartTitleStyle> <CloseVerb ImageUrl="~/images/icon_delete_over.gif"></CloseVerb> <ZoneTemplate>
0
1057
by: clintonG | last post by:
Are we talking 2.0 here? Does anybody know is the skin file supports comments? -- <%= Clinton Gallagher, "Twice the Results -- Half the Cost" Architectural & e-Business Consulting -- Software Development NET csgallagher@REMOVETHISTEXTmetromilwaukee.com URL http://www.metromilwaukee.com/clintongallagher/
1
3554
by: Burt | last post by:
I am trying to move all page attributes to a Theme skin file but can't set the Font-Size for a GridView Button. Anyone know how? <asp:GridView .... <asp:CommandField ButtonType="Button"> <ControlStyle Font-Size="X-Small" /> </asp:CommandField> </asp:GridView>
2
1650
by: kai | last post by:
Hi, What is advantage of Skin over CSS? They both control the appearance of WebControls, and CSS also controls HTML controls. Please help Kai
8
5155
by: scotty | last post by:
Can a .skin file be created without visual studio? Thanks, Scott
0
1156
by: skneife | last post by:
I am looking for a theme or skin editor for asp.net 2.0, does anyone knows a good tool (free or not) ? Sam
0
1038
by: =?Utf-8?B?U3VzaGlTZWFu?= | last post by:
I can't found how use just text files in Themes. All examples about .skin files I need something like that text1=Hello,world. text2=Goodbye. text3=Some text here. So I can use key "text2" and get value "Goodbye". Like ini files in windows.
0
886
by: john00587 | last post by:
cracks in skin caused by medication http://cracks.00bp.com F R E E
0
842
by: mccle27252 | last post by:
cracked skin on fingers http://cracks.00bp.com F R E E
1
3801
by: Peter | last post by:
I have developed a swing skin, but the looking is not really you, you can try the applet here: http://pos.petersoft.com/PetersoftJavaStyle/applet/PetersoftJavaStyleApplet.html If you want the source, it is here: http://pos.petersoft.com/pfs.php thanks from Peter (cmk128@hotmail.com)
0
10881
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10575
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10628
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10275
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7004
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5670
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5850
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4043
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3126
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.