Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 21:02
    LukaJCB commented #758
  • Jan 31 2019 20:29

    tixxit on master

    Fix Polynomial Gen Merge pull request #758 from Lu… (compare)

  • Jan 31 2019 20:29
    tixxit closed #758
  • Jan 31 2019 18:55
    LukaJCB commented #758
  • Jan 31 2019 12:07
    lmazzon starred non/spire
  • Jan 31 2019 03:06
    SethTisue commented #742
  • Jan 30 2019 23:41
    niebloomj starred non/spire
  • Jan 30 2019 21:11
    GusevTimofey starred non/spire
  • Jan 30 2019 15:12
    qsctr starred non/spire
  • Jan 30 2019 14:00
    tusharbihani starred non/spire
  • Jan 28 2019 15:07
    roman0x58 starred non/spire
  • Jan 25 2019 14:56
    invkrh starred non/spire
  • Jan 23 2019 18:00
  • Jan 23 2019 12:20
    cwheikki starred non/spire
  • Jan 23 2019 02:18
  • Jan 22 2019 15:44
    paulhirschi starred non/spire
  • Jan 22 2019 09:46
    shreyanshp starred non/spire
  • Jan 20 2019 12:39
    midnio starred non/spire
  • Jan 20 2019 12:37
    midnio starred non/spire
  • Jan 20 2019 12:34
    midnio starred non/spire
Denis Rosset
@denisrosset
Another underlying theme is whether we should share default instances as well.
Luka Jacobowitz
@LukaJCB
What do you mean by “share”? :)
Luka Jacobowitz
@LukaJCB
Srepfler Srdan
@schrepfler
is a Rational(1, 0) valid?
Luka Jacobowitz
@LukaJCB
If we end up merging algebra into cats it would be great to have you on the team @denisrosset :)
Denis Rosset
@denisrosset
@schrepfler No it's not. Should throw an Exception during construction.
Colt Frederickson
@coltfred
Where are the notes for 0.15 and 0.16? Latest I see here is 0.14.1 https://github.com/non/spire/blob/master/CHANGES.md
Also, I assume they're not compatible? My tests freak out with cNoSuchMethodError...
Denis Rosset
@denisrosset
@coltfred, we are breaking compatibility all the time, and indeed, the latest releases do not have accompanying notes.
The biggest pain with Spire now is that some parts are production ready (and simply need more test coverage), while others are shaky.
@LukaJCB That would be cool!
Cory Parent
@goedelsoup
has anyone explored or knows of an exploration in applying spire to geodesics?
Denis Rosset
@denisrosset
@goedelsoup Haven't heard of it, but I would be curious of seeing which algebraic structure underlie geodesics
Cory Parent
@goedelsoup
i'm an expert at neither, but am planning on using spire to work through a text on the topic. my initial uneducated view is that it's a pile of polynomial rings.
i'll definitely report back if i find it worthy of note. most of the existing code in this space is quite nightmarish.
Luciano
@lJoublanc
Excuse my ignorance, but I'm looking to implement a toy crypto system, which requires a finite field under mod N, and wondered whether there was already an instance in spire (or friends)?
Am I also right in that there is no integral Field because integral multiplication inverse isn't well defined? Or something to do with complexity of implementing gcd etc.?
Denis Rosset
@denisrosset
What is an integral field?
Finite fields can be implemented in Spire for sure; fields have trivial euclidean division (as all non zero elements have an inverse), and the GCD is more or less arbitrary.
Denis Rosset
@denisrosset
And indeed, integers do not form a field, rather an Euclidean ring because not all nonzero elements have a multiplicative inverse.
Luciano
@lJoublanc

Thanks Denis. I'm probably not using the correct terminology, sorry.

What is an integral field?

I mean a finite field over the integers modulo N, with it's additive operation being multiplication modulo N, and it's multiplicative operation being exponentiation mod N.

And indeed, integers do not form a field,

Thanks. This makes sense to me now. The set I'm looking at is definitely a field.

Denis Rosset
@denisrosset
Finite fields are fields, so you are fine!
JerrySwan
@JerrySwan
Hi all. Is there a simple way to implement a function:
def restrict(restrictMe: Interval[Double], restrictTo: Interval[Double]): Interval[Double]
such that:
restrict(restrictMe,restrictTo).isSubsetOf(restrictTo)?
Denis Rosset
@denisrosset
On my phone, but there should be a method for interval intersection.
Denis Rosset
@denisrosset
@JerrySwan it is interval1.intersect(interval2)
Grigory
@pomadchin
hey guys, are there any plans to bump up deps in spire?
we depend on cats 1.4 and what to depend on latest spire
but it looks like https://mvnrepository.com/artifact/org.typelevel/algebra_2.12/1.0.0 depends on old cats version
):
Denis Rosset
@denisrosset
Cats 1.0 is binary compatible across releases, so I haven't had any problems mixing versions.
Moreover, Spire depends on cats-kernel, which evolves much slower.
Grigory
@pomadchin
Actually we exeprience a problem with Order type class
it looks like cats are not binary compatible across versions
java.lang.NoSuchMethodError: spire.std.package$any$.OrderProduct2(Lcats/kernel/Order;Lcats/kernel/Order;)Lcats/kernel/Order;
                      at geotrellis.raster.render.BreakMap.geotrellis$raster$render$BreakMap$$vmTree$lzycompute(BreakMap.scala:83)
Btw FYI, we had a huge problems with updating FS2 up to 1.0 and still having a dependency of cats core lower than 1.4 :/ that's probably also caused by changes in cats-effects and a lil bit a differnet story, but it looks like they don't follow semver really well.
Grigory
@pomadchin
Hm.... but i see you point... mb we have smth weird in our deps internally
I'll doublecheck that
or with imports and it weirdly works in some cases. anyway, thanks for your response. Mb we bumped up a version and smth went wrong. Wonderin why tests are passing.
Denis Rosset
@denisrosset
The missing method is actually in Spire; check that you don't have multiple versions present
Note that Spire does not have binary compatibilities as we are not yet at the 1.0 release
Grigory
@pomadchin
no worries there and sorry for a lil bit messy messages; i haven't investigated the problem well enough, agree with you, sounds like you're right
Denis Rosset
@denisrosset
good luck!
Grigory
@pomadchin
just evening... thank you!
Grigory
@pomadchin

all right, it is a spark classpath; sry for bringing some messy messages there @denisrosset

it looks like spark 2.x has spire 0.13 in its classpath by default

Denis Rosset
@denisrosset
No prob, thanks for clarifying!
Luciano
@lJoublanc
Can somebody confirm if the ULong AnyVal implementation has full 64-bit precision?
Denis Rosset
@denisrosset
yes, that's the point! but it boxes in an array, beware
Jakub Kozłowski
@kubukoz
hi, is there a way to get all values inside an Interval?
actually, that makes no sense. Forget it ;P