ilmari.lauhakangas at libreoffice.org
Sat Jan 22 12:35:18 UTC 2022
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 loop
> (REPL) shell based on Java syntax, indicating that BeanShell will not be
> I wonder if we could remove Beanshell part from LO.
> 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:
> However, shouldn't we focus on Basic support and Python and remove the 2
> others or at least Beanshell ?
> Goal: diminish Java dependency and maintaining burden by removing code.
> Now I must recognize I don't know if these 2 features are used or not.
> Considering number of bugtrackers it doesn't seem so but perhaps it's
> because there are very few bugs.
Thanks for the heads up regarding JShell.
Indeed, there are engines better suited for embedding, but then the
question becomes how well they keep up with all the new features
introduced into JS standard each year.
QuickJS appeared on the scene in 2019 and caused a lot of excitement
due to the nice support for new JS features. However, it has remained as
more of a "man throws code over the wall occasionally" type of project.
Duktape is lagging behind in the latest JS features, but is still
actively developed, is used by many projects and has a very good
Linux packaging coverage. One widely-deployed project currently
adopting Duktape is polkit (moving away from mozjs).
could be taken as with Python, using an external IDE.
More information about the LibreOffice