4 ms·
Are you aware that one language can be compiled to another?
by mepian 8y ago
Are you aware that one language can be compiled to another?
- krapp 8y agoWhen a language is compiled to javascript, it's still javascript that's running in the browser.
- mepian 8y agoYes, but that's not the point: you don't have to write JavaScript yourself.
- coldtea 8y agoNo, but you still have to suffer the fact that the language you do write in is translated to JS, and doesn't have first class browser support.
- mepian 8y agoThis doesn't seem to deter the users of TypeScript, one of the languages that made it to this top 10 ranking.
- WalterSear 8y agoApart from types, it is javascript. You even have to configure the flavor of javascript you are writing in, and many otherwise javascript-based packages provide typescript type definitions, to maintain interoperability.
- coldtea 8y agoThat's because it was created to keep all the semantics and underlying behavior the same. So this is not like using Python to JS, or Haskell to JS, or whatever, where there are even types (e.g. any not float numerical type) that are not supported directly by the underlying engine.
- gugagore 8y agoYeah, but likely the project in that case would not count as a JavaScript repo on GitHub.
- irrational 8y agoOf course. I've never actually met anyone that does it though. Though, I'm assuming that you are referring to totally different languages like C or Java, and not languages like TypeScript, which is basically JavaScript with some additional features.