Live data from Hacker News

Alternative lightweight UI library to modern day frameworks

mithril.js.org

21–30 of 73 posts

Re: Alternative lightweight UI library to modern day frameworks

#21
post #17
post #8

Earlier quoted context omitted.

It was a master-detail “form”, rich-formatted financial records in the left pane and svg-heavy graphs for attributing records to edges on the right. Already heavily filtered on both sides, and required to be navigatable without constantly changing subfilters. Estimating, every left row could consist of 15-20 vnodes and every graph of around 50+ min. I think I’ve seen 12-15k vnodes on average day, depending on how muc…

Humongous DOMs eventually stop scaling even without any javascript on the page (e.g. look at how long it takes to load the ecmascript spec), so it's definitely important to account for DOM size early in design. With that said, for mithril specifically, there are a few different techniques that I've heard people use to avoid overly slow diff times: - design changes (search, filtering, pagination, etc) - occlusion cull…

Agreed. Charts and large SVGs, etc are generally best rendered independent of the vdom. I’ve seen React and Preact both crawl under similar setups, so this isn’t a knock on Mithril, albeit it does appear that Mithril is a bit slower than Preact with large diffs.

Re: Alternative lightweight UI library to modern day frameworks

#22
post #8

Earlier quoted context omitted.

It was a master-detail “form”, rich-formatted financial records in the left pane and svg-heavy graphs for attributing records to edges on the right. Already heavily filtered on both sides, and required to be navigatable without constantly changing subfilters. Estimating, every left row could consist of 15-20 vnodes and every graph of around 50+ min. I think I’ve seen 12-15k vnodes on average day, depending on how muc…

Sounds like a good usecase for some framework without vdom like Svelte.

Svelte + TS has been very enjoyable for my side project thus far, and I’m more of a systems/compiler dev than any sort of webdev.

Re: Alternative lightweight UI library to modern day frameworks

#23

I’d like to use a simple front end library that doesn’t use a vdom, doesn’t require a special state system, doesn’t require special compilation, is performant, and largely gets out of my way. I currently use Preact and am pretty happy with it, even though it doesn’t check most of those boxes. Is there something that does? Anyway, Mithril looks nice. I’ve kicked the tires a few times, but comments like the ones here i…

There's Svelte, that matches most of your requirements, but unfortunately does require a compilation step.

Since I'm a backend dev, I've been looking for a straight-forward library to use for my next project and found this. I haven't yet used it on a project though

https://svelte.dev/

Re: Alternative lightweight UI library to modern day frameworks

#24

Right now Next.js might be the hottest front end framework but I'm looking for something simpler to build SPA's. I'm not interested in SSR or SSG at all. Mithril.js looks very promising as it provides you with everything you might need to build a simple web app out of the box. The only other frameworks that do that is Angular and Ember, but they're both declining in popularity especially Ember. On the other hand Reac…

Vue and Svelte are both good. I'm not sure why create-react-app is a problem, but Vue can run without any scaffolding. I think it's worth just accepting that some scaffolding is needed for bundling, transpilation, etc.

There are dozens of alternatives like mithril - small in size, scope and community. You might miss a system for managing state in Mithril, as well as pre-built component libraries like Vuetify or react-bootstrap.

Re: Alternative lightweight UI library to modern day frameworks

#26

Right now Next.js might be the hottest front end framework but I'm looking for something simpler to build SPA's. I'm not interested in SSR or SSG at all. Mithril.js looks very promising as it provides you with everything you might need to build a simple web app out of the box. The only other frameworks that do that is Angular and Ember, but they're both declining in popularity especially Ember. On the other hand Reac…

AppRun (https://apprun.js.org) is a very nice JavaScript library for building reliable, high-performance web applications, including SPAs.

Re: Alternative lightweight UI library to modern day frameworks

#27

Right now Next.js might be the hottest front end framework but I'm looking for something simpler to build SPA's. I'm not interested in SSR or SSG at all. Mithril.js looks very promising as it provides you with everything you might need to build a simple web app out of the box. The only other frameworks that do that is Angular and Ember, but they're both declining in popularity especially Ember. On the other hand Reac…

It's not a framework per se, but you can give Mint (www.mint-lang.com) a try :)

It's specially created for SPAs.

Re: Alternative lightweight UI library to modern day frameworks

#28

I’d like to use a simple front end library that doesn’t use a vdom, doesn’t require a special state system, doesn’t require special compilation, is performant, and largely gets out of my way. I currently use Preact and am pretty happy with it, even though it doesn’t check most of those boxes. Is there something that does? Anyway, Mithril looks nice. I’ve kicked the tires a few times, but comments like the ones here i…

LitElement checks all those boxes: https://lit-element.polymer-project.org/

Re: Alternative lightweight UI library to modern day frameworks

#29

I’d like to use a simple front end library that doesn’t use a vdom, doesn’t require a special state system, doesn’t require special compilation, is performant, and largely gets out of my way. I currently use Preact and am pretty happy with it, even though it doesn’t check most of those boxes. Is there something that does? Anyway, Mithril looks nice. I’ve kicked the tires a few times, but comments like the ones here i…

https://redom.js.org

Re: Alternative lightweight UI library to modern day frameworks

#30

Right now Next.js might be the hottest front end framework but I'm looking for something simpler to build SPA's. I'm not interested in SSR or SSG at all. Mithril.js looks very promising as it provides you with everything you might need to build a simple web app out of the box. The only other frameworks that do that is Angular and Ember, but they're both declining in popularity especially Ember. On the other hand Reac…

I think most frameworks take the constellation approach (i.e. separate libs for router, etc). If you're ok with having to install a few extra packages (which isn't all that uncommon these days), pretty much any of them will do the job.

Mithril is sorta unique in taking the more batteries included approach that angular and ember adopt, though it is admittedly far less kitchen-sink-ish

Post reply on HN