by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 19 20:21

    darkfrog26 on 4.0.0

    (compare)

  • Mar 19 20:21

    darkfrog26 on master

    Release 4.0.0 (compare)

  • Mar 19 20:13

    darkfrog26 on Simplification

    (compare)

  • Mar 19 20:13

    darkfrog26 on master

    Attempting to simplify the arch… Not working! Began complete re-write again w… and 5 more (compare)

  • Mar 19 20:13
    darkfrog26 closed #28
  • Mar 19 20:12
    darkfrog26 synchronize #28
  • Mar 19 20:12

    darkfrog26 on Simplification

    Updated to support Scala.js 1.0 Release 3.0.6 Merge branch 'master' into Simp… (compare)

  • Mar 19 20:11
    darkfrog26 opened #28
  • Mar 19 20:02

    darkfrog26 on Simplification

    Fixes to travis file (compare)

  • Mar 19 19:53

    darkfrog26 on Simplification

    Clean up, addition of transacti… (compare)

  • Mar 19 14:03

    darkfrog26 on Simplification

    Began complete re-write again w… (compare)

  • Mar 18 21:05

    darkfrog26 on Simplification

    Began complete re-write again w… (compare)

  • Mar 14 01:51

    darkfrog26 on 3.0.6

    (compare)

  • Mar 14 01:51

    darkfrog26 on master

    Release 3.0.6 (compare)

  • Mar 14 01:44

    darkfrog26 on master

    Updated to support Scala.js 1.0 (compare)

  • Nov 15 2019 01:41

    darkfrog26 on Simplification

    Not working! (compare)

  • Oct 29 2019 02:27

    darkfrog26 on Simplification

    Attempting to simplify the arch… (compare)

  • Oct 27 2019 21:43

    darkfrog26 on master

    Added optimizations for static … (compare)

  • Sep 27 2019 19:56

    darkfrog26 on 3.0.5

    (compare)

  • Sep 27 2019 19:56

    darkfrog26 on master

    Release 3.0.5 (compare)

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 :)