We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

User:Blashyrkh/Golf/Code

From Esolang
Jump to navigation Jump to search

Brainfuck

Kolakoski sequence

80 bytes

Naive but short:

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

84 bytes

Naive but short:

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

176 bytes

Implementation with logarithm memory consumption and o(n) time complexity can be found here: User:Blashyrkh/Kolakoski-brainfuck

Quine

415 bytes

I wrote this one in 2012:

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