J2V8 icon indicating copy to clipboard operation
J2V8 copied to clipboard

JSR 223 bindings

Open csachs opened this issue 9 years ago • 11 comments

Currently, there seems no JSR 223 support, which I think would be a useful feature. However this presentation hints that it's at least a planned feature for the future. I did not find any further information concerning this; thus I'd like to ask whether it is on any roadmap yet?

Thanks, Regards, Christian

csachs avatar Jul 21 '16 09:07 csachs

I thought we had an issue for this, but I don't see one. Thanks for opening. @fwaibel has been looking at this recently.

irbull avatar Jul 21 '16 14:07 irbull

+1 for this feature, it would allow to use J2V8 out of the box with Spring Boot applications via ScriptTemplateViewResolver.

sdeleuze avatar Dec 05 '16 09:12 sdeleuze

Any update on this? I'd love to use V8 instead of Nashorn for the speed difference. Will use Nashorn until J2V8 JSR 223 ScriptEngineFactory ready. :)

cyraid avatar May 28 '17 22:05 cyraid

Something was done in #200, but it's hard to tell what the current status is.

nilskp avatar Dec 04 '17 14:12 nilskp

@irbull, sorry for re-asking initial question, but it would be interesting to know whether JSR 223 is on roadmap or? For us it would be nice to replace Rhino in our Android project with J2V8 and JSR 223 seems like the easiest way of migration.

AlexTrotsenko avatar Dec 05 '17 11:12 AlexTrotsenko

@AlexTrotsenko If JSR 223 support is a pressing need and this repository does not want to incorporate it (which may be the cases since they want to prevent too much bloat), you can submit a pull request to the V8 adapter project which aims to offer enhanced "high-level" support for Java-to-Javascript in J2V8, including JSR 223 support.

caer avatar Dec 05 '17 21:12 caer

Hi @Mizumi. That sounds like good a idea (if they will confirm, that JSR-233 is not on the road map for nearest future unlike on the slides.)

Btw, thanks for sharing link to your great repo. I will check it in the more details for sure. From the 1st look it's idea seems to be similar to abandoned https://github.com/jsio-private/J2V8-classes, but looks newer and promising.

AlexTrotsenko avatar Dec 05 '17 22:12 AlexTrotsenko

Sounds good @AlexTrotsenko. The V8 adapter was actually created around the same time as the J2V8-classes project...fun fact! My latest commit to the repo adds simple support for JSR-223; feel free to check it out.

caer avatar Dec 07 '17 20:12 caer

Humble beginnings! Lookin' good so far, keep up the good work Mizumi! I would help out but I've got 3 projects on the go right now so I'm pretty swamped!

cyraid avatar Dec 08 '17 03:12 cyraid

Now that nashorn is planned for removal in future JDK versions, this may be a very interesting feature to push forward.

SylvainJuge avatar Nov 09 '18 16:11 SylvainJuge

Any update on this?

pramodanarase avatar Dec 24 '20 09:12 pramodanarase