Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #22031
| Message-ID | <2456674.8Co10HKgCB@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2013-11-18 00:59 +0100 |
| Subject | Re: Python to Javascript translator |
| Newsgroups | comp.lang.javascript |
| References | <7c5f87f5-dc06-4b89-a499-5463e3275219@googlegroups.com> |
salvatore.didio@gmail.com wrote: > If someone is interested about a fast Python to Javascript translator > (not a compiler like Brython which is another beast) > > Here is a link of a RapydScript Tester. > For now it's only for windows. > > Regards > > http://salvatore.pythonanywhere.com/static/Projects/RapydScriptDemo.exe > > (I can if there is needs publish it for mac and linux) The first thing that you do not know is that there is no Javascript: <http://PointedEars.de/es-matrix> I would consider this basic knowledge a prerequisite to writing anything that generates code that can be executed in a subset of sufficiently conforming implementations of ECMAScript. And why should anyone run the risk of executing malware when executing your anonymously published binary? Where is your source code? I could probably do the same on *x (that includes Mac OS X) with a simple shell script (sed(1) comes to mind). But a language “translator” does not necessarily create good code. As you should know, there are things in Python that you would do quite differently in other programming languages because Python by comparison is very expressive indeed and has a big runtime library – approaches that are called “pythonic” because of that. For a start, ECMAScript implementations do not need to include an output mechanism as Python does; something like Python's “print(…)” is provided by the respective runtime environment instead. -- PointedEars Twitter: @PointedEars2 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
Python to Javascript translator salvatore.didio@gmail.com - 2013-11-17 11:20 -0800
Re: Python to Javascript translator Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-11-18 00:59 +0100
Re: Python to Javascript translator Salvatore DI DIO <salvatore.didio@gmail.com> - 2013-11-18 02:54 -0800
Re: Python to Javascript translator Salvatore DI DIO <salvatore.didio@gmail.com> - 2013-11-18 02:59 -0800
Re: Python to Javascript translator Salvatore DI DIO <salvatore.didio@gmail.com> - 2013-11-18 02:59 -0800
Re: Python to Javascript translator Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-11-18 13:27 +0100
csiph-web