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

Merging ScalarStore and LightStore into ZStore #351 #364

Merged
merged 245 commits into from
Jul 4, 2023

Conversation

johnchandlerburnham
Copy link
Member

@johnchandlerburnham johnchandlerburnham commented Apr 24, 2023

Merge LightStore and ScalarStore

(See #352 #353 )

Copy link
Member

@huitseeker huitseeker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the main issues left to deal with are:

  • the tests in z-data-{exprs, store}.rs which are at the moment 100% commented out,
  • issues to open, notably one for cycle detection in store fetches,

Otherwise, this LGTM! (colossal amount of work, kudos everyone!)


#[derive(Debug)]
/// `CacheMap` is an adaptation of `FrozenMap`:
/// `<https://docs.rs/elsa/latest/elsa/map/struct.FrozenMap.html>`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would also be nice to have a line on what’s different from FrozenMap (the hasher).

test(&mut s, "0xa/", "0xa");
}
}
//#[cfg(test)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ping

src/z_data/z_cont.rs Show resolved Hide resolved
src/eval/reduction.rs Outdated Show resolved Hide resolved
src/store.rs Show resolved Hide resolved
src/store.rs Show resolved Hide resolved
src/syntax.rs Show resolved Hide resolved
src/z_data/serde/ser.rs Show resolved Hide resolved
Copy link
Member

@huitseeker huitseeker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM! thanks for bringing this one home, folks!

@huitseeker huitseeker enabled auto-merge July 3, 2023 21:29
@huitseeker huitseeker added this pull request to the merge queue Jul 4, 2023
Merged via the queue into master with commit 57dfee0 Jul 4, 2023
@huitseeker huitseeker deleted the jcb/scalar_store_refactor branch July 4, 2023 17:27
huitseeker added a commit to huitseeker/lurk-rs that referenced this pull request Jul 5, 2023
Since argumentcomputer#364, the store relies on Rc<Refcell<_>> to ensure unique access to the store.

This is a runtime check that would lead to a panic should some other piece of code retain a reference to the store in a call to `get_expr`.
This PR eliminates the need for this unnecessary construct, and re-established the use of the borrow checker to ensure static memory safety.
huitseeker added a commit to huitseeker/lurk-rs that referenced this pull request Jul 5, 2023
Since argumentcomputer#364, the store relies on Rc<Refcell<_>> to ensure unique access to the store.

This is a runtime check that would lead to a panic should some other piece of code retain a reference to the store in a call to `get_expr`.
This PR eliminates the need for this unnecessary construct, and re-established the use of the borrow checker to ensure static memory safety.
huitseeker added a commit to huitseeker/lurk-rs that referenced this pull request Jul 5, 2023
Since argumentcomputer#364, the store relies on Rc<Refcell<_>> to ensure unique access to the store.

This is a runtime check that would lead to a panic should some other piece of code retain a reference to the store in a call to `get_expr`.
This PR eliminates the need for this unnecessary construct, and re-established the use of the borrow checker to ensure static memory safety.
github-merge-queue bot pushed a commit that referenced this pull request Jul 7, 2023
Since #364, the store relies on Rc<Refcell<_>> to ensure unique access to the store.

This is a runtime check that would lead to a panic should some other piece of code retain a reference to the store in a call to `get_expr`.
This PR eliminates the need for this unnecessary construct, and re-established the use of the borrow checker to ensure static memory safety.
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.

Parsing error
7 participants