[Libreoffice-bugs] [Bug 97827] Change the rhino engine for javascript macros for non Java alternative (spidermonkey/V8)
https://bugs.documentfoundation.org/show_bug.cgi?id=97827 Timur changed: What|Removed |Added Priority|medium |low -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 97827] Change the rhino engine for javascript macros for non Java alternative (spidermonkey/V8)
https://bugs.documentfoundation.org/show_bug.cgi?id=97827 --- Comment #12 from Buovjaga --- Some more facts from Michael: https://lists.freedesktop.org/archives/libreoffice/2022-January/088381.html Quote: 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: importClass(java.lang.Thread); importClass(java.lang.System); so any existing Rhino based macros will likely use the Java APIs and cannot work with a non-JVM based JS implementation. importClass(Packages.com.sun.star.uno.UnoRuntime); importClass(Packages.com.sun.star.lang.XMultiComponentFactory); importClass(Packages.com.sun.star.awt.XDialogProvider); importClass(Packages.com.sun.star.awt.XDialog); importClass(Packages.com.sun.star.uno.Exception); importClass(Packages.com.sun.star.script.provider.XScriptContext); also, Rhino relies on the Java-UNO bridge and some Java glue code in the scripting module to provide access to UNO APIs; this would need to be reimplemented in the form of a bridge for any non-JVM based JS implementation. -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 97827] Change the rhino engine for javascript macros for non Java alternative (spidermonkey/V8)
https://bugs.documentfoundation.org/show_bug.cgi?id=97827 --- Comment #11 from Spyros --- Out of curiosity I tried Rhino and QuickJS on the bench-v8 version 7 benchmark (https://github.com/mozilla/arewefastyet/tree/master/benchmarks/v8-v7), used on the official QuickJS website as a comparison with other JS micro-engines (https://bellard.org/quickjs/bench.html). I wanted to benchmark Duktape too, but it would not compile on my Debian 11 system, since the build system requires Python2 YAML (which is not available anymore at the repositories). Rhino 1.7.14-SNAPSHOT 2021 09 14 java -classpath buildGradle/libs/rhino-1.7.14-SNAPSHOT.jar org.mozilla.javascript.tools.shell.Main -opt -1 -f bench-v8/combined.js //commented out a line with console.log (Rhino does not support it) PROGRESS Richards RESULT Richards 53.6 PROGRESS DeltaBlue RESULT DeltaBlue 55.3 PROGRESS Encrypt PROGRESS Decrypt RESULT Crypto 52.0 PROGRESS RayTrace RESULT RayTrace 134 PROGRESS Earley PROGRESS Boyer RESULT EarleyBoyer 167 PROGRESS RegExp RESULT RegExp 147 PROGRESS Splay RESULT Splay 302 PROGRESS NavierStokes RESULT NavierStokes 65.7 SCORE 100 QuickJS 2021-03-27 ./qjs bench-v8/combined.js PROGRESS Richards RESULT Richards 363 PROGRESS DeltaBlue RESULT DeltaBlue 350 PROGRESS Encrypt PROGRESS Decrypt RESULT Crypto 419 PROGRESS RayTrace RESULT RayTrace 483 PROGRESS Earley PROGRESS Boyer RESULT EarleyBoyer 676 PROGRESS RegExp RESULT RegExp 125 PROGRESS Splay RESULT Splay 893 PROGRESS NavierStokes RESULT NavierStokes 751 SCORE 442 -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 97827] Change the rhino engine for javascript macros for non Java alternative (spidermonkey/V8)
https://bugs.documentfoundation.org/show_bug.cgi?id=97827 Timur changed: What|Removed |Added See Also||https://bugs.documentfounda ||tion.org/show_bug.cgi?id=11 ||8440 -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 97827] Change the rhino engine for javascript macros for non Java alternative (spidermonkey/V8)
https://bugs.documentfoundation.org/show_bug.cgi?id=97827 Alex Thurgood changed: What|Removed |Added See Also||https://bugs.documentfounda ||tion.org/show_bug.cgi?id=13 ||6205 -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 97827] Change the rhino engine for javascript macros for non Java alternative (spidermonkey/V8)
https://bugs.documentfoundation.org/show_bug.cgi?id=97827 himajin100...@gmail.com changed: What|Removed |Added Blocks|107659 |127594 Referenced Bugs: https://bugs.documentfoundation.org/show_bug.cgi?id=107659 [Bug 107659] [META] Macro bugs and enhancements https://bugs.documentfoundation.org/show_bug.cgi?id=127594 [Bug 127594] [META]Javascript Macro bugs -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 97827] Change the rhino engine for javascript macros for non Java alternative (spidermonkey/V8)
https://bugs.documentfoundation.org/show_bug.cgi?id=97827 --- Comment #10 from Buovjaga --- There is now also QuickJS from Fabrice Bellard & friends: https://bellard.org/quickjs/ -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 97827] Change the rhino engine for javascript macros for non Java alternative (spidermonkey/V8)
https://bugs.documentfoundation.org/show_bug.cgi?id=97827 Roman Kuznetsov <79045_79...@mail.ru> changed: What|Removed |Added Blocks||107659 Referenced Bugs: https://bugs.documentfoundation.org/show_bug.cgi?id=107659 [Bug 107659] [META] Macro bugs and enhancements -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 97827] Change the rhino engine for javascript macros for non Java alternative ( spidermonkey/V8)
https://bugs.documentfoundation.org/show_bug.cgi?id=97827 --- Comment #9 from jan d --- (In reply to Michael Stahl from comment #7) > > … > > furthermore, ~nobody is using JavaScript (or BeanShell for that matter) > for LO scripting anyway, there is ~no documentation for it, Which is sadly a Catch 22: Without documentation, it is no wonder that no one uses it. I think it would be great to have a better JS support and (better/any) documentation. JS is a widespread language and would enable to tap into a different group of devs (if that is wanted). -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 97827] Change the rhino engine for javascript macros for non Java alternative (spidermonkey/V8)
https://bugs.documentfoundation.org/show_bug.cgi?id=97827 Bastián Díaz changed: What|Removed |Added Summary|Change the rhino engine for |Change the rhino engine for |javascript macros |javascript macros for non |(spidermonkey/V8) |Java alternative ||(spidermonkey/V8) -- You are receiving this mail because: You are the assignee for the bug. ___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs