Comment

Comment by notpushkin

Some trivial cases produce... interesting results.

For x in [−1.79e308, 1.79e308]:

Initial Program: 100.0% accurate, 1.0× speedup

  def code(x):
      return math.sqrt((x + 1.0))
Alternative 1: 67.5% accurate, 5.6× speedup

  def code(x):
      return 1.0
parent notpushkin 7 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton