Skip to content

Commit

Permalink
Release 2024-09-10
Browse files Browse the repository at this point in the history
  • Loading branch information
cardillan committed Sep 10, 2024
1 parent 298486e commit af6b756
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 9 deletions.
17 changes: 16 additions & 1 deletion CHANGELOG.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,27 @@

All notable changes to this project will be documented in this file.

## Unreleased
## 2024-09-10

### Fixed

* Fixed wrong expression handling in loops by Data Flow Optimizer
([issue #131](https://github.com/cardillan/mindcode/issues/131)).
* Fixed Data Flow Optimizer not removing some superfluous variables when using `case` expressions
([issue #133](https://github.com/cardillan/mindcode/issues/133)).
* Fixed Data Flow Optimizer incorrectly applying common subexpression optimization in some cases
([issue #133](https://github.com/cardillan/mindcode/issues/133)).

### Added

* Added support for specifying processor code (both Mindcode and mlog) as a concatenation of multiple code snippets
from various sources (string literal, string constant or external file).
* Added new Mandelbrot Generator schematics example.

### Miscellaneous

* Starting from this release, releases will be [published in GitHub](https://github.com/cardillan/mindcode/releases)
including the Mindcode compiler provided as a `.jar` (binary) file.

## 2024-03-12

Expand Down
27 changes: 20 additions & 7 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ Mindcode focuses of the following priorities:
and limited instruction space of Mindustry processors.
* Employing various [optimizations](doc/syntax/SYNTAX-6-OPTIMIZATIONS.markdown) to produce efficient code.

> [!NOTE]
> Please have a look at a poll about introducing compulsory semicolons to the Mindcode syntax
> [here](https://github.com/cardillan/mindcode/discussions/120).
**Schemacode** is a specialized definition language designed for creating a complete Mindustry schematic as a text
file. [Schematics builder](doc/syntax/SCHEMACODE.markdown) can be used to turn these definition files directly into
Mindustry schematics, either as a binary `.msch` file, or as a text. Processors can be included in these schematics,
Expand All @@ -39,9 +35,26 @@ then press the **Compile** button. The _Mindustry Logic_ text area will contain
Copy the compiled version. Back in Mindustry, edit your processor, then use the **Edit** button in the Logic UI.
Select **Import from Clipboard**. Mindustry is now ready to execute your code.

It is also possible to build Mindcode locally (see the [Development](#development) section), and use the
[command line tool](doc/syntax/TOOLS-CMDLINE.markdown) to compile your files, even copying the compiled code into
the clipboard automatically if desired.
It is also possible use the [command line tool](doc/syntax/TOOLS-CMDLINE.markdown) to compile your files, even copying
the compiled code into the clipboard automatically if desired. The command line compiler can be set up in the
following way:

1. Download and install [Eclipse Temurin version 17](https://adoptium.net/temurin/releases/?version=17).
2. Download `mindcode.jar` from the [releases page](https://github.com/cardillan/mindcode/releases) and place it in
a directory on your computer.
3. To run the command line compiler, use `java.exe --enable-preview -jar mindcode.jar <arguments>`. Provide full
paths to the `java.exe` file from the Eclipse Temurin installation created in the first step, and to the
`mindcode.jar` file downloaded in the second step. `<arguments>` are the command line arguments passed to the
mindcode compiler.

For example, the following command compiles `program.mnd` into `program.mlog` and copies the resulting mlog code
into the clipboard:

```
java.exe --enable-preview -jar mindcode.jar cm program.mnd program.mlog -c
```

Documentation for the command line tool is available [here](doc/syntax/TOOLS-CMDLINE.markdown).

### Mindcode Syntax

Expand Down
2 changes: 1 addition & 1 deletion webapp/src/main/resources/templates/common.ftlh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<#macro footer>
<footer class="mt-8 text-xs text-center border border-t-2 border-l-0 border-r-0 border-b-0 border-gray-700">
<div class="mt-4 flex justify-between">
<div><strong>2024-03-12</strong></div>
<div><strong>2024-09-10</strong></div>
<div><strong>PRIVACY POLICY</strong>: This website does not track its users. The Mindcode and schematics you submit for compilation is kept for later analysis.
No other information is kept about you or your actions on the site.</div>
<div>Created by François (<a class="underline text-blue-500" href="https://github.com/francois">GitHub</a>,
Expand Down

0 comments on commit af6b756

Please sign in to comment.