<< Back to Programming Forum   Search

Posts 1 - 6 of 6   
Conversion: 1/20/2013 17:07:59


Ⓖ. Ⓐrun 
Level 57
Report
Is there a way to convert code from one format to another? I've learnt the basics of JavaScript (for other reasons) and I was wondering whether it was possible to easily convert JavaScript to Python.
Conversion: 1/20/2013 17:38:30

Qi 
Level 55
Report
only if you use ChickenScratch will converting 混蛋流氓丫头靠背烤里鸡鸡
Conversion: 1/21/2013 11:50:08

unknownsoldier 
Level 57
Report
@Arun - not that I know. -Good- programming language translation sounds like a tech we do not get until after we have developed AI :)

Everything that is currently in python, could be done in javascript, of course*. But you have to write it from scratch. (Maybe using the python code as a guide).

*After you have checked that google app engine is ok with js.
Conversion: 1/21/2013 11:53:05

unknownsoldier 
Level 57
Report
(btw - I think that 'format' is not quite the right word* - it is just data that you can convert between different formats)



*unless you also know lisp :)
Conversion: 1/23/2013 00:25:59


ps 
Level 60
Report
well, there is pyjon, but it sucks so i think you're better off learning python syntax and porting your code.

there are more tools to do the opposite, python 2 javascript (py2js, pyjaco, pyjs) so maybe it's easier to port the server code in google app engine to a javascript client instead.

you could also use javascipr to coffeescript converters and do the rest of the porting work of your javascript code from there (helps with the indentations and lists and some other stuff)

but i would still recommend you to write your tested proto-code on javascript (if you insist on it) and then just learn the python syntax differences and port from there.
Conversion: 1/23/2013 10:58:25


Pink 
Level 60
Report
i thought u were converting to some kind of cult which might spread some wiseness to you
Posts 1 - 6 of 6