Live data from Hacker News

Bonsai: Janestreet's UI Library

github.com

61–70 of 165 posts

Re: Bonsai: Janestreet's UI Library

#61
post #55

What does JaneStreet do besides sponsoring nerdy Youtube channels and writing UI libraries?

They're a trading firm that hires really clever people to use math to trade. Their strategies are, presumably, very complicated and ever changing, and secrecy about them is the point - you get bigger margins for longer if people don't learn about your 'one weird trick' (that and also that there is presumably another side to your trades losing out on upside, and they might not be best pleased to learn about it.

Re: Bonsai: Janestreet's UI Library

#63

Earlier quoted context omitted.

inconsistent and maybe too tight, but I would think those are issues with the sample UIs and not this library

FWIW if you listen to Signals and Threads (the Jane Street podcast) they talk about this. They have dedicated UX designers who do relatively little code but focus entirely on making the UX as optimal for the traders as possible and one of them was on an episode. They talked about how most of the normal UX rules for SW go out the window because quants and traders have such different needs than "normal software".

This matters. Beyond performance (a universal good), the definition of "good" UX is strictly dependent on the user. Fintech platforms for traders who open a multi-window thick client application(s) and spend hours in it every day have little in common with consumer mobile apps designed to hold your attention for maybe a minute. It's mind-bogglingly lazy to choose something like MUI (Material UI) as if it were some kind of reasonable foundation irrespective of context.

Re: Bonsai: Janestreet's UI Library

#64
post #60

Earlier quoted context omitted.

[flagged]

The above might be too far-fetched as it only applied to India? They did pay a fine to the regulator and resumed trading (might not be the same strategy though) To OP’s original question, they made $20B last year and have a niche in several financial products

Yes, the fraud was done in india. Why does that matter?

Re: Bonsai: Janestreet's UI Library

#65
post #55

What does JaneStreet do besides sponsoring nerdy Youtube channels and writing UI libraries?

They're a trading firm that hires really clever people to use math to trade. Their strategies are, presumably, very complicated and ever changing, and secrecy about them is the point - you get bigger margins for longer if people don't learn about your 'one weird trick' (that and also that there is presumably another side to your trades losing out on upside, and they might not be best pleased to learn about it.

> really clever people

Sam Bankman-Fried and his League of Legend rankings would like a word

Re: Bonsai: Janestreet's UI Library

#66

> 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!

A really great place to reach for this is Elixir/Phoenix now that the set theoretic type system is in place with LiveView. I have been doing some pretty large/complex codebases gradually working towards fully integrating working this way for the past 5 years and it has been great.

Re: Bonsai: Janestreet's UI Library

#67
post #7
post #2

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

There's a full terminal implementation of Bonsai as well. I actually use it in my personal workflow these days to manage my contacts database! https://anil.recoil.org/notes/aoah-2025-9

Seconding the sibling comment - what are you using to run your personal site? It is very nice.

Re: Bonsai: Janestreet's UI Library

#68

[flagged]

If you read up on it that was basically India protecting its corrupt cronies. Janestreet showed severe problems with some Indian companies and instead of fixing that and creating a healthier and more transparent market they decided to go after the messenger.

Re: Bonsai: Janestreet's UI Library

#69

Can someone who understands web UI programming tell me if this would be good for my local agent to use to produce HTML based reports and outputs for me? Or for TUI outputs?

The main thing that Bonsai gets you is a nice programming model for making your UIs interactive. If you're mostly producing static reports (with maybe some basic interactive visualization widgets or something), it will not get you much over generating some variant on HTML + JS.

It makes more sense for applications where you have complex interactive logic in the UI, with a lot of different components that need to control and display some shared state.

Re: Bonsai: Janestreet's UI Library

#70
post #3

Oh it needs a userland trampoline! > JSOO does not have tail call optimization

Jsoo supports self-recursive and mutually recursive tail calls, but for general tail calls it would need to trampoline every single call, since the only major browser with proper tail calls is Safari.
Post reply on HN