jhoxray
One Lib to Rule Them All: Why we build oneringai open source agentic AI library
Show HN: OneRingAI – Single TypeScript library for multi-vendor AI agents
OneRingAI started as the internal engine of an enterprise agentic platform we've been building for 2+ years. After watching customers hit the same walls with auth, vendor lock-in, and context management over and over, we extracted the core into a standalone open-source library. The two main alternatives didn't fit what we needed in production:- LangChain: Great ecosystem, but the abstraction...
Building dependently typed FP language from scratch in Haskell
"DatabaseContext" should provide a low-level API to the database we want to use, so that our "Entity" or "Database" pi/sigma types generate the same API for our pure types regardless of the underlying database. Using generics, default function implementations etc.
Actually, for single-table it is quite possible even now - we can design an Entity type family that would take care of storing / retreiving flat record types in SQL or Mongo using the same API. We'd still need to pass table names explicitly though (that's where Pi types would be useful), while specific db connection would be hidden inside a monad.
What we can't do - is model relationships elegantly by using function types ("Person -> [Post]" etc) - that's where the "Database" typeclass comes in.
A Pure Types-Driven real-world apps development approach
Do we need a platform like Medium, but with great support for Math and Code?
I've been working on a Type Theory and Haskell book using leanpub, as well as using Medium for sharing insights around similar topics as well as some light Category Theory, and got frustrated by the lack of a platform that works well for code and math articles.Wouldn't it be great if there was a niche, STEM-focused platform that provided similar "writing without distraction" as well as very...