meiao / esolangs Goto Github PK
View Code? Open in Web Editor NEWA collection of interpreters for esoteric languages.
License: GNU General Public License v3.0
A collection of interpreters for esoteric languages.
License: GNU General Public License v3.0
Adding values to some instruction will allow multiple commands to be executed in a single pass.
Eg. instead of incrementing the data 5 times, the data can be increased by 5.
This will also allow for some instructions to be removed. As subtraction can be made by adding a negative number.
This feature by itself will make no difference in the code execution, but sets up for other optimizations.
The noop instruction will be temporarily added during optimization and should be later be removed.
The final bytecode after all optimizations should not contain any noops, but the VM should handle them gracefully, in case any is left.
Removing noops will require that the start and end of blocks' values be changed.
The function shall receive the optimized IR instructions in a vector (source).
Keep a counter for the noops and create another vector for the new instruction list.
Then for each instruction in the source vector, if it is a:
To decrease the number of instructions when multiple similar commands are grouped, these can be grouped as in the example:
For example:
IncDataPointer(1)
IncDataPointer(1)
IncDataPointer(1)
IncDataPointer(-1)
can become:
IncDataPointer(2)
Noop
Noop
Noop
This optimization can be done to IncDataPointer and IncData. But all the commands must be of the same type and must be sequentially in the code.
The Noops are added so the blocks' start_block_instr and end_block_instr are not changed by this optimization.
They shall be removed by a later optimization.
Note:
IncDataPointer(1)
IncDataPointer(-1)
should become:
Noop
Noop
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.