Skip to main content
deleted 12 characters in body
Source Link
randomra
  • 20.9k
  • 4
  • 48
  • 113

><> (Fish), 5 * 10 = 50

Empty block

   \   !9 
4n;    n/ 
1n;\      
       \  
0n;n7\\\  

Solid block

   \; n8/ 
     /!/!v
     \  ;6
3n;\ ! /nn
2n;n5<  8;

This code contains no logic or arithmetic only uses static redirections of ><>'s 2D instruction pointer (IP) with 'mirrors' (/ and \) and two 'arrows' (< and v). The only other flow-controller is the 'trampoline' (!) which jumps through the next character.

The IP starts from the top left corner heading East. After some redirections it reaches a number it is pushed onto the stack and printed out with n and the program terminates with ;.

The structure of the program flow

A block 'recognizes' the current state of the program from the fact that which point the IP came in and based on the state it decides which direction should it to let out the pointer (which block should be executed next) and in which exact position the pointer should left (which will be the new state). Of course the blocks don't do any logic all this behavior comes from the redirectors.

><> (Fish), 5 * 10 = 50

Empty block

   \   !9 
4n;    n/ 
1n;\      
       \  
0n;n7\\\  

Solid block

   \; n8/ 
     /!/!v
     \  ;6
3n;\ ! /nn
2n;n5<  8;

This code contains no logic or arithmetic only uses static redirections of ><>'s 2D instruction pointer (IP) with 'mirrors' (/ and \) and two 'arrows' (< and v). The only other flow-controller is the 'trampoline' (!) which jumps through the next character.

The IP starts from the top left corner heading East. After some redirections it reaches a number it is pushed onto the stack and printed out with n and the program terminates with ;.

The structure of the program

A block 'recognizes' the current state of the program from the fact that which point the IP came in and based on the state it decides which direction should it to let out the pointer (which block should be executed next) and in which exact position the pointer should left (which will be the new state). Of course the blocks don't do any logic all this behavior comes from the redirectors.

><> (Fish), 5 * 10 = 50

Empty block

   \   !9 
4n;    n/ 
1n;\      
       \  
0n;n7\\\  

Solid block

   \; n8/ 
     /!/!v
     \  ;6
3n;\ ! /nn
2n;n5<  8;

This code contains no logic or arithmetic only uses static redirections of ><>'s 2D instruction pointer (IP) with 'mirrors' (/ and \) and two 'arrows' (< and v). The only other flow-controller is the 'trampoline' (!) which jumps through the next character.

The IP starts from the top left corner heading East. After some redirections it reaches a number it is pushed onto the stack and printed out with n and the program terminates with ;.

The program flow

A block 'recognizes' the current state of the program from the fact that which point the IP came in and based on the state it decides which direction should it to let out the pointer (which block should be executed next) and in which exact position the pointer should left (which will be the new state). Of course the blocks don't do any logic all this behavior comes from the redirectors.

Source Link
randomra
  • 20.9k
  • 4
  • 48
  • 113

><> (Fish), 5 * 10 = 50

Empty block

   \   !9 
4n;    n/ 
1n;\      
       \  
0n;n7\\\  

Solid block

   \; n8/ 
     /!/!v
     \  ;6
3n;\ ! /nn
2n;n5<  8;

This code contains no logic or arithmetic only uses static redirections of ><>'s 2D instruction pointer (IP) with 'mirrors' (/ and \) and two 'arrows' (< and v). The only other flow-controller is the 'trampoline' (!) which jumps through the next character.

The IP starts from the top left corner heading East. After some redirections it reaches a number it is pushed onto the stack and printed out with n and the program terminates with ;.

The structure of the program

A block 'recognizes' the current state of the program from the fact that which point the IP came in and based on the state it decides which direction should it to let out the pointer (which block should be executed next) and in which exact position the pointer should left (which will be the new state). Of course the blocks don't do any logic all this behavior comes from the redirectors.