Python is a great language. We all know. But I have tried implementing Python into C/C++ applications, and have a) had a lot of trouble getting it running properly and b) it is slow, compared to other languages, like LUA. What is my idea, is to make a Python implementation made to be embedded into applications.. It will have these features: a) Small footprint. b) Easy-to-use, but still advanced API. c) Stackless. d) A smaller standard library. e) Fast. The smaller footprint is, so that it will use minimal resources possible, leaving more for the underlying application. The API is the most important thing, really, as this distro will be made for embedding. It will not have any compiler features, just an interpreter. Stackless Python is - as we know - faster than Python. Another good reason to use it in embedding. A lot of the standard library is seldom used; we only need the core functions. Fast, of course! It needs to be the fastest interpreter ever written (at least fast). Hope you have any ideas/comments! ~Knut
On Sat, Jul 07, 2007, "Knut A. Wikstr?m" wrote:
Python is a great language. We all know. But I have tried implementing Python into C/C++ applications, and have a) had a lot of trouble getting it running properly and b) it is slow, compared to other languages, like LUA.
This thread should go into either comp.lang.python or the python-ideas mailing list. python-dev is for discussions about the implementation of current python. Thanks. -- Aahz (aahz@pythoncraft.com) <*> http://www.pythoncraft.com/ I support the RKAB
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Jul 7, 2007, at 9:23 AM, Aahz wrote:
On Sat, Jul 07, 2007, "Knut A. Wikstr?m" wrote:
Python is a great language. We all know. But I have tried implementing Python into C/C++ applications, and have a) had a lot of trouble getting it running properly and b) it is slow, compared to other languages, like LUA.
This thread should go into either comp.lang.python or the python-ideas mailing list. python-dev is for discussions about the implementation of current python. Thanks.
There is also the new C/API sig: http://mail.python.org/mailman/listinfo/capi-sig - -Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) iQCVAwUBRo+XZHEjvBPtnXfVAQLjlwP/bv88BGiPr/A9jxFEHuiscCb1viEelnA9 R6zHiWHt4JkeR65P8Vtc20Ev+rigmqrmSTSn4usgf57pceZsZOMXmuH1aK4Pwd/2 jGRDdsxCK4ePItWHuJHdjO7w7Ddz5jJTTxpNNmtH+lNyqzeQTqxF9otlCX7L5LLJ jKHRrVk3e2g= =X+O6 -----END PGP SIGNATURE-----
What is my idea, is to make a Python implementation made to be embedded into applications..
Hope you have any ideas/comments!
My main question: Who will implement that idea? Ideas are cheap; making them come true is a lot of work. It seems that you believe the current implementation of Python is *deliberately* slow, and that a new implementation would necessarily be faster. Please rest assured that this is not the case: people have put a considerable amount of work into making Python as fast as it is today. Regards, Martin
participants (4)
-
"Knut A. Wikström"
-
"Martin v. Löwis"
-
Aahz
-
Barry Warsaw