Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 14 2015 14:01
    gitter-badger opened #228
  • May 14 2015 14:01
  • May 14 2015 13:32
    Travis cilib/cilib#227 passed (510)
  • May 14 2015 13:26
    robgarden synchronize #227
  • May 14 2015 13:04
    Travis cilib/cilib#227 passed (509)
  • May 14 2015 12:58
    robgarden opened #227
  • May 13 2015 20:29
    Travis cilib/cilib (series/2.0.x) passed (508)
  • May 13 2015 20:20

    gpampara on 2.0.x

    Some simplicifation using lens&… (compare)

  • May 13 2015 15:19
    Travis cilib/cilib (series/2.0.x) passed (507)
  • May 13 2015 15:09

    gpampara on 2.0.x

    Prefer the use of lens to unsaf… (compare)

  • May 10 2015 15:36
    Travis cilib/cilib (series/2.0.x) passed (506)
  • May 10 2015 15:29
    gpampara labeled #226
  • May 10 2015 15:29
    gpampara opened #226
  • May 10 2015 15:27

    gpampara on 2.0.x

    Added implementation for Iterat… (compare)

  • May 10 2015 14:58
    gpampara commented #221
  • May 10 2015 14:58
    gpampara closed #221
  • May 09 2015 20:09
    gpampara closed #220
  • May 09 2015 13:03
    gpampara commented #224
  • May 09 2015 13:03
    gpampara closed #224
  • May 09 2015 12:57
    Travis cilib/cilib (series/2.0.x) passed (505)
Gary Pamparà
@gpampara
fit is the combinator
point is, using the prism and the lens composed, it enables “setting” that value
I had an “adjustFit” function…. it was not right
Filipe Nepomuceno
@filinep
ok, makes sense in the generic case, i just thought it was a bit weird for the position -> fit case
Gary Pamparà
@gpampara
the prism limits it to “Solution” instances only
Filipe Nepomuceno
@filinep
@gpampara are you still looking to change iteration stuff?
Filipe Nepomuceno
@filinep
object Iteration {

  type Iteration[M[_],A] = Kleisli[M,A,A]

  // iterations have the shape: [a] -> a -> Step [a]
  def sync_[M[_]: Applicative,A](f: List[A] => A => M[A]): Iteration[M,List[A]] =
    Kleisli.kleisli[M,List[A],List[A]]((l: List[A]) => l traverseU f(l))

  def sync[F[_],A,B](f: List[B] => B => Step[F,A,B]) =
    sync_[Step[F,A,?], B](f)

  def syncS[F[_],A,S,B](f: List[B] => B => StepS[F,A,S,B]) = {
    implicit val S = StateT.stateTMonadState[S, Step[F,A,?]]
    sync_[StepS[F,A,S,?], B](f)
  }

  // This needs to be profiled. The drop is expensive - perhaps a zipper is better
  def async_[M[_]: Monad,A](f: List[A] => A => M[A]) =
    Kleisli.kleisli[M,List[A],List[A]]((l: List[A]) =>
      l.foldLeftM[M, List[A]](List.empty[A]) {
        (a, c) => f(a ++ l.drop(a.length)).apply(c).map(a :+ _)
      })

  def async[F[_],A,B](f: List[B] => B => Step[F,A,B]) =
    async_[Step[F,A,?], B](f)

  def asyncS[F[_],A,S,B](f: List[B] => B => StepS[F,A,S,B]) = {
    implicit val S = StateT.stateTMonadState[S, Step[F,A,?]]
    async_[StepS[F,A,S,?], B](f)
  }

}
hmm, they should implement collapsable code blocks :P
Gary Pamparà
@gpampara
@filinep yes
I want to actually use a Free monad to do so
no idea how to do that though
Filipe Nepomuceno
@filinep
can I use the above code until then?
Gary Pamparà
@gpampara
yes
@robgarden what is the difference in ackley1/ackley2?
Filipe Nepomuceno
@filinep
ackley2 has different constants, no shift and is not generalized :P
Gary Pamparà
@gpampara
ok, but I think I should have rather asked: is this because of how some people have used the function in research?
also
@/all what should the name of the organisation be?
CIRG?
Filipe Nepomuceno
@filinep
TeamAwesome!!!!
Gary Pamparà
@gpampara
lol
but seriously
we have 1 chance for the rename
Filipe Nepomuceno
@filinep
lol ok, CIRG or cirg
Gary Pamparà
@gpampara
then the gitter stuff might change
I wanna do it now
so please remember to update your git settings
lol
and ffs
"Clinical Informatics Research Group"
Filipe Nepomuceno
@filinep
my first hit is: "Central Institute for Research on Goats"
Gary Pamparà
@gpampara
haha
nice
Filipe Nepomuceno
@filinep
i guess it's CIRG then?
or cirg@tuks seeing as how there's one each in brazil and canada
Gary Pamparà
@gpampara
I don’t think that @ is allowed
Login may only contain alphanumeric characters or single hyphens, and cannot begin or end with a hyphen
cirg-up
?
Filipe Nepomuceno
@filinep
yeah that's reasonable
but
we can't have cirg-up as package names can we?
if we even use it in package names
Gary Pamparà
@gpampara
the org need not be in the package names
Robert Garden
@robgarden
@gpampara , hmm, i didn't notice the similarity. they come out of the same paper as separate functions
Gary Pamparà
@gpampara
it’s just the account that has the repo, nothing more than that
Filipe Nepomuceno
@filinep
cool by me
Robert Garden
@robgarden
i'm going to remove it though. can't find ackley2 anywhere else