Skip to content

Commit

Permalink
bumped to new version
Browse files Browse the repository at this point in the history
  • Loading branch information
jlangch committed Sep 6, 2022
1 parent 93d4a53 commit 01627fb
Show file tree
Hide file tree
Showing 18 changed files with 230 additions and 147 deletions.
4 changes: 2 additions & 2 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ and this project adheres to



## [1.10.22] - 2022-09-xx
## [1.10.22] - 2022-09-06

### Improved

- pre-compiled scripts to reach the performance of _Venice_ V1.10.0
- pre-compiled scripts to reach the performance level of _Venice_ V1.10.0
scripts again.

### Fixed
Expand Down
311 changes: 197 additions & 114 deletions cheatsheet.html

Large diffs are not rendered by default.

Binary file modified cheatsheet.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions doc/maven-central.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions doc/readme/build-dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

```groovy
dependencies {
compile 'com.github.jlangch:venice:1.10.21'
compile 'com.github.jlangch:venice:1.10.22'
}
```

Expand All @@ -16,7 +16,7 @@ dependencies {
<dependency>
<groupId>com.github.jlangch</groupId>
<artifactId>venice</artifactId>
<version>1.10.21</version>
<version>1.10.22</version>
</dependency>
</dependencies>
```
14 changes: 7 additions & 7 deletions doc/readme/execute-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
### Run a script

```text
foo> java -jar venice-1.10.21.jar -script "(+ 1 1)"
foo> java -jar venice-1.10.22.jar -script "(+ 1 1)"
=> 2
```

Expand All @@ -26,7 +26,7 @@ File "script.venice":
run:

```text
foo> java -jar venice-1.10.21.jar -file script.venice
foo> java -jar venice-1.10.22.jar -file script.venice
=> 19.634954084936208
```

Expand All @@ -45,7 +45,7 @@ File "script.venice":
run:

```text
foo> java -jar venice-1.10.21.jar -file script.venice 3
foo> java -jar venice-1.10.22.jar -file script.venice 3
=> 4
```

Expand Down Expand Up @@ -87,7 +87,7 @@ Files:
/users/foo/venice
├── script.venice
├── bin
│ └── venice-1.10.21.jar
│ └── venice-1.10.22.jar
└── scripts
└── test.venice
```
Expand All @@ -96,7 +96,7 @@ Run:

```text
foo> cd /users/foo/venice
foo> java -jar bin/venice-1.10.21.jar -file script.venice -loadpath "/users/foo/venice/scripts"
foo> java -jar bin/venice-1.10.22.jar -file script.venice -loadpath "/users/foo/venice/scripts"
```

The script loads "test.venice" from "/users/foo/venice/scripts/test.venice".
Expand All @@ -116,15 +116,15 @@ and works for executing scripts or files.
Run a script without upfront macro expansion:

```text
foo> java -jar venice-1.10.21.jar -script "(time (reduce + (map (fn [x] (cond (< x 0) -1 (> x 0) 1 :else 0)) (range -10000 10001))))"
foo> java -jar venice-1.10.22.jar -script "(time (reduce + (map (fn [x] (cond (< x 0) -1 (> x 0) 1 :else 0)) (range -10000 10001))))"
Elapsed time: 271,66 ms
=> 0
```

Run a scrip with upfront macro expansion:

```text
foo> java -jar venice-1.10.21.jar -macroexpand -script "(time (reduce + (map (fn [x] (cond (< x 0) -1 (> x 0) 1 :else 0)) (range -10000 10001))))"
foo> java -jar venice-1.10.22.jar -macroexpand -script "(time (reduce + (map (fn [x] (cond (< x 0) -1 (> x 0) 1 :else 0)) (range -10000 10001))))"
Elapsed time: 26,35 ms
=> 0
```
6 changes: 3 additions & 3 deletions doc/readme/multi-file-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ foo
├── billing.zip
└── libs
├── ...
└── venice-1.10.21.jar
└── venice-1.10.22.jar
```

It can be started from a terminal with

```shell
mars$ cd ~/foo
mars$ java -jar libs/venice-1.10.21.jar -app billing.zip
mars$ java -jar libs/venice-1.10.22.jar -app billing.zip
```

or
Expand Down Expand Up @@ -174,7 +174,7 @@ The billing application JAR may be deployed to a file structure like
foo
└── libs
├── billing.jar
├── venice-1.10.21.jar
├── venice-1.10.22.jar
└── openpdf-1.3.22.jar
```

Expand Down
2 changes: 1 addition & 1 deletion doc/readme/repl.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
A Venice REPL (Read-Eval-Print Loop) is a programming environment which enables
you to run and test code interactively.

Start the REPL with `java -jar venice-1.10.21.jar -colors`
Start the REPL with `java -jar venice-1.10.22.jar -colors`

```text
venice> (+ 1 1)
Expand Down
2 changes: 1 addition & 1 deletion doc/readme/shell-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ A larger example that zips Tomcat log files
;; -------------------------------------------------------------------------------
;; Zips the last month's Tomcat log files
;;
;; > java -jar venice-1.10.21.jar -file zip-tomcat-logs.venice ./logs
;; > java -jar venice-1.10.22.jar -file zip-tomcat-logs.venice ./logs
;; -------------------------------------------------------------------------------
(do
(defn tomcat-log-file-filter [prefix year month]
Expand Down
12 changes: 6 additions & 6 deletions doc/readme/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The Venice JAR published to Maven is compiled with Java 8. Nevertheless Venice i

### 2. Get the Venice JAR file

Download Venice from Maven: [Venice](https://search.maven.org/artifact/com.github.jlangch/venice/1.10.21/jar)
Download Venice from Maven: [Venice](https://search.maven.org/artifact/com.github.jlangch/venice/1.10.22/jar)


### 3. Start a Venice REPL (Read-Eval-Print Loop)
Expand All @@ -36,13 +36,13 @@ Open a terminal, move to the directory the Venice JAR is located, and start
a REPL:

```text
foo> java -jar venice-1.10.21.jar -colors
foo> java -jar venice-1.10.22.jar -colors
```

The REPL prompts for input:

```text
Venice REPL: V1.10.21
Venice REPL: V1.10.22
Loading REPL config from repl.json...
Type '!' for help.
venice>
Expand All @@ -66,13 +66,13 @@ Open a terminal, move to the directory the Venice and the 'jansi' JAR is located
and start a REPL:

```text
foo> java -cp venice-1.10.21.jar;jansi-2.4.0.jar com.github.jlangch.venice.Launcher -colors-darkmode
foo> java -cp venice-1.10.22.jar;jansi-2.4.0.jar com.github.jlangch.venice.Launcher -colors-darkmode
```

The REPL prompts for input:

```text
Venice REPL: V1.10.21
Venice REPL: V1.10.22
Loading REPL config from repl.json...
Type '!' for help.
venice>
Expand Down Expand Up @@ -101,7 +101,7 @@ Open a terminal, move to the directory the Venice JAR is located, and start
the REPL in setup mode:

```text
foo> java -jar venice-1.10.21.jar -setup -colors
foo> java -jar venice-1.10.22.jar -setup -colors
```

For a REPL run in a darkmode terminal use the option `-colors-darkmode` instead
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=1.10.22-SNAPSHOT
version=1.10.22
2 changes: 1 addition & 1 deletion src/main/java/com/github/jlangch/venice/Venice.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public Object eval(final IPreCompiled precompiled) {
/**
* Evaluates a pre-compiled script with parameters.
*
* @param precompiled A mandatory pre-compiled script
* @param precompiledScript A mandatory pre-compiled script
* @param params Optional parameters
* @return the result
*/
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/license.txt
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
VENICE SUBCOMPONENTS
-----------------------------------------------------------------------

The Venice Release 1.10.21 includes a number of subcomponents with
The Venice Release 1.10.22 includes a number of subcomponents with
separate copyright notices and license terms. The product that includes
this file does not necessarily use all the open source subcomponents
referred to below. Your use of the source code for these subcomponents
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/notice.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Venice Release 1.10.21
Venice Release 1.10.22

Copyright (c) 2017-2022 Venice

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/com/github/jlangch/venice/app.venice
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
to "billing.venice".

The app can be run from the command line as:¶
`> java -jar venice-1.10.21.jar -app billing.zip`¶
`> java -jar venice-1.10.22.jar -app billing.zip`¶
Venice reads the archive and loads the archive's main file.

Or with additional Java libraries (all JARs in 'libs' dir):¶
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ public class Example {
**Precompiled

import com.github.jlangch.venice.Venice;
import com.github.jlangch.venice.PreCompiled;
import com.github.jlangch.venice.IPreCompiled;

public class Example {
public static void main(String[] args) {
Venice venice = new Venice();

PreCompiled precompiled = venice.precompile("example", "(+ 1 x)");
IPreCompiled precompiled = venice.precompile("example", "(+ 1 x)");

for(int ii=0; ii<100; ii++) {
venice.eval(precompiled, Parameters.of("x", ii));
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/com/github/jlangch/venice/repl.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ REM # --home
REM # |
REM # +-- libs
REM # | +-- repl.json
REM # | +-- venice-1.10.21.jar
REM # | +-- venice-1.10.22.jar
REM # |
REM # +-- scripts
REM # | +-- script-1.venice
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/com/github/jlangch/venice/repl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# |
# +-- libs
# | +-- repl.json
# | +-- venice-1.10.21.jar
# | +-- venice-1.10.22.jar
# |
# +-- scripts
# | +-- script-1.venice
Expand Down

0 comments on commit 01627fb

Please sign in to comment.