2 ms·
"All problems in computer science can be solved by another level of abstraction...except for the problem of too many levels of abstraction." [1] BTW, if you wa
by leeoniya 11y ago
"All problems in computer science can be solved by another level of abstraction...except for the problem of too many levels of abstraction." [1]
BTW, if you want less framework-ness. Try a lightweight vdom lib. I worked with Mithril [2] for a while but after a few projects decided that MVC was poorly suited for front-end components. I'm writing what IMO is a great vdom view layer that's extremely fast, ~8k min, flexible (imperative/declarative), pure js and pleasant to use [3]. Feedback welcome :)
[1] https://en.wikipedia.org/wiki/Indirection https://en.wikipedia.org/wiki/Indirection
[2] http://mithril.js.org/ http://mithril.js.org/
[3] https://github.com/leeoniya/domvm https://github.com/leeoniya/domvm
- faizshah 11y agoI like it! Can you add a comparison section to mithriljs and/or infernojs (the current leader in vdom performance)? Also an example for routing would be nice. Keep up the great work!
- leeoniya 11y agoperf is 2x mithril and 1x inferno at high mutations and "only" 0.5x inferno at low mutations. "only" because domvm gets 70/s vs inferno's 135/s on my i5 cpu on dbmonster at 1% mutation. however, domvm views support isolated redraw and even granular node-level patching. so you can optimize much faster if needed see here: http://mathieuancelin.github.io/js-repaint-perfs/ http://mathieuancelin.github.io/js-repaint-perfs/ no routing yet, but some plans are brewing...wip :)
- esaym 11y agodomvm looks like something I might use. I know javascript, but I never could wrap my head around the larger frameworks.
- leeoniya 11y agowould be glad to answer any questions. feel free to open issues. the docs are sufficient but far from exhaustive.