Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

71%
+3 −0
Challenges Reverse an ASCII string

Laser, 9 bytes c⌜ps \U# My own language's showcase time! This is a 2D language with an instruction pointer initially pointing to the right. It takes implicit input as an array of characters. ...

posted 3y ago by Quintec‭  ·  edited 3y ago by manassehkatz‭

Answer
#4: Post edited by user avatar manassehkatz‭ · 2020-12-04T13:17:33Z (over 3 years ago)
  • # [Laser](https://github.com/Quintec/LaserLang/blob/master/Laser.java), 9 bytes
  • ```
  • c⌜ps
  • \U#
  • ```
  • My own languages showcase time! This is a 2D language with an instruction pointer initially pointing to the right. It takes implicit input as an array of characters.
  • **Explanation:**
  • ```
  • c⌜p repeat as long as the current stack (input) isn't empty:
  • s pop from the current stack and push onto the next stack (the instruction pointer then loops back around to the c)
  • \U# once the current stack is empty, switch direction, get bounced to the right on the second line, move up a stack, and output it
  • ```
  • # [Laser](https://github.com/Quintec/LaserLang/blob/master/Laser.java), 9 bytes
  • ```
  • c⌜ps
  • \U#
  • ```
  • My own language's showcase time! This is a 2D language with an instruction pointer initially pointing to the right. It takes implicit input as an array of characters.
  • **Explanation:**
  • ```
  • c⌜p repeat as long as the current stack (input) isn't empty:
  • s pop from the current stack and push onto the next stack (the instruction pointer then loops back around to the c)
  • \U# once the current stack is empty, switch direction, get bounced to the right on the second line, move up a stack, and output it
  • ```
#3: Post edited by user avatar Quintec‭ · 2020-11-30T21:35:07Z (over 3 years ago)
  • # [Laser](https://github.com/Quintec/LaserLang/blob/master/Laser.java), 9 bytes
  • ```
  • c⌜ps
  • \U#
  • ```
  • My own languages showcase time! This is a 2D language with an instruction pointer initially pointing to the right.
  • **Explanation:**
  • ```
  • c⌜p repeat as long as the current stack (input) isn't empty:
  • s pop from the current stack and push onto the next stack (the instruction pointer then loops back around to the c)
  • \U# once the current stack is empty, switch direction, get bounced to the right on the second line, move up a stack, and output it
  • ```
  • # [Laser](https://github.com/Quintec/LaserLang/blob/master/Laser.java), 9 bytes
  • ```
  • c⌜ps
  • \U#
  • ```
  • My own languages showcase time! This is a 2D language with an instruction pointer initially pointing to the right. It takes implicit input as an array of characters.
  • **Explanation:**
  • ```
  • c⌜p repeat as long as the current stack (input) isn't empty:
  • s pop from the current stack and push onto the next stack (the instruction pointer then loops back around to the c)
  • \U# once the current stack is empty, switch direction, get bounced to the right on the second line, move up a stack, and output it
  • ```
#2: Post edited by user avatar Quintec‭ · 2020-11-30T21:33:37Z (over 3 years ago)
  • # [Laser](https://github.com/Quintec/LaserLang/blob/master/Laser.java), 9 bytes
  • ```
  • c⌜ps
  • \U#
  • ```
  • My own languages showcase time! This is a 2D language with an instruction pointer initially pointing to the right.
  • **Explanation:**
  • ```
  • c⌜p repeat as long as the current stack (input) isn't empty:
  • s pop from the current stack and push onto the next stack (the instruction pointer then loops back around to the c)
  • \U# once the current stack is empty, switch direction, get bounced to the right on the second line, move up a stack, and output it
  • ```
  • # [Laser](https://github.com/Quintec/LaserLang/blob/master/Laser.java), 9 bytes
  • ```
  • c⌜ps
  • \U#
  • ```
  • My own languages showcase time! This is a 2D language with an instruction pointer initially pointing to the right.
  • **Explanation:**
  • ```
  • c⌜p repeat as long as the current stack (input) isn't empty:
  • s pop from the current stack and push onto the next stack (the instruction pointer then loops back around to the c)
  • \U# once the current stack is empty, switch direction, get bounced to the right on the second line, move up a stack, and output it
  • ```
#1: Initial revision by user avatar Quintec‭ · 2020-11-30T21:33:06Z (over 3 years ago)
# [Laser](https://github.com/Quintec/LaserLang/blob/master/Laser.java), 9 bytes

```
c⌜ps
 \U#
```

My own languages showcase time! This is a 2D language with an instruction pointer initially pointing to the right.

**Explanation:**

```
c⌜p    repeat as long as the current stack (input) isn't empty:
   s   pop from the current stack and push onto the next stack (the instruction pointer then loops back around to the c)
 ⌜
 \U#   once the current stack is empty, switch direction, get bounced to the right on the second line, move up a stack, and output it
```