top | item 45695315

(no title)

parados | 4 months ago

Sort-of agree, but then I saw this code in the Visualiser[0]

    try:
        import matplotlib.pyplot as plt
    except Exception:
        plt = None
    
    class Visualizer:
    
        def animate_combined(
            # Stuff...
        ):
            # Stuff...
            try:
                import numpy as np
            except Exception:
                print("numpy is required for animation")
                return
            if plt is None:
                print("matplotlib not available - cannot animate")
                return
Is AI really that bad? Or has it been written by a human?

[0] https://github.com/sql-hkr/tiny8/blob/main/src/tiny8/visuali...

discuss

order

Mumps|4 months ago

Other giveaways like insistence on

`from typing import List`

(I'm yet to see a model be trained on modern-biased python enough to not bother with that import)

quibono|4 months ago

Wait, is `List` to be avoided now? I'm behind the times then. I figured it was still the preferred type hint over `list`.

85392_school|4 months ago

AI is penalized for any and all emitted errors through RL, so this kind of carefulness is actually a strong sign of AI.

noobermin|4 months ago

I mean, it's not impossible to get bad AI code, no?

Anyway, as I said in a comment below, Show HN already has vibe-coded projects in it, much less merely AI assisted works, the problem here is the title that says it is "from scratch" which most readers would assume means it is written by hand.