[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.javascript

JavaScript in Java and C++

ram

2/23/2015 1:00:00 PM

Just for fun, I'd like to mention the fact that our beloved
JavaScript, in a sense, is a part of both Java and C++!

It is a part of Java in the sense that the standard Java SE
JDK includes an interpreter for a language that is very similar
to JavaScript, and it is a part of C++ insofar that the C++
standard includes ECMA-262 as a normative reference and uses
the ECMA-262 grammar as a default grammar for regular expressions.

(I might have preferred to see /Perl/ regular expressions as
the default, maybe the transition from Perl 5 to Perl 6 has
weakened the Perl-5-REs.)

1 Answer

Michael Haufe (\"TNO\")

2/23/2015 4:45:00 PM

0

On Monday, February 23, 2015 at 7:00:10 AM UTC-6, Stefan Ram wrote:
> Just for fun, I'd like to mention the fact that our beloved
> JavaScript, in a sense, is a part of both Java and C++!
>
> It is a part of Java in the sense that the standard Java SE
> JDK includes an interpreter for a language that is very similar
> to JavaScript, and it is a part of C++ insofar that the C++
> standard includes ECMA-262 as a normative reference and uses
> the ECMA-262 grammar as a default grammar for regular expressions.
>
> (I might have preferred to see /Perl/ regular expressions as
> the default, maybe the transition from Perl 5 to Perl 6 has
> weakened the Perl-5-REs.)

Links or it never happened ;)

I've actually been doing some research work lately with Dependent Types[0] in JavaScript with an implementation on top of Rhino[1]. I've been trying to jump to something newer with ES6 support, but have been unsure of the quality of a potential successor on that platform[2][3], so anything new on that front I would find useful.

The C++ aspect I find surprising TBH. That community already has better regex options[4][5]. I figured they would have folded one or more of them into the language proper.

[0] https://en.wikipedia.org/wiki/Depe...
[1] https://developer.mozilla.org/en-US/docs/Mozilla/Proj...
[2] http://www.infoq.com/news/2012/11/Nashor...
[3] https://blogs.oracle.co...
[4] http://www.regular-expressions.info...
[5] http://www.regular-expressions.info/...