Giter Club home page Giter Club logo

Comments (4)

marijnh avatar marijnh commented on June 30, 2024

The HTTP server isn't for in-browser editors, it is specifically for desktop editors. HTTP is a nice, flexible, widely supported communication method, so I see no reason not to use it here.

from tern.

clausreinke avatar clausreinke commented on June 30, 2024

Quick, but not helpful. I'm speaking from over 10 years of experience writing Vim plugins, for different languages, have actually written an Emacs plugin once, and was thinking of offering to help with the Vim side here. Keeping an open mind would help encourage collaboration.

HTTP is neither the only, nor the first, nor the best interprocess communication protocol. There is a reason why Emacs supports asynchronous subprocesses, and why Vim plugin authors borrow such support.

from tern.

marijnh avatar marijnh commented on June 30, 2024

I'm not saying async subprocesses don't work. I'm saying HTTP works for me, and I see no reason to move away from it. It would be very easy to have a version of desktop.js that does stdin/stdout communication instead of HTTP (if someone wants to write one, I'll be happy to factor out things like .tern-project parsing once it gets more complex, so that they can be shared).

But no, I'm not going to drop my approach just because you are used to another approach.

from tern.

gilligan avatar gilligan commented on June 30, 2024

I tried to suggest plain socket communication instead of http server as well (#7) because from my limited amount of vim plugin writing i'd find that more appropriate. But @marijnh disagrees obviously.

from tern.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.