Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Compiler to the EVM through Yul #238

Open
gabriel-barrett opened this issue Jan 8, 2023 · 0 comments · May be fixed by #239
Open

Compiler to the EVM through Yul #238

gabriel-barrett opened this issue Jan 8, 2023 · 0 comments · May be fixed by #239

Comments

@gabriel-barrett
Copy link
Member

We should write a compiler of Lean to the EVM. The best approach seems to be compiling it to Yul instead of the EVM directly. Yul is a first order language without function pointers and no jumps. To compile a higher-order program will then require us to write a function dispatcher. Thankfully, the paper on GRIN describes a way to make this efficient. The other things we have to consider is how objects (including closures) should be represented in memory so we can devise an allocator and a collector (which could be just refcounting)

@gabriel-barrett gabriel-barrett linked a pull request Jan 8, 2023 that will close this issue
@gabriel-barrett gabriel-barrett linked a pull request Jan 8, 2023 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant