Bug 335943 - Better programmatic queries (a la VisualVM javascript)
Summary: Better programmatic queries (a la VisualVM javascript)
Status: CLOSED WONTFIX
Alias: None
Product: MAT
Classification: Tools
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-01 05:09 EST by Iulian Dragos CLA
Modified: 2024-04-30 04:33 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Iulian Dragos CLA 2011-02-01 05:09:40 EST
Build Identifier: 1.0.1.201008091353

OQL is fine for quickly finding information in a heap, but sometimes you need more programmatic access. 

* toString is not handling your types properly (for instance,  you may be using Scala, Clojure, Groovy, etc)
* object graph navigation: relational algebra can be cumbersome when navigating forward links (like, find all objects in a certain map)

Currently you can extend MAT using plugins, through its extension points. This is great for large project, but many times you need a quick and dirty query or name resolver. 

VisualVM allows full JavaScript programs in their queries. It would be great to have something similar, especially the ability to abstract and reuse  (write functions, use them in queries).

Javascript is a good candidate, since there are available implementations and a dynamic language fits well with the model. Ideally, this could be an extension point where people can plug different interpreters.

Reproducible: Always
Comment 1 Krum Tsvetkov CLA 2024-04-30 04:33:13 EDT
This bug hasn't been considered for ages and I am closing it.
We haven't heard other requests the improvement.