lpython
lpython copied to clipboard
Python compiler
I thought I had the PYTHONPATH figured out, but `CType` can't be found. ``` PYTHONPATH=/Users/brian/Dropbox/Mac/Documents/GitHub/lpython/integration_tests/../src/runtime/lpython:/Users/brian/Dropbox/Mac/Documents/GitHub/lpython/integration_tests/.. python bindc_03.py Traceback (most recent call last): File "/Users/brian/Dropbox/Mac/Documents/GitHub/lpython/integration_tests/bindc_03.py", line 12, in def g(a: CPtr,...
Running standalone, the following all work in the directory `integration_tests` ``` lpython bindc_01.py lpython bindc_02.py lpython bindc_07.py lpython bindc_08.py lpython bindc_09.py lpython bindc_09b.py lpython bindc_10.py ``` However, `bindc_11.py` produces an...
```python from numpy import empty, int16 from lpython import (i16, i32, CPtr, ccall, sizeof) @ccall def _lfortran_malloc(size : i32) -> CPtr: """borrowed from bindc_07.py in integration_tests""" pass def main(): n...
All these work in CPython. LPython produces an unhandled exception: ```python from numpy import empty, int16 from numpy import empty, int16 from lpython import (i16, i32, Allocatable) # doesn't work:...
```python from numpy import array, empty, int16 from lpython import (i16, i32, c_p_pointer, Pointer, CPtr, TypeVar) Tn = TypeVar("n") Tm = TypeVar("m") Tl = TypeVar("l") def THIS_WORKS(Anm_l4: CPtr, Tn: i32,...
Some high priority ideas for GSoC are those that will bring LPython closer to production: * https://github.com/lcompilers/lpython/issues/2470 * https://github.com/lcompilers/lpython/issues/2409 * https://github.com/lcompilers/lpython/issues/2474 * https://github.com/lcompilers/lpython/issues/2471 * https://github.com/lcompilers/lpython/issues/2473 * Get ASR->Fortran finished *...
We have initial implementation working, we now have to extend it to work for all backends well, support printing, etc.
I'd like a mode or command-line switch that tells LPython to print all error messages it can find in a file as opposed to the current behavior, which seems to...
Ensure more types and cases are handled, that it works with all backends (C and LLVM), that it works in "JIT" mode using the lpython decorator from CPython.
For the next deliverable: * [ ] fastGPT implementation in LPython (https://github.com/lcompilers/lpython/issues/2409) * [ ] Make sure LPython is at least as fast as C++ for every simple benchmark (currently...