[Vm-dev] [VM-dev] Can we be a JavaScript engine?

Denis Kudriashov dionisiydk at gmail.com
Tue Feb 20 16:09:03 UTC 2018


Java can do it. I found https://ringojs.org and Oracle Nashorn
<http://www.oracle.com/technetwork/articles/java/jf14-nashorn-2126515.html>
.
And interesting performance comparison
http://pieroxy.net/blog/2015/06/29/node_js_vs_java_nashorn.html

2018-02-20 16:44 GMT+01:00 Denis Kudriashov <dionisiydk at gmail.com>:

>
>
> 2018-02-20 16:04 GMT+01:00 Clément Bera <bera.clement at gmail.com>:
>
>>
>>
>>
>> On Tue, Feb 20, 2018 at 3:56 PM, Denis Kudriashov <dionisiydk at gmail.com>
>> wrote:
>>
>>>
>>> Hi.
>>>
>>> It is just a question from the space :)
>>>
>>> I wonder, can we be a JavaScript engine? Like replacing nodeJs with
>>> Pharo/Squeak.
>>> I imagine that JS prototypes can be easily supported by anonymous
>>> classes. What is missing?
>>>
>>
>> Not really. Efficient prototypes requires deep VM changes in memory
>> representation of objects.
>>
>
> Performance is another question.
> But we can only measure it if we will be able to run JS code.
>
>
>>
>>>
>>> Best regards,
>>> Denis
>>>
>>>
>>
>>
>> --
>> Clément Béra
>> Pharo consortium engineer
>> https://clementbera.wordpress.com/
>> Bâtiment B 40, avenue Halley 59650 Villeneuve d'Ascq
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20180220/ae067377/attachment.html>


More information about the Vm-dev mailing list