Better HN
topnewbestaskshowjobs
Log inSign up

jhoxray

23 karma · joined Sep 2, 2021 (5y ago) · 12 submissions

Haskell, Type Theory and FP researcher
Submissions

1.

Show HN: OneRingAI v1 – TypeScript agents with integrations and graph memory(github.com ↗)

3 points · by jhoxray · 3mo ago · discuss

2.

One Lib to Rule Them All: Why we build oneringai open source agentic AI library(medium.com ↗)

2 points · by jhoxray · 9mo ago · discuss

3.

Show HN: OneRingAI – Single TypeScript library for multi-vendor AI agents(oneringai.io ↗)

4 points · by jhoxray · 9mo ago · 1 comment

comment 3y ago · link · parent

new tutorial with code and some interesting concepts / questions raised

5.

Building dependently typed FP language from scratch in Haskell(medium.com ↗)

3 points · by jhoxray · 3y ago · 1 comment

comment 5y ago · link · parent

There shouldn't be any, as the article is not behind the paywall?

comment 5y ago · link · parent

very nice, thank you!

comment 5y ago · link · parent

Thank you, and it is about Pi and Sigma types in the end, yes. The "Entity" would likely be Pi, and the "Database" - that takes variable number of Type parameters and generalizes type classes - would be Sigma.

"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.

comment 5y ago · link · parent

Thank you, very good points!

10.

A Pure Types-Driven real-world apps development approach(medium.com ↗)

49 points · by jhoxray · 5y ago · 38 comments

comment 5y ago · link · parent

a bit too technical :)

12.

Do we need a platform like Medium, but with great support for Math and Code?

2 points · by jhoxray · 5y ago · 4 comments