mst at libreoffice.org
Mon Jan 24 10:42:05 UTC 2022
On 22.01.22 13:35, Ilmari Lauhakangas wrote:
> On 22.1.2022 13.27, Julien Nabet wrote:
>> Reading https://en.wikipedia.org/wiki/BeanShell, specifically:
>> "Since Java 9, Java instead includes JShell
>> <https://en.wikipedia.org/wiki/JShell>, a different read–eval–print
>> (REPL) shell based on Java syntax, indicating that BeanShell will not
>> be continued"
>> I wonder if we could remove Beanshell part from LO.
>> Some people proposed C/C++ engine like Spidermonkey or V8 (see
>> https://bugs.documentfoundation.org/show_bug.cgi?id=97827) but it
>> seems they may be problematic too because of instable API and specific
>> GC, see Michael's comment here:
another problem is that Rhino cannot simply be replaced by packging yet
another JS implementation; if you look at the examples we ship, they have:
so any existing Rhino based macros will likely use the Java APIs and
cannot work with a non-JVM based JS implementation.
also, Rhino relies on the Java-UNO bridge and some Java glue code in the
scripting model to provide access to UNO APIs; this would need to be
reimplemented in the form of a bridge for any non-JVM based JS
More information about the LibreOffice