commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Himanshu <g.himan...@gmail.com>
Subject Re: [Proposal] simple expression language in commons-math
Date Tue, 15 Dec 2015 06:35:46 GMT
Hi,

Thanks for replying.

However, The problem with JavaScript is that it exposes much more than
I want it to.
Users can't be allowed to pass arbitrary scripts and have server
execute it, due to potential
security issues.

-- Himanshu


> This seems out of scope to me; especially since Java has built-in support
> for JavaScript and any and all languages that support the Java scripting
> API.
>
> Gary

On Mon, Dec 14, 2015 at 8:48 PM, Himanshu <g.himanshu@gmail.com> wrote:

> Hi,
>
> Recently I needed to embed support for simple math expressions in my
> project. Example grammar is...
>
> expr : ('-'|'!') expr
>      | expr '^' expr
>      | expr ('*'|'/'|'%') expr
>      | expr ('+'|'-') expr
>      | expr ('<'|'<='|'>'|'>='|'=='|'!=') expr
>      | '(' expr  ')'
>      | ID
>      | DOUBLE
>      | LONG
>      ;
>
> with basic math functions like sqrt supported in the expressions. I thought
> such expression language would be available in commons-math, but it is not
> (please correct me if I am wrong).
>
> I am working on it already for my project and would love to contribute to
> commons-math. Just wondering, How likely is commons community ready to
> accept same?
>
> -- Himanshu
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message