Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What if you use 3bits for each instruction #4

Open
RGFTheCoder opened this issue Dec 11, 2018 · 1 comment
Open

What if you use 3bits for each instruction #4

RGFTheCoder opened this issue Dec 11, 2018 · 1 comment

Comments

@RGFTheCoder
Copy link

You could probably lower it more in base 6 but
001=[
010=]
011=(
100=)
101=+
110=!

@fasttime
Copy link
Owner

Thanks for your ideas. One limitation is that the generated code needs to be valid JavaScript, meaning that parentheses must be balanced, operators must be in their allowed positions, and so many subsequences like )!, (] o [+] are not usable in any context. Also, certain constructs behave identically: if x is an expression, then (x) and ((x)) are the same. This makes it very hard to distinguish between such expressions with a reasonable overhead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants