Skip to main content
added 31 characters in body
Source Link
emanresu A
  • 46.2k
  • 5
  • 112
  • 257

Halfwit -A, 15 bytes

>JM?M;J*?f?*M[?JN;k+Jkk;$<5b 

Try It Online!

Halfwit is an experimental golfing language that fits most commands in half a byte. It only uses lists and integers, so the -A flag allows it to output characters.

This approach is pretty simple. The bit between > and < is athe compressed integer 1408073740711211456312062497. 5 is the constant 128, which actually takes up 1.5 bytes because reasons, then b decompresses the integer into base 128.

The naïve approach of using a character list comes out at 19.5 bytes:

>*{>N;>N:>N:>Nk>;{>{+>J;>Nk>f{>N:>N{>{* 

Try It Online!

Each segment between > is a base-14 compressed integer.

Halfwit -A, 15 bytes

>JM?M;J*?f?*M[?JN;k+Jkk;$<5b 

Try It Online!

Halfwit is an experimental golfing language that fits most commands in half a byte. It only uses lists and integers, so the -A flag allows it to output characters.

This approach is pretty simple. The bit between > and < is a compressed integer. 5 is the constant 128, which actually takes up 1.5 bytes because reasons, then b decompresses the integer into base 128.

The naïve approach of using a character list comes out at 19.5 bytes:

>*{>N;>N:>N:>Nk>;{>{+>J;>Nk>f{>N:>N{>{* 

Try It Online!

Each segment between > is a base-14 compressed integer.

Halfwit -A, 15 bytes

>JM?M;J*?f?*M[?JN;k+Jkk;$<5b 

Try It Online!

Halfwit is an experimental golfing language that fits most commands in half a byte. It only uses lists and integers, so the -A flag allows it to output characters.

This approach is pretty simple. The bit between > and < is the compressed integer 1408073740711211456312062497. 5 is the constant 128, which actually takes up 1.5 bytes because reasons, then b decompresses the integer into base 128.

The naïve approach of using a character list comes out at 19.5 bytes:

>*{>N;>N:>N:>Nk>;{>{+>J;>Nk>f{>N:>N{>{* 

Try It Online!

Each segment between > is a base-14 compressed integer.

Source Link
emanresu A
  • 46.2k
  • 5
  • 112
  • 257

Halfwit -A, 15 bytes

>JM?M;J*?f?*M[?JN;k+Jkk;$<5b 

Try It Online!

Halfwit is an experimental golfing language that fits most commands in half a byte. It only uses lists and integers, so the -A flag allows it to output characters.

This approach is pretty simple. The bit between > and < is a compressed integer. 5 is the constant 128, which actually takes up 1.5 bytes because reasons, then b decompresses the integer into base 128.

The naïve approach of using a character list comes out at 19.5 bytes:

>*{>N;>N:>N:>Nk>;{>{+>J;>Nk>f{>N:>N{>{* 

Try It Online!

Each segment between > is a base-14 compressed integer.