Skip to content

Commit e340f13

Browse files
committed
save version 1.2.0 ready to release
1 parent 34d9914 commit e340f13

11 files changed

Lines changed: 450 additions & 158 deletions

File tree

‎LATEST.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# ParserNG
22

3-
3+
### 🚀 Parser 1.2.0 has been released on maven-central!
4+
Version 1.2.0 introduces pure Matrix algebra into ParserNG standard. Its great performance is not at par with what
5+
ParserNG Turbo can do( with MatrixTurboEvaluator), in terms of memory allocation optimization and matrix evaluation speed, but it ensures that
6+
Matrix Algebra is fully available alongside matrix functionality on ParserNG Standard also.
47

58
### 🚀 Parser 1.1.5 has been released on maven-central!
69
#### ParserNG Turbo: Zero-Allocation Optimization Pass

‎LOGICAL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ In CLI, you can use -e/-E/--expanding switch to work with Expanding expressions.
133133
<br>
134134
Example:<br>
135135
```
136-
VALUES_PNG="1 8 5 2" java -jar target/parser-ng-1.1.5.jar -e "avg(..L{MN/2})*1.1-MN < L0 | (L1+L{MN-1})*1.3 + MN< L0" -v
136+
VALUES_PNG="1 8 5 2" java -jar target/parser-ng-1.1.6.jar -e "avg(..L{MN/2})*1.1-MN < L0 | (L1+L{MN-1})*1.3 + MN< L0" -v
137137
avg(..L{MN/2})*1.1-MN < L0 | (L1+L{MN-1})*1.3 + MN< L0
138138
Expression : avg(..L{MN/2})*1.1-MN <L0 | (L1+L{MN-1})*1.3 + MN<L0
139139
Upon : 1,8,5,2

‎MORE.md‎

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# 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.5) 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.6) can be used to plot 2D graphs(Geometric plots and function plots) It works seamlessly on all Java platforms.<br><br>
33

44

55

@@ -8,15 +8,15 @@
88
Click the Sponsor button to do this.
99

1010

11-
ParserNG v1.1.5 breaks the barrier in fully featured math parser frequencies!
12-
With various other optimizations, v1.1.5 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.6 breaks the barrier in fully featured math parser frequencies!
12+
With various other optimizations, v1.1.6 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.
1313
This obviously will make graphing and other iterative tasks super responsive.
1414

15-
ParserNG v1.1.5 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.6 is an extremely feature rich math tool which also doubles as (arguably) the fastest pure Java expression evaluator on the planet.
1616
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.
1717

1818

19-
ParserNG 1.1.5 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.6 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.
2020

2121
[Here are a few benchmarks here](./BENCHMARK_RESULTS.md)
2222

@@ -68,7 +68,7 @@ If you need to access this library via Maven Central, do:
6868
<dependency>
6969
<groupId>com.github.gbenroscience</groupId>
7070
<artifactId>parser-ng</artifactId>
71-
<version>1.1.5</version>
71+
<version>1.1.6</version>
7272
</dependency>
7373
7474

@@ -101,20 +101,20 @@ ParserNG is written completely in (pure) Java and so is as cross-platform as Jav
101101
## Using ParserNG as commandline tool
102102
You can use jar directly as commandline calculus. Unless the tool is packed to your distribution:
103103
```
104-
java -jar parser-ng-1.1.5.jar 1+1
104+
java -jar parser-ng-1.1.6.jar 1+1
105105
2.0
106106
```
107107
Or as logical parser
108108
```
109-
java -jar parser-ng-1.1.5.jar -l true and true
109+
java -jar parser-ng-1.1.6.jar -l true and true
110110
true
111-
java -jar parser-ng-1.1.5.jar -l "2 == (4-2)"
111+
java -jar parser-ng-1.1.6.jar -l "2 == (4-2)"
112112
true
113113
```
114114
You can get help by
115115
```
116-
java -jar parser-ng-1.1.5.jar -h
117-
ParserNG 1.1.5 math.Main
116+
java -jar parser-ng-1.1.6.jar -h
117+
ParserNG 1.1.6 math.Main
118118
-h/-H/--help this text; do not change for help (witout dashes), which lists functions
119119
-v/-V/--verbose output is reprinted to stderr with some inter-steps
120120
-l/-L/--logic will add logical expression wrapper around the expression
@@ -136,11 +136,11 @@ java -jar parser-ng-1.1.5.jar -h
136136
```
137137
You can get examples by verbose help:
138138
```
139-
java -jar parser-ng-1.1.5.jar -h -v
139+
java -jar parser-ng-1.1.6.jar -h -v
140140
```
141141
you can list functions:
142142
```
143-
java -jar parser-ng-1.1.5.jar help
143+
java -jar parser-ng-1.1.6.jar help
144144
List of currently known methods:
145145
acos - help not yet written. See https://github.com/gbenroscience/ParserNG
146146
...
@@ -149,7 +149,7 @@ List of functions is just tip of iceberg, see: https://github.com/gbenroscience/
149149
```
150150
you can list logical operators:
151151
```
152-
java -jar parser-ng-1.1.5.jar -l help
152+
java -jar parser-ng-1.1.6.jar -l help
153153
Comparing operators: !=, ==, >=, <=, le, ge, lt, gt, <, >
154154
Logical operators: impl, xor, imp, eq, or, and, |, &
155155
As Mathematical parts are using () as brackets, Logical parts must be grouped by [] eg.
@@ -164,40 +164,40 @@ Program can work with stdin, out and err properly. Can work with multiline input
164164
### cmdline examples
165165
Following lines describes, how stdin/arguments are processed, and how different is input/output with `-t` on/off
166166
```
167-
java -jar parser-ng-1.1.5.jar -h
167+
java -jar parser-ng-1.1.6.jar -h
168168
this help
169-
java -jar parser-ng-1.1.5.jar 1+1
169+
java -jar parser-ng-1.1.6.jar 1+1
170170
2.0
171-
java -jar parser-ng-1.1.5.jar "1+1
171+
java -jar parser-ng-1.1.6.jar "1+1
172172
+2+2"
173173
2.0
174174
4.0
175-
java -jar parser-ng-1.1.5.jar -t "1+1
175+
java -jar parser-ng-1.1.6.jar -t "1+1
176176
+2+2"
177177
6.0
178-
java -jar parser-ng-1.1.5.jar -i 1+1
178+
java -jar parser-ng-1.1.6.jar -i 1+1
179179
nothing, will expect manual output, and calculate line by line
180-
java -jar parser-ng-1.1.5.jar -i -t 1+1
180+
java -jar parser-ng-1.1.6.jar -i -t 1+1
181181
nothing, will expect manual output and calcualte it all as one expression
182-
echo 2+2 | java -jar parser-ng-1.1.5.jar 1+1
182+
echo 2+2 | java -jar parser-ng-1.1.6.jar 1+1
183183
2.0
184184
echo "1+1
185-
+2+2 | java -jar parser-ng-1.1.5.jar -i
185+
+2+2 | java -jar parser-ng-1.1.6.jar -i
186186
2.0
187187
4.0
188188
echo "1+1
189-
+2+2 | java -jar parser-ng-1.1.5.jar -i -t
189+
+2+2 | java -jar parser-ng-1.1.6.jar -i -t
190190
6.0
191-
java -cp parser-ng-1.1.5.jar parser.cmd.ParserCmd "1+1
191+
java -cp parser-ng-1.1.6.jar parser.cmd.ParserCmd "1+1
192192
will ask for manual imput en evaluate per line
193193
echo "1+1
194-
+2+2 | java -cp parser-ng-1.1.5.jar parser.cmd.ParserCmd 2>/dev/null
194+
+2+2 | java -cp parser-ng-1.1.6.jar parser.cmd.ParserCmd 2>/dev/null
195195
2.0
196196
4.0
197-
java -cp parser-ng-1.1.5.jar parser.MathExpression "1+1
197+
java -cp parser-ng-1.1.6.jar parser.MathExpression "1+1
198198
+2+2"
199199
6.0
200-
java -cp parser-ng-1.1.5.jar parser.LogicalExpression "true or false"
200+
java -cp parser-ng-1.1.6.jar parser.LogicalExpression "true or false"
201201
true
202202
203203
```
@@ -773,7 +773,7 @@ This would give:
773773

774774
#### ParserNG and eigenvalues
775775

776-
Version 1.1.5 of ParserNG allows you to quickly compute the eigenvalues of a Matrix.
776+
Version 1.1.6 of ParserNG allows you to quickly compute the eigenvalues of a Matrix.
777777

778778
Do:
779779
```Java
@@ -782,7 +782,7 @@ Do:
782782
```
783783
#### ParsrNG and eigenvectors
784784

785-
As of ParserNG 1.1.5 also, eigenvector computations have been added, do:
785+
As of ParserNG 1.1.6 also, eigenvector computations have been added, do:
786786
Do:
787787
```Java
788788
MathExpression expression = new MathExpression("eigvec(@(5,5)(12,1,4,2,9,3,1,8,-5,6,13,9,7,3,5,7,3,5,4,9,13,2,4,8,6))");

‎README.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ Perfect for scientific computing, simulations, real-time systems, education tool
1919
[![Maven Central](https://img.shields.io/maven-central/v/com.github.gbenroscience/parser-ng.svg?label=Maven%20Central)](https://central.sonatype.com/artifact/com.github.gbenroscience/parser-ng)
2020
[![License](https://img.shields.io/github/license/gbenroscience/ParserNG?color=blue)](https://github.com/gbenroscience/ParserNG/blob/master/LICENSE)
2121
![Java](https://img.shields.io/badge/Java-8%2B-orange)
22-
![Latest Version](https://img.shields.io/badge/version-1.1.5-success)
22+
![Latest Version](https://img.shields.io/badge/version-1.1.6-success)
2323

24-
> **1.1.5** introduces **Turbo Scalar** and **Turbo Matrix** compiled paths + massive speed improvements via strength reduction, constant folding, and O(1) frame-based argument passing.
24+
> **1.1.6** introduces **Turbo Scalar** and **Turbo Matrix** compiled paths + massive speed improvements via strength reduction, constant folding, and O(1) frame-based argument passing.
2525
26-
## ✨ Highlights (v1.1.5)
26+
## ✨ Highlights (v1.1.6)
2727

2828
- **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))
2929
- **Turbo Mode** — compile once, evaluate millions of times per second (Scalar + Matrix paths)
@@ -43,12 +43,12 @@ Perfect for scientific computing, simulations, real-time systems, education tool
4343
<dependency>
4444
<groupId>com.github.gbenroscience</groupId>
4545
<artifactId>parser-ng</artifactId>
46-
<version>1.1.5</version>
46+
<version>1.1.6</version>
4747
</dependency>
4848
```
4949

