Ben Bacarisse <
ben.u...@bsb.me.uk> wrote on 23 Sep 2019 in
comp.lang.javascript:
> "Evertjan." <
exxjxw.h...@inter.nl.net> writes:
>
>>
gro...@cyberdude.com wrote on 23 Sep 2019 in comp.lang.javascript:
>>
>>> I was wondering if there were any COMPILERS for JS, that can make an
>>> executable? I came across this one, thought I'd tell yall about it (I've
>>> not used it myself yet):
>>
>> Why and where would you need one?
>
> That's an odd question, so I'm wondering if I've missed the point. Are
> you talking specifically to the OP? Are you stressing the "need"? If
> neither, and you just meant why would anyone want one, I would have
> thought it's obvious.
Discussion is not about skipping what is obvious to someone.
One could "want" a compiler just for the fun of it,
but if it is not usefull outside the fun,
I would call that: "no need".
Let's start with the "WHERE":
Javascript is used on many different platforms, and on its own misses the
interfaces with the outside. So Javascript in a browser uses the DOM as
input/output interface, Javascript in a specific text-editor only needs to
interface with the text at hand, Javascript on a server, say in classic ASP,
cannot interface the DOM or the user directly, Javascript in Cscript/Wscript
again has a different interface, like the line-interface and the file-
interface.
Then The "WHY":
This depends on the answer to the first question,
and then one should answer:
Is it about speed?
Is it about file-size?
Is it about obfuscation?
Etc.
So I think the question is not that odd,
and I doubt can be answered in general,
and in specific, say in a browser or in an editor,
it probably is not usefull.
>> [Meaning, I don't think you would, but let's discuss that first.]
See, this was part of the answer.