GithubHelp home page GithubHelp logo

Comments (7)

abeaumont avatar abeaumont commented on June 20, 2024 2

As discussed with @mcuadros, we will add support both for server version and installed drivers, in the following way:

  • The server will offer 3 new request types:
    • version. The response will provide server version information, which may include the commit hash and/or a tag.
    • get_driver. The request will include the language name. The response will provide the manifest of the driver, which the server will retrieve from the file-system.
    • get_drivers. The response will provide a list of installed drivers, with its language, version and image_id

from bblfshd.

vmarkovtsev avatar vmarkovtsev commented on June 20, 2024 1

As for now, hardcode! 😆 https://github.com/src-d/ast2vec/blob/master/ast2vec/repo2nbow.py#L51

from bblfshd.

vmarkovtsev avatar vmarkovtsev commented on June 20, 2024

One of the possible implementations is to query a fake file for every language (the list can be taken from src-d/enry or github/linguist), record failures and build the registry. Can take some time if implemented straightforward; I bet there is a docker API to check the existence of a container very fast.

from bblfshd.

smola avatar smola commented on June 20, 2024

We should also expose which version of the driver is installed.

from bblfshd.

vmarkovtsev avatar vmarkovtsev commented on June 20, 2024

Any updates?

from bblfshd.

abeaumont avatar abeaumont commented on June 20, 2024

No updates, it's something we want to do at some point, but are focused on other tasks at the moment.

from bblfshd.

abeaumont avatar abeaumont commented on June 20, 2024

The listing of supported drivers may be tricky, since the server may support custom images for some languages, and building a list of images through a complete list of languages and filtering sounds rather innefficient.
A hardcoded (but configurable) list of supported drivers, as suggested by @smola, is probably more efficient. In this case, it should probably be related with #80.

In any case, we can start adding support for installed drivers, to begin with.

from bblfshd.

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.