Comment by guessmyname

6 hours ago

Pi is good in concept, but why couldn’t they choose a compiled language instead of TypeScript?

since pi is built to modify itself, isn't it better to use a language like typescript where LLMs have a LOT of training data?

a harness doesn't do any computations by itself so what benefit is using a compiled language?

  • i find LLMs generally play better with compiled languages actually, they do great with rust. you can think of it almost as analogous to a harness.

    • The more structure the better. Provides strong guardrails.

      I’ve had great experience with Elixir and the new compiler combined with Ash.

I imagine because they want to support plugins, and plugins in compiled language are a lot less natural than plugins in languages like TypeScript or Python.

Why does it matter? Agent harnesses aren't doing anything that would make a compiled language more suitable than a scripting language.

For TUIs, Rust/Go vs Typescript doesn't really makes a huge performance difference and you lose the 50x bigger community advantage of Typescript.

I would imagine the extension system they built would be much more difficult to manage. They could have opted for Lua, though, I suppose.