Re: [go-nuts] Re: An efficient runtime expression evaluation

2016-07-19 Thread Egon
https://play.golang.org/p/Tr2PRKI23w, >> but runs only on windows (kind of). >> >> *What have I done...* >> >> + Egon >> >> >> >>> >>> >>> *From: * on behalf of Egon >> > >>> *Date: *Monday, July 18, 2016 at

Re: [go-nuts] Re: An efficient runtime expression evaluation

2016-07-18 Thread ondrej . kokes
gt;> >> *From: * on behalf of Egon >> *Date: *Monday, July 18, 2016 at 1:32 AM >> *To: *golang-nuts >> *Cc: * >> *Subject: *[go-nuts] Re: An efficient runtime expression evaluation >> >> >> >> >> >> On Monday, 18 July 2016

Re: [go-nuts] Re: An efficient runtime expression evaluation

2016-07-18 Thread Michael Jones
Impressive AND aggressive. ;-) From: on behalf of Egon Date: Monday, July 18, 2016 at 9:07 AM To: golang-nuts Cc: , Subject: Re: [go-nuts] Re: An efficient runtime expression evaluation On Monday, 18 July 2016 13:27:09 UTC+3, Michael Jones wrote: Anything much faster than this needs

Re: [go-nuts] Re: An efficient runtime expression evaluation

2016-07-18 Thread Egon
a little faster https://play.golang.org/p/Tr2PRKI23w, but runs only on windows (kind of). *What have I done...* + Egon > > > *From: *> on behalf of Egon < > egon...@gmail.com > > *Date: *Monday, July 18, 2016 at 1:32 AM > *To: *golang-nuts > > *Cc: *> > *S

Re: [go-nuts] Re: An efficient runtime expression evaluation

2016-07-18 Thread Michael Jones
: An efficient runtime expression evaluation On Monday, 18 July 2016 11:13:08 UTC+3, Egon wrote: On Monday, 18 July 2016 10:30:14 UTC+3, Egon wrote: On Monday, 18 July 2016 03:11:29 UTC+3, ondrej...@gmail.com wrote: Cheers, I tried replicating my endeavours (https://play.golang.org/p

[go-nuts] Re: An efficient runtime expression evaluation

2016-07-18 Thread Egon
On Monday, 18 July 2016 11:13:08 UTC+3, Egon wrote: > > > > On Monday, 18 July 2016 10:30:14 UTC+3, Egon wrote: >> >> On Monday, 18 July 2016 03:11:29 UTC+3, ondrej...@gmail.com wrote: >>> >>> Cheers, I tried replicating my endeavours ( >>> https://play.golang.org/p/Qxoo2ASac6), sorry if it's sti

[go-nuts] Re: An efficient runtime expression evaluation

2016-07-18 Thread Egon
On Monday, 18 July 2016 10:30:14 UTC+3, Egon wrote: > > On Monday, 18 July 2016 03:11:29 UTC+3, ondrej...@gmail.com wrote: >> >> Cheers, I tried replicating my endeavours ( >> https://play.golang.org/p/Qxoo2ASac6), sorry if it's still too verbose. >> It's essentially rewriting the inbuilt ast.No

[go-nuts] Re: An efficient runtime expression evaluation

2016-07-18 Thread Egon
PS: you may want to research and learn how Forth interpreters are implemented, they have similar problems. On Monday, 18 July 2016 10:30:14 UTC+3, Egon wrote: > > On Monday, 18 July 2016 03:11:29 UTC+3, ondrej...@gmail.com wrote: >> >> Cheers, I tried replicating my endeavours ( >> https://play.g

[go-nuts] Re: An efficient runtime expression evaluation

2016-07-18 Thread Egon
On Monday, 18 July 2016 03:11:29 UTC+3, ondrej...@gmail.com wrote: > > Cheers, I tried replicating my endeavours ( > https://play.golang.org/p/Qxoo2ASac6), sorry if it's still too verbose. > It's essentially rewriting the inbuilt ast.Node into a simpler nested > struct and then walking it. > > In

[go-nuts] Re: An efficient runtime expression evaluation

2016-07-17 Thread ondrej . kokes
Cheers, I tried replicating my endeavours (https://play.golang.org/p/Qxoo2ASac6), sorry if it's still too verbose. It's essentially rewriting the inbuilt ast.Node into a simpler nested struct and then walking it. In testing the performance, I started adding algebraic expressions, which make my

[go-nuts] Re: An efficient runtime expression evaluation

2016-07-08 Thread Egon
On Friday, 8 July 2016 16:25:40 UTC+3, Ondrej wrote: > > Hi all, > I have a model with variables, let's call them a, b, c, ..., z. These are > numerical values (time series loaded from a database) and I let the user > specify their relationships in a JSON, say 'z = 12; x = a + 2/3 + 3*c; y = > l