Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Walde
@readysoft
I have switched from 0.3.2.1 to 0.4.0-SNAPSHOT und get a NPE
nafg
@nafg
Hi @readysoft , are you still there?
Can you post the stack trace?
Walde
@readysoft
At http://bit.ly/1v9ppDN you can see the log and parts of the programs.
Walde
@readysoft

The example in Getting started doesn't compile!

// for ajax and push, via lift ajax and comet
implicit val page = Page(
new AppendToRenderTransportType(_),
new LiftAjaxTransportType(_), // <<<<<<<<<<<<<<< to many arguments for constructor
new LiftCometTransportType(_)
)

nafg
@nafg
@readysoft thanks for catching that! I think I need to finalize the 0.4.0 release and move away from SNAPSHOTs... Anyway the correct code should be:
_ => new LiftAjaxTransportType
Because LiftAjaxTransportType does not actually need a Page to work
@readysoft - in Scala syntax,
new LiftAjaxTransportType(_) essentially expands to
{ (p: Page) => new LiftAjaxTransportType(p) }
Which used to be the signature
In the end it didn't need to take a Page so the constructor parameter was removed.
However since a lot of TransportTypes do need a Page, the Page factory takes a varargs of Page => TransportType.
_ => new LiftAjaxTransportType is like { (unusedName: Page) => new LiftAjaxTransportType }
nafg
@nafg
@readysoft does your NPE project build with sbt or only maven?
Also is the zip self-contained? Not familiar enough with maven; how do I run/test it?
Walde
@readysoft
thank you for working on the problem.
The zip is only an extract of our NPE system and is developed in eclipse with maven.
I've tried to compile your reactive version 0.3.2.1 with scala 2.11.2 but with no success (it's too much to change)
My proposal is: you create a git-branch, then I pull your changes, compile reactive 0.4.0 and test it with our app and give you the response.
I'm here for the next 3 hours.
thanks.
nafg
@nafg
@readysoft hi, you there?
nafg
@nafg
a git branch of what? :confused:
Walde
@readysoft
Hi @nafg
iI will wait until you've finalized the 0.4.0 release and moved away from SNAPSHOTs...
thanks
nafg
@nafg
This message was deleted
Arya Irani
@aryairani
is scalareactive.org still alive? I can’t seem to reach it.
and by extension is the project still alive :)
nafg
@nafg
@refried the site is not up right now, the project (s) are alive, what do you need?
I've just been way too busy
Arya Irani
@aryairani
@nafg ok cool :) I am just trying to figure out the landscape of techniques for building websites with FRP, to choose one for a new project
so I was trying to find tutorials or something. I see the examples project, but it's intertwined with lift iirc, which I don't know how to read well yet
I've been looking at Bacon.js, elm-lang, Scala.Rx, scalajs-react
bonus if it's scala (although I suppose I can use Bacon with scala.js?)
bonus if it's super clean
Arya Irani
@aryairani
but yeah, then I found nafg/reactive and wanted to learn more
nafg
@nafg
@refried do you have opinions about statefulness of the server?
Arya Irani
@aryairani
@nafg i don't think i understand the question?
I'm not a huge fan of the application state living in the server process's memory
nafg
@nafg
@refried then reactive-web is not going to be your thing. BTW have you looked at Facebook React (not frp but functional) and scala-js-react?
Arya Irani
@aryairani
@nafg I have looked a little but haven't tried it. I'm not super clear on reactive vs frp vs functional, is there an easy way to distinguish them? :)
Owen Healy
@ellbur
Hello nafg, this is a great library and I've been using it for a few years now
I'm looking for a particular way to use EventStream that I haven't thought about until now... something to the effect of myEventStream flatMap (ev => EventStream.ofSequence(1, 2, 3))
ie, flatMap an EventStream in such a way that each source event precipitates several output events
I could get this functionality with an intermediate EventSource, but I was curious if there was a way to get it directly using flatMap
nafg
@nafg
@ellbur unfortunately not currently, there's an issue or a pull request about it but I haven't had a chance to tackle it
@refried functional means FP, FRP means abstracting with signals etc.
Arya Irani
@aryairani
@nafg nod ok
nafg
@nafg
@refried sorry should I expand that?
sidnt
@sidnt
any documentation/tutorials for getting started?
nafg
@nafg
@sidnt Hi. Not sure I recommend using it nowadays... What's your use case?
(The web_demo subproject has a tutorial though)
sidnt
@sidnt
@nafg was foraying into frontends with scala & scalajs and was considering my options for libraries to use, in the functional + reactive discipline.
nafg
@nafg
@sidnt this doesn't have scalajs support