Gumtree
  1. Gumtree
  2. GUMTREE-130

Provide Jython scripting support

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.1
    • Component/s: scripting
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Provide Jython scripting binding and use it as the default engine when cPython is missing at runtime.

        Activity

        Hide
        Tony Lam added a comment -

        Discussion with Nick Hauser on 24/12/2009

        • GDA uses Jython
        • Scala has very good performance, but syntax is not too intuitive for developers and scientists (our user domain)
        • The neutron and xray user community is in favour of using Python, so we need a very strong supporting case if we consider to use JRuby
        • High performance code in GumTree should be written in Java for native speed. So scripting language performance is not a big issue for use. However Groovy is too slow and will not be considered (see: http://stronglytypedblog.blogspot.com/2009/07/java-vs-scala-vs-groovy-performance.html)

        Conclusion:
        Either Jython or Python (jepp) is acceptable, but Jython is more cross-platform and stable (jepp may crash JVM if some third party library code is called).

        Show
        Tony Lam added a comment - Discussion with Nick Hauser on 24/12/2009 GDA uses Jython Scala has very good performance, but syntax is not too intuitive for developers and scientists (our user domain) The neutron and xray user community is in favour of using Python, so we need a very strong supporting case if we consider to use JRuby High performance code in GumTree should be written in Java for native speed. So scripting language performance is not a big issue for use. However Groovy is too slow and will not be considered (see: http://stronglytypedblog.blogspot.com/2009/07/java-vs-scala-vs-groovy-performance.html ) Conclusion: Either Jython or Python (jepp) is acceptable, but Jython is more cross-platform and stable (jepp may crash JVM if some third party library code is called).
        Hide
        Tony Lam added a comment -

        May consider learning some GDA Jython scripting concepts to enhance GumTree (see: http://www.opengda.org/)

        Show
        Tony Lam added a comment - May consider learning some GDA Jython scripting concepts to enhance GumTree (see: http://www.opengda.org/ )
        Hide
        Tony Lam added a comment -
        Show
        Tony Lam added a comment - Working in progress. See: http://docs.codehaus.org/display/GUMTREE/Notes+on+Jython+Support
        Hide
        Tony Lam added a comment -

        Jython script engine is added to GumTree.

        Show
        Tony Lam added a comment - Jython script engine is added to GumTree.

          People

          • Assignee:
            Tony Lam
            Reporter:
            Tony Lam
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: