3 ms·
I am not into the Ruby on Rails world, but I find LLMs much more effective with powerful type systems like Typescript. Especially if you nudge it to keep things
by DanielHB 2mo ago
I am not into the Ruby on Rails world, but I find LLMs much more effective with powerful type systems like Typescript. Especially if you nudge it to keep things strict and (statically) eliminate invalid states. Do they use similar systems (build-time typing) for Ruby?
When the LLM can verify its own output by running static analysis they produce better results. They also seem to understand type definitions and avoid going to the source which, in theory, should reduce context size.
- brandensilva 1mo agoElixir started adding a type system as well after Typescript proved to greatly help AI feel confident in its output. So yeah others are catching on the importance of a type system to enforce that successful contract for AI agents.