Community   Maps   Forum   Mail   Ladders   Clans   Recent Games
Sign In | Sign Up
<< Back to Programming Forum   

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

Ⓖ. Ⓐrun 
Level 57
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

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

Level 57
@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

Level 57
(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

Level 59
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

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

Contact | About WarLight | Play Risk Online | Multiplayer Strategy Game | Challenge Friends, Win Money | Skill Game | Terms of Service