ES 3.1 implementations?

# Robert Sayre (17 years ago)

I am putting together feedback on the JSON features proposed for ES 3.1, and I was wondering if there any ES 3.1 implementations available.

Given the limited scope of the spec, I would expect to see at least one implementation completed soon if there isn't one. Maybe in Rhino or something?

# Douglas Crockford (17 years ago)

Robert Sayre wrote:

I am putting together feedback on the JSON features proposed for ES 3.1, and I was wondering if there any ES 3.1 implementations available.

Given the limited scope of the spec, I would expect to see at least one implementation completed soon if there isn't one. Maybe in Rhino or something?

There is an implementation in JavaScript at json.org/json2.js.

# Allen Wirfs-Brock (17 years ago)

It would be great if somebody wanted to work on a proof of concept ES 3.1 implementation in a open code bases such as such as Webkit or Rhino.

If anybody is interested in volunteering send a not to es3.x-discuss at mozilla.org

# Brendan Eich (17 years ago)

On Jun 25, 2008, at 8:53 PM, Allen Wirfs-Brock wrote:

It would be great if somebody wanted to work on a proof of concept
ES 3.1 implementation in a open code bases such as such as Webkit
or Rhino.

Don't forget SpiderMonkey.

If anybody is interested in volunteering send a not to es3.x- discuss at mozilla.org

There's the ES4 RI as well -- did you have anyone already lined up to
work on the 3.1 subset of it?

# Allen Wirfs-Brock (17 years ago)

Yes, and of course SpiderMonkey. For no particularly good reason I simply have the other two positioned in my mind as perhaps being more (technically) approachable for somebody who wanted to plunge into such an effort. I may well be misguided in that perception.

# Brendan Eich (17 years ago)

On Jun 25, 2008, at 11:46 PM, Allen Wirfs-Brock wrote:

Yes, and of course SpiderMonkey. For no particularly good reason I
simply have the other two positioned in my mind as perhaps being
more (technically) approachable for somebody who wanted to plunge
into such an effort. I may well be misguided in that perception.

(Was that a cut? :-P)

It's true, SpiderMonkey won't win any beauty pageants, but it gets
the job done and people do hack on it. No mature and/or optimized
engine is all that easy to hack on, and C or C++ is the wrong
language for implementing interpreters and compilers, if the goal is
clarity and extensibility. Java is better, SML is much better -- to
pick non-random examples.

Which reminds me, any thoughts on the RI subset?

# Robert Sayre (17 years ago)

On Wed, Jun 25, 2008 at 10:43 PM, Douglas Crockford <douglas at crockford.com> wrote:

There is an implementation in JavaScript at json.org/json2.js.

This file has evolved since I last looked at it. We have an older copy in the Mozilla tree,

mxr.mozilla.org/mozilla-central/source/dom/src/json/test/json2.js

and Mozilla's native implementation matches its behavior in most cases, except where I intentionally diverged (our implementation always returns strict JSON, and thus won't return strings).

A changelog would really speed my analysis of the new file, since I'm quite familiar with the old one. Happen to have one?

# Maciej Stachowiak (17 years ago)

On Jun 25, 2008, at 8:53 PM, Allen Wirfs-Brock wrote:

It would be great if somebody wanted to work on a proof of concept
ES 3.1 implementation in a open code bases such as such as Webkit or
Rhino.

If anybody is interested in volunteering send a not to es3.x-discuss at mozilla.org

We would gladly accept SquirrelFish patches for any part of ES3.1 that
is not in conflict with the corresponding part of ES4.

, Maciej