What do you mean “embedding lua into applications”?
I assume you mean you want an application extensible by user lua script?
You build an API that calls the lua interpreter and passes the script, and reads the output; same as you would for any other scripting language. You define what the inputs should be, create the interface for executing the user defined script through shell commands, and then retrieve the output.
Seems to me that Reddit mods are too concerned with staying “in power” than actually building communities and sharing knowledge. Caving to reddits demands just to maintain their mod status is so sad to me
You’re registered on your instance. that’s how federation works, you don’t register on each instance, you register on one and have access to all the rest that are federated with them. If lemmy.world decides to defederate your instance then you won’t be able to anymore
What do you mean “embedding lua into applications”?
I assume you mean you want an application extensible by user lua script?
You build an API that calls the lua interpreter and passes the script, and reads the output; same as you would for any other scripting language. You define what the inputs should be, create the interface for executing the user defined script through shell commands, and then retrieve the output.
For python you’re going to probably use this:
https://docs.python.org/3/library/subprocess.html#subprocess.check_output
For C# you’re going to use Process
https://stackoverflow.com/questions/4291912/process-start-how-to-get-the-output
The complexities arise in your implementation and there’s no single guide.