Mattias Wadman
Mattias Wadman
Spent some more time on jqjq support and think i found a bug/difference between jaq and jq when it comes to destructing. Managed to minimize it down to this: ```sh...
Ran into this also, i would guess related to same issue: ```sh $ jq -n '{} as $a | $a as {$t} | debug' ["DEBUG:",null] null $ jaq -n '{}...
Yeap noticed :) have done work workaround for it. I pushed my current progress here https://github.com/wader/jqjq/commits/jaq/ but be aware of lots of hacks :) with this at least "1+2" seem...
> Hi @wader, just as I was setting out to look into jqjq myself right now, I find that you have beaten me to it. :) Thanks for uncovering this...
> Thanks for mentioning the jaq branch of jqjq. I found that quite a few things already work, using: > > ``` > jaq -n -L . 'include "jqjq"; eval($FILTER;...
> Concerning the lexing speed: > > ``` > jaq -L . -n 'include "jqjq"; _builtins_src | lex' > ``` > > is indeed slower than jq right now (1.2...
Any idea what is going on with these? https://github.com/wader/jqjq/blob/master/jqjq.jq#L1945-L1946 Without any changes it seem expressions like `1+2` just output `1`, but if i add `... | debug` or `... |...
> What does not work: > > `.`, `.[]`, `.[0]`, `.a`, `1 as $x | $x`: These fail with: "cannot use null as iterable (array or object)". For some of...
Oh seems eval/1 now works, not sure what fixed it, and also this 🥳 ```sh $ jaq -L . 'include "jqjq"; eval("def f: 1,8; [f,f] | map(.+105) | implode")'
Any plan to add `--args`, would make it possible to use the jqjq shell wrapper with jaq, `./jqjq --jq jaq ...`. But beware the semantics of `--args`, it's a bit...