tinkerpop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TINKERPOP-1489) Provide a Javascript Gremlin Language Variant
Date Tue, 29 Aug 2017 10:28:00 GMT

    [ https://issues.apache.org/jira/browse/TINKERPOP-1489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16145078#comment-16145078

ASF GitHub Bot commented on TINKERPOP-1489:

Github user jorgebay commented on the issue:

    VOTE +1
    `mvn clean install -DskipIntegrationTests=false` passes.
    API summary:
    - All methods are generated using groovy template files.
    - Naming conventions for js are very similar to java, so no significant changes there
from the java one (except `in() and `from()` which are reserved keywords).
    - `toList()` and `next()` are used, in the same way as the rest of the GLVs, except that
it causes async execution (no blocking API is provided, as it won't be usable in Node.js):
`next()` returns an async iterator and `toList()` a promise that gets fulfilled with an `Array`.
    Usage samples: 
    const vertices = await g.V().toList();
    for await (const vertex of g.V()) {

> Provide a Javascript Gremlin Language Variant
> ---------------------------------------------
>                 Key: TINKERPOP-1489
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1489
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: language-variant
>    Affects Versions: 3.2.5
>            Reporter: Jorge Bay
> It would be nice to have a Javascript Gremlin Language Variant that could work with any
ES5 runtime, specially the ones that support [CommonJs|http://requirejs.org/docs/commonjs.html],
like Node.js.
> Nashorn, the engine shipped with JDK 8+, does not implement CommonJs but provides [additional
extensions|https://wiki.openjdk.java.net/display/Nashorn/Nashorn+extensions] making modular
JavaScript possible. Nashorn should be supported in order to run glv tests under the same
infrastructure (JDK8).

This message was sent by Atlassian JIRA

View raw message