[pypy-svn] r38866 - pypy/dist/pypy/doc/js
guido at codespeak.net
guido at codespeak.net
Wed Feb 14 22:39:38 CET 2007
Date: Wed Feb 14 22:39:37 2007
New Revision: 38866
Improved document structure, fixed some typos and re-arranged the text a bit to
make it sound better (less, well, chaotic ;).
--- pypy/dist/pypy/doc/js/whatis.txt (original)
+++ pypy/dist/pypy/doc/js/whatis.txt Wed Feb 14 22:39:37 2007
@@ -15,34 +15,44 @@
What is it?
-evolved during pypy developement. By `using`_ it you can write down RPython
-and then run it in a browser. As an addon you can get access to
-semi-transparent rendering of AJAX calls.
-This means that you might expect python semantics: ie. when you're trying to get
-non-existing key from a dictionary, you'll get a KeyError, not an undefined element.
-you instead prefer Python semantics this is a good point. Some of
-errors might appear at a compile time (such as wrong number of arguments
-to function, non-existing global variable, non-existing method call).
-This also means that you will get some python features - such as exception handling
-, list comprehensions etc. But you'll not get python dynamic features - overloading
-operators, dynamic modifications of \_\_dict\_\_ and such.
-This also means that it is much easier to write code in pypy.js than in
+evolved during PyPy developement. By `using`_ it you can write RPython
+code (a subset of Python static enough to compile), translate it into
+When writing RPython you can expect full Python semantics from code you write:
+ie. when you're trying to get a non-existing key from a dictionary, you'll get
+a KeyError, not an undefined element. Also things like Python's
+object-orientation are fully supported. This in contrast to other efforts of
+This means that you will get some Python features - such as exception handling,
+list comprehensions, etc., but do understand that you will _not_ get some of
+the more 'dynamic' features of Python - overloading operators, dynamic
+modifications of \_\_dict\_\_ and such, because that will break RPython.
+`b'n'b demo`_ is just about 250 lines of code, with many AJAX calls. Imagine
+a nice library to handle the AJAX, and would almost certainly be less elegant
+Errors may appear already at compile time (such as providing the wrong number
+of arguments to a function, using a non-existing global variable, calling a
-There are also facilities for testing your python code (about to be translated
+There are some facilities for testing your Python code (about to be translated
.. _`using`: using.html
.. _`b'n'b demo`: http://play1.codespeak.net:7070
.. _`testing`: testing.html
-What is it not?
More information about the Pypy-commit