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

Alternative coding base8 #6

Open
kamil-kielczewski opened this issue Sep 2, 2020 · 2 comments
Open

Alternative coding base8 #6

kamil-kielczewski opened this issue Sep 2, 2020 · 2 comments

Comments

@kamil-kielczewski
Copy link
Owner

kamil-kielczewski commented Sep 2, 2020

Instead of #4 approach we can try to use following modification - we assume that each character have 4-digit representation (we use padding 0 - details here)

So we can change this '\141\154\145\162\164\50\61\51' to this '\141\154\145\162\164\050\061\051' -and now we don't need backslashes at all (in base8 code represenation now we use 8 digit - not 9 like before)

eval(eval("'\\"+ "141154145162164050061051".match(/.../g).join("\\")+"'"))

We need to perform similar investigation like for #4.

Bootstrap: we can use above approach using current small-jsfuck algorithm but whitch toString(8) and parseInt(x,8

@kamil-kielczewski
Copy link
Owner Author

kamil-kielczewski commented Sep 2, 2020

I use this tool to analyse.

After some test I see that base8 jsf is about 15-20% smaller than base4. So it is worth to use this Idea - at lest at some point in case when base8 decoder will be bigger than base4 we can switch that decoders at some point - when source code is so big that we have profit of using base8. (in case when base4 will be bigger than base8 decoder - we can drop base4 at all)

@kamil-kielczewski
Copy link
Owner Author

kamil-kielczewski commented Sep 2, 2020

Research on base8 decoder will be done here

06.09.2020 - research done. Tool in above link have beta wersion of compiler which include dynamic deconverter based on textStatistics. Tool is written in that way that makes requirements of task #3

@kamil-kielczewski kamil-kielczewski changed the title Alternative coding 2 Alternative coding base8 Sep 3, 2020
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

1 participant