Skip to content
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

switch to Unix filedesc in Primus Lisp IO module #1050

Open
ivg opened this issue Feb 13, 2020 · 0 comments
Open

switch to Unix filedesc in Primus Lisp IO module #1050

ivg opened this issue Feb 13, 2020 · 0 comments
Assignees

Comments

@ivg
Copy link
Member

ivg commented Feb 13, 2020

As a quick hack, we were using OCaml channels to model file objects in our runtime. It was causing immediate issues (#1049) and will cause more (as now the state of the file is separated into two independent and opaque to us states, so interfaces such as seek et al couldn't be easily modeled).

Therefore, my suggestion, as the start for discussion, would be using Unix file descriptors (probably with some other meta information) instead of channels. It is not an issue of immediate concern, but eventually, we will have to implement it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants