T
Thomas 'PointedEars' Lahn
Richard said:My guess is that he wants to be called an EcmaScript(tm) Developer.
Guess again.
Richard said:My guess is that he wants to be called an EcmaScript(tm) Developer.
James said:[F'up2 comp.lang.javascript]
Noted, and ignored. Explanation in last paragraph.
Noted, and rejected. We are _not_ discussing C anymore.\
There is no programming language called â€javascriptâ€, and from that
everything else follows. STFW.
It is not just about the case, and I wonder which of my comments could have
mislead you to that assumption.
Only if an ECMAScript implementation of that name is meant. Since there are
now several such ones that differ considerably (I count three major ones;
the fourth name is just marketing), I would prefix them with the vendor name
or engine codename to avoid the ambiguity.
On 06/11/2014 06:56 PM, Thomas 'PointedEars' Lahn wrote:There is no javascript. [0]That comment requires explanation.
The explanation is simple. Lahn resides under a bridge near you eating
any goats he comes across.
First of all, this does _not_ express the C semantics in JavaScript, and
there is no other way. “int†is a *generic* type in C/C++; IIUC, the result
could be a 32-bit integer when compiled for a 32-bit platform or a 64-bit
integer when compiled for a 64-bit platform.
By contrast, using the binary bitwise OR operator, as with all ECMAScript
binary bitwise operators, *always* creates an IEEE-754 double-precision
*floating-point* value representing a *32-bit* integer value. Also, not
only the result will be such a value, but also the operands are converted
to such values internally, before the operation is performed.
Conversion to an integer value of the ECMAScript Number type (i.e., where
the fractional part of the mantissa is zero), which appears to be the goal
here, can be better achieved with the Math.floor() and Math.ceil()
functions, e.g.:
Of course, this still does not remotely implement the C semantics. One
aspect of it is that code where you pass a non-integer would not compile.
Since ECMAScript uses dynamic type-checking, it is not possible to prevent
compilation. But at the very least passing unsuitable values should cause
an exception to be thrown, so that it becomes unnecessary to handle them,
e.g.:
James said:On 06/12/2014 08:45 AM, Thomas 'PointedEars' Lahn wrote:
[F'up2 comp.lang.javascript]
Noted, and ignored. Explanation in last paragraph.
Noted, and rejected. We are _not_ discussing C anymore.\
Where does this "We" come from? You are, of course, free to discuss
anything you wish. I, however, am still discussing the accuracy of the
connection between the original C code and the JavaScript produced by
Emscripten, a topic for which comp.lang.c is still an appropriate
cross-reference. The minute that this thread ceases to have a valid C
connection, I will also lose interest in it.
...
I did indeed search the Web. The Wikipedia page for JavaScript says
"JavaScript (JS) is a dynamic computer programming language". so you'll
have to forgive me for thinking that there might be some truth in that
statement.
There's nothing unusual about Wikipedia being incorrect - but if so,
would you or anyone else who cares about the issue care to correct that
article? If so, how would you correct it?
"... newsgroup name is case-insensitive ... You would not talk about “câ€
either, ..."
That's not enough evidence to prove anything, but you were being too coy
to explain what you actually meant, so I was left with having to guess
what you were talking about based upon the limited amount of available
evidence.
...
The Wikipedia page for JavaScript says that "JavaScript was formalized
in the ECMAScript language standard ...", which seem to imply that
JavaScript and ECMAScript are both valid terms, possibly referring to
subtly different things.
The OP called it JavaScript, without any prefix.
He was talking about Emscripten. The Emscripten web page
<https://github.com/kripken/emscripten/wiki> also calls what it produces
JavaScript, without any prefix.
I don't think I'm competent to judge whether or not it would be correct to
take what they said about "JavaScript", and treat it as if were an an
equivalent statement about "ECMAScript". Can you confirm that such a
conversion would be correct?
I certainly have no basis on which to choose a vendor name to use as a
prefix. Would you care to identify the appropriate vendor?
Do the differences between those different versions of ECMAScript affect
the validity of Emscripten's translation of this C code? If so, how?
If not, there's no point in worrying about which one is being referred to.
I have read this in a World-Wide Web encyclopedia:
For example, given the following C code:
int f(int i) {
return i + 1;
}
Emscripten would output the following JS code:
function f(i) {
i = i|0;
return (i + 1)|0;
}
Do you think that the |0 is necessary to express the
C semantics in JavaScript, or could the speed of the
generated code be improved by omitting it?
Thomas 'PointedEars' Lahn said:Guess again.
Keith said:Thomas 'PointedEars' Lahn said:Guess again.
I for one am not interested in guessing.
Your previous statement was:
There is no javascript. [0]
You could save a great deal of time and effort by explaining what
you meant by that; one sentence would probably suffice.
If you choose not to explain, that's fine with me; I'm sufficiently
interested to ask for clarification, but not to do further research.
Keith said:I for one am not interested in guessing.
Your previous statement was:
There is no javascript. [0]
You could save a great deal of time and effort by explaining what
you meant by that; one sentence would probably suffice. Keep in
mind that a large part of the audience to which you made that
statement is not familiar with the language that is the main topic
of the comp.lang.javascript newsgroup (I hope that's sufficiently
unambiguous).
Keith Thompson wrote:
| For historical reasons, the term “javascript†is used herein as a
| shorthand for “ECMAScript-based programming languagesâ€. Note that not
| all uses of that term here are correct. For example, there are
| instances where using “DOM†instead would have been correct. This
| will be fixed in a later revision.
I agree that it is preferable to eschew the term "javascript" to avoid
potential confusion.
Kaz said:monster.com search for "JavaScript":
631 JavaScript jobs matched your search
monster.com search for "ECMAScript"
*crickets*
careers.stackoverflow.com search for "JavaScript"
932 jobs for "JavaScript"
careers.stackoverflow.com search for "ECMAScript"
2 jobs for ECMAScript
It's safe to say that pretty much nobody in the real world gives a **** about
"ECMAScript".
Brendan Eich: "ECMAScript was always an unwanted trade name that sounds like a
skin disease".
Amen.
[F'up2 comp.lang.javascript]
James Kuyper wrote in comp.lang.c: ....Where does this "We" come from? You are, of course, free to discuss
anything you wish. I, however, am still discussing the accuracy of the
connection between the original C code and the JavaScript produced by
Emscripten, a topic for which comp.lang.c is still an appropriate
cross-reference. The minute that this thread ceases to have a valid C
connection, I will also lose interest in it.
Please point out the word or paragraph in your posting that contains or
refers to C code. If you reasonably cannot, you should reconsider.
The OP called it JavaScript, without any prefix. He was talking about
Emscripten. The Emscripten web page
<https://github.com/kripken/emscripten/wiki> also calls what it produces
JavaScript, without any prefix. I don't think I'm competent to judge
whether or not it would be correct to take what they said about
"JavaScript", and treat it as if were an an equivalent statement about
"ECMAScript". Can you confirm that such a conversion would be correct?
"Do the differences between those different versions of ECMAScript affect the validity of Emscripten's translation of this C code?"
First one has to define what “dynamic programming language†means.
I would, and I have a long time ago. I am not convinced that further
editing would be worthwhile. The misconception of a single language appears
to be cemented too deeply into the thinking of the general public.
That refers to the fact that you cannot infer from the newsgroup name the
spelling of the language
I had not expected the ECMAScript Support Matrix to malfunction this way;
IIRC it had worked yesterday. I also had not expected that you would not
research the newsgroup and the Web more thoroughly before you posted.
I
prefer to not repeat myself. Have you tried a Web cache yet? If not, why
not?
Which begs the question which “JavaScript†they are talking about. ...
Of the ECMAScript implementations that I would consider “majorâ€, ...
....There are no versions of ECMAScript. There is the ECMAScript Language
Specification, there are Editions of it, and implementations of those.
Wrong. The used implementation is defined by the runtime environment.
First one has to define what ???dynamic programming language??? means.
First one has to define what “dynamic programming language†means.
I somewhat agree. That might be the reason for the poor quality of many
JavaScript programs in the wild.
Kaz said:Here is an issue. ECMAScript insinuates that the language is a standard
dialect.
What do you call a dialect which consists of ECMAScript, plus
some implementation-specific extensions?
If you call that ECMAScript, it is misleading, because uses features that are
not described in any Ecma standard.
With a normal language name that doesn't incorporate a standards organization
acronym, we don't have a problem.
For instance we say that we are working in C++ (where most of othe code is
ISO C++, and parts are GNU C++).
The generic name C++ usefully refers to the whole family of dialects.
It is the case with numerous languages; Lisp, Fortran, Pascal, you name it.
As soon as you qualify the name with the name of a standards organization, like
"ISO C++", it cannot clearly refer to the dialect family any more.
In their feverish zeal to have a famous "Script" language named after
their god-forsaken organization, the Eurotards responsible for this farce
clearly didn't pause for a second to think a little bit.
In their feverish zeal to have a famous "Script" language named
after their god-forsaken organization, the Eurotards responsible for
this farce clearly didn't pause for a second to think a little bit.
Christoph Michael Becker said:Lisp 1.5
Does ECMA do _anything_ useful
Does ECMA do _anything_ useful, or are they just another puppet of Intel
and/or Microsoft? I'd never heard of them prior to the ECMAScript
nonsense, and I've never heard of them since.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.