IPC Luajit implementation #235
Replies: 3 comments 10 replies
-
This is epic! This makes me want to copy the built-in code and make it into a rust library, lol |
Beta Was this translation helpful? Give feedback.
-
Update: I've moved this to its' own repo as it's gotten large enough to warrant separating out some of the boilerplate |
Beta Was this translation helpful? Give feedback.
-
@yavko |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Dependencies:
1-file JSON library from rxi
Luajit or another compatible interpreter with a luajit-compatible FFI syntax (maybe luaffi)
ironbar.lua
I've written a very basic implementation of ironbars IPC spec in luajit, it provides all current (July 10th 2023) IPC calls and the responses.
It isn't particularly great, doesn't do a lot of error checking, but functionally it's all there and should be easy to expand moving forward.
Basic usage:
require("ironbar")
Returns a function to obtain both the ironbar library, and the json library passed through.All of these will return the decoded json as a table for use.
Beta Was this translation helpful? Give feedback.
All reactions