Comment by ChadNauseam

Comment by ChadNauseam 12 hours ago

4 replies

Do the client and server necessarily exist on the same machine? I thought vscode had an architecture where the frontend and backend could be on separate machines, although I don't know if the LSP crosses that gap.

Also, I'm sure there's a way to do it, but if someone wanted to write an LSP in Haskell and the editor was written in JavaScript, I'm not sure it would be as straightforward to load it as a dynamic library as you suggest it should be.

jesse__ 12 hours ago

Theoretically, the client/server don't have to be on the same machine, but in practice they mostly are.

As for the interface.. any language that can't speak the C ABI isn't a real language (read: they all can).. but this is besides the point.

Counterpoint; when's the last time you used an editor written in JavaScript and an LSP written in Haskell? I bet never.

  • skybrian 10 hours ago

    If you install the VSCode plugin for Haskell, I’m pretty sure that’s what you get?

    • jesse__ 36 minutes ago

      It's funny that I forgot people actually use VSCode .. I think of it as a bad joke.

      Fair point though.

    • tome 4 hours ago

      I think VSCode is written in TypeScript, but yes, I found counterpoint very strange too!