-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Porting to other object models (JSON supersets, more or less)? #270
Comments
Hi @barries! I may be of course a bit biased, but I believe that porting jaq to something like you describe it should be quite straightforward. You basically have to implement two traits on your Ion value datatype, namely If you're doing this work for commercial purposes, then I could potentially also do this work for you as freelancer, possibly also including the playground part. (Given that I have already made the jaq playground.) If this interests you, you can contact me by mail or answer here. :) |
Hey, @01mf02! Yeah, the code made it look like you'd carefully designed it this way, and I'm glad to hear that it should be easy. The telemetry (i.e. scoped/nested, structured binary logs) viewer is a side project I'm doing open source, otherwise I'd love to have my employer send some consulting $$$ your way. Unfortunately, sophisticated telemetry is not seen as a high enough priority to fund like that. The "playground" analogy was about having the output update as you modify the search criteria--which could be (I'm typing very slowly to let the viewer see the results--the app itself responds instantly for the size of logs we typically use) view_logs_2025-03-14-156.mp4Anyway, very, very cool stuff, and your paper about it is interesting! |
@barries that looks neat! I can attest that Somewhere lost to obscurity (I hope!) is my attempt to build some |
I see, no worries. :)
This definitely reminds me of jnv, which also uses jaq under the hood.
Grazie. :) |
Thank you for your kind words! I find it very cool what people are achieving with my little library. :) |
Do folks here know of any projects using
jaq
as a library for more complex object models--JSON supersets more or less--either for matching by path expression or full filtering?We're using Amazon Ion (specifically,
ion_rs
) for telemetry (threaded, scoped, structured binary logs) and a quick perusal of the repo makes it seem likejaq_json
should be pretty easy to copy-paste-and-extend with additional datatypes like Timestamp, sexpr, etc.I'm hoping to find examples and/or war stories of using
jaq_core
, etc., on a object models with more complex schemas... things that were easy, hard or surprising, example code to be inspired by, etc?I'm writing a viewer for our telemetry files and would like to use something like
jaq
's core to allow the user to select entries and nodes; right now it only allows them to selecting lines of text-formatted output by scanning for plain string and regexs, and matches. What I'm picturing is sort of an interactive nativejaq
playground app that accepts log streams as input and allows interactive selection and, one day, transformations.Thanks!
The text was updated successfully, but these errors were encountered: