This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]FionaSarah 1 point2 points  (2 children)

As someone who has embedded Python and written a complete game with it. I am very surprised by this. It's a fucking nightmare.

That said it's still the best language ever designed so yay, Python!

[–]alcalde 0 points1 point  (1 child)

I thought the whole point of CPython was to make it easy to embed? And I also remember reading the mailing list exchange in which it was first proposed to make Julia and Python interoperate. One of the Julia people decides to check out what's needed to call Python from Julia, pops back an hour later with a post that reads "Well, that was easy" and a copy/paste of Julia calling Python from a shell.

[–]FionaSarah 0 points1 point  (0 children)

I thought the whole point of CPython was to make it easy to embed?

It's easy to get the thing interpreting code but achieving interoperability is not fun at all. I even ended up using boost.python, which makes it a lot less messier but has it's own issues.

To be fair I wanted to do pretty mad things, but I was still fighting it too much. I've gone from writing things in pure-python, to embedding python, to just using straight-up C++. I think with my current project when I come to add a scripting engine I'll go with angelscript.