tag:blogger.com,1999:blog-14063458.post363477294076587003..comments2024-03-14T00:19:46.449-07:00Comments on Shed Skin - A (restricted) Python-to-C++ Compiler: Shed Skin 0.1.1srepmubhttp://www.blogger.com/profile/15831320699731673389noreply@blogger.comBlogger30125tag:blogger.com,1999:blog-14063458.post-44079239829281084512009-06-29T01:58:42.021-07:002009-06-29T01:58:42.021-07:00thanks. note there is already a dijkstra algorithm...thanks. note there is already a dijkstra algorithm in the example programs, but please do let me know what happens for your version.srepmubhttps://www.blogger.com/profile/15831320699731673389noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-90979042105044894902009-06-28T21:57:51.135-07:002009-06-28T21:57:51.135-07:00Great work.
This program looks great. As soon as ...Great work.<br /><br />This program looks great. As soon as I'm finished work, I will try it on my python implementation of the Dijkstra algorithm. I also have written the same algorithm in C++, so I'm looking forward to test if it works, and if so, see how fast the python to C++-translated code is compared to mine C++ implementation.<br /><br />If it works well, you can add the Dijkstra solving algorithm to your examples.Kjell Kristianhttps://www.blogger.com/profile/15452575229097261308noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-76505348699027016072009-06-14T03:28:38.590-07:002009-06-14T03:28:38.590-07:00ok, did not knew that but thanks and keep up the g...ok, did not knew that but thanks and keep up the good work!!!mine809https://www.blogger.com/profile/07317763662278370765noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-12943552438405182602009-06-14T02:14:45.144-07:002009-06-14T02:14:45.144-07:00GTK support won't ever happen, because it'...GTK support won't ever happen, because it's probably too hard, and there's not much use in compiling GUI glue code anyway - it's typically fast enough already.<br /><br />but note that you can already combine GUI libraries and Shedskin-compiled code, by generating an extension module (shedskin -e, see the tutorial). this way, you can use unrestricted Python and arbitrary libraries in the 'main' program, while speeding up some part that really needs a speedup.srepmubhttps://www.blogger.com/profile/15831320699731673389noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-10372619502990711692009-06-14T02:03:42.302-07:002009-06-14T02:03:42.302-07:00I'm hoping to improve a few more things before...I'm hoping to improve a few more things before doing a new release.. please consider sending in new test cases or bug reports ;)srepmubhttps://www.blogger.com/profile/15831320699731673389noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-77516768490162215712009-06-13T23:44:26.586-07:002009-06-13T23:44:26.586-07:00Hey, great program but could you try to add GTK su...Hey, great program but could you try to add GTK support???mine809https://www.blogger.com/profile/07317763662278370765noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-91293668335443327672009-06-13T23:00:37.522-07:002009-06-13T23:00:37.522-07:00When's the next stable release coming? I see t...When's the next stable release coming? I see that svn is 0.1.2. :)xyprotohttps://www.blogger.com/profile/12322006417042391733noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-43493834803637677102009-06-08T19:03:23.990-07:002009-06-08T19:03:23.990-07:00The issue was with the particular machine I worked...The issue was with the particular machine I worked on, some files could not be found like they should. <br /><br />Everything works beautifully now. Thanks for the suggestions.<br /><br />Shedskin is available both as "shedskin" (v.0.1) and "shedskin-svn" in Arch Linux now.<br /><br />http://aur.archlinux.org/packages.php?ID=24600<br /><br />http://aur.archlinux.org/packages.php?ID=24618xyprotohttps://www.blogger.com/profile/12322006417042391733noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-30185929390338045652009-06-08T19:02:10.369-07:002009-06-08T19:02:10.369-07:00This comment has been removed by the author.xyprotohttps://www.blogger.com/profile/12322006417042391733noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-89388256218984376662009-06-03T11:43:55.290-07:002009-06-03T11:43:55.290-07:00you'll probably need to install libstdc++XXX-d...you'll probably need to install libstdc++XXX-dev. on ubuntu at least, this is automatically installed with g++.srepmubhttps://www.blogger.com/profile/15831320699731673389noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-76158115194950975582009-06-03T09:45:56.425-07:002009-06-03T09:45:56.425-07:00Thanks for the reply. It's a standard installa...Thanks for the reply. It's a standard installation of gcc 4.4, no modifications on my part, so I'm a bit puzzled by this. With gcc 3.4 Shedskin and Shedskin SVN worked beautifully.<br /><br />I have programmed some C++, but not enough to know the nuances of the C++ standard, so I'm stumped.<br /><br />I'll reinstall gcc and try again.xyprotohttps://www.blogger.com/profile/12322006417042391733noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-91710197339692482902009-06-03T08:50:51.779-07:002009-06-03T08:50:51.779-07:00the first error indicates you may not have your C+...the first error indicates you may not have your C++ header files installed correctly, or GCC cannot find them ('new' is a standard C++ header file):<br /><br />/usr/include/gc/gc_allocator.h:43:36: error: new: No such file or directory<br /><br />mine is somewhere here:<br /><br />/usr/include/c++/../newsrepmubhttps://www.blogger.com/profile/15831320699731673389noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-30010272334239740992009-06-03T06:49:16.015-07:002009-06-03T06:49:16.015-07:00I was a bit diffuse.
What I meant to say, was tha...I was a bit diffuse.<br /><br />What I meant to say, was that I have <a href="http://aur.archlinux.org/packages.php?ID=25170" rel="nofollow">a Python script</a> that I want to compile with Shedskin. However, with Shedskin (svn) and GCC 4.4 (default for Arch Linux), thousands of lines of errors appear when GCC tries to compile the output from Shedskin.<br /><br />Here they are: <a href="http://pastebin.com/f57204619" rel="nofollow">http://pastebin.com/f57204619</a>xyprotohttps://www.blogger.com/profile/12322006417042391733noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-24885611716646889702009-06-03T06:38:41.820-07:002009-06-03T06:38:41.820-07:00This comment has been removed by the author.xyprotohttps://www.blogger.com/profile/12322006417042391733noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-45460697177954603922009-06-02T22:41:45.307-07:002009-06-02T22:41:45.307-07:00python-scripts..?python-scripts..?srepmubhttps://www.blogger.com/profile/15831320699731673389noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-69624001322046384052009-06-02T18:09:39.472-07:002009-06-02T18:09:39.472-07:00Shedskin (SVN) does compile nicely with GCC 4.4 no...Shedskin (SVN) does compile nicely with GCC 4.4 now, but when it's used on python-scripts, the resulting C++ code produces errors.xyprotohttps://www.blogger.com/profile/12322006417042391733noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-29187489436719227332009-05-23T18:46:49.401-07:002009-05-23T18:46:49.401-07:00Thanks, it works great with GCC 4.4 now. :)Thanks, it works great with GCC 4.4 now. :)xyprotohttps://www.blogger.com/profile/12322006417042391733noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-40126363772709890792009-05-21T11:09:04.574-07:002009-05-21T11:09:04.574-07:00sorry for the delay, I've been a bit sick. does SV...sorry for the delay, I've been a bit sick. does SVN work for you now..?srepmubhttps://www.blogger.com/profile/15831320699731673389noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-64911431715225057482009-05-15T08:01:00.000-07:002009-05-15T08:01:00.000-07:00thanks for mentioning! I will fix this in SVN shor...thanks for mentioning! I will fix this in SVN shortly.srepmubhttps://www.blogger.com/profile/15831320699731673389noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-52574760303183475072009-05-10T18:45:00.000-07:002009-05-10T18:45:00.000-07:00The latest version of gcc seems to have caused an ...The latest version of gcc seems to have caused an issue with Shedskin:<br /><br />/usr/lib/shedskin-0.1/lib/builtin.cpp:684: error: ‘uint32_t’ does not name a type <br />/usr/lib/shedskin-0.1/lib/builtin.cpp: In member function ‘virtual int __shedskin__::str::__hash__()’: <br />/usr/lib/shedskin-0.1/lib/builtin.cpp:734: error: ‘SuperFastHash’ was not declared in this scopexyprotohttps://www.blogger.com/profile/12322006417042391733noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-46244189758617616602009-04-29T14:47:00.000-07:002009-04-29T14:47:00.000-07:00wow: core loop gets down to about 6 seconds (from ...wow: core loop gets down to about 6 seconds (from the original 42!) with -w -b. no random numbers, so no -r needed. with g++ 4.0.1, no big performance gain from -fprofile-generate/use. looking into gprof2dot right now!qhttps://www.blogger.com/profile/06743817180809335987noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-63870558485016795122009-04-29T10:20:00.000-07:002009-04-29T10:20:00.000-07:00perhaps you can win some more time by using -b and...perhaps you can win some more time by using -b and/or -w.. (and possibly -r, for random numbers)?<br /><br />which GCC version and flags did you use? did you use profile-guided optimisation?<br /><br />where is the current bottleneck in the generated C++ code? gprof2dot.py might be useful for locating this.<br /><br />(see the tutorial for these and other performance tips).srepmubhttps://www.blogger.com/profile/15831320699731673389noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-83601078407833322132009-04-29T09:39:00.000-07:002009-04-29T09:39:00.000-07:00...and from 17.2 to 11.2 by avoiding access to mat......and from 17.2 to 11.2 by avoiding access to matrices placed deep in dictionaries in inner loops - enough for the moment :-)qhttps://www.blogger.com/profile/06743817180809335987noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-75974643674588883252009-04-29T09:08:00.000-07:002009-04-29T09:08:00.000-07:00in a large remote sensing data content-based image...in a large remote sensing data content-based image retrieval system, on osx, from 42.5 seconds in pure python to 17.2 in shedskin C++ for a core naive bayes classifier tight pixel loopqhttps://www.blogger.com/profile/06743817180809335987noreply@blogger.comtag:blogger.com,1999:blog-14063458.post-88893275154813912362009-04-23T22:52:00.000-07:002009-04-23T22:52:00.000-07:00thanks! this looks correct - one test doesn't work...thanks! this looks correct - one test doesn't work because the 'signal' module currently fails under Windows, and the other tests fail because Shedskin still acts like Python 2.5, rather than 2.6, which causes some subtle differences.srepmubhttps://www.blogger.com/profile/15831320699731673389noreply@blogger.com