Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Code Golf

Return to Answer

added 3 characters in body
Source Link
mousetail
  • 14.4k
  • 1
  • 41
  • 90

###Hexdump of code

Hexdump of code

###Whitespace assembly code:

Whitespace assembly code:

Remarks:

###Remarks: II had to write a program just to calculate that adding 107 gives the optimal golf for the sentence. Since the bytesize that an integer takes in the code changes. : 4+int(abs(log2($n)))
The code will still run without the "e:" label & exit part on whitespace.kauaveel.ee. But that could make the whitespace code invalid on other whitespace compilers. So those bytes weren't golfed out from the solution.

###Hexdump of code

###Whitespace assembly code:

###Remarks: I had to write a program just to calculate that adding 107 gives the optimal golf for the sentence. Since the bytesize that an integer takes in the code changes. : 4+int(abs(log2($n)))
The code will still run without the "e:" label & exit part on whitespace.kauaveel.ee. But that could make the whitespace code invalid on other whitespace compilers. So those bytes weren't golfed out from the solution.

Hexdump of code

Whitespace assembly code:

Remarks:

I had to write a program just to calculate that adding 107 gives the optimal golf for the sentence. Since the bytesize that an integer takes in the code changes. : 4+int(abs(log2($n)))
The code will still run without the "e:" label & exit part on whitespace.kauaveel.ee. But that could make the whitespace code invalid on other whitespace compilers. So those bytes weren't golfed out from the solution.

Try it online!

###Hexdump of code

Try it online!

###Hexdump of code

Try it online!

###Hexdump of code

Try it online!

Added the "exit by error" version from @KevinCruijssen
Source Link
LukStorms
  • 1.9k
  • 1
  • 12
  • 12

It Should Be Noted That

As Kevin Cruijssen pointed out in the comments, by allowing an "exit by error" as per meta, the Whitespace can be golfcoded more to 126 characters.

..>>..>.>.;
..>>>>;
...>;
...>>>;
...>..;
..>>.>..;
..>>..>.>>;
..>>>>>>>;
...>..;
...>;
.;
...>>>.;
..>>...>>;
;
..;
...>>.>.>>;
>...>;
..;
.;
;

Assembly:

push -74
push -7
push 1
push 7
push 4
push -20
push -75
push -63
push 4
push 1
dup
push -6
push -35
label_0:
push 107
add 
printc
jmp label_0

It Should Be Noted That

As Kevin Cruijssen pointed out in the comments, by allowing an "exit by error" as per meta, the Whitespace can be golfcoded more to 126 characters.

..>>..>.>.;
..>>>>;
...>;
...>>>;
...>..;
..>>.>..;
..>>..>.>>;
..>>>>>>>;
...>..;
...>;
.;
...>>>.;
..>>...>>;
;
..;
...>>.>.>>;
>...>;
..;
.;
;

Assembly:

push -74
push -7
push 1
push 7
push 4
push -20
push -75
push -63
push 4
push 1
dup
push -6
push -35
label_0:
push 107
add 
printc
jmp label_0
not sure why anyone would even care about a hexdump. But the previous dump missed a hex.
Source Link
LukStorms
  • 1.9k
  • 1
  • 12
  • 12
Loading
Loading
corrections
Source Link
LukStorms
  • 1.9k
  • 1
  • 12
  • 12
Loading
added 144 characters in body
Source Link
LukStorms
  • 1.9k
  • 1
  • 12
  • 12
Loading
should be the most golfed code that runs without an error
Source Link
LukStorms
  • 1.9k
  • 1
  • 12
  • 12
Loading
added 145 characters in body
Source Link
LukStorms
  • 1.9k
  • 1
  • 12
  • 12
Loading
added 1 character in body
Source Link
LukStorms
  • 1.9k
  • 1
  • 12
  • 12
Loading
more details
Source Link
LukStorms
  • 1.9k
  • 1
  • 12
  • 12
Loading
added link
Source Link
LukStorms
  • 1.9k
  • 1
  • 12
  • 12
Loading
deleted 3 characters in body
Source Link
LukStorms
  • 1.9k
  • 1
  • 12
  • 12
Loading
deleted 43 characters in body
Source Link
LukStorms
  • 1.9k
  • 1
  • 12
  • 12
Loading
added 13 characters in body
Source Link
LukStorms
  • 1.9k
  • 1
  • 12
  • 12
Loading
deleted 3 characters in body
Source Link
LukStorms
  • 1.9k
  • 1
  • 12
  • 12
Loading
Source Link
LukStorms
  • 1.9k
  • 1
  • 12
  • 12
Loading

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