News for hackers. Stuff that matters.
Re:Bonsai_term: A library for building dynamic terminal apps... by koterpillar on Thursday November 27, 2025 @12:08AM (#46065890)
No screenshots or videos?
Re:Bonsai_term: A library for building dynamic terminal apps... by ranger_danger on Wednesday November 26, 2025 @10:12PM (#46065156)
An OCaml library*
Re:Bonsai_term: A library for building dynamic terminal apps... by loeg on Thursday November 27, 2025 @02:31AM (#46066693)
Seems redundant; the title already includes "Jane Street."
Re:Bonsai_term: A library for building dynamic terminal apps... by forgotpwd16 on Thursday November 27, 2025 @11:48AM (#46070980)
Quite amusing how they've become known as that-firm-using-OCaml.
Re:Bonsai_term: A library for building dynamic terminal apps... by jauntywundrkind on Wednesday November 26, 2025 @10:47PM (#46065367)
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
Re:Bonsai_term: A library for building dynamic terminal apps... by malux85 on Thursday November 27, 2025 @12:24AM (#46065972)
GUI library with no screenshots, classic
Re:Bonsai_term: A library for building dynamic terminal apps... by FailMore on Thursday November 27, 2025 @06:50AM (#46068362)
I was looking for the same thing too
Re:Bonsai_term: A library for building dynamic terminal apps... by some_guy_nobel on Thursday November 27, 2025 @01:38AM (#46066390)
README could use more work. Zero images, demos, etc. - why put all the effort into a tool just to market it so poorly...
Re:Bonsai_term: A library for building dynamic terminal apps... by thaumasiotes on Thursday November 27, 2025 @04:04AM (#46067303)
Probably because they wrote the tool for internal use and don't care whether you start using it.
Re:Bonsai_term: A library for building dynamic terminal apps... by sroerick on Thursday November 27, 2025 @01:46AM (#46066441)
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

Re:Bonsai_term: A library for building dynamic terminal apps... by Smaug123 on Thursday November 27, 2025 @04:18AM (#46067380)
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...