Commit Graph

8 Commits

Author SHA1 Message Date
Přemysl Eric Janouch 86278c154c
Clean up protocol code generators 2022-09-30 03:24:13 +02:00
Přemysl Eric Janouch e87cc90b5e
xP: improve comments in protocol code generator 2022-09-15 05:12:07 +02:00
Přemysl Eric Janouch 98b0a4ef3d
xP: further optimize JSON marshalling 2022-09-15 03:16:16 +02:00
Přemysl Eric Janouch b53fc1918f
xP: fix log JSON serialization 2022-09-15 01:51:40 +02:00
Přemysl Eric Janouch c1d2e38840
xP: generate our own JSON marshallers
For non-trivial types, which are expensive to serialize
with encoding/json's struct reflection.
2022-09-14 06:56:36 +02:00
Přemysl Eric Janouch f3cc137342
xC-gen-proto: reduce enums to single bytes
That's already way more than we can possibly use.
2022-09-10 16:06:35 +02:00
Přemysl Eric Janouch 8cd94b30f6
xP: implement tab completion
Currently it only goes for the longest common prefix.

Refactor WebSocket handling into an abstraction for our protocol.

The Go code generater finally needed fixing.
2022-09-06 19:41:05 +02:00
Přemysl Eric Janouch 1639235a48
Start X11 and web frontends for xC
For this, we needed a wire protocol.  After surveying available options,
it was decided to implement an XDR-like protocol code generator
in portable AWK.  It now has two backends, per each of:

 - xF, the X11 frontend, is in C, and is meant to be the primary
   user interface in the future.

 - xP, the web frontend, relies on a protocol proxy written in Go,
   and is meant for use on-the-go (no pun intended).

They are very much work-in-progress proofs of concept right now,
and the relay protocol is certain to change.
2022-09-05 14:26:00 +02:00