From bfe9d3c4766e890f629881b4513611701c4d6fe5 Mon Sep 17 00:00:00 2001 From: "D.E. Akers" <0x0dea@gmail.com> Date: Sun, 16 Aug 2015 21:42:38 -0400 Subject: [PATCH] Improve Whitespace [The disassembly of the current program](https://gist.github.com/0x0dea/f68d381ed844f85fa2bd) clearly indicates that it was generated by a machine, which is, I think, not in the spirit of the project. This patch replaces the existing program with a more idiomatic one which, in addition to being smaller and faster, masquerades as a sequence of assembly instructions while remaining an executable Whitespace program. --- w/whitespace.ws | 131 +++++++++--------------------------------------- 1 file changed, 23 insertions(+), 108 deletions(-) diff --git a/w/whitespace.ws b/w/whitespace.ws index 26e3e161..cdc68a33 100644 --- a/w/whitespace.ws +++ b/w/whitespace.ws @@ -1,111 +1,26 @@ -Say hello. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +push 0 +push 10 +push 33 +push 100 +push 108 +push 114 +push 111 +push 119 +push 32 +push 44 +copy 3 +copy 6 +dup +push 101 +push 72 - - - +label 0 +outchar +dup +push 0 +swap +sub +jn 0 +exit - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -