irmin-server icon indicating copy to clipboard operation
irmin-server copied to clipboard

irmin-client without lwt

Open bikallem opened this issue 3 years ago • 3 comments

Will there be a version of irmin-client without the lwt?

bikallem avatar Nov 24 '21 10:11 bikallem

Sorry for the slow response! I am not opposed to the idea, but since irmin itself depends on Lwt I'm not sure how that would work.

zshipko avatar Dec 07 '21 01:12 zshipko

Thanks for the reply. Isn't the irmin-server an out-of-process server, i.e. it is run in a separate process from the client executable? If so, what I was thinking was that lwt free version of irmin client would implement the wire protocol without lwt so that any program consuming it would not depend on lwt. This would be a client-server model of communication. Irmin-server being the server and the client being the irmin-client. Would this be a feasible use case for this library?

bikallem avatar Dec 07 '21 09:12 bikallem

Right now the client uses types directly from irmin. For example, command definitions are shared between the client and server: https://github.com/mirage/irmin-server/blob/master/src/irmin-server-types/command_intf.ml#L74 - it might be possible to split the client and server apart, but I think it would at least require changing the way commands are specified.

zshipko avatar Dec 07 '21 15:12 zshipko