Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Apr 27 20:12

    alexandru on development

    Update 2021-04-27-community-saf… (compare)

  • Apr 27 18:14

    rossabaker on development

    Community safety (compare)

  • Apr 16 07:03
    larsrh commented #299
  • Apr 15 20:14
    rossabaker commented #299
  • Apr 15 20:13
    rossabaker commented #299
  • Apr 14 18:47
    larsrh unlabeled #106
  • Apr 14 18:47
    larsrh commented #106
  • Apr 14 18:47
    larsrh edited #106
  • Apr 14 18:44
    larsrh opened #299
  • Apr 14 18:42

    larsrh on master

    (compare)

  • Apr 14 18:40

    larsrh on development

    yuge commit to get rid of Travi… (compare)

  • Apr 14 04:14
    rossabaker commented #298
  • Apr 13 06:33
    larsrh edited #106
  • Apr 12 15:53
    RyanHeins commented #298
  • Apr 11 18:22
    rossabaker commented #298
  • Apr 10 09:22
    larsrh commented #298
  • Apr 09 22:20
    RyanHeins opened #298
  • Feb 24 20:40
    larsrh edited #106
  • Feb 22 14:18

    larsrh on master

    Update site at Mon, 22 Feb 2021… (compare)

  • Feb 22 14:08

    larsrh on development

    New post on fibers (#297) * Ok… (compare)

Adam Rosien
@arosien
any suggested libraries that codegen? my google-fu is weak atm
Christopher Davenport
@ChristopherDavenport
If you have swagger, I enjoyed guardrail.
Adam Rosien
@arosien
sweet thanks i'll check it out
i'm trying to speak DAP but the scala-debug-adapter is very closely integrated with being a JDI <-> DAP bridge
Christopher Davenport
@ChristopherDavenport
I don't know almost any of those words.
Adam Rosien
@arosien
me neither! DAP is the JSON-based protocol that VS Code, metals, etc. use to speak to each other for debugging sessions
Christopher Davenport
@ChristopherDavenport
That sounds cool. Why do you want to speak that?
Adam Rosien
@arosien
a client wants to make a debugger for their scala-based processing engine
not at the JVM-level, but a higher level debugger for the processing going on
Christopher Davenport
@ChristopherDavenport
And they don't just want Jline? :laughing:
Adam Rosien
@arosien
nope
already have something like that
Christopher Davenport
@ChristopherDavenport
Cool. Closed? Would love to better understand the vscode processing engine if something functional was OSS.
Adam Rosien
@arosien

metals uses https://microsoft.github.io/debug-adapter-protocol/ to speak DAP, and that's a thin layer on top of https://github.com/microsoft/java-debug, which connects JDI to DAP.

DAP itself is pretty nice: https://microsoft.github.io/debug-adapter-protocol/

Christopher Davenport
@ChristopherDavenport
So after taking on scripting as a whole, it was clear to me it could be easier to write simple scripts.
https://github.com/davenverse/shellfish/blob/main/examples/src/main/scala/Main.scala - This is a prototype, its still clunky and the process architecture needs a lot of work. It also limits to singular shell by using the java mechanism for working directory which is a global, which I can design around if folks like this. It has less types than usual, but the plus is its very easy to write up without a compiler running every line.
Basically, I'm soliciting feedback as I think it needs a lot of work, but I want to confirm I'm headed in a decent direction.
Christopher Davenport
@ChristopherDavenport

Secondly, have folks seen

 [error] Couldn't retrieve `org.scala-lang:scala3doc:3.0.0-RC2`.
[error] (core / doc / scalaInstance) Couldn't retrieve `org.scala-lang:scala3doc:3.0.0-RC2`.

My scala 3 cross-build is blocking my pipeline and I can't figure out why

mpilquist
@mpilquist:matrix.org
[m]
Yeah that’s due to old sbt-dotty plugin
Christopher Davenport
@ChristopherDavenport
Ah, ok.
Jakub Kozłowski
@kubukoz:matrix.org
[m]
@ChristopherDavenport: I have feedback: stdin/stdout/stderr in subprocesses 😅
Christopher Davenport
@ChristopherDavenport
@kubukoz:matrix.org You don't appear to have a license on that code. (aka still all rights reserved)
Jakub Kozłowski
@kubukoz:matrix.org
[m]
ugh, I keep forgetting about that
Added one real quick, thanks
Christopher Davenport
@ChristopherDavenport
That code is awesome, will have it integrated swiftly.
Jakub Kozłowski
@kubukoz:matrix.org
[m]
cool!
Guillaume Martres
@smarter
Straw poll for library maintainers: how many of you are using or have tried using the Scala 2 flag -Xsource:3 ?
I've recently added a bunch of Scala 3 syntax under that flag to allow us to deprecate and potentially repurpose some old syntax without harming cross-compatibility with Scala 2, but this hinges on people actually using that flag so it'd be good to know if there's any issues with it
Guillaume Martres
@smarter
The potentially problematic thing is that besides the syntactic additions, this flag implements two semantic changes: it makes the apply/copy methods ofprivate case class also private (which isn't binary-compatible but should be workaround-able by adding back these methods manually?) and it makes contravariant resolution of typeclass instances behaves more like scala 3 (cf scala/scala#6037)
so I'm wondering if that's troublesome enough that the flag should be split into two flags: one with only syntactic changes and one with both syntactic and semantic changes, but I don't know how the Scala 2 team would feel about that.
for reference the only Scala 2 construct whose meaning would change is wildcard _ in type applications: http://dotty.epfl.ch/docs/reference/changed-features/wildcards.html, additionally pattern bindings without case in front would be required to be exhaustive and error out otherwise: https://dotty.epfl.ch/docs/reference/changed-features/pattern-bindings.html
and the PRs implementing the new things for Scala 2 are: scala/scala#9560, scala/scala#9558, scala/scala#9582, scala/scala#9580, scala/scala#9584 and scala/scala#9594, all backported to 2.12 too
Seth Tisue
@SethTisue
@smarter I wonder if it would be good cost/benefit for me to try to do a community build run with -Xsource:3 and just, like, see what happens
Guillaume Martres
@smarter
Ah yes, this is exactly what I intended to ask you about and then forgot :)
I think it'd be useful yeah
Seth Tisue
@SethTisue
Zett98
@Zett98
would delimited continuations and tail calls in project loom be used to implement more efficient encoding of effects in scala or i'm misunderstanding things?
a la delimited continuation primops in haskell or effects in ocaml?
Rob Norris
@tpolecat
If the compiler were able to eliminate tail calls it would increase safety in general and allow for some significant simplifications.
But cats-effect is very fast already. I’m more interested in the simplifications than anything else.
I’m not convinced that delimited continuations are useful for programming. Every formulation I have seen has been completely baffling.
Fabio Labella
@SystemFw
algebraic effects can be seen as a nice api over delimited continuations
to program in execution-as-evaluation ("imperative" programming, although that's a misnomer) vs programs-as-values (pure FP, which I also consider a misnomer in this context), but with roughly equivalent power
but I kinda think you need a language built with that in mind from the ground up
for cats-effect it will become an implementation detail at best, and I'm not convinced it's that valuable in that context
especially when it comes to subtler semantics such as interruption
I think it will be useful to be able to wrap synchronous java code whilst still being non blocking, which is great
Martijn
@martijnhoekstra:matrix.org
[m]
thank you for you fast public statement typelevel.
Zach McCoy
@zmccoy
^ Definite thank you.