Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #26903

Re: JavaScript in Java and C++

Newsgroups comp.lang.javascript
Date 2015-02-23 08:45 -0800
References <Java-20150223135136@ram.dialup.fu-berlin.de>
Message-ID <57682fd2-1604-41be-a40f-7a69556fa35d@googlegroups.com> (permalink)
Subject Re: JavaScript in Java and C++
From "Michael Haufe (TNO)" <tno@thenewobjective.com>

Show all headers | View raw


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/Dependent_type
[1] https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino
[2] http://www.infoq.com/news/2012/11/Nashorn-proposal
[3] https://blogs.oracle.com/nashorn/
[4] http://www.regular-expressions.info/pcre.html
[5] http://www.regular-expressions.info/posix.html

Back to comp.lang.javascript | Previous | Next | Find similar | Unroll thread


Thread

Re: JavaScript in Java and C++ "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-02-23 08:45 -0800

csiph-web