describeSteps()

34 views
Skip to first unread message

Stephen Mallette

unread,
Aug 18, 2015, 12:32:59 PM8/18/15
to Gremlin-users, d...@tinkerpop.incubator.apache.org
I just wanted to quickly mention a minor new feature that will be available in 3.1.0.  It is an addition to the utilities plugin and is basically a function called describeSteps().  When it is called from the Gremlin Console it will scan the classpath for all non-abstract Step implementations and print them in a table to display which important base classes and marker interfaces they extend/implement.  This kind of information will be useful to those developing core API/TraversalStrategy implementations.  You can see its usage in this gist:

Marko Rodriguez

unread,
Aug 18, 2015, 3:06:01 PM8/18/15
to gremli...@googlegroups.com, d...@tinkerpop.incubator.apache.org
Hi Stephen,

I wouldn't add this just yet. I would not promote "normal users" working with Steps directly as:

1. There typing will likely change soon given the work in "Gremlin Traversal Machine and Language."
2. We don't have a DSL path yet.
3. The interface API will most likely change as well.

Finally, I don't know what use this would have as a "runtime call." If someone is developing a traversal language using the "instruction set" of Gremlin, they will most likely be in JavaDoc-land, not in describeSteps()-land. ??

Perhaps, for now, you can pull this into a feature branch.

Thanks,
Marko.
On Aug 18, 2015, at 10:32 AM, Stephen Mallette <spmal...@gmail.com> wrote:

I just wanted to quickly mention a minor new feature that will be available in 3.1.0.  It is an addition to the utilities plugin and is basically a function called describeSteps().  When it is called from the Gremlin Console it will scan the classpath for all non-abstract Step implementations and print them in a table to display which important base classes and marker interfaces they extend/implement.  This kind of information will be useful to those developing core API/TraversalStrategy implementations.  You can see its usage in this gist:


--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAA-H43-pxcn9SFhjLiRu7y7yWcjF7hZkkJeb%3DAfVJJBjZ5CHEw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Stephen Mallette

unread,
Aug 18, 2015, 3:24:45 PM8/18/15
to Gremlin-users
I wouldn't add this just yet. I would not promote "normal users" working with Steps directly as:

well - perhaps this was more of a post for the dev list - probably shouldn't have cross-posted it.  i'll post the rest of my reply over there in case anyone cares to follow on.
 

Stephen Mallette

unread,
Aug 19, 2015, 6:43:23 AM8/19/15
to Gremlin-users
If you weren't following along on the dev mailing list - i've dropped this feature based on Marko's feedback.  Easy come - easy go....

Marko Rodriguez

unread,
Aug 19, 2015, 9:47:08 AM8/19/15
to gremli...@googlegroups.com
Primary because TinkerPop DOES care about your children. The little miracles they are.

You are so blessed,
Marko.
Reply all
Reply to author
Forward
0 new messages