Jython 2.7 and the end of Python 2 #3617
Replies: 3 comments
-
I've done some very brief testing with Ghidraal and found it to be serviceable, although I think |
Beta Was this translation helpful? Give feedback.
-
Ghidra-Bridge provides python3 support via an RPC service, I use it a lot for prototyping and for integrating with other Python packages. The one thing to remember is if you're doing a large amount of iteration, use the I wrote a Jupyter Notebook kernel which is useful for prototyping, having Jupyter's result caching makes writing scripts and exploring the API really nice. Jython is adding python3 support, so eventually I assume Ghidra will adopt this, so we won't be stuck with 2.7 forever. Thanks for the Ghidraal link @bdemick, I'll give this a go. Sounds like a useful intermediate before Jython adds 3.8 support. |
Beta Was this translation helpful? Give feedback.
-
If the concern is only about having a modern language for scripting tasks, I would throw in the plugin I wrote that embeds a Jupyter Kotlin kernel into Ghidra: https://github.com/GhidraJupyter/ghidra-jupyter-kotlin The support for Kotlin in Jupyter in general is still fairly new, but under active development. IMO writing Kotlin isn't much harder than writing Python for most scripting tasks, and because Kotlin uses static types, features like tab completion work no matter how deeply nested some expression is. Unlike Python where this fails fairly quickly. The downside is that this doesn't involve Python at all, so no chance of leveraging the existing Python ecosystem around datascience and machine learning libraries. Though at a glance, the libraries for Kotlin in this regard seem to cover the basics: https://kotlinlang.org/docs/data-science-overview.html#kotlin-libraries |
Beta Was this translation helpful? Give feedback.
-
Hello, I was wondering if anyone has proposed any potential replacement for Jython 2.7.2.
I recently stumbled across Issue #194 which states that there is no official version of Jython 3 yet, and the newest version supported is still Jython 2.7.2. Additionally, another user recommended GraalPython, but it appears it may not be a suitable replacement either.
Overall, I think it would be useful to bring Python 3's changes to Ghidra, as Python 2 has reached end-of-life. If anyone has any ideas of how to do this, I'd love to hear them!
Thanks all
Beta Was this translation helpful? Give feedback.
All reactions