Fast mathematical expressions parser
От: SchweinDeBurg Россия http://zarezky.spb.ru/
Дата: 22.07.04 06:38
Оценка: 77 (7)
Fast mathematical expressions parser

Many applications require the parsing of mathematical expressions. The main goal of this project is to provide a fast and easy way of doing this. Most of the applications require repeated evaluation of the same formula. In order to speed such operations up the parser compiles the formula into bytecode. This bytecode is used for all successive calculations of the formula resulting in dramatic improvement of performance.

- Искренне ваш, Поросенок Пафнутий ~ ICQ#116846877
In Windows, there’s always a catch… © Paul DiLascia
Re: Fast mathematical expressions parser - updated
От: SchweinDeBurg Россия http://zarezky.spb.ru/
Дата: 27.07.04 03:20
Оценка:
Здравствуйте, SchweinDeBurg, Вы писали:

SDB>Fast mathematical expressions parser


Rev 1.01 : July 23 2004

- Искренне ваш, Поросенок Пафнутий ~ ICQ#116846877
In Windows, there’s always a catch… © Paul DiLascia
Re[2]: Fast mathematical expressions parser - updated
От: SchweinDeBurg Россия http://zarezky.spb.ru/
Дата: 03.08.04 06:58
Оценка:
Fast mathematical expressions parser

Rev 1.02 : July 30 2004

- Искренне ваш, Поросенок Пафнутий ~ ICQ#116846877
In Windows, there’s always a catch… © Paul DiLascia
Re: Fast mathematical expressions parser
От: Andrew S Россия http://alchemy-lab.com
Дата: 03.08.04 08:18
Оценка:
SDB>Fast mathematical expressions parser

SDB>

SDB>Many applications require the parsing of mathematical expressions. The main goal of this project is to provide a fast and easy way of doing this. Most of the applications require repeated evaluation of the same formula. In order to speed such operations up the parser compiles the formula into bytecode. This bytecode is used for all successive calculations of the formula resulting in dramatic improvement of performance.


Было бы интересно сравнить это с Ian Ollmann's parser (http://www.beatjapan.org/mirror/www.be.com/beware/Libraries/Expression%20Parser%20wit.html)
В свое время он был быстрее (или на уровне) с компиляторами математических выражений, при том, что на самом деле строит дерево выражений. (На самом деле выложенные по ссылке сурсеры достаточно древние, то, что есть у меня, датируется 2001 годом. Но на производительности это не должно сказаться сильно). Кстати, компилируемый ваткомом 11.0, он легко уделывал вариант на VC6 даже на простейших выражениях. Если интересно — могу выслать сурсеры парсера, они достаточно компактны.
http://www.rusyaz.ru/pr — стараемся писАть по-русски
Re[2]: еще одна альтернатива :-)
От: SchweinDeBurg Россия http://zarezky.spb.ru/
Дата: 07.08.04 09:13
Оценка:
Здравствуйте, Andrew S, Вы писали:

AS>Было бы интересно сравнить это с Ian Ollmann's parser (http://www.beatjapan.org/mirror/www.be.com/beware/Libraries/Expression%20Parser%20wit.html)


А вот и еще одна альтернатива: An extensible math parser.

I built this math parser with adaptability and reusability in mind. Adaptable means that to add or modify some behaviour, you should not have to recode half of the parser, and thus simple modifications should be simple to do. To enhance a very adaptable design, you should only have to add code and never have to modify existing code (is it only a dream?). To be reusable a component should encapsulate its logic and allows application specific things to be defined externally, without impacting the component.

[ posted via RSDN@Home 1.1.2 stable ]
- Искренне ваш, Поросенок Пафнутий ~ ICQ#116846877
In Windows, there’s always a catch… © Paul DiLascia
Re: Fast mathematical expressions parser
От: SchweinDeBurg Россия http://zarezky.spb.ru/
Дата: 01.09.04 04:06
Оценка:
Здравствуйте, SchweinDeBurg, Вы писали:

SDB>Fast mathematical expressions parser


Rev 1.05

- Искренне ваш, Поросенок Пафнутий ~ ICQ#116846877
In Windows, there’s always a catch… © Paul DiLascia
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.