amber-smalltalk / amber-documentation

Amber documentation website
MIT License
2 stars 9 forks source link

Add JS engine requirements for Amber #34

Closed hhzl closed 9 years ago

hhzl commented 9 years ago

Richard Eng asks on the ML about the compatibility of the Amber generated code in the browser. Indicate the JS requirements in the documentation.

ghost commented 9 years ago

Elaborate? I don't understand what is this issue about. :-/

hhzl commented 9 years ago

The questions are:

a) Which are the minimal web browser versions needed to run Amber generated JS code?

b) minimal web browser version to run the legacy IDE?

c) minimal web browser version to run the the Helios IDE?

In particular what about the ES3 / ES5 issues discussed for example in May 2012 on the ML.

ghost commented 9 years ago

@hhzl Why the distinctions between a, b and c? It should be just one. There is technically no distinction, and I cannot imagine one would specifically watch compat for each of the three.

ghost commented 9 years ago

(as there is not only browser, one can also mention which node.js versions Amber runs on - but it is already mentioned in package.json and .travis.yml - it runs fine on 0.8 as well as 0.10)

hhzl commented 9 years ago

Yes we need to mention the different browsers.

a) is for deployed code (no need for an IDE) -- no control of the browser version by the developer.

b) and c) are for development --- the browser may be chosen by the developer

ghost commented 9 years ago

I replied by email but it was lost, copying:

But IDEs are also "Amber-generated code". IOW, if developed app would use same techniques as Helios or legacy IDE uses in its own app, it would need same browser. That is, you cannot say the difference. Amber code requirements, in general, are at least as prohibitive as IDE requirements are.

ghost commented 9 years ago

Now that I think about it: did you mean it so that:

a) what is needed to run the dumbest possible Amber project (eg..empty one) after running amber deploy, and

b) what is needed to run IDE and successfully do the development?

If that's the case, it's probably limited just by requirements of integrated requirejs and jQuery... but it should be easy to try out.

hhzl commented 9 years ago

Yes, what you wrote is what I mean...

Regarding a) not necessarily the dumbest possible Amber project but a simple one.

As you write the answer is determined by the jQuery and requirejs version in terms of libary.

What is left is the question about arbitrary Smalltalk code to be compiled to Javascript. What about Array and set operations? ES3 / ES5?

hhzl commented 9 years ago

Answered with 0.14.2 README