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

Return to Answer

added 153 characters in body
Source Link
Jonathan Allan
  • 115.4k
  • 8
  • 68
  • 293

Jelly, 1 byte

V

Quite a few Jelly one byters - this is one - it evaluates the left argument which, when nothing is provided as input, defaults to zero which in turn evaluates to zero and the result is implicitly printed, a 0.

Try it online!

In fact, of the 256 bytes in the code-page there are only 9495 that do not currently produce a different one byte output within the specified range when run as a full programprogram; these are (as code-page characters in byte order):

¡¢£¦©1⁄2¿€ÇÑÞßçıȷñ÷þ"#&',-./0123456789:;?@IMRTVZ\`dmpstxyz{}~°3459ƓƈɠḶṬḊĖİL·ṄȮṖṘẆẊṃọṣṭḃḟḣl·ṁṗṡẋż’"~°3459ƓƈɠḶỌṬḊĖİL·ṄȮṖṘẆẊṃọṣṭḃḟḣl·ṁṗṡẋż’"

Notes:

  • Most of the 1-byte programs print a 0 (no-ops / yielding a list with a single zero in, which prints a 0), most others print a 1 (0=0 and the like)

  • is the one program which does yield a different byte, but one which is out of range as per the specification - it produces the null-byte (casts the 0 to character)

  • 6 produces a space (a literal)

  • 7 produces a line feed (a literal)

  • Some bytes that do work now may not do so in the future - there are a fair few bytes being reserved (I believe) for niladic values which, when assigned, are almost certainly not going to produce one-byte output.

Jelly, 1 byte

V

Quite a few Jelly one byters - this is one - it evaluates the left argument which, when nothing is provided as input, defaults to zero which in turn evaluates to zero and the result is implicitly printed, a 0.

Try it online!

In fact, of the 256 bytes in the code-page there are only 94 that do not currently produce a different one byte output when run as a full program are (as code-page characters in byte order):

¡¢£¦©1⁄2¿€ÇÑÞßçıȷñ÷þ"#&',-./0123456789:;?@IMRTVZ\`dmpstxyz{}~°3459ƓƈɠḶṬḊĖİL·ṄȮṖṘẆẊṃọṣṭḃḟḣl·ṁṗṡẋż’"

Notes:

  • Most of the 1-byte programs print a 0 (no-ops / yielding a list with a single zero in, which prints a 0), most others print a 1 (0=0 and the like)

  • produces the null-byte (casts the 0 to character)

  • 6 produces a space (a literal)

  • 7 produces a line feed (a literal)

  • Some bytes that do work now may not do so in the future - there are a fair few bytes being reserved (I believe) for niladic values which, when assigned, are almost certainly not going to produce one-byte output.

Jelly, 1 byte

V

Quite a few Jelly one byters - this is one - it evaluates the left argument which, when nothing is provided as input, defaults to zero which in turn evaluates to zero and the result is implicitly printed, a 0.

Try it online!

In fact, of the 256 bytes in the code-page there are only 95 that do not currently produce a different one byte output within the specified range when run as a full program; these are (as code-page characters in byte order):

¡¢£¦©1⁄2¿€ÇÑÞßçıȷñ÷þ"#&',-./0123456789:;?@IMRTVZ\`dmpstxyz{}~°3459ƓƈɠḶỌṬḊĖİL·ṄȮṖṘẆẊṃọṣṭḃḟḣl·ṁṗṡẋż’"

Notes:

  • Most of the 1-byte programs print a 0 (no-ops / yielding a list with a single zero in, which prints a 0), most others print a 1 (0=0 and the like)

  • is the one program which does yield a different byte, but one which is out of range as per the specification - it produces the null-byte (casts the 0 to character)

  • 6 produces a space (a literal)

  • 7 produces a line feed (a literal)

  • Some bytes that do work now may not do so in the future - there are a fair few bytes being reserved (I believe) for niladic values which, when assigned, are almost certainly not going to produce one-byte output.

added 64 characters in body
Source Link
Jonathan Allan
  • 115.4k
  • 8
  • 68
  • 293

