Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 29 15:42

    darkfrog26 on 3.0.4

    (compare)

  • Jun 29 15:42

    darkfrog26 on master

    Release 3.0.4 (compare)

  • Jun 29 15:37

    darkfrog26 on master

    Added Scala 2.13 (compare)

  • Jun 29 15:30

    darkfrog26 on master

    Minor bug fixes and updates to … (compare)

  • Mar 02 19:23

    darkfrog26 on master

    Updated Scalatest dependency, s… Merge pull request #27 from lol… (compare)

  • Mar 02 19:23
    darkfrog26 closed #27
  • Mar 02 19:23
    darkfrog26 commented #27
  • Mar 01 12:08
    lolgab opened #27
  • Oct 05 2018 07:52
    scalway commented #26
  • Oct 04 2018 15:48
    darkfrog26 commented #26
  • Oct 04 2018 15:34
    scalway commented #26
  • Oct 04 2018 15:32
    scalway commented #26
  • Oct 01 2018 20:11

    darkfrog26 on master

    Minor update to test (compare)

  • Oct 01 2018 20:02
    darkfrog26 commented #26
  • Oct 01 2018 20:00

    darkfrog26 on master

    Updated spec for Bindings to fu… (compare)

  • Sep 29 2018 12:23
    scalway edited #26
  • Sep 29 2018 12:19
    scalway opened #26
  • Aug 30 2018 18:01

    darkfrog26 on 3.0.3

    (compare)

  • Aug 30 2018 18:01

    darkfrog26 on master

    Release 3.0.3 (compare)

  • Aug 30 2018 17:57
    darkfrog26 closed #25
Matt Hicks
@darkfrog26
perhaps
I'll try a rebuild
Matt Hicks
@darkfrog26
built successfully
@lolgab do you need a release soon?
Lorenzo Gabriele
@lolgab
Me personally no, but if you release I can PR to Awesome Scala Native to add it to the list :smirk:
Matt Hicks
@darkfrog26
that's a reasonable excuse to do a new build. ;)
Matt Hicks
@darkfrog26
trying to publish, but I'm getting: [error] java.io.IOException: destination file exists and overwrite == false [error] at org.apache.ivy.plugins.repository.url.URLRepository.put(URLRepository.java:75) [error] at sbt.internal.librarymanagement.ConvertResolver$LocalIfFileRepo.put(ConvertResolver.scala:365)
what's odd is that I think it's published everything...it's almost like it's trying to publish again
I had to make some changes for the latest version of sbt-sonatype, but I think there's something wrong with the build now
Matt Hicks
@darkfrog26
Well, I had to write a little script to actually get it to publish (https://github.com/outr/reactify/blob/master/publish.sh), but it worked.
@lolgab 2.3.0 is released with Scala Native support
Lorenzo Gabriele
@lolgab
Perfect 🎉
Lorenzo Gabriele
@lolgab
@darkfrog26 Right now I did the exact same thing with Scribe :satisfied: :satisfied:
Matt Hicks
@darkfrog26
@lolgab I just recently started working on the 2.0 complete re-write of Scribe
Lorenzo Gabriele
@lolgab
@darkfrog26 The news on reactify for native has been retweeted by @scala_native :wink: https://twitter.com/lorenzoglorenzo/status/954253294628720640
Matt Hicks
@darkfrog26
@lolgab you're not in the scribe gitter channel or I'd tell you there, but I just released Scribe 1.4.6 including Scala Native support.
@lolgab awesome!
Lorenzo Gabriele
@lolgab
@darkfrog26 Awesome :-) Now I submit a PR for updating the README that I forgotten...
Matt Hicks
@darkfrog26
you should join the scribe channel
Lorenzo Gabriele
@lolgab
joined right now, thank you...
Matt Hicks
@darkfrog26
I had been holding off circling back around to Scala Native until they got 2.12 support, but you certainly have saved me some effort. :)
David Roon
@adridadou
hi guys! very neat lib !
just a question, is there a way to merge channels together so I can « consume » one event at a time and avoid race conditions?
or is this all single threaded anyway ?
Matt Hicks
@darkfrog26
@adridadou can you further clarify your scenario?
Reactify isn't single-threaded, it's thread-safe. When an event occurs, it occurs on the same thread that fired it (by default). If you want to avoid race conditions you could do something like:
val a: Channel[Value] = Channel[Value]
val b: Channel[Value] = Channel[Value]
val c: Channel[Value] = Channel[Value]
a.and(b).attach { v =>
  c.synchronized {
    c := v
  }
}
Matt Hicks
@darkfrog26
Reactify 3.0 released
scalway
@scalway

