<div dir="ltr"><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-10 19:00 GMT+02:00 Denis Golovin <span dir="ltr"><<a href="mailto:dgolovin@exadel.com" target="_blank">dgolovin@exadel.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div class="">
<div>On 07/10/2014 07:34 AM, Angelo zerr
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hi,</div>
<div><br>
</div>
<div>I don't know very good esprima, but is esprima can be
compared to tern (which is javascript inference engine) or
just be compared to acorn?</div>
<div>If esprima is like acorn, can we use esprima inside tern?
Is it interesting (for performance for example)?</div>
</div>
</blockquote></div>
There is a Speed Comparison page
<a href="http://esprima.org/test/compare.html" target="_blank">http://esprima.org/test/compare.html</a></div></blockquote><div><br></div><div>Thank's denis. With my Chrome, it seems acorn is the faster. I love so tern:)</div>
<div><br></div><table style="border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;margin:0px 0px 18px;border:1px solid rgb(221,221,221);font-family:'Helvetica Neue',Helvetica,Helvetica,Arial,sans-serif;font-size:14px;line-height:22.399999618530273px;background-image:initial;background-repeat:initial">
<thead style="background:rgb(245,245,245)"><tr><th style="margin:0px;padding:8px 10px 9px;direction:ltr;line-height:18px;border-left-style:none">Source</th><th style="margin:0px;padding:8px 10px 9px;direction:ltr;line-height:18px">
Esprima</th><th style="margin:0px;padding:8px 10px 9px;direction:ltr;line-height:18px">UglifyJS2</th><th style="margin:0px;padding:8px 10px 9px;direction:ltr;line-height:18px">Traceur</th><th style="margin:0px;padding:8px 10px 9px;direction:ltr;line-height:18px;border-right-style:none">
Acorn</th></tr></thead><tbody><tr><td style="padding:9px 10px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border:none">Underscore 1.5.2</td><td id="underscore-1.5.2-esprima-time" style="padding:9px 10px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border:none">
6.5 ±2.3%</td><td id="underscore-1.5.2-uglifyjs2-time" style="padding:9px 10px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border:none">12.1 ±7.3%</td><td id="underscore-1.5.2-traceur-time" style="padding:9px 10px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border:none">
8.8 ±0.9%</td><td id="underscore-1.5.2-acorn-time" style="padding:9px 10px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border:none">4.1 ±1.6%</td></tr><tr style="background:rgb(249,249,249)"><td style="padding:9px 10px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border:none">
Backbone 1.1.0</td><td id="backbone-1.1.0-esprima-time" style="padding:9px 10px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border:none">8.1 ±2.6%</td><td id="backbone-1.1.0-uglifyjs2-time" style="padding:9px 10px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border:none">
18.8 ±3.5%</td><td id="backbone-1.1.0-traceur-time" style="padding:9px 10px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border:none">9.8 ±1.3%</td><td id="backbone-1.1.0-acorn-time" style="padding:9px 10px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border:none">
4.7 ±6.2%</td></tr><tr><td style="padding:9px 10px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border:none">jQuery 1.9.1</td><td id="jquery-1.9.1-esprima-time" style="padding:9px 10px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border:none">
55.1 ±6.1%</td><td id="jquery-1.9.1-uglifyjs2-time" style="padding:9px 10px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border:none">141.7 ±5.3%</td><td id="jquery-1.9.1-traceur-time" style="padding:9px 10px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border:none">
78.6 ±4.8%</td><td id="jquery-1.9.1-acorn-time" style="padding:9px 10px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border:none">48.9 ±6.2%</td></tr><tr style="background:rgb(249,249,249)"><td style="padding:9px 10px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border:none">
<b style="line-height:inherit">Total</b></td><td id="esprima-total" style="padding:9px 10px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border:none">69.6 ms</td><td id="uglifyjs2-total" style="padding:9px 10px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border:none">
172.6 ms</td><td id="traceur-total" style="padding:9px 10px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border:none">97.2 ms</td><td id="acorn-total" style="padding:9px 10px;direction:ltr;line-height:18px;color:rgb(51,51,51);vertical-align:top;border:none">
57.7 ms</td></tr></tbody></table><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
<br>
<br>
Best<br>
Denis<br>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div> </div>
<div><span style="font-family:arial,sans-serif;font-size:13px">>
In fact Acorn, the parser used by Tern, is </span><span style="font-family:arial,sans-serif;font-size:13px">compatible
with Esprima.</span><br>
</div>
<div><font face="arial, sans-serif">It means that we could use
esprima lint </font><a href="https://github.com/eslint/eslint" target="_blank">https://github.com/eslint/eslint</a>
?</div>
<div><br>
</div>
<div>Regard's Angelo</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2014-07-10 16:15 GMT+02:00 Marijn
Haverbeke <span dir="ltr"><<a href="mailto:marijnh@gmail.com" target="_blank">marijnh@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
We are aware of Esprima. In fact Acorn, the parser used by
Tern, is<br>
compatible with Esprima.<br>
<div>
<div><br>
On Thu, Jul 10, 2014 at 4:01 PM, Mickael Istria <<a href="mailto:mistria@redhat.com" target="_blank">mistria@redhat.com</a>>
wrote:<br>
> Hi,<br>
><br>
> Here is a project that could be interesting:<br>
> <a href="https://projects.eclipse.org/proposals/esprima" target="_blank">https://projects.eclipse.org/proposals/esprima</a><br>
><br>
> Cheers,<br>
> --<br>
> Mickael Istria<br>
> Eclipse developer at JBoss, by Red Hat<br>
> My blog - My Tweets<br>
><br>
> --<br>
> You received this message because you are
subscribed to the Google Groups<br>
> "tern-dev" group.<br>
> To unsubscribe from this group and stop receiving
emails from it, send an<br>
> email to <a href="mailto:tern-dev%2Bunsubscribe@googlegroups.com" target="_blank">tern-dev+unsubscribe@googlegroups.com</a>.<br>
> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/optout</a>.<br>
<br>
--<br>
You received this message because you are subscribed to
the Google Groups "tern-dev" group.<br>
To unsubscribe from this group and stop receiving emails
from it, send an email to <a href="mailto:tern-dev%2Bunsubscribe@googlegroups.com" target="_blank">tern-dev+unsubscribe@googlegroups.com</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/optout</a>.<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
jbosstools-dev mailing list
<a href="mailto:jbosstools-dev@lists.jboss.org" target="_blank">jbosstools-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/jbosstools-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/jbosstools-dev</a></pre>
</blockquote>
<br>
</div>
</blockquote></div><br></div></div>