Jelly, 1 byte

V

Quite a few Jelly one byters - this is one - it evaluates the left argument, which, when nothing is provided as input, defaults to zero, which in turn evaluates to zero and the result is implicitly printed, a 0.

Try it online!

OthersIn fact, of the 256 bytes in the code-page there are only 94 that do not currently produce a different one byte output when run as a full program are (not exhaustiveas code-page characters in byte order):

¤¬!ABCDEFGH JKL NOPQ S U WXY ¡¢£¦©1⁄2¿€ÇÑÞßçıȷñ÷þ"#&',-./0123456789:;?@IMRTVZ\`dmpstxyz{}~°3459ƓƈɠḶṬḊĖİL·ṄȮṖṘẆẊṃọṣṭḃḟḣl·ṁṗṡẋż’"

Notes:

  • Most of the 1-byte programs print a 0 (no-ops / yielding a list with a single zero in, which prints a 0), most others print a 1 (0=0 and the like)

  • produces the null-byte (casts the 0 to character)

  • 6 produces a space (a literal)

  • 7 produces a line feed (a literal)

  • Some bytes that do work now may not do so in the future - there are a fair few bytes being reserved (I believe) for niladic values which, when assigned, are almost certainly not going to produce one-byte output.

Jelly, 1 byte

V

Quite a few Jelly one byters - this is one - it evaluates the left argument, which when nothing is provided defaults to zero, which evaluates to zero and the result is implicitly printed, a 0.

Try it online!

Others (not exhaustive):

¤¬!ABCDEFGH JKL NOPQ S U WXY 

Jelly, 1 byte

V

Quite a few Jelly one byters - this is one - it evaluates the left argument which, when nothing is provided as input, defaults to zero which in turn evaluates to zero and the result is implicitly printed, a 0.

Try it online!

In fact, of the 256 bytes in the code-page there are only 94 that do not currently produce a different one byte output when run as a full program are (as code-page characters in byte order):

¡¢£¦©1⁄2¿€ÇÑÞßçıȷñ÷þ"#&',-./0123456789:;?@IMRTVZ\`dmpstxyz{}~°3459ƓƈɠḶṬḊĖİL·ṄȮṖṘẆẊṃọṣṭḃḟḣl·ṁṗṡẋż’"

Notes:

  • Most of the 1-byte programs print a 0 (no-ops / yielding a list with a single zero in, which prints a 0), most others print a 1 (0=0 and the like)

  • produces the null-byte (casts the 0 to character)

  • 6 produces a space (a literal)

  • 7 produces a line feed (a literal)

  • Some bytes that do work now may not do so in the future - there are a fair few bytes being reserved (I believe) for niladic values which, when assigned, are almost certainly not going to produce one-byte output.

added 64 characters in body
Source Link
Jonathan Allan
  • 115.4k
  • 8
  • 68
  • 293

Jelly, 1 byte byte

V

Quite a few Jelly one byters - this is one - it evaluates the left argument, which when nothing is provided defaults to zero, which evaluates to zero and the result is implicitly printed, a 0.

Try it online!

Others (not exhaustive):

¬¤¬!ABCDEFGH JKL NOPQ S U WXY 

Jelly, 1 byte

V

Quite a few Jelly one byters - this is one - it evaluates the left argument, which when nothing is provided defaults to zero, which evaluates to zero and the result is implicitly printed, a 0.

Try it online!

Others (not exhaustive):

¬!ABCDEFGH JKL NOPQ S U WXY 

Jelly, 1 byte

V

Quite a few Jelly one byters - this is one - it evaluates the left argument, which when nothing is provided defaults to zero, which evaluates to zero and the result is implicitly printed, a 0.

Try it online!

Others (not exhaustive):

¤¬!ABCDEFGH JKL NOPQ S U WXY 
added 64 characters in body
Source Link
Jonathan Allan
  • 115.4k
  • 8
  • 68
  • 293
Loading
Source Link
Jonathan Allan
  • 115.4k
  • 8
  • 68
  • 293
Loading

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