[flagged]
Bonsai: Janestreet's UI Library
91–100 of 165 posts
Re: Bonsai: Janestreet's UI Library
#92Curious 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)?
Re: Bonsai: Janestreet's UI Library
#93Earlier quoted context omitted.
Similar attempts include Scalajs. The general challenge becomes integrating the fractional front-end code written in your backend-language that compiles to JS with the rest of the JS ecosystem. JaneStreet have a love of writing their own stuff from scratch so it doesn't apply to them but it might to you. Hence most people end up with frontend-as-backend rather than backend-as-frontend.
KotlinJs and ClojureJs too. You always end up having to write wrappers or dealing with problems that would just work if you just used normal js/ts.
Re: Bonsai: Janestreet's UI Library
#94Earlier quoted context omitted.
KotlinJs and ClojureJs too. You always end up having to write wrappers or dealing with problems that would just work if you just used normal js/ts.
Clojurescript not ClojureJs, and Typescript doesn't run in the browser, it has the exact same issues/limitations: it must be compiled to JavaScript first.
Re: Bonsai: Janestreet's UI Library
#95Re: Bonsai: Janestreet's UI Library
#96Earlier quoted context omitted.
I’m no UI expert - what’s wrong with the margins?
inconsistent and maybe too tight, but I would think those are issues with the sample UIs and not this library
Re: Bonsai: Janestreet's UI Library
#97This would of been cool back in 2014.
Pretty much. UI libraries are more or less meaningless now, and I say this as someone who spent the last decade building them. Given a proper data API to work against, you're a single prompt away from a fully tested bespoke lib that's more maintainable and has no dependencies. The weeks of work you saved by reaching for one before is gone, and the tradeoff you had to make of dealing with upstream changes and lack of customization just isn't there anymore.
Re: Bonsai: Janestreet's UI Library
#98> 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!
Re: Bonsai: Janestreet's UI Library
#99Earlier quoted context omitted.
Clojurescript not ClojureJs, and Typescript doesn't run in the browser, it has the exact same issues/limitations: it must be compiled to JavaScript first.
Compiling TypeScript is just stripping out types
There are TS constructs that require compilation into equivalent JS, such as enums and namespaces.
Re: Bonsai: Janestreet's UI Library
#100Earlier quoted context omitted.
inconsistent and maybe too tight, but I would think those are issues with the sample UIs and not this library
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.