You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, thanks for the great lib, it gave me great hope in a NestJS project where i attempt to use Ory permissions.
Still i noticed some issues at runtime and they are related to antlr4ts, notably this one.
Since this lib is not maintained i looked for alternatives and found antlr4g which acts like a drop in replacement… except that is built and published as an ES module.
So it would involve producing an ESM lib as well…
The text was updated successfully, but these errors were encountered:
Hey, you are welcome :) Sorry for responding late.
Thanks for your work and PR. It is really cool that you found a drop-in replacement 👍
Unfortunately I already started replacing antlr with an custom parser, which is several times faster for this simple syntax. You can see the result in #22 . Apparently I didn't merge it 🙈.
Maybe I find some time in the near future to finish the work and merge the changes made there.
Thanks for the reply.
Yes I get why you are going that path.
I started to work on a Regexp to parse tuple with a bit more flexibility (allow namespace | namespace:object | namespace:object#relation only) and the performance tests are quite surprising.
the result gives Regex winner apparently ... ;)
method
elements
time
antlr
100 w/ subject
12.93383ms
antlr
100 w/ subjectSet
12.521252ms
regex
100 w/ subject
0.318202ms
regex
100 w/ subjectSet
0.121128ms
I was not yet able to correctly isolate parentheses in subject segment so it's still WIP.
Hey, thanks for the great lib, it gave me great hope in a NestJS project where i attempt to use Ory permissions.
Still i noticed some issues at runtime and they are related to
antlr4ts
, notably this one.Since this lib is not maintained i looked for alternatives and found antlr4g which acts like a drop in replacement… except that is built and published as an ES module.
So it would involve producing an ESM lib as well…
The text was updated successfully, but these errors were encountered: