This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
ecmaxp's profile picture

Finding a programmer for Python in Lua: PyCraft

Started by ecmaxp, 06 December 2013 - 10:50 AM
ecmaxp #1
Posted 06 December 2013 - 11:50 AM
In short: https://github.com/EcmaXp/PyCraft

Now i giveup coding that, but some user can interest use python in ComputerCraft.
if you interest in this, i will give commit permission for programming that.

(Currently it need python3 for compile python code to lua code and one library (that is py_API.py))
Edited on 06 December 2013 - 10:52 AM
D3matt #2
Posted 06 December 2013 - 07:39 PM
Forgive me, but what's the point? That's a bit like trying to emulate C in Lua.
ecmaxp #3
Posted 07 December 2013 - 07:17 AM
My point: Write the py_api.py for supporting python in lua.

Then everyone can use python.

For example.

print(3 + 4)

Will get compile and that is

os.loadAPI("py")
py.init_module(getfenv())

py.print(_OP__Add__(int(3) + int(4)))

That is why i need the complete py_API.py
(Py_API.py is actually lua code, but use Python Syntex for me. Sorry)
D3matt #4
Posted 08 December 2013 - 12:48 AM
But… Why use Python in lua? I don't see the point. I mean, if it's just for fun, cool, go right ahead. But you're asking somebody else to take up the project, so I can only assume you see some benefit that I'm not seeing.
Bomb Bloke #5
Posted 08 December 2013 - 07:41 AM
One might argue that ComputerCraft is like "trying to emulate Lua in Java", and that there's very little "point" to anything that goes on in MineCraft.

He's not asking for anything, he's making an offer. People are either interested or they're not. That's all.
D3matt #6
Posted 10 December 2013 - 11:05 PM
One might argue that ComputerCraft is like "trying to emulate Lua in Java", and that there's very little "point" to anything that goes on in MineCraft.

He's not asking for anything, he's making an offer. People are either interested or they're not. That's all.
Not trying to rag on anybody, just curious is all. However, there's a big different there: Lua is a scripting language and is meant to be embedded in other software (IE a game running in java).
Xenthera #7
Posted 11 December 2013 - 03:27 PM
I don't see the point.
What's the point of minecraft? Or any game for that matter… You guessed it, Entertainment. Same goes for this.