Draft:Stuck (programming language)

Stuck is a stack-based esoteric programming language designed to be used in Code Golf. It was initially developed in Python by a user known as "Shebang" on the Code Golf SE website, who took inspiration from the CJam and GolfScript coding languages. The most notable feature of the Stuck programming language is it's default behavior to print "Hello, World!" if an empty file is run (representing it's primary use in Code Golf).

Syntax edit

Due to its usage in Code Golf, the default behavior of any written code is to be printed to the console, allowing range-based foreach loops over pre-specified values, including prime numbers, digits of pi, and tetrahedral numbers. Additionally, Stuck incorporates the functionality of Python by allowing users to write simple code (including a limited number of functions) in Python itself, which is then easily translated into Stuck.[1]

Code to display: edit

"Hello World!" (apart from an empty file)

"Hello World!"

The First 100 Prime Numbers[2]

100R"_v;0?":U

The First 10 Tetrahedral Numbers

5R"__1+;2+Π6/p":

Documentation and Upkeep edit

As of 2023, the only website where Stuck may be downloaded is GitHub. The initial commit to the project was by a user known as Kade Robertson on August 10th, 2015, but the project continued to be developed by Robertson and other users "shebang-sl" and "kirbyfan64" until 2018, when the project's open source license was created.[3] Since then, there has been no update in the documentation of the library, the code itself, nor any further information released by the developers.

References edit

  1. ^ "Stuck Programming Language". stuck.readthedocs.io. Retrieved 2023-12-04.
  2. ^ "Stuck - Esolang". esolangs.org. Retrieved 2023-12-04.
  3. ^ Kade (2021-01-15), Stuck, retrieved 2023-12-04