An unofficial, read-only Hacker News reader.

Show HN: I made a tiny live replica of SFO (opens external site)

465 points by eiiot 13 hours ago | tinysfo.com | 137 comments on HN

View full thread · View on Hacker News

Comment thread (9)

  1. IDEs are deterministic.

    The better argument is compilers as they do “magic” stuff, but they are still largely deterministic.

    Replies (2)
    1. I'm pretty sure nobody is going to be upset about randomized algorithms in compilers.

      Postgres uses genetic algos for join order optimization at a certain scale and nobody is upset by that.

      Replies (1)
      1. Thankfully postgres is something I know a lot about, so I can speak with some competence.

        Genettic algorithms do rely on randomness, but it's pseudorandom, and Postgres seeds GEQO from `geqo_seed` (which defaults to 0).

        So the same query, with the same stats, same settings: becomes the same plan.

        “Randomised”, yeah, but totally reproducible.

        That's the property people actually care about in compilers too btw.

        Replies (3)
        1. That’s a property AI does too so I’m not sure that’s a valid counter. You lose this property in practice due to batching but that’s also true with a real postgres database under concurrent load where you can’t control the ordering of reading from the prng.
        2. Man, if I'm basing my opinion of a sideprojects on whether it used an RNG or a PRNG, I know it's time to touch grass.
        3. LLMs are also pseudorandom, this is an absolutely ridiculous argument. If you set temperature to zero, enable a greedy decoder, disable KV cache, implement a deterministic (but much slower) matmul, lock batch sizes, and run an LLM on the same hardware, you will 100% get the same result.
          Replies (1)
          1. I said LLMs aren't deterministic in practice. You replied with a list of six things nobody does in practice while comparing the *default settings* of a database, then called me ridiculous.

            Either you know that's not how anyone uses them and you're derailing, or you don't, in which case maybe sit this one out.

            Either way, the same "is this spam?" prompt through any frontier API can give you two answers. Postgres won't give you two plans.

            So calm your fucking tits, you’re arguing nothing.

            Replies (1)
            1. > So calm your fucking tits, you’re arguing nothing.

              Both are psuedorandom yet meaningfully random in practice.

    2. Please cite where in [holy book of choice] it states that stochasticity is inherently evil.