find a fparser alternative

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

find a fparser alternative

dxli
Hi All,

There are several issues with fparser.

First, I upgraded to gcc-4.7, fparser doesn't build, and we all know fparser doesn't get along with gcc upgrades.

Second, fparser source code is obfuscated, for example in fp_identifier_parser.inc.

some candidates:

http://muparser.sourceforge.net/mup_features.html

boost spirit calculator

thanks,

Dongxu

Reply | Threaded
Open this post in threaded view
|

Re: find a fparser alternative

Rallaz
The fparser library in LC code are outdated (v4.3), the last version are 4.4.3
see http://warp.povusers.org/FunctionParser/

but, for my, do not have problem to change with other "more clear" library.

Must take in consideration the license

muparser license: MIT
fparser license: LGPL v3
boost spirit calculator license: ???

Rallaz
Reply | Threaded
Open this post in threaded view
|

Re: find a fparser alternative

dxli
Hi,

boost license is compatible with GPL, and the calculator is part of boost spirit examples. I haven't gathered enough info about it yet.

for muparser, it's straight forward to make it a dependency of LC in linux. I'm not sure about the situation in windows/osx.

I don't think we would include muparser source code of muparser in LC the same way as fparser. I suppose we can include in building script to download the source code, and build LC with it. If not network at building time, user are responsible to supply a muparser source code zip file. I don't know about how to do this exactly though.

Thanks,

Dongxu


On Sat, Mar 31, 2012 at 8:40 AM, Rallaz [via LibreCAD] <[hidden email]> wrote:
The fparser library in LC code are outdated (v4.3), the last version are 4.4.3
see http://warp.povusers.org/FunctionParser/

but, for my, do not have problem to change with other "more clear" library.

Must take in consideration the license

muparser license: MIT
fparser license: LGPL v3
boost spirit calculator license: ???

Rallaz


If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/find-a-fparser-alternative-tp5608668p5608740.html
To start a new topic under LibreCAD-dev, email [hidden email]
To unsubscribe from LibreCAD-dev, click here.
NAML



--
Dongxu Li, Ph.D.
www.librecad.org

Reply | Threaded
Open this post in threaded view
|

Re: find a fparser alternative

maqifrnswa
In reply to this post by dxli
On Sat, Mar 31, 2012 at 7:31 AM, dxli [via LibreCAD]
<[hidden email]> wrote:
>
> some candidates:
>
> http://muparser.sourceforge.net/mup_features.html

coincidentally, I'm the muparser maintainer in Debian and Ubuntu

I know qtiplot and scidavis use it and it works great - it could be a
good for LC. Just FYI, they improved their library versioning so that
in theory all libmuparser2 are compatible with each other. They don't
appear to follow libtool "age" and "revision," for example
libmuparser.so.2.2.2 is not compatible with libmuparser.so.0.

As for building, I think it's fair to either ship convenience copies
or just tell users they need libmuparser.so.2 and headers to build
(package libmuparser-dev on debian systems)

For ease of distribution, I'd suggest muparser.

~Scott
Reply | Threaded
Open this post in threaded view
|

Re: find a fparser alternative

dxli

hi,

if there's not much trouble on windows/osx side, we will choose muparser accordingly.

the switching process seems to be trivial. I'm setting up a branch to test this idea.

thanks,

dongxu

On Mar 31, 2012 11:11 AM, "showard314 [via LibreCAD]" <[hidden email]> wrote:
On Sat, Mar 31, 2012 at 7:31 AM, dxli [via LibreCAD]
<[hidden email]> wrote:
>
> some candidates:
>
> http://muparser.sourceforge.net/mup_features.html

coincidentally, I'm the muparser maintainer in Debian and Ubuntu

I know qtiplot and scidavis use it and it works great - it could be a
good for LC. Just FYI, they improved their library versioning so that
in theory all libmuparser2 are compatible with each other. They don't
appear to follow libtool "age" and "revision," for example
libmuparser.so.2.2.2 is not compatible with libmuparser.so.0.

