This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// implementation("org.jetbrains.exposed:exposed-core:0.18.1") | |
// implementation("org.jetbrains.exposed:exposed-jdbc:0.18.1") | |
// implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.2") | |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.GlobalScope | |
import kotlinx.coroutines.async | |
import org.jetbrains.exposed.sql.Database | |
import org.jetbrains.exposed.sql.Table | |
import org.jetbrains.exposed.sql.deleteWhere |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package scientifik.kmath.asm.generated; | |
import java.util.Map; | |
import scientifik.kmath.asm.internal.MapIntrinsics; | |
import scientifik.kmath.expressions.Expression; | |
import scientifik.kmath.operations.RealField; | |
public final class AsmCompiledExpression_1073786867_0 implements Expression<Double> { | |
private final RealField algebra; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scientifik.kmath.ast.* | |
import scientifik.kmath.operations.* | |
import scientifik.kmath.expressions.* | |
RealField.mstInField { number(1.0) + number(1.0) }() // 2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Expression<T> { | |
operator fun invoke(arguments: Map<String, T>): T | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Expression<T> { | |
operator fun invoke(arguments: Map<String, T>): T | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RealField { binaryOperation("+", 1.0, 1.0) } // 2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RealField { add(1.0, 1.0) } // 2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private val methodNameAdapters: Map<Pair<String, Int>, String> by lazy { | |
hashMapOf( | |
"+" to 2 to "add", | |
"*" to 2 to "multiply", | |
"/" to 2 to "divide", | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun <T> AsmBuilder<T>.findSpecific(context: Algebra<T>, name: String, parameterTypes: Array<MstType>): Method? = | |
context.javaClass.methods.find { method -> | |
... | |
nameValid && arityValid && notBridgeInPrimitive && paramsValid | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Double add(double a, double b) | |
// $FF: synthetic method | |
// $FF: bridge method | |
public Object add(Object var1, Object var2) |
OlderNewer