-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Switch from BSD sockets to Unix sockets. #7
Conversation
To do:
|
A good test would be to see if it would fix #3. |
Unix sockets are bidirectional, so there is no need for having two of them here. Instead, the @jmercouris Could you shed some light on the socket architecture? EDIT: Answer to myself: I suppose this client socket is used for anything non-functional, so that Electron can execute arbitrary code on the Lisp before returning. |
We also need a way to distinguish between results and errors. I suppose that sending
and
should do the trick. |
To do:
|
There is a bit of a problem: IOLib seems to have issues ping-ponging Any idea what to do? @jmercouris @aadcg @aartaka ? Possible workaround: Use |
Interesting. Let's wait for the author's feedback, which tends to be fast and insightful. |
Should be ready to merge. The result / error separation is another issue: #10 |
@Ambrevar I've pushed 5f94ffb. Feel free to squash it onto your commits. I've also updated the top post since this PR also closes #3. Look ready to be merged to me! Thanks. I don't know how you've set up your dev environment but you may find the following useful. Add the snippet below to (cl-electron
("guix" "shell" "-D" "-f" "/absolute/path/to/cl-electron/guix.scm"
"--" "sbcl")) |
This protects us from network access and possible increases network performance.
This would trigger an error with CL-JSON.
Otherwise we would not evaluate anything until the stream is closed.
I've actually removed the dep on Alexandria and Trivial-package-local-nicknames for now. |
Merging since no one is opposing to it :) |
Thank you Pierre! I was going to merge this myself, but wasn't sure if you wanted to do it! |
This protects us from network access and possible increases network performance.
Fixes #4.
Needs more testing.