Re: [racket] Python versus Racket

2014-05-15 Thread Konrad Hinsen
Eduardo Costa writes: > I wonder whether a more restricted form of Python would not be > acceptable in situations where speed is critical. I mean, instead > of cl-python, that tries to mimic the semantic of Python closely, > the Lisp community could write a compiler for the subset of Python >

Re: [racket] Python versus Racket

2014-05-14 Thread Eduardo Costa
I wonder whether a more restricted form of Python would not be acceptable in situations where speed is critical. I mean, instead of cl-python, that tries to mimic the semantic of Python closely, the Lisp community could write a compiler for the subset of Python that the majority of people really us

[racket] Python versus Racket

2014-05-14 Thread Konrad Hinsen
Eduardo Costa writes: > Is there anything in the semantic of Python that makes it much more > difficult to > implement a Python compiler than a Racket compiler? Python is much more dynamic than Racket. As an illustration, look at a simple operation: addition. In Racket, (+ a b) requires

[racket] Python versus Racket

2014-05-13 Thread Eduardo Costa
I am trying to understand why is so difficult to implement fast compilers for languages like Python and Ruby. In particular, I wrote a few programs in Racket, SBCL, and Python (PyPy). Most of these benchmarks deal with number crunching (like simplex method and solving linear equations), list proce