RLEflakes

From Esolang
Jump to navigation Jump to search

Work In Progress.

RLEflakes is RLE-compressed version of branflakes

Compression method

1. Convert branflakes according to this table:

branflakes|RLEflakes
+         |000
-         |001
>         |010
<         |011
.         |100
,         |101
[         |110
]         |111

2. Put the run length to make one run of 1-32 commands fit into a byte.

Examples

Hello World:

Original:

+[-->-[>>+>-----<<]<--<---]>-.>>>+.>>..+++[.>]<<<<.+++.------.<<-.>>>>+.

Binary dump of RLE-compressed version:

00000000
00000110
00001001
00000010
00000001
00000110
00001010
00000000
00000010
00100001
00001011
00000111
00000011
00001001
00000011
00010001
00000111
00000010
00000001
00000100
00010010
00000000
00000100
00001010