logoalt Hacker News

Bonsai: Janestreet's UI Library

53 pointsby KolmogorovComptoday at 8:29 AM11 commentsview on HN

Comments

flufluflufluffytoday at 10:00 AM

> And because Bonsai is written in OCaml, it becomes possible to use the same language and types on both the backend and frontend.

Finally! I was waiting for this to become possible!

show 1 reply
bobjansentoday at 9:55 AM

This would of been cool back in 2014.

xvilkatoday at 9:04 AM

Looks like it's Web-only, no mention of the native UI support (terminal UI excluded).

show 1 reply
kubbtoday at 9:53 AM

I wish there were more OCaml shops out there

hahahaatoday at 9:19 AM

Oh it needs a userland trampoline!

> JSOO does not have tail call optimization

Trastertoday at 9:21 AM

The "Why Bonsai?" I found really funny.

Let me re-write that section for you:

Why Bonsai?

At Jane Street we're super excited by Functional programming and by CAML in particular, so when we need low latency software, we use OCAML, when we need hardware, we write out own langauge - HardCAML, and when we need a Web UI, we build a Web UI framework in CAML. Because we fucking love CAML.

show 1 reply