Skip to main content
Python is now on TIO
Source Link
Wheat Wizard
  • 100k
  • 22
  • 282
  • 661

Try it online!Try it online!

Most languages can be tested with the test driver above, but 76 languages have to be tested locally (I'll try to get a TIO for python).

  • Reng can be tested to output 19 here.

  • Modular SNUSP can be tested to output 31 here.

  • Incident was verified to test 33 locally.

  • Deadfish~ can be tested to output 48 locally, using this interpreter. Note that Deadfish~ takes the polyglot to be fed on stdin, but and prints a number of >> prompts to standard output, which are n unavoidable consequence of running any Deadfish~ program.

  • Moorhens 2.0 can be tested to output 60 using this interpreter.

  • Surface can be tested to output 66 using this interpreter run using Wine (It probably works on Windows but Windows is not a free software, so it would be forbidden for this challenge (I also don't have it so I can't test it anyway))

  • Python was tested on my machine.

Try it online!

Most languages can be tested with the test driver above, but 7 languages have to be tested locally (I'll try to get a TIO for python).

  • Reng can be tested to output 19 here.

  • Modular SNUSP can be tested to output 31 here.

  • Incident was verified to test 33 locally.

  • Deadfish~ can be tested to output 48 locally, using this interpreter. Note that Deadfish~ takes the polyglot to be fed on stdin, but and prints a number of >> prompts to standard output, which are n unavoidable consequence of running any Deadfish~ program.

  • Moorhens 2.0 can be tested to output 60 using this interpreter.

  • Surface can be tested to output 66 using this interpreter run using Wine (It probably works on Windows but Windows is not a free software, so it would be forbidden for this challenge (I also don't have it so I can't test it anyway))

  • Python was tested on my machine.

Try it online!

Most languages can be tested with the test driver above, but 6 languages have to be tested locally.

  • Reng can be tested to output 19 here.

  • Modular SNUSP can be tested to output 31 here.

  • Incident was verified to test 33 locally.

  • Deadfish~ can be tested to output 48 locally, using this interpreter. Note that Deadfish~ takes the polyglot to be fed on stdin, but and prints a number of >> prompts to standard output, which are n unavoidable consequence of running any Deadfish~ program.

  • Moorhens 2.0 can be tested to output 60 using this interpreter.

  • Surface can be tested to output 66 using this interpreter run using Wine (It probably works on Windows but Windows is not a free software, so it would be forbidden for this challenge (I also don't have it so I can't test it anyway))

deleted 1 character in body
Source Link
Wheat Wizard
  • 100k
  • 22
  • 282
  • 661

Most languages can be tested with the test driver above, but 7 languages have to be tested locally (I'll try to get a TIO for surfacepython).

Most languages can be tested with the test driver above, but 7 languages have to be tested locally (I'll try to get a TIO for surface).

Most languages can be tested with the test driver above, but 7 languages have to be tested locally (I'll try to get a TIO for python).

added 1076 characters in body
Source Link
Wheat Wizard
  • 100k
  • 22
  • 282
  • 661

6768. Python (1.6.1), 1698 bytes

  • Reng can be tested to output 19 here.

  • Modular SNUSP can be tested to output 31 here.

  • Incident was verified to test 33 via manual balancing of tokenslocally.

  • Deadfish~ can be tested to output 48 locally, using this interpreter. Note that Deadfish~ takes the polyglot to be fed on stdin, but and prints a number of >> prompts to standard output, which are n unavoidable consequence of running any Deadfish~ program.

  • Moorhens 2.0 can be tested to output 60 using this interpreter.

  • Surface can be tested to output 66 using this interpreter run using Wine (It probably works on Windows but Windows is not a free software, so it would be forbidden for this challenge (I also don't have it so I can't test it anyway))

  • Python was tested on my machine.

I've forgoneWe already had two versions of python so I thought, why not add a 3rd.

The first thing Python took issue with was "1\x2f2". It parses \x2f2 as one character instead of two separate characters. In order to remedy this I inserted a new space between f and 2. Now Python outputs 13 as if it were Ruby. This meant I wanted to separate it from Ruby and Python 2, making 68 instead of 13.

To do this we rely on python's limited precision, not present in Ruby or Python 2. In ruby or python2:

13<<65>>65

Is just 13, but in python it is 0. We use this to short circuit an explanation for expedienceor causing Python to get a 68 instead of a 13. I will update


Ok so what did I break? Surprisingly not much. When I ran this in TIO the only thing that broke was Brain-Flak Classic.

Brain-Flak Classic

Brain-Flak Classic had a bitproblem with <<>>. This is a stack switch and caused Classic to get caught in a loop. We could remedy this by placing parentheses around 65, this will cause the <<>> to become <<()>> which is a noop.

Prelude

Fixing Brain-Flak broke prelude again. I added a space to counteract the movement caused by fixing Brain-Flak.

67. Python (1.6.1), 1698 bytes

  • Reng can be tested to output 19 here.

  • Modular SNUSP can be tested to output 31 here.

  • Incident was verified to test 33 via manual balancing of tokens.

  • Deadfish~ can be tested to output 48 locally, using this interpreter. Note that Deadfish~ takes the polyglot to be fed on stdin, but and prints a number of >> prompts to standard output, which are n unavoidable consequence of running any Deadfish~ program.

  • Moorhens 2.0 can be tested to output 60 using this interpreter.

  • Surface can be tested to output 66 using this interpreter run using Wine (It probably works on Windows but Windows is not a free software, so it would be forbidden for this challenge (I also don't have it so I can't test it anyway))

  • Python was tested on my machine.

I've forgone an explanation for expedience. I will update in a bit

68. Python (1.6.1), 1698 bytes

  • Reng can be tested to output 19 here.

  • Modular SNUSP can be tested to output 31 here.

  • Incident was verified to test 33 locally.

  • Deadfish~ can be tested to output 48 locally, using this interpreter. Note that Deadfish~ takes the polyglot to be fed on stdin, but and prints a number of >> prompts to standard output, which are n unavoidable consequence of running any Deadfish~ program.

  • Moorhens 2.0 can be tested to output 60 using this interpreter.

  • Surface can be tested to output 66 using this interpreter run using Wine (It probably works on Windows but Windows is not a free software, so it would be forbidden for this challenge (I also don't have it so I can't test it anyway))

  • Python was tested on my machine.

We already had two versions of python so I thought, why not add a 3rd.

The first thing Python took issue with was "1\x2f2". It parses \x2f2 as one character instead of two separate characters. In order to remedy this I inserted a new space between f and 2. Now Python outputs 13 as if it were Ruby. This meant I wanted to separate it from Ruby and Python 2, making 68 instead of 13.

To do this we rely on python's limited precision, not present in Ruby or Python 2. In ruby or python2:

13<<65>>65

Is just 13, but in python it is 0. We use this to short circuit an or causing Python to get a 68 instead of a 13.


Ok so what did I break? Surprisingly not much. When I ran this in TIO the only thing that broke was Brain-Flak Classic.

Brain-Flak Classic

Brain-Flak Classic had a problem with <<>>. This is a stack switch and caused Classic to get caught in a loop. We could remedy this by placing parentheses around 65, this will cause the <<>> to become <<()>> which is a noop.

Prelude

Fixing Brain-Flak broke prelude again. I added a space to counteract the movement caused by fixing Brain-Flak.

fixed VIP score
Source Link
SnoringFrog
  • 1.8k
  • 19
  • 13
Loading
Source Link
Wheat Wizard
  • 100k
  • 22
  • 282
  • 661
Loading