17
\$\begingroup\$

What general tips do you have for golfing in Starry? I'm looking for ideas which can be applied to code-golf problems and which are also at least somewhat specific to Starry (e.g. "remove comments" is not an answer).

Please post one tip per answer.

\$\endgroup\$
2
  • 3
    \$\begingroup\$ Related. \$\endgroup\$ Commented Oct 18, 2016 at 21:42
  • \$\begingroup\$ There's a book on esolangs -- how interesting! \$\endgroup\$ Commented Oct 18, 2016 at 21:56

1 Answer 1

2
\$\begingroup\$

Use dup and add for large numbers

If you need to produce a big but reasonable number which is a multiple of 2 (and in some cases, even not a multiple), you can push half the number and end with  +* (dup and add) instead of pushing the whole number. The threshold for this is 8 and above.

As mentioned, sometimes you can double, then subtract one (threshold 27), and with multiples of higher 2 powers it can be repeated to gain greater numbers.

Try it online!

\$\endgroup\$

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.