<< Back to Programming Forum   Search

Posts 1 - 6 of 6   
Conversion: 2013-01-20 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: 2013-01-20 17:38:30


Guiguzi 
Level 58
Report
only if you use ChickenScratch will converting 混蛋流氓丫头靠背烤里鸡鸡
Conversion: 2013-01-21 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: 2013-01-21 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: 2013-01-23 00:25:59


ps 
Level 61
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: 2013-01-23 10:58:25


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