Re:Write libraries instead of services, where possible
by gravypod on Tuesday March 09, 2021 @05:45PM
(#26405470)
I'd also be much happier if LSPs were in Thrift or gRPC (something more generic with existing client/server generators).
Would make documenting, updating, and understanding the protocol much easier.
On one hand you have a library to secure. On the other hand you have the same library (or at least the same logic and methods) now with a JSON-RPC server wrapping it, and both need to be secured.
I would feel a lot better if it weren't JSON, I guess. Binary protocols are just SO MUCH FASTER and require so much less memory. Parsing JSON is fast, sure. Reading and writing binary is probably 3 orders of magnitude faster, and it's easier to read and write binary, in my experience. (I also don't understand why protobuf exists.)