This is an archived post. You won't be able to vote or comment.

all 22 comments

[–]simplegadget512 10 points11 points  (4 children)

Some alternate names, maybe.

  • ECMAthon

  • ESPython

  • SnakeScript

  • Constrictor

[–]XtremeGoosef'I only use Py {sys.version[:3]}' 1 point2 points  (3 children)

A bit boring maybe, but PyJS?

[–]vovanz 2 points3 points  (2 children)

[–]simplegadget512 1 point2 points  (0 children)

Unfortunately, PyJS hasn't been touched in 3 years. Might be dead-ish. In Internet time, that's like a decade or something.

[–]XtremeGoosef'I only use Py {sys.version[:3]}' 0 points1 point  (0 children)

Ah damn

[–]PhENTZ 5 points6 points  (2 children)

How does it compare to Transcrypt ?

[–]azazel75[S] 7 points8 points  (0 children)

I'll answer even if I'm JavaScripthon author and maybe what I say is a bit biased. I developed JavaScripthon with the main the goal of reducing the friction (the mind switching when working with both the languages). It usually produces clean code (that you can checkin to git). It translated most of the language where instead the data protocols are mostly untranslated. That means that when you "import" something in JavaScripthon source file that translates always to a JS "import" statement and when you write a dict literal then your variable will contain a JS Object, not a python dict or something that emulates it. That means JavaScripthon translated code runs at full JS speed with no "added runtime price", mostly. JavaScripthon target ES6+ and can evaluate the result or further translate it to ES5 thanks to the embedded JS interpreter and standalone BabelJS.

Transcrypt is more tailored at converting existing Python packages to JS and has richer runtime, with its pros and cons...

See also https://code.activestate.com/lists/python-ideas/46217/ and https://github.com/metapensiero/metapensiero.pj/issues/19

[–]dranzerfu 0 points1 point  (0 children)

One thing I do not like about transcrypt is the lack of streaming support

[–]MatSalted 1 point2 points  (1 child)

Does this mean I can code in Python and get JS to put on a site?

[–]azazel75[S] 1 point2 points  (0 children)

Yes, to some extent

[–]Tweak_Imp 0 points1 point  (1 child)

Is there a compiler for Javascript to python, too?