Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Required fields*

Tips for golfing in 05AB1E

Do you have any tips for ing in 05AB1E, a golfing language created by Adnan?

Your tips should be at least somewhat specific to 05AB1E.

Please post one tip per answer.

Answer*

Draft saved
Draft discarded
Cancel
8
  • 2
    \$\begingroup\$ By the way, since 05AB1E has changed the code page, the maximum base is changed from 214 to 255. \$\endgroup\$ Commented May 17, 2017 at 7:21
  • 1
    \$\begingroup\$ Perhaps something to add to your answer (or modify the generator with), but if less than 10 distinct characters are being used in the ASCII art, you can golf it by two bytes. I.e. your generator gives this 22-byter, but it can be this 20-byter instead. \$\endgroup\$ Commented Oct 29, 2018 at 11:10
  • \$\begingroup\$ @KevinCruijssen the idea was what I was trying to convey, not really claiming that generator is anything good :P. I honestly doubt it even still runs on osabie. I wrote that a looong time ago! \$\endgroup\$ Commented Nov 2, 2018 at 18:53
  • \$\begingroup\$ @MagicOctopusUrn Not sure if it runs in the Elixir rewrite, but it certainly still works in the legacy version. I have already edited the Base-214 to Base-255 about halve a year ago as was mention in Adnan's comment above. Apart from that it works great and I've used it a few times (although golfed it every time further. ;) ). The generation of both the string and number work great! \$\endgroup\$ Commented Nov 3, 2018 at 10:32
  • \$\begingroup\$ Here is an improved version. (Very ugly and fastly written, but it works). It would make your example 108 bytes instead of 113. The improvements I did are: sort the distinct characters on highest occurrence first (unless the highest occurrence is the first character, in which case it'll swap the top two characters) so the compressed integer is as small as possible; using <str><compr_int><int>вèJ instead of your <compr_int><int>BžLR<str>‡; and using " instead of " as string-quotes, so " can be part of the input. \$\endgroup\$ Commented Dec 5, 2018 at 9:22

AltStyle によって変換されたページ (->オリジナル) /