Remix.run Logo
Bonsai_term: A library for building dynamic terminal apps by Jane Street(github.com)
26 points by azhenley 8 hours ago | 9 comments
Smaug123 7 minutes ago | parent | next [-]

Hey, I've been on an odyssey to port this (for a very liberal definition of "port") to .NET for many months!

The underlying library [Incremental][0] [is ported][1] though currently unused; the "ported" framework itself doesn't yet include any Bonsai magic, but the terminal-side stuff is [Zoomies][2], in which [this is broadly what it looks like][3] to write a VDOM (scroll down to line 100 to see how to process user interaction, and line 150 to see how that VDOM renders). All very incomplete and with a big long list of features to add, and the current design is not flexible enough yet to accommodate the "table" primitive, but we're slowly getting there.

[0]: https://github.com/janestreet/incremental/

[1]: https://github.com/Smaug123/WoofWare.Incremental/

[2]: https://github.com/Smaug123/WoofWare.Zoomies

[3]: https://github.com/Smaug123/WoofWare.Zoomies/blob/15bf1875ed...

sroerick 3 hours ago | parent | prev | next [-]

I too, would like tosee screenshots.

I have not heard of bonsai_web before.

Could you feasibly use this to build both web apps and TUI apps simultaneously? If this is the case, I find this extremely interesting. The examples look well fleshed out and interesting.

OCAML seems like a perfect language to accomplish this. Ocsigen is pretty complex, but also seems wildly ahead of its time. PPX is a wonderful metaprogramming paradigm and I would love to know how this is being used in production

some_guy_nobel 3 hours ago | parent | prev | next [-]

README could use more work. Zero images, demos, etc. - why put all the effort into a tool just to market it so poorly...

thaumasiotes 21 minutes ago | parent [-]

Probably because they wrote the tool for internal use and don't care whether you start using it.

malux85 4 hours ago | parent | prev | next [-]

GUI library with no screenshots, classic

koterpillar 4 hours ago | parent | prev | next [-]

No screenshots or videos?

ranger_danger 6 hours ago | parent | prev | next [-]

An OCaml library*

loeg 2 hours ago | parent [-]

Seems redundant; the title already includes "Jane Street."

jauntywundrkind 6 hours ago | parent | prev [-]

Nearby, ghostty-web has a wasm build. Probably not inconceivable to spin a more general wasm build too. https://github.com/coder/ghostty-web https://news.ycombinator.com/item?id=46060087