Skip to content

Commit

Permalink
fixed qulice issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nlchar committed Aug 20, 2021
1 parent f929634 commit 4676057
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 16 deletions.
5 changes: 0 additions & 5 deletions eo-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,6 @@ SOFTWARE.
<artifactId>transpiler</artifactId>
<version>1.0.4</version>
</dependency>
<dependency>
<groupId>io.github.hse-eolang</groupId>
<artifactId>runtime</artifactId>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
Expand Down
15 changes: 7 additions & 8 deletions eo-maven-plugin/src/main/java/org/eolang/maven/CompileMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
import com.jcabi.xml.XML;
import com.jcabi.xml.XMLDocument;
import io.github.hse_eolang.transpiler.Transpiler;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
Expand All @@ -41,13 +47,6 @@
import org.eolang.parser.Xsline;
import org.slf4j.impl.StaticLoggerBinder;

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;

/**
* Compile.
*
Expand Down Expand Up @@ -136,7 +135,7 @@ public void execute() throws MojoFailureException {
}
switch (this.compiler) {
case CompileMojo.COMPILER_HSE:
Transpiler transpiler = new Transpiler(this.generatedDir);
final Transpiler transpiler = new Transpiler(this.generatedDir);
Files.walk(dir)
.filter(file -> !file.toFile().isDirectory())
.forEach(transpiler::compileHse);
Expand Down
6 changes: 3 additions & 3 deletions sandbox/hse/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
This directory proposes and demonstrates an alternative branch of the EO transpiler based on a new transcompilation model of EO programs to Java source codes.
The old (CQFN) model is depicted [here](https://miro.com/app/board/o9J_lM0FZHk=/).
And the visualization of our model can be found [here](https://miro.com/app/board/o9J_lMMDKrk=/).
Also you might want to read [a draft of our paper](docs/EO%20Programming%20Language%20Transcompilation%20Model%20for%20Java%20Source%20Code%20Generation.pdf) that describes the model.
Also you might want to read [a draft of our paper](https://github.com/HSE-Eolang/Report-materials/raw/main/eorepo/EO%20Programming%20Language%20Transcompilation%20Model%20for%20Java%20Source%20Code%20Generation.pdf) that describes the model.
## How is this transpiler better?
Our transcompilation model has two great advantages:
1. It if much faster than the CQFN original implementation.
2. The output Java code is much easier to read and comprehend. The runtime library is also much more readable and understandable.

You can see the difference in performance of the old and the new models below:
![This model is faster!](docs/faster.png "This model is faster!")
Please, refer to [this Google Sheet](https://docs.google.com/spreadsheets/d/1YsalbO6piExC3begifeNNsaz7PEDsqlV3Xx7c6TGbOU/edit?usp=sharing) for more comparisons.
![This model is faster!](https://raw.githubusercontent.com/HSE-Eolang/Report-materials/main/eorepo/faster.png)
Have a look at this [this Google Sheet](https://docs.google.com/spreadsheets/d/1YsalbO6piExC3begifeNNsaz7PEDsqlV3Xx7c6TGbOU/edit?usp=sharing) for more comparisons.

## Table of Contents
- [What this directory is for?](#what-this-directory-is-for)
Expand Down
Binary file not shown.
Binary file removed sandbox/hse/docs/faster.png
Binary file not shown.

0 comments on commit 4676057

Please sign in to comment.