Comments (7)
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 serverversion
information, which may include the commit hash and/or a tag.get_driver
. The request will include the language name. The response will provide themanifest
of the driver, which the server will retrieve from the file-system.get_drivers
. The response will provide a list of installed drivers, with itslanguage
,version
andimage_id
from bblfshd.
As for now, hardcode! 😆 https://github.com/src-d/ast2vec/blob/master/ast2vec/repo2nbow.py#L51
from bblfshd.
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.
We should also expose which version of the driver is installed.
from bblfshd.
Any updates?
from bblfshd.
No updates, it's something we want to do at some point, but are focused on other tasks at the moment.
from bblfshd.
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)
- install --all has the same effect as --recommended HOT 1
- bblfshd and go-client interdependency HOT 1
- Design/Prototype scalability and deployment support
- Design/Prototype local scalable environment
- Prototype native parser scaling mechanism HOT 3
- Test scalability layers
- Drivers discovery mechanism HOT 2
- make test fails HOT 2
- cron job fails in Travis
- Is this still active? HOT 1
- Archive project(s)
- Ongoing maintenance of the Babelfish project HOT 6
- Driver instance not killed after deadline
- Cannot get latest version: module contains a go.mod file, so module path should be github.com/bblfsh/bblfshd/v2 HOT 5
- Security Issue: Request for contact
- bblfshd not run HOT 1
- https://doc.bblf.sh/ down?
- Babelfish run test error
- Is bblfshd dead? HOT 3
- The vulnerability CVE-2021-32825 has been fixed, but no specific tag denotes the patched version.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bblfshd.