News for hackers. Stuff that matters.
Re:Introduction to Reactive Programming by dschiptsov on Saturday November 01, 2014 @02:19PM (#8544025)
and streams are..

  (define-syntax scons
     (syntax-rules ()
        ((_ x expr) (cons x (delay expr)))))

  (define scar car)

  (define (scdr xs) (force (cdr xs)))

  (define snull? null?)
and filter for streams is, OMG..

   (define (sfilter f xs)
     (cond ((snull? xs)   '())
           ((f (scar xs)) (scons (scar xs)
                                 (sfilter f (scdr xs))))
           (else (sfilter f (scdr xs)))))
and of course..

  (define (smap f xs)
      (if (snull? xs)
          '()
          (scons (f (scar xs))
                 (smap f (scdr xs)))))
I am doing reactive programming? Am I?
Re:Introduction to Reactive Programming by zerr on Saturday November 01, 2014 @02:56PM (#8544165)
To follow that line, all of the users of electronic spreadsheets were/are doing RP :) (not completely a joke actually)
Re:Introduction to Reactive Programming by wyager on Saturday November 01, 2014 @05:51PM (#8544759)
> all of the users of electronic spreadsheets were/are doing RP

I think you are absolutely right. One of the popular examples of where RP is useful is in implementing a spreadsheet program.

Re:Introduction to Reactive Programming by reikonomusha on Saturday November 01, 2014 @02:45PM (#8544109)
That has no notion of time or distance between "events".
Re:Introduction to Reactive Programming by dschiptsov on Saturday November 01, 2014 @02:56PM (#8544166)
So they have "ticks" in a stream? OK, one more cond clause.)