tsani / fuckdown2 Goto Github PK
View Code? Open in Web Editor NEWA just-in-time brainfuck compiler
License: MIT License
A just-in-time brainfuck compiler
License: MIT License
Using MonadFix on free monads doesn't work ๐ข
One strategy could be to use a string-based lookup table for label offsets that is built by first assuming that all labels have offset zero, and then passing back over the structure to fill in the zeroes with the real offsets.
Another strategy could be to implement some kind of forward declaration of labels as a monadic action, e.g.
do
lab <- newLabel -- the label offset is undecided
cmp rax 0
je lab
-- interesting code
label lab -- the current code offset is set as the label offset
This strategy has the benefit of making the labels "anonymous", as in the current formulation. Furthermore, it can be made to be backwards compatible with the backwards-only labelling system that's already in place. (Specifically, the label
function that currently exists can be implemented as newLabel >>= label
in the new model; it suffices to avoid a name collision now between the old label
function and the new one.)
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.