Live data from Hacker News

Bonsai: Janestreet's UI Library

github.com

131–140 of 165 posts

Re: Bonsai: Janestreet's UI Library

#133
post #49

Earlier quoted context omitted.

I'd kill for tight UIs now. Everything insists on having 15000-mile wide margins, and at most two items visible on an 8K screen. We are at a point when TUIs from 1990s running in 12" screens with at best a 480x240 resolution display more info than almost anything we have now.

This makes me think about the bizarre UI regressions in macOS in the last few years. I’ve got this giant, beautiful display and somehow it becomes less rather than more useful over time due to the software it’s presenting.

I'm on the verge of swapping my macbook for a framework laptop. I never really bought into the whole apple ecosystem (I've got a pixel phone), and I find myself using the mac as a less flexible unix box. I'm mostly in the terminal, vscode, or firefox, and using rectangle and homebrew to make it more linux-y to interact with. I'd swapped to the mac because it was a more reliable hardware setup than any linux laptops at the time, but I'm starting to look for other options.

Re: Bonsai: Janestreet's UI Library

#134
post #110
post #94

Earlier quoted context omitted.

Compiling TypeScript is just stripping out types

Isn't that like saying the Internet is only written in English if you strip out all the non-English. All C-style languages are fully cross compatible if you only use semicolons. I can't write Typescript into a browser without cross-compilation and "stripping out types" involves parsing and manipulating code. That's a different language.

No. 98% of typescript specific syntax can be replaced with U+0020 SPACE to yield runnable JavaScript. The runtime semantics of the two languages are congruent. the same cannot be said for any other language im aware of.

Re: Bonsai: Janestreet's UI Library

#137

Earlier quoted context omitted.

This makes me think about the bizarre UI regressions in macOS in the last few years. I’ve got this giant, beautiful display and somehow it becomes less rather than more useful over time due to the software it’s presenting.

I'm on the verge of swapping my macbook for a framework laptop. I never really bought into the whole apple ecosystem (I've got a pixel phone), and I find myself using the mac as a less flexible unix box. I'm mostly in the terminal, vscode, or firefox, and using rectangle and homebrew to make it more linux-y to interact with. I'd swapped to the mac because it was a more reliable hardware setup than any linux laptops a…

i think wayland set linux desktop back 10 years. it’s finally coming up to parity with X11. but basic stuff like “get the latest release of of consumer GUI app $foo” is still weirdly mired in odd political plays between flat pack people, distros, and the actual devs. at least audio finally seems to be solved with pipe wire!

Re: Bonsai: Janestreet's UI Library

#138
post #117

A more practical question: has anyone used this in production in internal apps at work? UIs like this look nice and have a flare that I like, but I guess it feels weird if I want to introduce this with my team over something like tailwindcss and rolling our own components

i think “i added ocaml” is much bigger innovation token spend then the styling question

Re: Bonsai: Janestreet's UI Library

#139
post #137

Earlier quoted context omitted.

I'm on the verge of swapping my macbook for a framework laptop. I never really bought into the whole apple ecosystem (I've got a pixel phone), and I find myself using the mac as a less flexible unix box. I'm mostly in the terminal, vscode, or firefox, and using rectangle and homebrew to make it more linux-y to interact with. I'd swapped to the mac because it was a more reliable hardware setup than any linux laptops a…

i think wayland set linux desktop back 10 years. it’s finally coming up to parity with X11. but basic stuff like “get the latest release of of consumer GUI app $foo” is still weirdly mired in odd political plays between flat pack people, distros, and the actual devs. at least audio finally seems to be solved with pipe wire!

Yeah, that was the main attraction of a mac for me. It Just Works, but enough stuff is packaged for it that it can drive like a linux box for a lot of coding tasks. I'm not going back to windows anytime soon, either.

I remember getting in to all kinds of driver rabbit holes every other time I tried to run desktop linux, but a bunch of people I was talking to on here a few weeks ago were saying that's all fixed now.

2026 is the Year of Linux on the Desktop.

Re: Bonsai: Janestreet's UI Library

#140

Curious how this compares to Melange which is used by Ocaml shops as well to double up on Ocaml for both front and backend (ahrefs being the major user and sponsor). Does this mean giving up a lot of the JS ecosystem (React, graphql, etc)?

A good GraphQL server and client should be relatively straightforward to make in OCaml. Especially if you start from the premise that fragment spreads compose, rather than inherit.

Relay’s (second) compiler was prototyped in OCaml, but we ended up switching to Rust for the main rewrite in the belief that we’d be able to use the same runtime code across iOS, Android and JS environments.

Please somebody make a good OCaml GraphQL compiler, server, and client.

Post reply on HN