Giter Site home page Giter Site logo

Comments (26)

johnynek avatar johnynek commented on July 27, 2024 3

I’m really trying hard not to rant about how much work it is to keep sbt up to date and have publishing working reliably...

from algebra.

erikerlandson avatar erikerlandson commented on July 27, 2024

available for 2.13.0-M5: scalacheck-1.14.0, scalatest-3.0.6-SNAP3
missing cats, which in turn depends on typelevel/machinist#31

update - now also scalatest-3.0.6-SNAP4
scalatest/scalatest#1409 (comment)

from algebra.

erikerlandson avatar erikerlandson commented on July 27, 2024

plugin dependency sbt-scalajs can be upgraded to 0.6.25, to get 2.13.0-M5

from algebra.

johnynek avatar johnynek commented on July 27, 2024

I think scalacheck 1.14 is binary incompatible with 1.13.6 so I think this makes the laws package binary incompatible.

Which may be okay. I guess we can bump a version.

from algebra.

erikerlandson avatar erikerlandson commented on July 27, 2024

I also don't see a huge problem with doing what scalatest did with "3.0.6-SNAPx", although presumably scala 2.13 is the future so moving in that direction on a non-snapshot release is good imo.

from algebra.

ceedubs avatar ceedubs commented on July 27, 2024

@johnynek Unfortunately I don't think that it's compatible (pre-Scala 2.12 at least). See typelevel/cats#2449 (where you said the same). I'd love to find out otherwise though :\

from algebra.

erikerlandson avatar erikerlandson commented on July 27, 2024

machinist-0.6.6 now available with 2.13.0-M5

from algebra.

SethTisue avatar SethTisue commented on July 27, 2024

note that @xuwei-k did some work in this direction at #217

from algebra.

erikerlandson avatar erikerlandson commented on July 27, 2024

cats PR for 2.13.0-M5: typelevel/cats#2589

from algebra.

erikerlandson avatar erikerlandson commented on July 27, 2024

cats 1.5.0-RC0
https://github.com/typelevel/cats/releases/tag/v1.5.0-RC0

from algebra.

erikerlandson avatar erikerlandson commented on July 27, 2024

fooling around with a 2.13 build, I think the dependencies resolve but I'm running into IterableOnce vs TraversableOnce incompatabilities pre vs post 2.13

[error] /home/eje/git/algebra/core/src/main/scala/algebra/instances/map.scala:53:24: type TraversableOnce in package scala is deprecated (since 2.13.0): Use IterableOnce instead of TraversableOnce
[error]   override def sum(as: TraversableOnce[Map[K, V]]): Map[K, V] = {
[error]                        ^
[error] /home/eje/git/algebra/core/src/main/scala/algebra/instances/map.scala:55:8: method foreach in class IterableOnceExtensionMethods is deprecated (since 2.13.0): Use .iterator.foreach(...) instead
[error]     as.foreach { m =>

from algebra.

johnynek avatar johnynek commented on July 27, 2024

In idea I’ve had is replace the TraversableOnce methods with two methods of the same name. One on Iterator one on Iterable. The Iterable one by default can call the other.

Working with Iterator is pretty critical in big data systems that don’t always allow you to iterate twice.

What do you think?

from algebra.

erikerlandson avatar erikerlandson commented on July 27, 2024

@johnynek that seems totally sane to me - the only case that seems ambiguous there is Stream, which is being replaced(?) by LazyList in 2.13. Stream/LazyList are (iiuc) neither Iterator nor Iterable.

from algebra.

erikerlandson avatar erikerlandson commented on July 27, 2024

btw I was not planning on fixing TraversableOnce related issures.
unless nobody else wants to :)

from algebra.

erikerlandson avatar erikerlandson commented on July 27, 2024

@johnynek, I have been assuming that somebody familiar with this code would be better suited to this, but I see that nobody has been working much with this code since late 2016 😄 I'll take a run at it unless somebody else is planning to.

from algebra.

SethTisue avatar SethTisue commented on July 27, 2024

Stream and LazyList are both Iterables

from algebra.

johnynek avatar johnynek commented on July 27, 2024

@erikerlandson I don’t think anyone is working on it, thanks.

I’m pretty skeptical the 2.13 churn is going to be a net positive. Twitter (and Stripe) are not even on 2.12 yet. I can’t imagine how long 2.13 will take.

from algebra.

erikerlandson avatar erikerlandson commented on July 27, 2024

I'm sure the benefits of 2.13 are rather un-evenly distributed. My own interest in it is focused almost exclusively on scala/scala#6050, and in my case the benefit is actually a side-effect of that work (better behavior of the resolution algorithm), not the original goal of by-name implicits.

from algebra.

erikerlandson avatar erikerlandson commented on July 27, 2024

@SethTisue this is a bit tangent, but the scaladoc list of super-types does not indicate anything about being a subclass of Iterable (however the code does).

from algebra.

SethTisue avatar SethTisue commented on July 27, 2024

but the scaladoc list of super-types does not indicate anything about being a subclass of Iterable (however the code does).

I see scala.Iterable[A] under "Linear supertypes", but maybe we're not talking about the same thing. if something here still seems wrong to you, please open a ticket in https://github.com/scala/bug

from algebra.

erikerlandson avatar erikerlandson commented on July 27, 2024

I finally figured it out - the page I had was the companion object page, not the class page :/

from algebra.

SethTisue avatar SethTisue commented on July 27, 2024

what's next here? (just curious, just checking)

from algebra.

erikerlandson avatar erikerlandson commented on July 27, 2024

If #221 is approved, that should be sufficient for a release built against 2.13, but @johnynek would know more about other release roadmap concerns.

from algebra.

larsrh avatar larsrh commented on July 27, 2024

#223

from algebra.

larsrh avatar larsrh commented on July 27, 2024

Done.

from algebra.

SethTisue avatar SethTisue commented on July 27, 2024

scala/make-release-notes@2611590

from algebra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.