Skip to main content
17-Peridot
November 29, 2021
Solved

Why not use J2V8 to replace the current Rhino ?

  • November 29, 2021
  • 2 replies
  • 1836 views

Hi, 

ThingWorx use Rhino as its JavaScript engine , but Rhino is too slow ,  comparing to V8 its 10 times slower ,  why not use J2V8 (the Java integration of V8) instead ? 

 

Regards,

Sean

Best answer by slangley

Hi @seanccc.

 

The Product Mgmt team advised that graal, v8, et al are being evaluated for future releases.

 

Regards.

 

--Sharon

2 replies

24-Ruby III
November 29, 2021
Support
December 7, 2021

Hi @seanccc.

 

The platform predates J2V8. While V8 is certainly faster than Rhino, JS code in services is mainly interacting with Java objects within the platform, not executing high-performance code itself.

 

It's my understanding that alternatives are being discussed, but nothing definitive at this time.  However, I will make sure the Product Managers are made aware of your inquiry.

 

Regards.

 

--Sharon

 

 

slangleyCommunity ManagerAnswer
Support
December 7, 2021

Hi @seanccc.

 

The Product Mgmt team advised that graal, v8, et al are being evaluated for future releases.

 

Regards.

 

--Sharon