As for building, I think it's fair to either ship convenience copies
or just tell users they need libmuparser.so.2 and headers to build
(package libmuparser-dev on debian systems)

For ease of distribution, I'd suggest muparser.

~Scott



If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/find-a-fparser-alternative-tp5608668p5608927.html
To start a new topic under LibreCAD-dev, email [hidden email]
To unsubscribe from LibreCAD-dev, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

Re: find a fparser alternative

R. van Twisk
Administrator
I am good with muparser,

OSX has muparser in ports, so that's not going to be a problem.

For Windows we put in the README instructions how to download muparser
for LibreCAD to compile, much like what we do with Boost at the moment.
Our Windows compiler user base is so low that I think it justifies the little
bit of extra work. And these people that can do it won't have problems.

I also agree that we shouldn't ship muparser with LibreCAD like
what we currently do with fparser.

Ries





On Mar 31, 2012, at 11:11 AM, dxli [via LibreCAD] wrote:

hi,

if there's not much trouble on windows/osx side, we will choose muparser accordingly.

the switching process seems to be trivial. I'm setting up a branch to test this idea.

thanks,

dongxu

On Mar 31, 2012 11:11 AM, "showard314 [via LibreCAD]" <<a href="x-msg://3098/user/SendEmail.jtp?type=node&amp;node=5609014&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:
On Sat, Mar 31, 2012 at 7:31 AM, dxli [via LibreCAD]
<[hidden email]> wrote:
>
> some candidates:
>
> http://muparser.sourceforge.net/mup_features.html

coincidentally, I'm the muparser maintainer in Debian and Ubuntu

I know qtiplot and scidavis use it and it works great - it could be a
good for LC. Just FYI, they improved their library versioning so that
in theory all libmuparser2 are compatible with each other. They don't
appear to follow libtool "age" and "revision," for example
libmuparser.so.2.2.2 is not compatible with libmuparser.so.0.

As for building, I think it's fair to either ship convenience copies
or just tell users they need libmuparser.so.2 and headers to build
(package libmuparser-dev on debian systems)

For ease of distribution, I'd suggest muparser.

~Scott



If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/find-a-fparser-alternative-tp5608668p5608927.html
To start a new topic under LibreCAD-dev, email <a href="x-msg://3098/user/SendEmail.jtp?type=node&amp;node=5609014&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]
To unsubscribe from LibreCAD-dev, <a href="x-msg://3098/" target="_blank" rel="nofollow" link="external">click here.
NAML



If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/find-a-fparser-alternative-tp5608668p5609014.html
To start a new topic under LibreCAD, email [hidden email]
To unsubscribe from LibreCAD, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: find a fparser alternative

dxli

hi all,

so muparser is the way to go, and I will get this done before implementation of new tangential circle/ellipse drawing methods.

thanks,

dongxu

On Mar 31, 2012 1:51 PM, "R. van Twisk [via LibreCAD]" <[hidden email]> wrote:
I am good with muparser,

OSX has muparser in ports, so that's not going to be a problem.

For Windows we put in the README instructions how to download muparser
for LibreCAD to compile, much like what we do with Boost at the moment.
Our Windows compiler user base is so low that I think it justifies the little
bit of extra work. And these people that can do it won't have problems.

I also agree that we shouldn't ship muparser with LibreCAD like
what we currently do with fparser.

Ries





On Mar 31, 2012, at 11:11 AM, dxli [via LibreCAD] wrote:

hi,

if there's not much trouble on windows/osx side, we will choose muparser accordingly.

the switching process seems to be trivial. I'm setting up a branch to test this idea.

thanks,

dongxu

