Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7826535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:27:28+00:00 2026-06-02T09:27:28+00:00

I have some experience in lua, but now I faced the challenge to which

  • 0

I have some experience in lua, but now I faced the challenge to which i could have simplest solution, if only statement in topic was possible.

The problem

In short, the program (set of programs) are to be connected through lua, forming some sort of IPC. Now, i can create Lua state on each one of them, but then i would still need to use Lua-Lua IPC. I can do it, but i thought that if I could just create one instance, and have access to it from all of these apps, i could simplify the process severely.

Now i am aware of the fact that the central lua app would need to be written in thread-safe way. As first, naive approach I wanted to queue data from all the applications and then use coroutines to resolve the events.

The question (broke into parts):

  1. Is accesing one Lua state using native API calls possible from more than one ‘host’
  2. If it is, how can it be done and what i must ensure I do, to be sure it will run correctly.
  3. If not, that pretty much conludes the question, because I will try to use Lua IPC, which is pretty google’able.

Edit 1:
I’m now digging through different lua “communication” libraries, but really can’t find any. Point 3 of the question is now much more valuable, since I’m now stuck on localhost TCP + JSON.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T09:27:30+00:00Added an answer on June 2, 2026 at 9:27 am

    Lua is not thread-safe within a lua_State (it’s safe to use multiple separate lua_States across threads, but not to access the same one in different threads). So even if the API had some inter-process communication stuff, it wouldn’t work with more than one process accessing it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some experience with XSLT but now i've got myself a problem: I
I have some experience using parallel extensions in .Net development, but I was looking
I have some experience with Java , C , databases , networking etc..But anything
Hi I have some experience with programming but I'm not very good with pointers.
Hey, i have some experience with MVC. but I'm new to rails. I'm using
I have some* experience using the flex framework for building web apps. But I
I have some experience with programming, but I have very little experience when it
i have some experience with MySQL but none with SQL Server, i have a
I have some experience with ANTLR 2's C++ target, but have been hesitant to
Does anyone here have some experience with this error? Only If I use the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.