Skip to content
#

Scala

scala logo

Scala is a general-purpose programming language providing support for functional programming and a strong static type system. Designed to be concise, many of Scala's design decisions aimed to address criticisms of Java.

Here are 12,772 public repositories matching this topic...

mkurz
mkurz commented Feb 3, 2022

We use sbt-dynver to set the version for the Play project based on git tags.
E.g. when you run sbt in the Play project folder you will see:

// If you haven't you need to get the Play framework source code
git clone git@github.com:playframework/playframework.git
cd ./playframework

// You are in the master branch now, from which we want to rele
lila
codefromthecrypt
codefromthecrypt commented Aug 29, 2018

Let's support at least reading "b3" header from a single string, most commonly traceid-spanid-1
It would also be nice to support optionally writing this, especially in message providers or others with constrained environments.

Expected behavior

As discussed on openzipkin/b3-propagation#21 and first implemented here: https://github.com/openzipkin/brave/blob/master/brave/src/main/java/bra

slandelle
slandelle commented Aug 8, 2022

We could consider adding some random generator functions to Gatling Expression Language, such as:

  • random numbers (int, long), possibly with a range
  • random UUUI
  • random alphanum Strings with a length

Note: as this is a feature, it has to go in a minor version, which we release ~3 months.
Implementation would be similar to what we do with currentTimeMillis.
Performance is a must, so I

cayhorstmann
cayhorstmann commented Aug 7, 2022

Compiler version

3.2.0-RC1

Minimized code

import scala.compiletime.*

class Vec[N <: Int & Singleton] :
  private val xs: Array[Double] = Array.ofDim[Double](summon[ValueOf[N]].value)

Output

No singleton value available for N.

Expectation

My expectation is that the Singleton bound makes ValueOf realize that N is a singleton. But I am

itype:enhancement area:reporting good first issue Spree
NeQuissimus
NeQuissimus commented Jan 7, 2019

I just came across the fact that a Show[Throwable] exists.

  1. It is not wired up into import Scalaz._, one needs to import scalaz.std.java.throwable._
  2. It discards the stack trace entirely.

What's going on with this? :D
Is it OK if I fix both of these (for 7.2 and 7.3)?

sfc-gh-mrui
sfc-gh-mrui commented Nov 8, 2021

Description
It looks the Polynote doesn't support to configure Scala REPL like other notebook product.
For example, jupyter notebook support to configure Scala REPL such as

interp.configureCompiler(_.settings.outputDirs.setSingleOutput(replClassPath))
interp.configureCompiler(_.settings.Yreplclassbased)

Some configuration is hard-coded such as settings.Ydelambdafy.value is s

enhancement good first issue
LeeTibbert
LeeTibbert commented Jul 26, 2022

As part of a pending PR for Issue #2750, I did a due diligence check to see
if that bug existed other places where a file was opened.

java.nio.Files#readAllBytes opens a file fcntl.O_RDONLY so it
does not have the bug described in #2750, but it does have
the bug of not checking the return from fcntl.open().

One would have to check the Java 8 documentation for readAllBytes
to se

shane-huang
shane-huang commented Jun 16, 2022

Problem:

The current log will output something like val_function_0 while it should be val_mean_squared_error_0.

Solution:

"val/{}_{}".format(type(metric).__name__, i) use the name of the type of metric (metric is an instance of torchmetrics.metric.Metric so the type of it is function), that's why the output looks like val_function_0. It should use the name of the metri

Created by Martin Odersky

Released January 20, 2004

Website
www.scala-lang.org
Wikipedia
Wikipedia