The Call Center Doctors: 1-877-766-3765

t09: Port Python to JavaScript -- GPT-6.1 Sol vs Claude Opus 5.5

Cartoon: the golden octopus mascotCartoon: the orange sun mascot

Rewrite a Python template renderer in JavaScript so it gives exactly the same output.

Opus: 223.5 s. Sol: 1274.3 s. Sol took 5.7 times as long.

Opus (s)Sol (s)

  1. 223.51274.3

Hidden tests: Opus 300 of 300, Sol 300 of 300.

Blind judge pick: Sol (clear).

Sol needed 1 review round. After it: 300 of 300 hidden tests, and the judge said yes.

The judge failed Sol's first try here for treating 0.0 as true. The Python original does the same, and Sol passed all 300 hidden checks, so we think the judge was wrong.

Why the judge picked

"Solution B [Opus] relies on a JSON.parse reviver feature (`context.source`) that was only introduced in Node 21, meaning it loses integer/float fidelity on Node 20."

The judge on Opus

"An exceptionally thorough and accurate port that meticulously handles Python-specific quirks and edge cases."

The judge on Sol

"An incredibly thorough port that perfectly replicates Python's Unicode and float formatting, but contains a critical flaw in the truthiness evaluation of 0.0."