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


Groups > comp.lang.javascript > #22031

Re: Python to Javascript translator

Path csiph.com!usenet.pasdenom.info!news.albasani.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Content-Type text/plain; charset="UTF-8"
Message-ID <2456674.8Co10HKgCB@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Organization PointedEars Software (PES)
Date Mon, 18 Nov 2013 00:59:44 +0100
User-Agent KNode/4.10.5
Content-Transfer-Encoding 8Bit
X-Face %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
Subject Re: Python to Javascript translator
Newsgroups comp.lang.javascript
References <7c5f87f5-dc06-4b89-a499-5463e3275219@googlegroups.com>
MIME-Version 1.0
Lines 39
NNTP-Posting-Date 18 Nov 2013 00:59:46 CET
NNTP-Posting-Host 48ddcf52.newsspool2.arcor-online.net
X-Trace DXC=lcPBf0:Sna_PU8j_I0DN6_A9EHlD;3YcR4Fo<]lROoRQ8kF<OcfhCO[S6]dJ=QET;QDZm8W4\YJN\YUVHKH;GI^W;S2JoZ]LBU^l0NdmST195\
X-Complaints-To usenet-abuse@arcor.de
Xref csiph.com comp.lang.javascript:22031

Show key headers only | View raw


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


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