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

Memory. #198

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Memory. #198

wants to merge 1 commit into from

Conversation

Alon-Ti
Copy link
Contributor

@Alon-Ti Alon-Ti commented Nov 25, 2024

This change is Reviewable

Copy link
Contributor Author

Alon-Ti commented Nov 25, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

This was referenced Nov 25, 2024
@Alon-Ti Alon-Ti marked this pull request as ready for review November 25, 2024 14:27
Copy link
Contributor

@shaharsamocha7 shaharsamocha7 left a comment

Choose a reason for hiding this comment

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

Reviewed 8 of 11 files at r1, all commit messages.
Reviewable status: 8 of 11 files reviewed, 7 unresolved discussions (waiting on @Alon-Ti)


a discussion (no related file):
Do you merge that to main?


runnair/crates/runner/src/memory/relocatable.rs line 1 at r1 (raw file):

use std::collections::HashMap;

Is there a reference to this code so it will be easy to check?

Code quote:

use std::collections::HashMap;

runnair/Cargo.toml line 22 at r1 (raw file):

rand = "0.8.5"
serde = "1.0.207"
serde_json = "1.0.1"

Can we take those from the workspace?
I don't want it to have conflicts with Stwo imports as we are going to run this code together.

Code quote:

itertools = "0.12.0"
log = "0.4.21"
num-traits = "0.2.17"
rand = "0.8.5"
serde = "1.0.207"
serde_json = "1.0.1"

runnair/crates/runner/src/memory/mod.rs line 16 at r1 (raw file):

#[derive(Debug, Clone, Default)]
pub struct Memory {

Document!

Code quote:

#[derive(Debug, Clone, Default)]
pub struct Memory {

runnair/crates/runner/src/memory/mod.rs line 18 at r1 (raw file):

pub struct Memory {
    // TODO(alont) Consdier changing the implementation to segment -> (offset -> value) for memory
    // locality.

Shouldn't we do this TODO now so we won't stuck with this impl?

Code quote:

    // TODO(alont) Consdier changing the implementation to segment -> (offset -> value) for memory
    // locality.

runnair/crates/runner/src/memory/mod.rs line 93 at r1 (raw file):

        assert_eq!(memory[M31(1)], QM31::zero().into());
        assert_eq!(memory[M31(1235)], QM31::from(M31(1246)).into());

how did you got this number?

Code quote:

QM31::from(M31(1246)).into()

runnair/rust-toolchain.toml line 2 at r1 (raw file):

[toolchain]
channel = "nightly-2024-01-04"

same Q about stwo toolchain

Code quote:

channel = "nightly-2024-01-04"

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