2014-07-10 19:00 GMT+02:00 Denis Golovin <dgolovin@exadel.com>:
On 07/10/2014 07:34 AM, Angelo zerr wrote:
Hi,

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?
If esprima is like acorn, can we use esprima inside tern? Is it interesting (for performance for example)?
There is a Speed Comparison page http://esprima.org/test/compare.html

Thank's denis. With my Chrome, it seems acorn is the faster. I love so tern:)

Source EsprimaUglifyJS2Traceur Acorn
Underscore 1.5.2 6.5 ±2.3%12.1 ±7.3% 8.8 ±0.9%4.1 ±1.6%
Backbone 1.1.08.1 ±2.6% 18.8 ±3.5%9.8 ±1.3% 4.7 ±6.2%
jQuery 1.9.1 55.1 ±6.1%141.7 ±5.3% 78.6 ±4.8%48.9 ±6.2%
Total69.6 ms 172.6 ms97.2 ms 57.7 ms
 


Best
Denis
 
> In fact Acorn, the parser used by Tern, is compatible with Esprima.
It means that we could use esprima lint https://github.com/eslint/eslint ?

Regard's Angelo


2014-07-10 16:15 GMT+02:00 Marijn Haverbeke <marijnh@gmail.com>:
We are aware of Esprima. In fact Acorn, the parser used by Tern, is
compatible with Esprima.

On Thu, Jul 10, 2014 at 4:01 PM, Mickael Istria <mistria@redhat.com> wrote:
> Hi,
>
> Here is a project that could be interesting:
> https://projects.eclipse.org/proposals/esprima
>
> Cheers,
> --
> Mickael Istria
> Eclipse developer at JBoss, by Red Hat
> My blog - My Tweets
>
> --
> You received this message because you are subscribed to the Google Groups
> "tern-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tern-dev+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "tern-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tern-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



_______________________________________________
jbosstools-dev mailing list
jbosstools-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbosstools-dev