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

Rearrange the API again to fix compilation environments #9

Merged
merged 1 commit into from
Oct 22, 2023

Conversation

Bike
Copy link
Member

@Bike Bike commented Oct 21, 2023

A lot to summarize, but basically:

  1. Any environment can inherit from another environment. The
    functions in Clostrum check for inherited data. The functions
    in clostrum-sys do not have to, so implementations can focus
    on themselves, as long as they provide a PARENT somehow.
  2. FUNCTION-DESCRIPTION etc. accessors are eliminated. Instead,
    compilation and runtime environments are accessed through a
    common API. The only real differences between them are that
    a) run-time-environments can't inherit from compilation envs
    b) compilation environments do not have function or variable cells
    c) or packages
  3. said common API includes new OPERATOR-FTYPE etc. accessors.

TODO: Tests, documentation.

See precipitating discussion in #sicl: https://irclog.tymoon.eu/libera/%23sicl?around=1697887992#1697887992

@Bike Bike force-pushed the compiler-environment-redo branch from 6250037 to 134c411 Compare October 21, 2023 18:53
A lot to summarize, but basically:

1) Any environment can inherit from another environment. The
   functions in Clostrum check for inherited data. The functions
   in clostrum-sys do not have to, so implementations can focus
   on themselves, as long as they provide a PARENT somehow.
2) FUNCTION-DESCRIPTION etc. accessors are eliminated. Instead,
   compilation and runtime environments are accessed through a
   common API. The only real differences between them are that
   a) run-time-environments can't inherit from compilation envs
   b) compilation environments do not have function or variable cells
   c) or packages
3) said common API includes new OPERATOR-FTYPE etc. accessors.

TODO: Tests, documentation.
@Bike Bike force-pushed the compiler-environment-redo branch from 134c411 to 25d17e7 Compare October 21, 2023 20:57
@robert-strandh robert-strandh marked this pull request as ready for review October 22, 2023 13:36
@robert-strandh robert-strandh merged commit 22cbc5e into master Oct 22, 2023
3 checks passed
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