Soumen pal
Rafs
André Martins
java.io.EOFException: Failed to parse HTTP response: unexpected EOF
vide
E java.lang.IllegalStateException: Check failed. [Full trace in thread] at androidx.compose.ui.focus.FocusOwnerImpl.moveFocus-3ESFkO8(FocusOwnerImpl.kt:150) at androidx.compose.ui.platform.AndroidComposeView$keyInputModifier$1.invoke-ZmokQxo(AndroidComposeView.android.kt:212)
R Suman Radhakrishnan
Vladimir Vainer
import kotlin.math.PI import kotlin.system.measureTimeMillis fun test1(a : FloatArray) : Float { val angles = a.map { it.toDegrees() } val yaw = angles[0] val pitch = angles[1] return yaw + pitch } fun test2(angles : FloatArray) : Float { val yaw = angles[0].toDegrees() val pitch = angles[1].toDegrees() return yaw + pitch } fun Float.toDegrees() : Float { return (this * 180 / PI).toFloat() } fun main(args: Array<String>) { val a = floatArrayOf(0.5f, 0.7f) val test2Time = measureTimeMillis { var out = 0L for (i in 0..1000000) { out += test2(a).toLong() } } val test1Time = measureTimeMillis { var out = 0L for (i in 0..1000000) { out += test1(a).toLong() } } println("Test1: $test1Time ms") println("Test2: $test2Time ms") }
Brais Gabin
Suresh Maidaragi
AndreiBogdan
tseisel
testFixtures
A modern programming language that makes developers happier.