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

Switch ." to bijective base. #198

Open
isaacg1 opened this issue Jun 11, 2016 · 9 comments
Open

Switch ." to bijective base. #198

isaacg1 opened this issue Jun 11, 2016 · 9 comments

Comments

@isaacg1
Copy link
Owner

isaacg1 commented Jun 11, 2016

No description provided.

@Maltysen
Copy link
Contributor

What do you mean by bijective base?

@isaacg1
Copy link
Owner Author

isaacg1 commented Jun 12, 2016

@Maltysen
Copy link
Contributor

Would this be a form of compression?

@isaacg1
Copy link
Owner Author

isaacg1 commented Jun 12, 2016

Sorry, I should explain more. ." currently has a bug, where it can't encode anything where the leading character is the lowest character. Bijective numeration would fix this.

@Maltysen
Copy link
Contributor

oh, I see what you mean, the things goes to a 0, which disappears when you store it as a number.

@kckennylau
Copy link
Contributor

kckennylau commented Jun 13, 2016

Looks like I started this issue. I also provided a compressor and a decompressor.

@andersk
Copy link
Contributor

andersk commented Jun 29, 2016

What happens if the compressed string includes " or a carriage return (#186)? We probably want to exclude those bytes and use base-254.

By the way, last month I came up with a neat alternative to bijective numeration that’s way more golfable.

@DonaldTsang
Copy link

@andersk
Copy link
Contributor

andersk commented Jul 9, 2017

@DonaldTsang I don’t see how negative bases help here; they need a nonzero leading digit the same way positive bases do.

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

5 participants