hello! I've pinged autor of https://scalafiddle.io/ to add reactify to this tool but then each script throws exception like this:

ScalaFiddle.scala:1: ERROR: There were linking errors
Referring to non-existent method scala.scalajs.runtime.package$.toScalaVarArgs(scala.scalajs.js.Array)scala.collection.Seq
  called from reactify.standard.StandardReactions.$$plus$eq(reactify.reaction.Reaction)reactify.reaction.Reaction
  called from reactify.State.addReference(reactify.State)scala.Unit
  called from reactify.State.$$anonfun$update$7(reactify.State)scala.Unit
  called from reactify.State.update(scala.Option)scala.Unit
  called from reactify.standard.StandardVar.(scala.Function0,reactify.Var$Mode,scala.Option)
  called from reactify.Var$.apply(scala.Function0,reactify.Var$Mode,scala.Option)reactify.Var
  called from ScalaFiddle$.()
  exported to JavaScript with @JSExport
involving instantiated classes:
  reactify.standard.StandardReactions
  reactify.State
  reactify.Var$

anyone did know what could heappen?

Matt Hicks
@darkfrog26
@scalway strange
I assume they are probably running an older version of Scala.js?
Matt Hicks
@darkfrog26
Reactify uses Scala.js 0.6.23 and the latest released version is 0.6.24. It looks like ScalaFiddle runs 0.6.21 for the editor and 0.6.22 for the core. Those are pretty close, so I wouldn't think that would be the problem, but it does appear to be a version issue.
@scalway what release of Reactify are you using?
I was able to reproduce the problem: https://scalafiddle.io/sf/Fq2Kiko/0
scalway
@scalway
newest one (3.0.2). I've seen that yesterday but it was late... I hope to bump versions also.
Matt Hicks
@darkfrog26
@scalway, honestly, I really have no idea why it's erroring
it's got to be something specific about ScalaFiddle, but I really have no idea
have you asked them if they have any idea?
seems like the kind of thing they would have seen before
@scalway I just posted a message in the Scala.js Gitter room to see if they have any thoughts
scalway
@scalway
@darkfrog26 I hope that bumping versions'll help :)
scalway
@scalway
@darkfrog26 yes it does. There was even PR for that.
scalway
@scalway
here is example with some usecases of reactify in one scalafiddle sheet.
There is plan to create template for reactify in scalafiddle (e.g. slinky has one), but script needs to be polished and few things need to be fixed. Could someone looks to all parts commented as "OPS"? I'm not using reactify and there could be some misunderstandings.
Matt Hicks
@darkfrog26
@scalway, I don't follow...it seems to work as advertised
Matt Hicks
@darkfrog26
your problem is that you are creating a list of Var, not a list of Int:
scalway
@scalway
@darkfrog26 true! Thanks.
Lorenzo Gabriele
@lolgab
Hi @darkfrog26, submitted a PR to simplify the build of reactify with scalatest 3.1.0-SNAP7 . Now it is the simplest example of a nice, working, full tested scala cross-build outr/reactify#27
Matt Hicks
@darkfrog26
@lolgab, thanks...I'll get a look soon. Currently on vacation. :)
Lorenzo Gabriele
@lolgab
@darkfrog26 Enjoy your vacation then :)