logoalt Hacker News

rajangdavistoday at 2:19 AM1 replyview on HN

I have been programming with Ruby for 11 years with most of the time in a professional context. It's my favorite language :).

I don't care much for types, but it can be useful with denser libraries where IDE's can assist with writing code. It has been helpful in my professional life with regards to typed Python and Typescript.

One potential example that would be interesting is utilizing types for reflection for AI tool calling, the python library for Ollama already supports this[0].

It would make it easier to use such tools in a Ruby context and potentially enhance libraries like ruby-llm [1] and ollama-ruby [2].

[0] https://docs.ollama.com/capabilities/tool-calling#using-func...

[1] https://rubyllm.com/

[2] https://github.com/flori/ollama-ruby


Replies

Liotoday at 10:45 AM

DSPy.Rb uses static Sorbet types if that's what you're looking for.

https://github.com/vicentereig/dspy.rb

show 1 reply