Brett Byler
06/13/2022, 8:25 PMBrett Byler
06/13/2022, 8:26 PMBrett Byler
06/13/2022, 8:27 PMformulae
section - I’m admittedly not very familiar with native Z3 syntax). The test I linked above is the only example I could find of a @Post
condition. Would this help in any way? Or is there more support needed from the AA backend?Alejandro Serrano Mena
06/13/2022, 8:39 PMmap
would need something which says "for every element of this list, this formula holds", which cannot be expressed easily in Z3Alejandro Serrano Mena
06/13/2022, 8:40 PMAlejandro Serrano Mena
06/13/2022, 8:41 PMval okShouldBeAccepted = listOf(-1)
.map { Positive(absoluteValue(it)) }
.first { it.value }
.post({ it >= 0 }) { "result is non-negative" }
Brett Byler
06/13/2022, 8:45 PM@Post
syntax in the meantimeAlejandro Serrano Mena
06/14/2022, 7:59 AMrcd27
07/25/2022, 11:44 AMissue
for samples, ready to take it myself: https://github.com/arrow-kt/arrow-meta-examples/issues/58rcd27
08/19/2022, 5:09 PMMeta
? I need refined types, guys ❤️rcd27
10/18/2022, 7:00 PMbuild.gradle.kts:
...
gradlePlugin {
plugins {
create("my-plugin") {
id = "com.github.rcd2772.plugin"
implementationClass = "com.github.rcd2772.plugin.MetaPlugin"
}
}
}
Where MetaPlugin
implements Meta
interface. And all is done like in (meta-samples)[https://github.com/arrow-kt/arrow-meta-examples]. The only difference is that I add all plugin logic and its runtime dependencies to buildSrc
. In order to add it in my app
module via plugins { id("com.github.rcd2772.plugin") }
However gradle-plugin stuff(the one responsible for registering plugin with create
DSL) says: 'com.github.rcd2772.plugin.MetaPlugin' is neither a plugin or a rule source and cannot be applied
Is there a way to register Meta plugin with gradlePlugin
?Sushobh
11/01/2022, 2:14 AMKarim Houari
11/29/2022, 11:05 AMclass Foo {
val abc = "abc"
fun hello() = "Hello World"
}
and then wanted to create the following, but not modifying Foo class
class Bar {
fun hello(name: String) = "Hello $name"
}
Resulting in a Foo.class and a Bar.class
If there are no examples, any advice would be great please.Jörg Winter
12/05/2022, 10:21 AMJörg Winter
01/09/2023, 4:55 PMTiago
02/13/2023, 10:53 AMorg.jetbrains.kotlin.multiplatform
or org.jetbrains.kotlin.jvm
is good enough?
I am getting a weird error trying to set it up: java.lang.NoClassDefFoundError:
org/jetbrains/kotlin/resolve/jvm/extensions/AnalysisHandlerExtension$DefaultImpls
at arrow.meta.internal.registry.InternalRegistry$registerPostAnalysisContextEnrichment$1$1.analysisCompleted(InternalRegistry.kt:123)
at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM$analyzeFilesWithJavaIntegration$2.invoke(TopDownAnalyzerFacadeForJVM.kt:115)
at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration(TopDownAnalyzerFacadeForJVM.kt:125)
at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration$default(TopDownAnalyzerFacadeForJVM.kt:99)
.....
* What went wrong:
Execution failed for task ':project:compileKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Internal compiler error. See log for more details
Raehat Singh Nanda
03/16/2023, 1:05 PMRaehat Singh Nanda
03/16/2023, 1:05 PMRaehat Singh Nanda
03/16/2023, 1:05 PMRaehat Singh Nanda
03/16/2023, 7:57 PMRaehat Singh Nanda
03/16/2023, 11:04 PMimplementation 'io.arrow-kt:arrow-meta:1.6.0'
But I still can't resolve
import arrow.meta.quotes
If only this resolve issue is solved, everything will work just fine
I looked into the downloaded arrow meta package and found arrow.meta.quotes doesn't even existappmattus
03/29/2023, 4:57 PMPiotr Krzemiński
04/30/2023, 5:48 PMdephinera
05/21/2023, 1:18 PMconner
08/21/2023, 11:34 AMarrow-reflect-compiler-plugin
published? I'm attempting to use it from a build system that isn't gradle, but I can't find it in maven.
Tangentially, is using arrow-reflect
recommended right now, or should I use arrow-meta
directly?conner
08/21/2023, 6:38 PMTravis Miehm
11/29/2023, 4:11 PMTravis Miehm
12/11/2023, 2:23 PMNathan Bedell
05/20/2024, 7:16 PMFlow.ap { aFlow + bFlow }
Would translate into something like:
aFlow.combine(bFlow) { a, b -> a + b }
Similarly, a syntax for arrows would be really nice as well.
This comes up surprisingly often with some DSLs I have at work. For instance, I have a little "progress task" DSL for functions that have a notion of "progress tracking" associated with them, but they are not monadic as each function has some metadata associated with it denoting the amount of "steps" it takes to complete a task.Travis Miehm
07/31/2024, 5:16 PM