News for hackers. Stuff that matters.
Re:Show HN: Frpjs – Functional reactive programming library ... by s986s on Thursday February 18, 2016 @11:18AM (#11126794)
Very similar to lazy js[1]. Perhaps its of interest to you to get involved in that or pull some of their work

[1] http://danieltao.com/lazy.js/

Re:Show HN: Frpjs – Functional reactive programming library ... by wrong_variable on Thursday February 18, 2016 @12:43PM (#11127617)
One problem I notice with both RXJS and even this one is that in reactive programming a lot of (filter - select) is used.

Doing (filter - select) for large views seems an inefficiency - no different than the old way where we walk the DOM trees.

Re:Show HN: Frpjs – Functional reactive programming library ... by EvanPlaice on Thursday February 18, 2016 @03:52PM (#11129222)
Incremental DOM updates cause layout thrashing which, when comlared to making a few additional passes over a set, is a couple of orders of magnitude more expensive.

The point is, walk/filter the data completely prior to updating the view.

Immutable sets may also 'seem' inefficient but compare-by-reference works a of a lot faster than change propogation with compare-by-deeply-nested-values.

In CompSci terms, multiple passes are still O(n) and the data sets aren't large enough for micro-optimizations to matter. Compared to O(holy shit) of triggering many cascading DOM updates, it's a huge improvement.

'Seems' isn't a good enough metric to justify optimization.

Re:Show HN: Frpjs – Functional reactive programming library ... by wrong_variable on Thursday February 18, 2016 @05:16PM (#11129772)
I am curious to know what you mean by Incremental DOM updates.

Are you talking about changing values of DOM elements,etc.

Or are you talking about destroying elements in DOM and creating new ones ?

Re:Show HN: Frpjs – Functional reactive programming library ... by EvanPlaice on Thursday February 18, 2016 @03:56PM (#11129250)
What's are the benefits of this lib over RxJS, Redux, and Flux.

This isn't a criticism. Raher there are aready some well established FRP libs in JS. What's unique about this offering that would make users want to adopt it?

Re:Show HN: Frpjs – Functional reactive programming library ... by sotojuan on Thursday February 18, 2016 @05:04PM (#11129685)
I don't think either Redux or Flux are related to FRP at all.

That said, your point still stands. RxJS has very smart people behind it and at least one big company that uses it heavily (Netflix). Its newest releases include modularized loading for smaller bundle builds.

Re:Show HN: Frpjs – Functional reactive programming library ... by santrajan on Thursday February 18, 2016 @06:40PM (#11130329)
RxJS uses the observer pattern and is not really FRP in the Haskell sense of things.
Re:Show HN: Frpjs – Functional reactive programming library ... by EvanPlaice on Saturday February 20, 2016 @11:58PM (#11143369)
#NoTrueScotsman
Re:Show HN: Frpjs – Functional reactive programming library ... by LukeHoersten on Thursday February 18, 2016 @11:26AM (#11126874)
FRP is very popular in Haskell. Reflex has had some success in production: https://github.com/reflex-frp/reflex
Re:Show HN: Frpjs – Functional reactive programming library ... by santrajan on Thursday February 18, 2016 @12:24PM (#11127461)
This is implemented in pure vanilla JavaScript.
Re:Show HN: Frpjs – Functional reactive programming library ... by adarsh_why on Thursday February 18, 2016 @10:39PM (#11131374)
Nice :)