5050
Also available on **Maven Central**:
51-
https://central.sonatype.com/artifact/com.github.gbenroscience/parser-ng/1.1.5
51+
https://central.sonatype.com/artifact/com.github.gbenroscience/parser-ng/1.1.6
5252

5353
## 🧮 Standard Mode — The old way
5454

@@ -263,10 +263,10 @@ System.out.println("turbo: " + evr);
263263
## ⌨️ Command-line tool (REPL)
264264

265265
```bash
266-
java -jar parser-ng-1.1.5.jar "sin(x) + cos(x)"
267-
java -jar parser-ng-1.1.5.jar "eigvalues(R=@(5,5)(...))"
268-
java -jar parser-ng-1.1.5.jar help
269-
java -jar parser-ng-1.1.5.jar -i # interactive mode
266+
java -jar parser-ng-1.1.6.jar "sin(x) + cos(x)"
267+
java -jar parser-ng-1.1.6.jar "eigvalues(R=@(5,5)(...))"
268+
java -jar parser-ng-1.1.6.jar help
269+
java -jar parser-ng-1.1.6.jar -i # interactive mode
270270
```
271271

272272
## 📊 Supported Features at a Glance
@@ -287,8 +287,8 @@ Full list: run `help` or `new MathExpression("help").solve()`.
287287

288288
- [BENCHMARK_RESULTS.md](BENCHMARK_RESULTS.md) — full speed comparisons
289289
- [GRAPHING.md](GRAPHING.md) — plotting on Swing / JavaFX / Android
290-
- [LATEST.md](LATEST.md) — what’s new in 1.1.5
291-
- Javadoc: https://javadoc.io/doc/com.github.gbenroscience/parser-ng/1.1.5
290+
- [LATEST.md](LATEST.md) — what’s new in 1.1.6
291+
- Javadoc: https://javadoc.io/doc/com.github.gbenroscience/parser-ng/1.1.6
292292
- [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
293293

294294
## ❤️ Support the Project
@@ -306,7 +306,7 @@ ParserNG is built with love in my free time. If it helps you:
306306

307307
---
308308

309-
**ParserNG 1.1.5** — faster than the competition, stronger on matrices, and now with real Turbo Scalar + Turbo Matrix compiled power.
309+
**ParserNG 1.1.6** — faster than the competition, stronger on matrices, and now with real Turbo Scalar + Turbo Matrix compiled power.
310310

311311
Happy parsing! 🚀
312312
— **GBENRO JIBOYE** (@gbenroscience)

‎pom.xml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.github.gbenroscience</groupId>
55
<artifactId>parser-ng</artifactId>
6-
<version>1.1.5</version>
6+
<version>1.2.0</version>
77
<packaging>jar</packaging>
88
<!--
99
I started this project 2009 and have been upgrading it since then.
@@ -14,8 +14,8 @@
1414
<name>ParserNG</name>
1515
<description>Rich and Performant, Cross Platform Java Library(100% Java).No native dependencies.
1616
ParserNG is the height of interpreted Math parsing in Java. It is the fastest of all interpreted Java math parsers.
17-
Version 1.1.5 squashes a bug where an over active syntax checker disables nested stats functions e.g. sort(3,1,5,listsum(4,12,18,-9),5,2,31,4) returns a syntax error
18-
crashes
17+
Version 1.2.0 introduces full Matrix Algebra to the Standard Mode allowing the user(howbeit at a slower speed and less memory efficiency than turbo)
18+
It also optimizes the evaluation of power operators in the Standard mode, by using more efficient paths for common powers
1919
</description>
2020
<url>https://github.com/gbenroscience/ParserNG</url>
2121

0 commit comments

Comments
 (0)