On Mar 31, 2012 11:11 AM, "showard314 [via LibreCAD]" <<a href="x-msg://3098/user/SendEmail.jtp?type=node&amp;node=5609014&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:
On Sat, Mar 31, 2012 at 7:31 AM, dxli [via LibreCAD]
<[hidden email]> wrote:
>
> some candidates:
>
> http://muparser.sourceforge.net/mup_features.html

coincidentally, I'm the muparser maintainer in Debian and Ubuntu

I know qtiplot and scidavis use it and it works great - it could be a
good for LC. Just FYI, they improved their library versioning so that
in theory all libmuparser2 are compatible with each other. They don't
appear to follow libtool "age" and "revision," for example
libmuparser.so.2.2.2 is not compatible with libmuparser.so.0.

As for building, I think it's fair to either ship convenience copies
or just tell users they need libmuparser.so.2 and headers to build
(package libmuparser-dev on debian systems)

For ease of distribution, I'd suggest muparser.

~Scott



If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/find-a-fparser-alternative-tp5608668p5608927.html
To start a new topic under LibreCAD-dev, email <a href="x-msg://3098/user/SendEmail.jtp?type=node&amp;node=5609014&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]
To unsubscribe from LibreCAD-dev, <a href="x-msg://3098/" target="_blank" rel="nofollow" link="external">click here.
NAML



If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/find-a-fparser-alternative-tp5608668p5609014.html
To start a new topic under LibreCAD, email [hidden email]
To unsubscribe from LibreCAD, click here.
NAML




If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/find-a-fparser-alternative-tp5608668p5609131.html
To start a new topic under LibreCAD-dev, email [hidden email]
To unsubscribe from LibreCAD-dev, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

Re: find a fparser alternative

dxli
In reply to this post by dxli
it works for me now in the branch muparser.

tested in linux only.

thanks,

Dongxu
Reply | Threaded
Open this post in threaded view
|

Re: find a fparser alternative

RoboMod
In reply to this post by dxli
Hi everybody,

do you plan to switch to muparser before releasing LC 2.0 ?

Best
RoboMod
Reply | Threaded
Open this post in threaded view
|

Re: find a fparser alternative

dxli
Hi RoboMod,

We switched to muParser since 2.0.0alpha3, and 2.0.0beta1 is scheduled to be released in days.

Thanks,

dxli

On Sun, Oct 7, 2012 at 2:58 PM, RoboMod [via LibreCAD] <[hidden email]> wrote:
Hi everybody,

do you plan to switch to muparser before releasing LC 2.0 ?

Best
RoboMod


If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/find-a-fparser-alternative-tp5608668p5707116.html
To start a new topic under LibreCAD-dev, email [hidden email]
To unsubscribe from LibreCAD-dev, click here.
NAML



--
Dongxu Li, Ph.D.
www.librecad.org

Reply | Threaded
Open this post in threaded view
|

Re: find a fparser alternative

RoboMod
Hi dxli,

thanks.

Do you have a deadline for RC of 2.0.0?
Are there any things to regard when working on LC till you release the beta or RC?

Best,
RoboMod
Reply | Threaded
Open this post in threaded view
|

Re: find a fparser alternative

dxli
Hi RoboMod,

2.0 series is under feature freeze, and is in stablization stage. Features such as bezier/spline support, parabola/hyperbola entity types will be in 2.1 series instead.

We don't have a deadline for the final release, but we may want to give it several months for us to smooth out bugs.

Please feel free to help the process.

dxli

On Sun, Oct 7, 2012 at 3:39 PM, RoboMod [via LibreCAD] <[hidden email]> wrote:
Hi dxli,

thanks.

Do you have a deadline for RC of 2.0.0?
Are there any things to regard when working on LC till you release the beta or RC?

Best,
RoboMod


If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/find-a-fparser-alternative-tp5608668p5707118.html
To start a new topic under LibreCAD-dev, email [hidden email]
To unsubscribe from LibreCAD-dev, click here.
NAML



--
Dongxu Li, Ph.D.
www.librecad.org