[pypy-svn] r45287 - pypy/dist/pypy/doc/discussion

fijal at codespeak.net fijal at codespeak.net
Tue Jul 24 10:04:04 CEST 2007


Author: fijal
Date: Tue Jul 24 10:04:02 2007
New Revision: 45287

Added:
   pypy/dist/pypy/doc/discussion/outline-external-ootype.txt   (contents, props changed)
Log:
Quick notes regarding yesterday's discussion, how to factor out common
External object approach for ootype backends


Added: pypy/dist/pypy/doc/discussion/outline-external-ootype.txt
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/doc/discussion/outline-external-ootype.txt	Tue Jul 24 10:04:02 2007
@@ -0,0 +1,42 @@
+Some discussion about external objects in ootype
+================================================
+
+Current approaches:
+
+* BasicExternal, used for js backend
+
+* SomeCliXxx for .NET backend
+
+BasicExternal
+=============
+
+* Is using types to make rpython happy (ie, every single method or field
+  is hardcoded)
+
+* Supports callbacks by SomeGenericCallable
+
+* Supports fields, also with callable fields
+
+SomeCliXxx
+==========
+
+* Supports method overloading
+
+* Supports inheritance in a better way
+
+* Supports static methods
+
+Would be extremely cool to have just one approach instead of two,
+so here are some notes:
+
+* There should be one mechanism, factored out nicely out of any backend,
+  to support any possible backend (cli, js, jvm for now).
+
+* This approach might be eventually extended by a backend itself, but
+  as much as possible code should be factored out.
+
+* Backend should take care itself about creating such classes, either
+  manually or automatically.
+
+* Should support superset of needs of all backends (ie callbacks,
+  method overloading, etc.)
\ No newline at end of file



More information about the Pypy-commit mailing list