8. Writing Code¶

This chapter contains topics related to the process and conventions of coding for the Very Slow Jython project.

  • 8.1. Coding Standard
    • 8.1.1. Divergence from Jython 2 Standard
      • Brevity
      • Modernity
  • 8.2. Porting CPython Code to Java
    • 8.2.1. Architectural Drivers
    • 8.2.2. Lessons from Practice
      • It’s much clearer in Java
      • Comments are needed
      • Documentation comments are needed
      • CPython source to Java in general
      • Names
      • Type and cast
      • Object Lifecycle
      • Some Abstract Interface Methods
      • Pointer-to-Function is MethodHandle
      • Error returns
      • Translating Exceptions
      • Translating Attribute Access
      • Translating Container Access

The Very Slow Jython Project

Navigation

  • 1. Background to the Very Slow Jython Project
  • 2. A Tree-Python Interpreter
  • 3. A Generated Code Interpreter
  • 4. A Plain Java Object Interpreter
  • 5. The Plain Java Object Model Extended
  • 6. Performance
  • 7. Architecture
  • 8. Writing Code
    • 8.1. Coding Standard
    • 8.2. Porting CPython Code to Java

Related Topics

  • Documentation overview
    • Previous: 7.9. Descriptors
    • Next: 8.1. Coding Standard
©2024, Jeff Allen. | Powered by Sphinx 8.2.3 & Alabaster 1.0.0 | Page source