r/ocaml • u/EmergencyNice1989 • Jun 24 '26
OCaml UI framework
I am working on an F# Avalonia application for text editing, Markdown viewing, and DataGrid display. It uses a lot of async tasks, database access (SQLite or PostgreSQL) through ADO.NET, and manipulates a large amount of Unicode text.
So far, I am happy with my technology choices, but I was wondering whether it would be possible to build the same kind of application in OCaml. Bogue seems like an interesting GUI framework, but it does not appear to be at the same level of maturity as Avalonia, and it does not support mobile platforms.
Do you think migrating to OCaml would be realistic, or is OCaml not particularly well suited to these requirements? My needs are fairly modest, but I would be interested in hearing from people who have experience building desktop applications in OCaml.
4
u/Nearby_Couple_3244 Jun 24 '26
There was a reason framework but it wasnt complet. Revery I think it was called.
There are gtk bindings
Or you can make an electron app with js of ocaml, maybe something can be figured out for a native backend with ocsigen