Ibrahim Numanagić
48a2bfa57a
Add Cython fixes (decorator arguments, pyvars support) ( #42 )
...
* Add Cython fixes (decorator arguments, pyvars support)
* Update CI and README
* Fix problematic test
* Don't track Cython-generated cpp file [ci skip]
* Fix test
* Various codon.jit improvements
* clang-format [ci skip]
* Add docs [ci skip]
* Add docs link
Co-authored-by: A. R. Shajii <ars@ars.me>
2022-08-03 16:36:03 -04:00
A. R. Shajii
a956a4d2a0
Fix release notes [ci skip]
2022-08-02 15:04:30 -04:00
A. R. Shajii
093427ebf7
Fix release notes [ci skip]
2022-08-02 15:00:47 -04:00
A. R. Shajii
4eae54708f
Trigger CI
2022-08-02 14:55:25 -04:00
A. R. Shajii
c128e59132
Annotation updates ( #41 )
...
* Fix gitignore, versions
* Add caching (WIP)
* Fix decorator
* Refactor
* Support tuple conversions
* Fix void; allow pyobj default conversion
* Improve setup
* Rename
* Fix JIT output capturing
* Support conversion of "complex"
* Allow class conversions
* Use Python number API
* Use Python API for (get/set/del)item
* Add decorator docs
* Cleanup
* Support slice and optional conversions
* Add comparison magics
* Remove Optional.__invert__() method
* Fix tests
* Fix test
* Add release notes
* New pybridge tests
* Update decorator tests
* Fix optional tuple handling
* Fix optional str() and repr()
* Add more decorator tests
* Fix optional.__bool__
* Update releases.md
* Add op tests
* Organize release notes [skip ci]
* clang-format [skip ci]
* Add r-magics to pyobj; more tests [skip ci]
* More pybridge tests
* Add plugin library paths to build command
* Remove walrus operator [skip ci]
* Fix optional operator handling; Fix right-magic handling
Co-authored-by: Ibrahim Numanagić <ibrahimpasa@gmail.com>
Co-authored-by: Ibrahim Numanagić <inumanag@users.noreply.github.com>
2022-08-02 14:53:17 -04:00
Ibrahim Numanagić
3dfd377d2f
Fix heterogenous tuple bug
2022-07-27 18:30:03 -07:00
A. R. Shajii
c6db6543d3
Fix OpenMP lock initialization issue in JIT mode ( #40 )
2022-07-27 13:42:13 -04:00
A. R. Shajii
7f7810eb95
Turn off TLS when building with Jupyter support
2022-07-27 09:15:14 -04:00
A. R. Shajii
54e66f377a
Bump version; fix build errors
2022-07-26 19:13:34 -04:00
A. R. Shajii
d5ce1f8ff9
Update docs ( #28 )
...
* Update docs
* Update docs
* Update docs
* GitBook: [#4 ] Add hint
* Update primer
* Re-organize docs
* Fix table
* Fix link
* GitBook: [#5 ] No subject
* GitBook: [#6 ] No subject
* Cleanup and doc fix
* Add IR docs
* Add ir docs
* Fix spelling error
* More IR docs
* Update README.md
* Update README.md
* Fix warning
* Update intro
* Update README.md
* Update docs
* Fix table
* Don't build docs
* Update docs
* Add Jupyter docs
* FIx snippet
* Update README.md
* Fix images
* Fix code block
* Update docs, update cmake
* Break up tutorial
* Update pipeline.svg
* Update docs for new version
* Add differences with Python docs
2022-07-26 16:08:42 -04:00
A. R. Shajii
963ddb3b60
Add allocation removal LLVM pass ( #39 )
...
* Add allocation removal LLVM pass
* Fix replacement
* Fix alloc demotion
* Remove tail calls as needed
* Fix instruction erasing
* Optimize reallocs
* Set string constants as unnamed_addr in LLVM
* Use peephole instead of loop-opt-late
2022-07-26 16:06:19 -04:00
Ibrahim Numanagić
cb945f569c
Typechecker refactoring ( #20 )
...
* Initial refactor commit
* Support external vars
* Simplify refactor; Python scoping [wip]
* Python scoping [wip]
* Python scoping [fix loops; wip]
* Fix lambdas
* Python scoping [test fixes; wip]
* Fix scoping [wip]
* Fix basic tests [no-ci]
* Fix tests
* CallExpr refactoring [wip]
* CallExpr refactoring [wip]
* Remove activeUnbounds tracking
* Add core.codon
* Move Function and other core types to core.codon; Revamp Function and Callable types
* Refactor IntExpr, FloatExpr and CallExpr
* Refactor ClassStmt
* Refactor context, IdExpr and DotExpr
* Refactor DotExpr and AssignStmt
* Refactor ImportStmt
* Refactor FunctionStmt
* Refactor
* Remove UpdateStmt
* Refactor AssignReplacementVisitor
* Make SimplifyVisitor in-place
* Fix new scoping
* Fix import type alias handling
* Add docstrings; Complete Simplify refactoring
* Fixes for seqtest
* Refactor typecheck [wip]
* Refactor typecheck [wip]
* Refactor typecheck/access; Remove void anduse NoneType; Fix #18
* Refactor typecheck/assign
* clang-format and cmake-format
* Fix none types in IR
* Multi-error support in simplify
* Fix IR tests for new void
* Simplify ClassStmt
* Refactor cond.cpp
* Refactor error.cpp
* Refactor function.cpp and simplify unbounds
* Refactor op.cpp
* Refactor call.cpp [wip] [no-ci]
* seqassertn updates [noci]
* Refactor call.cpp
* Refactor call.cpp
* Refactor call.cpp
* Refactor typecheck
* clang-tidy updates [noci]
* Refactor infer.cpp [wip]
* Refactor infer.cpp
* Refactor wrapExpr
* Remove visitedAsts
* Remove old base logic
* Refactor typecheck ctx
* Fix JIT bug
* Fix JIT tests
* Scoping fixes [wip] [noci]
* Fix ImperativeForFlow var store
* Add newlines [noci]
* Dump IR module with log flag
* Fix scoping bugs; Add &, ^ and | static operations; Address stylistic review issues
* Fix side effect analysis for for-loops
* Add support for class variables and ClassVar
* Refactor special dot-member cases
* Add codon app tests
* Fix class variables; clang-tidy
* Fix __argv__
* Add datetime constants and update tests
* Fix #25 ; Add Py_None, Py_True and Py_False; External var support [wip]
* External var support [wip]
* Dump LLVM IR when debug flags are active
* clang-format
* Fix arg var construction
* Extern var fixes
* Undo extern var changes related to stdout etc.
* Fix tuple magics
* Fix extern vars and tuple magics
* Fix duplicate var name error
* Fix extern vars
* Fix #16
* Fix side-effect analysis for try-catch
* Move test C var to test executable
* Add staticmethod
* Fix var status for try-catch
* Fix tests
* Fix shell var name
* Fix test
* Fix app test
* Fix scoping issue (remove dominated identifier from stack)
* Fix no-pie issue
* Use PIC when building library object
* Don't use -no-pie when building library [noci]
* Use -relocation-model=pic in test
* Fix lib build on Linux
* Fix lib build
* Update exceptions to use subclasses vs. header
* Fix __repr__
* Fix tests
* Fix exceptions test
* Don't build docs
Co-authored-by: A. R. Shajii <ars@ars.me>
2022-07-26 16:06:00 -04:00
A. R. Shajii
fcbcfb3540
re cleanup
2022-07-09 10:07:15 -04:00
A. R. Shajii
ec4b503e24
Fix dsymutil invocation on macOS
2022-07-08 19:21:54 -04:00
A. R. Shajii
f6bffa50a2
Full regex implementation ( #38 )
...
* IR escape analysis (WIP)
* Handle calls (WIP)
* Fix argument tracking (WIP)
* Cleanup
* Fix function caching
* Add annotations
* Add capture analysis
* Fixes
* Add tests
* More tests & fixes
* Refactor
* Add escape interface
* Fix consts
* Fix throw side effect
* Fix case for vararg C functions
* Add IR pass timing
* Fix internal func capture status
* Avoid warning on exe build
* More tests
* Fix var tracking & more tests
* Fix derived computation and more tests
* Optimization
* Better derived set generation
* More tests
* Cache reaching-def results
* Fix pass group repeat
* Fix use-after-free issue
* Initial re functions
* Cleanup
* Add parseCode
* Add parseCode
* Fix IR realization
* Allow for NumPy conversions
* Update re
* clang-format
* Add pattern methods
* Add more functions
* More functions
* Fixes
* Cleanup
* Add more functions
* Add groups()
* Add flags
* Use optionals where needed
* Support errors
* Fix replacement
* Fix sub
* Fix unescape
* Add tests
* Fix expand
* More tests
* More tests
* More tests
* Add remaining tests
* Revert Python changes
* Use atomic alloc
* Fix test
* Fix errors
* Fix unescape
Co-authored-by: Ibrahim Numanagić <ibrahimpasa@gmail.com>
2022-07-08 23:17:50 +00:00
A. R. Shajii
f79a0a838f
clang-format
2022-07-04 20:04:27 -04:00
A. R. Shajii
01840deb5f
Escape analysis in IR ( #33 )
...
* IR escape analysis (WIP)
* Handle calls (WIP)
* Fix argument tracking (WIP)
* Cleanup
* Fix function caching
* Add annotations
* Add capture analysis
* Fixes
* Add tests
* More tests & fixes
* Refactor
* Add escape interface
* Fix consts
* Fix throw side effect
* Fix case for vararg C functions
* Add IR pass timing
* Fix internal func capture status
* Avoid warning on exe build
* More tests
* Fix var tracking & more tests
* Fix derived computation and more tests
* Optimization
* Better derived set generation
* More tests
* Cache reaching-def results
* Fix pass group repeat
* Fix use-after-free issue
2022-07-02 11:48:19 -04:00
A. R. Shajii
fc4f1e9412
Bump version
2022-06-26 17:54:13 -04:00
A. R. Shajii
dc17f46246
Remove trailing whitespace
2022-06-26 17:39:30 -04:00
A. R. Shajii
9e276d8181
Cython package ( #34 )
...
* Add pip wheel to the build
* Fix CI
* Fix CI
* Fix CI
* Update setup.py to include stdlib; set CODON_PATH in extra/python package
* Fix CI
* CI debug
* CI fix
* CI fix
* Format
Co-authored-by: Ibrahim Numanagić <ibrahimpasa@gmail.com>
2022-06-26 17:38:29 -04:00
A. R. Shajii
d87f08e45d
Allow compilation to shared library ( #35 )
...
* Add new "-lib" option to make shared library
* Fix description
* Add main() as ctor if building shared library
* Fix extensions for macOS
* Minor refactor
* Make Import class a tuple
2022-06-26 17:27:31 -04:00
A. R. Shajii
ffc517c51e
Set rpath and use gcc when making executable ( #31 )
...
* Set rpath and use gcc when making executable
* Add other paths
* Add "linker-flags" option
* Fix Linux builds
* Fix CI
* Fix spelling
* clang-format
Co-authored-by: Ibrahim Numanagić <ibrahimpasa@gmail.com>
2022-06-22 16:00:40 -04:00
A. R. Shajii
af7cce08fe
Add special cases for length-1 patterns ( #32 )
2022-06-18 10:27:25 -04:00
A. R. Shajii
9b73bc0da3
OpenMP updates ( #30 )
...
* Support task-based reductions (wip)
* Fix task-based reductions (wip)
* Fix local reduction var reference
* Fix shared info access
* Fix reductions
* Add more tests for float reductions
* Update test
* Update test
* Add corner case tests
* Add nested par tests
* Add barrier to match clang's codegen
* Refactor to remove duplicated code
* Fix GC root registration via OpenMP patch
* Update deps.cmake
* Debug
* Debug
* Update thread registration with GC
* Update OpenMP
* Update OpenMP to new master
2022-06-06 19:31:48 -04:00
A. R. Shajii
7114f3430a
Fix ref type construction in IR
2022-05-20 20:44:49 -04:00
Ibrahim Numanagić
c33eda9353
Fix JIT state on error
2022-05-20 10:27:29 -07:00
A. R. Shajii
f9f4fb1b26
Don't publish empty output; remove magic number ( #27 )
2022-04-23 17:14:26 -04:00
A. R. Shajii
753151157d
Py interop fix ( #23 )
...
* Fix incref/decref
* Fixes
* Fix set __to_py__
* Add more Python conversion tests
* clang-format
* Make from_py/to_py use cobj instead of pyobj
* Remove unneeded increfs
* Fix cython
* Ignore __init_test__ in doc generation
* Add exception check
Co-authored-by: Ishak Numanagić <ishak.numanagic@gmail.com>
Co-authored-by: Ibrahim Numanagić <ibrahimpasa@gmail.com>
2022-04-07 00:33:49 -04:00
Ibrahim Numanagić
12e8fe7666
@codon Python decorator and Python interop fixes ( #19 )
...
* Codon decorator
* Move to extra/cython, add error handling
* Small fixes
* CR
* CR
* Fix cython CI
* Fix cython CI v2
* Fix cython CI v3
* Fix cython CI v4
* Fix cython CI v5
* Fix cython CI v6
* Fix cython CI v7
* Fix cython CI v8
* Fix cython CI v9
* Fix cython CI v10
* Fix cython CI v11
* CR
* Fix CI
* Fix CI
* Fix CI
* Fix CI
* Fix CI
Co-authored-by: Ishak Numanagić <ishak.numanagic@gmail.com>
2022-03-31 10:22:26 +02:00
A. R. Shajii
b47a9a844b
Jupyter quanto fixes ( #22 )
...
* Add methods to check for passes/analyses
* Fix xeus build
* clang-format
* Optimize JIT
* Allow jit mode to take data from file
* Fix OpenMP in JIT mode
* Update JIT main
* Update cloning
Co-authored-by: Ibrahim Numanagić <ibrahimpasa@gmail.com>
2022-03-19 10:29:41 -04:00
Ibrahim Numanagić
8bffbc88a5
Merge pull request #13 from exaloop/isnumanagic/stdlib
...
Standard library review
2022-02-28 13:33:32 -08:00
Ishak Numanagić
1f247f0bfd
Use new @overload decorator
2022-02-28 21:30:59 +01:00
Ishak Numanagić
5e3bd15495
CR pt. 2
2022-02-28 21:21:46 +01:00
Ishak Numanagić
8d72ff8cfa
CR pt. 1
2022-02-28 21:21:46 +01:00
Ishak Numanagić
ce268c81a3
Add get/set state to random lib
2022-02-28 21:07:53 +01:00
Ishak Numanagić
ac6fa3275b
Fix timsort
2022-02-28 21:07:53 +01:00
Ishak Numanagić
7af800565c
test/stdlib/*
2022-02-28 21:07:53 +01:00
Ishak Numanagić
f7a7dbfd05
stdlib/unittest.codon
2022-02-28 21:07:53 +01:00
Ishak Numanagić
6fa7c821d5
stdlib/time.codon
2022-02-28 21:07:53 +01:00
Ishak Numanagić
cb8384a019
stdlib/threading.codon
2022-02-28 21:07:53 +01:00
Ishak Numanagić
c5f96cd5e8
stdlib/sys.codon
2022-02-28 21:07:53 +01:00
Ishak Numanagić
390f2ac099
stdlib/string.codon
2022-02-28 21:07:53 +01:00
Ishak Numanagić
cfc0f563f1
stdlib/statistics.codon
2022-02-28 21:07:53 +01:00
Ishak Numanagić
76e025305c
stdlib/sortedlist.codon
2022-02-28 21:07:53 +01:00
Ishak Numanagić
191da796c7
stdlib/random.codon
2022-02-28 21:07:53 +01:00
Ishak Numanagić
4171d553d9
stdlib/pickle.codon
2022-02-28 21:07:53 +01:00
Ishak Numanagić
928d2a0c56
stdlib/os/path.codon
2022-02-28 21:07:53 +01:00
Ishak Numanagić
808e932685
stdlib/os/__init__.codon
2022-02-28 21:07:53 +01:00
Ishak Numanagić
c567842554
stdlib/operator.codon
2022-02-28 21:07:53 +01:00
Ishak Numanagić
06c88aa092
stdlib/openmp.codon
2022-02-28 21:07:53 +01:00