3 ms·
I hate how people are desperately trying to embed (C)Python in their programs just to hop on the hype-driven Python bandwagon instead of doing the sane choice a
by qalmakka 3y ago
I hate how people are desperately trying to embed (C)Python in their programs just to hop on the hype-driven Python bandwagon instead of doing the sane choice and just relying on Lua, which was designed to begin with to do so. Lua is simple enough it can be thought efficiently in a few hours, and it's just so trivial to embed.
In comparison, CPython often requires to implement most of your code logic as a library and then load it into the interpreter, which is less than ideal.
- UncleEntity 3y agoI used to poke at the python API in blender and most of the wrapper work was done with magic. Very rarely would you have to implement any custom C code aside from what you’d have to do with any other embedded scripting language to deal with the differences between the two languages and/or blender wonkyness. I’ve also played around with lua embedding a bit — I just like python more so didn’t do anything with it. I do remember that I got it to work as an experiment but I would have had to start writing some serious C code (the kind you claim is unnecessary) to do anything useful with it and I’m pretty sure the maintainer of the game would have been opposed to being able to script things. But, I’m one of those people who actually enjoys wrapping C libraries to use in python so…