You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: LATEST.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
1
# ParserNG
2
2
3
3
4
+
### Parser 1.1.2 has been released on maven-central!
5
+
1. Fixes bugs and makes `MatrixTurboEvaluator` natively support turbo execution of the rot function. Note that the `ScalarTurboEvaluator`s already support it.
6
+
2. Also `FastCompositeExpression` is now aware of its compiler as it now sports a `getCompiler` default method(which can be overriden to specify the turbo class that compiled it)
7
+
4
8
### Parser 1.1.1 has been released on maven-central!
Copy file name to clipboardExpand all lines: MORE.md
+29-29Lines changed: 29 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# ParserNG
2
-
<b>ParserNG</b> is a powerful open-source math tool that parses and evaluates algebraic expressions and also knows how to handle a lot of mathematical expressions. Its latest release on mavn-central (version 1.1.1) can be used to plot 2D graphs(Geometric plots and function plots) It works seamlessly on all Java platforms.<br><br>
2
+
<b>ParserNG</b> is a powerful open-source math tool that parses and evaluates algebraic expressions and also knows how to handle a lot of mathematical expressions. Its latest release on mavn-central (version 1.1.2) can be used to plot 2D graphs(Geometric plots and function plots) It works seamlessly on all Java platforms.<br><br>
3
3
4
4
5
5
@@ -8,15 +8,15 @@
8
8
Click the Sponsor button to do this.
9
9
10
10
11
-
ParserNG v1.1.1 breaks the barrier in fully featured math parser frequencies!
12
-
With various other optimizations, v1.1.1 comes with inner loop optimizations which uses a blazing fast, post-fix style algorithm to quickly evaluate inner brackets with less checks and less string manipulations.
11
+
ParserNG v1.1.2 breaks the barrier in fully featured math parser frequencies!
12
+
With various other optimizations, v1.1.2 comes with inner loop optimizations which uses a blazing fast, post-fix style algorithm to quickly evaluate inner brackets with less checks and less string manipulations.
13
13
This obviously will make graphing and other iterative tasks super responsive.
14
14
15
-
ParserNG v1.1.1 is an extremely feature rich math tool which also doubles as (arguably) the fastest pure Java expression evaluator on the planet.
15
+
ParserNG v1.1.2 is an extremely feature rich math tool which also doubles as (arguably) the fastest pure Java expression evaluator on the planet.
16
16
In benchmarks, it beats com.expression.parser(Java Math Expression Parser) by almost (10x-14x) and edges out Exp4J (which is lightweight) in many benchmarks.
17
17
18
18
19
-
ParserNG 1.1.1 features strength reduction, constant folding and execution frame(array) based args passing(in contrast to Map based) to ensure O(1) complexity in passage of args to the evaluation stage.
19
+
ParserNG 1.1.2 features strength reduction, constant folding and execution frame(array) based args passing(in contrast to Map based) to ensure O(1) complexity in passage of args to the evaluation stage.
20
20
21
21
[Here are a few benchmarks here](./BENCHMARK_RESULTS.md)
22
22
@@ -68,7 +68,7 @@ If you need to access this library via Maven Central, do:
68
68
<dependency>
69
69
<groupId>com.github.gbenroscience</groupId>
70
70
<artifactId>parser-ng</artifactId>
71
-
<version>1.1.1</version>
71
+
<version>1.1.2</version>
72
72
</dependency>
73
73
74
74
@@ -101,20 +101,20 @@ ParserNG is written completely in (pure) Java and so is as cross-platform as Jav
101
101
## Using ParserNG as commandline tool
102
102
You can use jar directly as commandline calculus. Unless the tool is packed to your distribution:
103
103
```
104
-
java -jar parser-ng-1.1.1.jar 1+1
104
+
java -jar parser-ng-1.1.2.jar 1+1
105
105
2.0
106
106
```
107
107
Or as logical parser
108
108
```
109
-
java -jar parser-ng-1.1.1.jar -l true and true
109
+
java -jar parser-ng-1.1.2.jar -l true and true
110
110
true
111
-
java -jar parser-ng-1.1.1.jar -l "2 == (4-2)"
111
+
java -jar parser-ng-1.1.2.jar -l "2 == (4-2)"
112
112
true
113
113
```
114
114
You can get help by
115
115
```
116
-
java -jar parser-ng-1.1.1.jar -h
117
-
ParserNG 1.1.1 math.Main
116
+
java -jar parser-ng-1.1.2.jar -h
117
+
ParserNG 1.1.2 math.Main
118
118
-h/-H/--help this text; do not change for help (witout dashes), which lists functions
119
119
-v/-V/--verbose output is reprinted to stderr with some inter-steps
120
120
-l/-L/--logic will add logical expression wrapper around the expression
**ParserNG 1.1.1** is a **blazing-fast**, nigh zero allocation(memory wise), **pure Java**, **zero-native-dependencies** math expression parser and evaluator.
3
+
**ParserNG 1.1.2** is a **blazing-fast**, nigh zero allocation(memory wise), **pure Java**, **zero-native-dependencies** math expression parser and evaluator.
4
4
5
5
It **beats exp4J, and com.expression.parser on evaluation speed** across every kind of expression — from simple algebra to heavy trig, matrices, and calculus; and manages to beat Janino, the gold standard on some, while rivalling it on a host of other expressions
6
6
The normal mode routinely does about **3-10 million evaluations per second** while the new Turbo mode easily peaks at about **10 million to 90 million evaluations per second**.
> **1.1.1** introduces **Turbo Scalar** and **Turbo Matrix** compiled paths + massive speed improvements via strength reduction, constant folding, and O(1) frame-based argument passing.
17
+
> **1.1.2** introduces **Turbo Scalar** and **Turbo Matrix** compiled paths + massive speed improvements via strength reduction, constant folding, and O(1) frame-based argument passing.
18
18
19
-
## ✨ Highlights (v1.1.1)
19
+
## ✨ Highlights (v1.1.2)
20
20
21
21
-**Speed champion** — rivals Janino in most benchmarks, and beats exp4J, com.expression.parser and Parsii in every benchmark (see [BENCHMARK_RESULTS.md](BENCHMARK_RESULTS.md))
22
22
-**Turbo Mode** — compile once, evaluate millions of times per second (Scalar + Matrix paths)
The result is an array of 6 elements. The first 3 represent the coordinates of the new P after rotation and the last coordinates represent the coordinates of Q after rotation.
165
234
235
+
The next example is even more interesting.
236
+
237
+
### 6b. ROTOR - A swarm or Matrix of Points
238
+
ParserNG can take a Matrix of N points in 3D space(so each point has x,y,z coordinates) and rotate them through an angle, about an origin (O) in a specified direction, D. The Matrix would hence be of dimensions (N x 3) and its output will be a Matrix of similar dimensions, and each row in the initial Matrix would have its rotated result in the corresponding rows of the output Matrix.
-[Hello world and original readme](src/main/java/com/github/gbenroscience/README.md) — Original readme for pre-1.0 versions with a lot of, still valid, examples
198
286
199
287
## ❤️ Support the Project
@@ -211,7 +299,7 @@ ParserNG is built with love in my free time. If it helps you:
211
299
212
300
---
213
301
214
-
**ParserNG 1.1.1** — faster than the competition, stronger on matrices, and now with real Turbo Scalar + Turbo Matrix compiled power.
302
+
**ParserNG 1.1.2** — faster than the competition, stronger on matrices, and now with real Turbo Scalar + Turbo Matrix compiled power.
Copy file name to clipboardExpand all lines: pom.xml
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
<modelVersion>4.0.0</modelVersion>
4
4
<groupId>com.github.gbenroscience</groupId>
5
5
<artifactId>parser-ng</artifactId>
6
-
<version>1.1.1</version>
6
+
<version>1.1.2</version>
7
7
<packaging>jar</packaging>
8
8
<!--
9
9
I started this project 2009 and have been upgrading it since then.
@@ -14,7 +14,8 @@
14
14
<name>ParserNG</name>
15
15
<description>Rich and Performant, Cross Platform Java Library(100% Java).No native dependencies.
16
16
ParserNG is the height of interpreted Math parsing in Java. It is the fastest of all interpreted Java math parsers.
17
-
Version 1.1.1 implements the dynamic version read of ParserNG jar executable
17
+
Version 1.1.2 fixes bugs and makes MatrixTurboEvaluator natively support turbo execution of the rot function. Note that the ScalarTurboEvaluators already support it
18
+
Also FastCompositeExpression is now aware of its compiler as it now sports a getCompiler default method(which can be overriden to specify the turbo class that compiled it)
0 commit comments