Interesting - didn't expect that as an answer. fwiw, exp4j makes adding new functions and operator really easy. also just a few lines of code.
On Tue, Jul 30, 2019 at 2:26 PM Daniel Kuppitz <[email protected]> wrote: > I agree. Calculators are the Hello World of ANTLR, thus it will be pretty > easy to make our own lib, and it will be super easy to add new functions > (e.g. if someone asks for STDDEV and PERCENTILE, it's really just a few > lines of code for us). > From a user perspective, there would be no difference compared to what we > have now, everything would be string-based. > > Cheers, > Daniel > > > On Tue, Jul 30, 2019 at 4:34 AM Marko Rodriguez <[email protected]> > wrote: > > > Hi, > > > > I think we should create our own math library. We will need it for > mm-ADT, > > Kuppitz has the ANTLR chops down, … > > > > Marko. > > > > http://rredux.com <http://rredux.com/> > > > > > > > > > > > On Jul 30, 2019, at 5:31 AM, Stephen Mallette <[email protected]> > > wrote: > > > > > > Kuppitz just answered a question on gremlin-users that involved math() > > > which is backed by exp4j. That made me recall that exp4j is technically > > not > > > maintained anymore. While it is a stable library it seems a bit > worrisome > > > that we're a bit dead-ended there. The README currently says that the > > > author is looking for volunteers to replace him and it's been that way > > for > > > a while. > > > > > > I"m not sure what the alternatives are to exp4j and I imagine that > > > alternatives might come with expression syntax changes which wouldn't > be > > > good. > > > > > > Anyone have any thoughts on this? > > > > >
