louiscad
02/21/2023, 4:41 PMZac Sweers
02/21/2023, 4:45 PMZac Sweers
02/21/2023, 4:46 PMlouiscad
02/21/2023, 4:47 PMZac Sweers
02/21/2023, 4:47 PMZac Sweers
02/21/2023, 4:47 PMlouiscad
02/21/2023, 4:48 PMZac Sweers
02/21/2023, 4:48 PMZac Sweers
02/21/2023, 4:48 PMlouiscad
02/21/2023, 4:48 PMandroid-lib.gradle.kts
Zac Sweers
02/21/2023, 4:48 PMlouiscad
02/21/2023, 4:49 PMZac Sweers
02/21/2023, 4:49 PMephemient
02/21/2023, 4:49 PMlouiscad
02/21/2023, 4:50 PMZac Sweers
02/21/2023, 4:51 PMlouiscad
02/21/2023, 4:51 PMephemient
02/21/2023, 4:51 PMephemient
02/21/2023, 4:52 PMZac Sweers
02/21/2023, 4:53 PMephemient
02/21/2023, 4:55 PMlouiscad
02/21/2023, 4:55 PMlouiscad
02/21/2023, 4:56 PMZac Sweers
02/21/2023, 4:56 PMlouiscad
02/21/2023, 4:56 PMephemient
02/21/2023, 4:57 PMephemient
02/21/2023, 4:57 PMlouiscad
02/21/2023, 4:59 PMlouiscad
02/21/2023, 5:00 PMlouiscad
02/21/2023, 5:00 PMephemient
02/21/2023, 5:01 PMephemient
02/21/2023, 5:01 PMlouiscad
02/21/2023, 5:03 PMephemient
02/21/2023, 5:03 PMephemient
02/21/2023, 5:03 PMlouiscad
02/21/2023, 5:04 PMephemient
02/21/2023, 5:05 PMephemient
02/21/2023, 5:05 PMephemient
02/21/2023, 5:07 PMlouiscad
02/21/2023, 5:07 PMlouiscad
02/21/2023, 5:08 PMephemient
02/21/2023, 5:08 PMephemient
02/21/2023, 5:08 PMlouiscad
02/21/2023, 5:09 PMlouiscad
02/21/2023, 5:09 PMlouiscad
02/21/2023, 5:11 PMJavier
02/21/2023, 5:41 PMbuildSrc
build-logic
(or whatever included build) can't be simpler than buildSrc
as build-logic
can be, literally, buildSrc
configuration plus additional configuration.
For middle-point projects should be great that buildSrc
was just an included build automatically added which only codegen plugin accessors, no more than that. And some movements from Gradle are in that direction (I think buildSrc
is not running the tests now for example)Zac Sweers
02/21/2023, 6:35 PMZac Sweers
02/21/2023, 6:36 PMJavier
02/21/2023, 6:43 PMafterEvaluate
, or a callback hell to avoid it.
And I am not a fan of adding phases, I had enough "phases" with Android Activity and Fragment lifecycles...dmitriy.novozhilov
02/22/2023, 8:26 AMbuildSrc
performance which is quite rare (comparing to all other compiler usescases)gildor
02/22/2023, 8:30 AMAnyway, feedback loop to edit buildSrc content and try changes is slow if using Kotlin@louiscad But… it’s literally faster x1.7 times for non-abi case using Kotlin, exactly what you are asking for
louiscad
02/22/2023, 10:52 AMgildor
02/22/2023, 10:53 AMlouiscad
02/22/2023, 11:10 AMlouiscad
02/22/2023, 11:12 AMkotlin
command, without any argument blob thinking upside downmcpiroman
02/22/2023, 11:24 AMdmitriy.novozhilov
02/22/2023, 11:45 AMCould also be helpful when you need to test a tiny ABI impacting thing in a module that a lot of other modules depend on and would get recompiled forThere is a thing which supports this usecase. It is an incremental compilation which is supported on compiler level and on gradle level. AFAIU gradle does not reuse compiler IC atm but our and gradle teams are working on it
It'd perform all resolution and static analysis lazily on runtime if there's no up to date fully-compiled version.Same, it's what IC does. But on compile time
I think people in datascience would also like such a modeThere is a Jupiter kernel for Kotlin
louiscad
02/22/2023, 11:52 AMlouiscad
02/22/2023, 11:56 AMThere is a Jupiter kernel for KotlinYep, I know, never tried it but I guess it's fully compiling the code on every change, correct?
There is a thing which supports this usecase. It is an incremental compilation which is supported on compiler level and on gradle level. AFAIU gradle does not reuse compiler IC atm but our and gradle teams are working on itAs I was writing all this, I actually started to wonder: it shouldn't be that slow… IC exists, is it disabled somehow? Now you're confirming me that it isn't. Is there an issue to follow about IC in Gradle and its buildSrc + includedBuild? I think that would become my #1 issue.
dmitriy.novozhilov
02/22/2023, 12:08 PMThis is not about an interpreted mode at all, but since it's around the same problem, and still related to the compiler, I'm sharing that idea here.This proposal is not about compiler, but about IDE. I'm not a fan of it (because it's better for me to wait explicit compilation but without sporadic compiler invocation in background) but it's worth to make a feature request in YT
Yep, I know, never tried it but I guess it's fully compiling the code on every change, correct?AFAIK it works over repl and reuses compiled code from snippets which weren't changed
Is there an issue to follow about IC in Gradle and its buildSrc + includedBuild?Almost any change in
buildSrc
triggers recompilation of build scripts, it's just how buildSrc
works. So if you have any pains with it, it's worth to discuss them with Gradle teamThiago
02/22/2023, 3:02 PMephemient
02/22/2023, 3:14 PM