Heya, I just stumbled upon CLPython today. What's the status of it? Is there *any* sort of development going on?
What would be a good place, for a CL newbie, to start adding functionality from this list: http://common-lisp.net/project/clpython/status.html
Thanks, Rudolf
On 1/15/08, Rudolf omouse@gmail.com wrote:
Heya, I just stumbled upon CLPython today. What's the status of it? Is there *any* sort of development going on?
Hi Rudolf, I'm just an occasional user of CL-Python, I don't have anything to do with the project. But no-on else has answered so here I am. CL-Python seems to work as advertised -- I had no trouble getting it to run and I didn't encounter any bugs (although I didn't look carefully). So it seems like a suitable basis for continuing development (even if you end up working by yourself).
What would be a good place, for a CL newbie, to start adding functionality from this list: http://common-lisp.net/project/clpython/status.html
If you're new to CL, try searching comp.lang.lisp for recommendations for tutorials. I think someone created a software package named "Lisp in a Box" to help people get started with CL.
Hope this helps,
Robert Dodier
Hi all,
I was wondering the same thing about CLPython. I am an avid python user and am just starting to learn CL through a variety of books. By far the best book to get started is Practical Common Lisp by Peter Siebel - http://gigamonkeys.com/book/ .
Julius
------------------------------------------------------------------------ --------------- Please Reply to My Permanent Address: julius@younglucks.com http://www.openwetware.org/wiki/User:Julius_B._Lucks ------------------------------------------------------------------------ ----------------
On Jan 16, 2008, at 8:18 AM, Robert Dodier wrote:
On 1/15/08, Rudolf omouse@gmail.com wrote:
Heya, I just stumbled upon CLPython today. What's the status of it? Is there *any* sort of development going on?
Hi Rudolf, I'm just an occasional user of CL-Python, I don't have anything to do with the project. But no-on else has answered so here I am. CL-Python seems to work as advertised -- I had no trouble getting it to run and I didn't encounter any bugs (although I didn't look carefully). So it seems like a suitable basis for continuing development (even if you end up working by yourself).
What would be a good place, for a CL newbie, to start adding functionality from this list: http://common-lisp.net/project/clpython/status.html
If you're new to CL, try searching comp.lang.lisp for recommendations for tutorials. I think someone created a software package named "Lisp in a Box" to help people get started with CL.
Hope this helps,
Robert Dodier _______________________________________________ clpython-devel mailing list clpython-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/clpython-devel
On Jan 16, 2008 11:18 AM, Robert Dodier robert.dodier@gmail.com wrote:
On 1/15/08, Rudolf omouse@gmail.com wrote:
Heya, I just stumbled upon CLPython today. What's the status of it? Is
there
*any* sort of development going on?
Hi Rudolf, I'm just an occasional user of CL-Python, I don't have anything to do with the project. But no-on else has answered so here I am. CL-Python seems to work as advertised -- I had no trouble getting it to run and I didn't encounter any bugs (although I didn't look carefully). So it seems like a suitable basis for continuing development (even if you end up working by yourself).
Does it absolutely require Allegro CL? I don't have that installed yet but I think it'd be neat if it would run on SBCL or CLISP with the most minimal of changes. That's actually what I'd like to do first before adding functionality.
Do you know if benchmarks have been done comparing the speed of CLPython to CPython?
-Rudolf
On Jan 16, 2008 5:48 PM, Rudolf omouse@gmail.com wrote:
Do you know if benchmarks have been done comparing the speed of CLPython to CPython?
For numerical stuff, there shouldn't be too much difference. Creating instances and doing lots of attribute lookup is not as efficient in CLPython yet, though. Here is Pystone, to give an indication of the latter:
clpython(19): (repl) [CLPython -- type `:q' to quit, `:help' for help]
import sys
#<module sys (package "clpython.module.sys" with 36 external symbols) @ #x1096c602>
sys.path.append("./test/")
None
import pystone
;;; Compiling file test/pystone.py ;;; Warning: Module `pystone', function `Proc8': unused variable `IntGlob'. ;;; Warning: Module `pystone', function `Proc5': unused variable `Char1Glob'. ;;; Warning: Module `pystone', function `Proc5': unused variable `BoolGlob'. ;;; Warning: Module `pystone', function `Proc4': unused variable `Char2Glob'. ;;; Warning: Module `pystone', function `Proc3': unused variable `IntGlob'. ;;; Warning: Module `pystone', function `Proc0': unused variable `i'. ;;; Warning: Module `pystone', function `Proc0': unused variable `PtrGlbNext'. ;;; Warning: Module `pystone', function `Proc0': unused variable `PtrGlb'. ;;; Warning: Module `pystone', function `Proc0': unused variable `BoolGlob'. ;;; Writing fasl file /Users/willem/.fasl/allegro-8.1m-macosx-x86/Users/willem/dev/lisp/python/test/pystone.fasl ;;; Fasl write complete ; Fast loading /Users/willem/.fasl/allegro-8.1m-macosx-x86/Users/willem/dev/lisp/python/test/pystone.fasl #<module `pystone' from file #P"test/pystone.py" @ #x10e07f02>
pystone.main()
starttime 11.74 tmp 11.76 nulltime 0.020000458 Pystone(1.1) time for 50000 passes = 4.089999 This machine benchmarks at 12224.94126973949 pystones/second finished None
While CPython gives:
Banaan:~/dev/lisp/python/test willem$ python2.5 Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04) [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import pystone pystone.main()
starttime 0.06 tmp 0.07 nulltime 0.01 Pystone(1.1) time for 50000 passes = 1.21 This machine benchmarks at 41322.3 pystones/second finished
- Willem
On Jan 15, 2008 10:07 PM, Rudolf omouse@gmail.com wrote:
Heya, I just stumbled upon CLPython today. What's the status of it? Is there *any* sort of development going on?
There is still progress in CLPython, but that's only visible if you keep an eye on CVS commits. To get an impression of the language completeness, please look at the test suite. The website on common-lisp.net needs an update (conditional expressions and the "with" statement are already supported). I'll try to update the website in the weekend.
What would be a good place, for a CL newbie, to start adding functionality from this list: http://common-lisp.net/project/clpython/status.html
In another mail you wrote that you'd like to use CLPython in other Lisps like SBCL. Maybe then a good starting point is the parser. Allegro comes with its own version of yacc, while cl-yacc is available as open source. In file /parser/grammar-clyacc.lisp the grammar rules for cl-yacc are defined. The grammar can be compiled, but parsing fails, often with errors of the kind:
clpython(10): (clpython.parser:parse "a = 3" :yacc-version :cl-yacc) Error: Unexpected terminal clpython.ast.token:identifier (value clpython.user::a) Expected one of: nil [condition type: yacc-parse-error]
If you could look into fixing this, that would be a nice first step towards portability. Thanks for your interest!
- Willem
clpython-devel@common-lisp.net