Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat: The Lurk evaluation in Loam #7

Merged
merged 5 commits into from
Nov 14, 2024
Merged

feat: The Lurk evaluation in Loam #7

merged 5 commits into from
Nov 14, 2024

Conversation

winston-h-zhang
Copy link
Contributor

@winston-h-zhang winston-h-zhang commented Oct 30, 2024

This PR implements an initial version of the signal synthesis stage in the Loam compiler. We go from Loam to a fully synthesized program, and implement a minimal Lurk in the Loam syntax.

Notes:

  • evaluation.lisp contains the Lurk implementation, as well as a suite of tests checking for correctness.
  • Env representation was simplified back to conses for ease of initial implementation.
  • Some changes for more ergonomic trace messages, builtin handling.
  • Loam syntax a bit messy but cleanup left for later PR.

loam/data.lisp Outdated Show resolved Hide resolved
loam/data.lisp Outdated Show resolved Hide resolved
loam/data.lisp Outdated Show resolved Hide resolved
loam/data.lisp Outdated Show resolved Hide resolved
@winston-h-zhang
Copy link
Contributor Author

@porcuquine To generally address your comments about env: I've simplified the current implementation to use cons based envs, mirroring the implementation in Rust Loam. So any matching on the :env tag won't be run anymore and some things have been commented out temporarily.

loam/datalog.lisp Outdated Show resolved Hide resolved
@winston-h-zhang winston-h-zhang marked this pull request as ready for review November 4, 2024 18:12
loam/evaluation.lisp Outdated Show resolved Hide resolved
Co-authored-by: porcuquine <porcuquine@users.noreply.github.com>
loam/evaluation.lisp Outdated Show resolved Hide resolved
@winston-h-zhang winston-h-zhang merged commit ad8873a into main Nov 14, 2024
1 check passed
@winston-h-zhang winston-h-zhang deleted the lurk-eval branch November 14, 2024 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants