SerVB
10/15/2021, 7:08 PMSerVB
10/29/2021, 4:58 PM:(
Even classes that look like common ones judging by name. So looks like a deep understanding of the new infra is required to adapt our code to it, almost from scratch. Or maybe when JS IR is migrated to it, we could reuse it again. For now, I just ported some pieces of our code to the new infra, but it's only about 5-10% of what's needed to be ported. Although, there are some good news: I see how we can simplify our current testing even more, there is still some unused stuff left from JS.
• Continued with IrTry but now the blocker is that exceptions can't be constructed (there is some JS-specific logic).
Next time:
• Prettify our testing a bit more: remove more unneeded pieces; take a look at ignored tests for Python Backend and maybe remove those declarations because we now don't depend on JS.
• Research constructing exceptions.SerVB
11/01/2021, 8:32 AMPiotr Krzemiński
11/02/2021, 12:21 PMSerVB
11/10/2021, 9:03 AMSerVB
11/12/2021, 2:26 PMfun eq_double_any(a: Double, b: Any) = a == b
eq_double_any(0.0, -0.0) // should be false but we in Python return true
At the same time:
fun eq_doubleN_double(a: Double?, b: Double) = a == b
eq_doubleN_double(0.0, -0.0) // should be true (and we return true)
:mind-blown:SerVB
11/12/2021, 6:12 PMPiotr Krzemiński
11/14/2021, 7:34 AMjimn
11/16/2021, 6:06 AM"<*>" will be illegal in 1.7
I came up with the notion that intellij is dominantly written in kotlin and kotlin has a PSI editor with syntax embedding which is therefore going to have significant export compatibility with kotlin as well, whether currently done or otherwise.
in my code I would if i could simply wrap C code into an embedding and accept a guided tour of compiler errors to flesh out the declaration gaps needed.
Instead I have been using sed and operator overloads to examine the gap and fill in the machinations that apparently already exist in a kotlin-native exports version of CPP.
This also got me to thinking that this python project was making some mention of the steep difficulties in porting while there sits volumes of presumably kotlin-friendly pycharm code.
The dichotomy appears unfortunate to me, that we pay and priotize editors which can perform language specific mappings while my experience proposing flexible language constructs in every language development conversation I have undertaken is almost always met with a summary that is not far from "we are very happy with how we solve programming problems and we feel that stability and usability excludes such matters".
but if that's the case then why is there in fact so much effort undertaken from scratch to build front-end harnasses for the language that our editor front-ends are already doing a spectacular job of?SerVB
11/19/2021, 9:00 AM"X object has no attribute 'constructor'"Those and similar are related to suspend functions support.
Inspect other failure reasons.From what I picked, mostly it's about some stuff in stdlib. And one was about variable names that are keywords in Python ("invalid syntax"). I will take a look at stdlib then. WASM one, as suggested. By the way, as K 1.6.0 is out, maybe it's time to sync with upstream...
SerVB
11/19/2021, 2:27 PMpython/experiments/generate-box-tests-reports.main.kts
for me pretty stably 😞 I think I disable the plot generation for nowSerVB
11/19/2021, 2:32 PMSerVB
11/19/2021, 4:10 PMSerVB
11/19/2021, 4:41 PMPiotr Krzemiński
11/21/2021, 5:55 PMSerVB
11/26/2021, 4:47 PMPiotr Krzemiński
11/30/2021, 8:00 AMSlackbot
12/01/2021, 10:44 AMPiotr Krzemiński
12/02/2021, 12:45 PMSerVB
12/03/2021, 6:56 PMSerVB
12/03/2021, 6:59 PMSerVB
12/10/2021, 6:23 PMSerVB
12/10/2021, 6:24 PMSerVB
12/10/2021, 6:31 PMSerVB
12/17/2021, 8:00 PMSerVB
12/17/2021, 8:48 PMmartmists
12/23/2021, 7:43 PMPiotr Krzemiński
01/19/2022, 1:54 PMSerVB
01/26/2022, 6:45 PM> Task :compiler:resolution:compileKotlin
e: error while writing /home/servb/IdeaProjects/kotlin-python/compiler/resolution/build/classes/kotlin/main/org/jetbrains/kotlin/resolve/calls/components/CollectionTypeVariableUsagesInfo$isContainedInInvariantOrContravariantPositionsWithDependencies$isContainedAnyDependentTypeInReturnType$1$1.class (Permission denied)
Any ideas what the problem is? Probably too long path but then I'm wondering why it's worked before...SerVB
02/04/2022, 11:59 AMSerVB
02/04/2022, 11:59 AMPiotr Krzemiński
02/04/2022, 12:01 PMpython-backend
. The PR is still work-in-progress, I don't even know if I'll push it forward. I was overly optimistic regarding removing of too much lowerings, so either I'll approach it by trying one-by-one removal, or postpone