Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #26364

Re: Languages that generate JS and interoperability with JS frameworks

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Languages that generate JS and interoperability with JS frameworks
Date 2014-12-19 19:41 +0100
Organization PointedEars Software (PES)
Message-ID <16907543.YWFZG8L347@PointedEars.de> (permalink)
References <32632012-4cca-49d1-abf3-4ea2c652706a@googlegroups.com>

Show all headers | View raw


Haddock wrote:
^^^^^^^
This is Usenet.  Please fix.

> I'm a Java developer and a bit tired of Java. So I feel like learning a
> new language. There are several languages that generate JavaScript like
> Dart, Scala, Kotlin and others. So, those languages would be candidates
> for me to look into.

I do not understand your reasoning.  You are tired of Java but would prefer 
Java-like languages over others?  Languages like Scala have been designed to 
make it easy for programmers of Java because they *want* to write Java code, 
no matter the resulting language.

Different from Java, JavaScript is not one programming language.  There are 
several implementations of ECMAScript, differing in features and syntax 
extensions, that contain the “JavaScript” name.  There are others that have 
a different name but sometimes are subsumed, equally misguided, under the 
“JavaScript” name (often using invented terminology such as “Javascript” and 
“javascript”).  Beware the wannabe.

<http://PointedEars.de/es-matrix>

> […] What makes me wonder is how easy it is to interface with JS
> libraries such as jQuery or AngularJS from those languages that generate
> JavaScript.

If the wrapper/generator language is any good, there is no significant 
difference, of course.  It is never the generating code that “interfaces” 
with them, but the generated one.  Whether you should write code that 
interfaces with them, especially as a beginner, is another issue, though.

> There must be some mechanishm that you can bypass the language
> generating JS and reach through to the respective JS library.

Your assumption is unfounded.  This library and _framework_, respectively, 
are not separate programming languages, and they would not run with code 
other than one that conforms to the grammar of ECMAScript (Editions 3 and 
above), without syntax extensions.  If you want to bypass a generating 
language, do not use it; your code will likely be better for that.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Languages that generate JS and interoperability with JS frameworks Haddock <ffm2002@web.de> - 2014-12-19 08:43 -0800
  Re: Languages that generate JS and interoperability with JS frameworks "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-12-19 19:24 +0100
  Re: Languages that generate JS and interoperability with JS frameworks Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-19 19:41 +0100
  Re: Languages that generate JS and interoperability with JS frameworks Carlos Pedro <carlospedr@gmail.com> - 2014-12-23 09:14 -0800

csiph-web