Jump to content

ECMAScript: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Image:JavaScript-logo.png|right|150px]]
[[Image:JavaScript-logo.png|right|150px]]
Scripting language introduced by the [[Netscape]] corporation in 1996 as '''JavaScript''' and is by now the standard scripting language for the Web and known uder a variety of names including  JScript (Microsoft) and ActionScript (Adobe). ECMAScript is a loosely [[LISP]] inspired tool with a somewhat [[C]] like syntax and despite its enormous popularity is widely considered one of the worst designed programming languages to ever escape into the wild and the only such horror story to gain any popularity since [[Perl]]. The classic example of how little forethought was used when cobbling the language together is that despite being released just over three years before the 1999/2000 turnover the first versions of the language were not year 2000 ready, resulting in a few set-top Internet access boxes that used Netscape starting to have odd failures on some webpages in 2000 despite being less than 2 years old.
Known under a variety of names including  JScript (Microsoft) and ActionScript (Adobe). ECMAScript is a loosely [[LISP]] inspired tool with a somewhat [[C]] like syntax and despite its enormous popularity is widely considered one of the worst designed programming languages to ever escape into the wild and the only such horror story to gain any popularity since [[Perl]]. The classic example of how little forethought was used when cobbling the language together is that despite being released just over three years before the 1999/2000 turnover the first versions of the language were not year 2000 ready, resulting in a few set-top Internet access boxes that used Netscape starting to have odd failures on some webpages in 2000 despite being less than 2 years old.


It is possible to use ECMAScript as a tool to develop OS/2 desktop or even command-line applications, but due to the high number of problems with the current implementations you are advised not to do so unless compatibility with web based applications is a high priority. If you choose to use it it is recommended that you use an abstraction level like [[Microsoft Typescript]].
It is possible to use ECMAScript as a tool to develop OS/2 desktop or even command-line applications, but due to the high number of problems with the current implementations you are advised not to do so unless compatibility with web based applications is a high priority. If you choose to use it it is recommended that you use an abstraction level like [[Microsoft Typescript]].


The name JavaScript is an attempt to leech onto the hype that surrounded [[Java]] at the time the language was released but EMCAScript has no connection with Java at all except that Sun (owners of the Java trademark) gave permission to use the Java name. 1996 really was the year of Java and there were lots of tools that added Java to their name and the fledging Linux operating system started to use a penguin as its mascot in the same year, aping "Duke" the penguin Java mascot that seemed to be virtually everywhere at the time.
==OS/2 Implementations==
* [[JavaScript]] 1.3
* [[ScriptEase]] - Commercial
* StarScript


==A list of OS/2 implementations of ECMAScript==
===Libraries===
* [[ScriptEase]] - Commercial - Discontinued
;Compression libraries
* [[LZ4]] - Open source
* [[Snappy]] - Open Source


====Libraries====
===Utilities and test suites===
* [[LZ4]] - Decompression library - Open source - Current.
 
====Foreign libraries with ECMAScript bindings====
* [[LZ4]] - Compression library - Open source - Current.
* [[Snappy]] - Compression lib. - Open Source - Current.
 
====ECMAScript related utilities and test suites====
* [[ANTLR]] - Parser generator - Runs on [[Java]] and generates ECMAScript output code.
* [[ANTLR]] - Parser generator - Runs on [[Java]] and generates ECMAScript output code.


====OS/2 text & programmers editors with ECMAScript support====
;Editor support
* [[Boxer]] - Contributed, requires a separate download.
* [[Boxer]] - Contributed, requires a separate download.


==A list of ECMAScript implementations that run under WinOS/2==
==WinOS/2 Implementations==
* [[ScriptEase]] - Commercial - Discontinued
* [[ScriptEase]] - Commercial - Discontinued


Line 32: Line 30:
* [[Kotlin]] - Java/C++ like safer language,
* [[Kotlin]] - Java/C++ like safer language,
* [[Microsoft Typescript]] - Rationalised front end
* [[Microsoft Typescript]] - Rationalised front end
==Publications==
*
====Local articles====
*
====Tutorials and other learning material====
*


==Standards==
==Standards==
The commonly used standard is ECMAScript v3, but that is primarily to allow older browsers to work correctly, the current standard is v5.1 and should work with most modern browsers.
The commonly used standard is ECMAScript v3, but that is primarily to allow older browsers to work correctly, the current standard is v5.1 and should work with most modern browsers.
* [http://www.ecma-international.org/ecma-262/5.1/ECMA-262.pdf ECMAScript Standard/ECMA 262 version 5.1] - 2011 - a new one is expected in 2015.
* [http://www.ecma-international.org/ecma-262/7.0/index.html ECMAScript Standard/ECMA 262 version 7.0] - 2016
* [http://www.ecma-international.org/ecma-262/5.1/ECMA-262.pdf ECMAScript Standard/ECMA 262 version 5.1] - 2011
* [http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf ECMAScript for XML Standard/ECMA 357 version 2] - Optional extension to ECMA 262 also known as E4X and ISO/IEC 22537.
* [http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-357.pdf ECMAScript for XML Standard/ECMA 357 version 2] - Optional extension to ECMA 262 also known as E4X and ISO/IEC 22537.
* [http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-327.pdf ECMAScript Compact Profile Standard/ECMA 327 version 3] - "Compact Profile" standard, used in embedded devices.
* [http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-327.pdf ECMAScript Compact Profile Standard/ECMA 327 version 3] - "Compact Profile" standard, used in embedded devices.


[[Category:Programming Languages]] [[Category:ECMAScript]]
[[Category:Scripting Language]][[Category:ECMAScript]]

Latest revision as of 20:39, 23 March 2020

Known under a variety of names including JScript (Microsoft) and ActionScript (Adobe). ECMAScript is a loosely LISP inspired tool with a somewhat C like syntax and despite its enormous popularity is widely considered one of the worst designed programming languages to ever escape into the wild and the only such horror story to gain any popularity since Perl. The classic example of how little forethought was used when cobbling the language together is that despite being released just over three years before the 1999/2000 turnover the first versions of the language were not year 2000 ready, resulting in a few set-top Internet access boxes that used Netscape starting to have odd failures on some webpages in 2000 despite being less than 2 years old.

It is possible to use ECMAScript as a tool to develop OS/2 desktop or even command-line applications, but due to the high number of problems with the current implementations you are advised not to do so unless compatibility with web based applications is a high priority. If you choose to use it it is recommended that you use an abstraction level like Microsoft Typescript.

OS/2 Implementations

Libraries

Compression libraries

Utilities and test suites

  • ANTLR - Parser generator - Runs on Java and generates ECMAScript output code.
Editor support
  • Boxer - Contributed, requires a separate download.

WinOS/2 Implementations

OS independent ECMAScript tools

Programming tools written in ECMAScript

Programming languages or tools that compile to ECMAScript

Standards

The commonly used standard is ECMAScript v3, but that is primarily to allow older browsers to work correctly, the current standard is v5.1 and should work with most modern browsers.