https://kotlinlang.org logo
#python-contributors
Title
# python-contributors
s

SerVB

09/10/2021, 6:55 PM
Piotr and I have some questions regarding so called "PIR": What is it? Is it safe to disable it? I see disabling it doesn't spoil anything visible. Only
out-pir
dir stops to be generated during box testing
👍 1
p

Piotr Krzemiński

09/10/2021, 7:11 PM
And a follow-up question: how does it relate to our Python backend? :)
this gave me some clue:
Copy code
val generatePir by generator("org.jetbrains.kotlin.ir.persistentIrGenerator.MainKt", mainSourceSet)
PIR = Persistent IR? I understand "persistent" as something that can be persisted aka. serialized and stored somewhere
🙃 1
@dmitriy.novozhilov could you help here?
d

dmitriy.novozhilov

09/15/2021, 9:19 AM
Actually I don't know nothing about it. Maybe @udalov can help?
u

udalov

09/15/2021, 3:30 PM
Yes, it’s the persistent IR, which can be used to get a view of any declaration at a time of any lowering. It’s used to implement incremental compilation support in JS IR backend. It’s not used in JVM, and I think it’s not used in Native.
🙏 2
s

SerVB

09/15/2021, 3:34 PM
Thank you! So I guess it's save to disable it for now in Python box tests
👍 1
6 Views