https://github.com/objectionary/dedup
Deduplication of Objects in EO Programs
https://github.com/objectionary/dedup
eolang oop optimization
Last synced: 4 months ago
JSON representation
Deduplication of Objects in EO Programs
- Host: GitHub
- URL: https://github.com/objectionary/dedup
- Owner: objectionary
- License: mit
- Created: 2022-10-30T04:28:02.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T08:29:05.000Z (over 1 year ago)
- Last Synced: 2025-01-11T11:19:30.364Z (6 months ago)
- Topics: eolang, oop, optimization
- Homepage: https://www.eolang.org
- Size: 5.86 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://www.elegantobjects.org)
[](http://www.rultor.com/p/objectionary/dedup)
[](https://www.jetbrains.com/idea/)[](https://github.com/objectionary/dedup/actions/workflows/mvn.yml)
[](http://www.0pdd.com/p?name=objectionary/dedup)
[](https://codecov.io/gh/objectionary/dedup)
[](https://maven-badges.herokuapp.com/maven-central/org.eolang/dedup)
[](https://hitsofcode.com/view/github/objectionary/dedup)

[](https://github.com/objectionary/dedup/blob/master/LICENSE.txt)It is a command-line tool that takes a directory with XMIR files and creates a new directory with modified XMIR files: two or more objects that are semantically equivalent are replaced with a single object.
Consider the following EO program:
```
while.
x
[i]
stdout > @
"Hello!\n"
if.
t.lt 0
[]
stdout > @
"Hello!\n"
nop
```This code may be modified as such:
```
[i] > a
stdout > @
"Hello!\n"
while.
x
a
if.
t.lt 0
a
nop
```## How to Contribute
Fork repository, make changes, send us a pull request.
We will review your changes and apply them to the `master` branch shortly,
provided they don't violate our quality standards. To avoid frustration,
before sending us your pull request please run full Maven build:```bash
$ mvn clean install -Pqulice
```You will need Maven 3.3+ and Java 8+.