News for hackers. Stuff that matters.
Re:LPython: Novel, Fast, Retargetable Python Compiler by certik on Saturday July 29, 2023 @02:42PM (#36923187)
Yes. ASR is as abstract as it can be, but it is still faithful to the original language, no information has been lost, nothing was lowered.
Re:LPython: Novel, Fast, Retargetable Python Compiler by rebcabin001 on Saturday July 29, 2023 @02:58PM (#36923330)
Right. Decompilation with ASR should be relatively easy and more faithful than average decompilation (though, as mentioned by another commenter, the very-long-term value of decompilation in general is debatable in the face of rising AI like CoPilot).
Re:LPython: Novel, Fast, Retargetable Python Compiler by peterfirefly on Saturday July 29, 2023 @03:21PM (#36923559)
How do you manage to do that for Python AND Fortran in the same language?
Re:LPython: Novel, Fast, Retargetable Python Compiler by certik on Saturday July 29, 2023 @04:19PM (#36924135)
By being a superset of Fortran and subset of Python. It turns out the features map on each other almost 1:1, and the differences can be taken care of by the respective frontends, so the abstracted ASR maps perfectly.