1
0
mirror of https://github.com/exaloop/codon.git synced 2025-06-03 15:03:52 +08:00

7 Commits

Author SHA1 Message Date
A. R. Shajii
01840deb5f
Escape analysis in IR ()
* 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
d87f08e45d
Allow compilation to shared library ()
* 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
Ishak Numanagić
8d72ff8cfa CR pt. 1 2022-02-28 21:21:46 +01:00
Ishak Numanagić
eee893b32a stdlib/internal/internal.codon 2022-02-28 20:57:12 +01:00
Ibrahim Numanagić
cc634d1940
Improved logic for handling overloaded functions ()
* Backport seq-lang/seq@develop fixes

* Backport seq-lang/seq@develop fixes

* Select the last matching overload by default (remove scoring logic); Add dispatch stubs for partial overload support

* Select the last matching overload by default [wip]

* Fix various bugs and update tests

* Add support for partial functions with *args/**kwargs; Fix partial method dispatch

* Update .gitignore

* Fix grammar to allow variable names that have reserved word as a prefix

* Add support for super() call

* Add super() tests; Allow static inheritance to inherit @extend methods

* Support for overloaded functions [wip; base logic done]

* Support for overloaded functions

* Update .gitignore

* Fix partial dots

* Rename function overload 'super' to 'superf'

* Add support for super()

* Add tests for super()

* Add tuple_offsetof

* Add tuple support for super()

* Add isinstance support for inherited classes; Fix review issues

Co-authored-by: A. R. Shajii <ars@ars.me>
2022-01-11 20:39:15 -05:00
A. R. Shajii
35895ed811 Transition to __repr__ 2021-10-12 16:16:24 -04:00
A. R. Shajii
0d185019f3 .seq to .codon 2021-10-01 09:56:35 -04:00