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

Recursive data structures are broken #11

Open
pdarragh opened this issue Nov 30, 2023 · 0 comments
Open

Recursive data structures are broken #11

pdarragh opened this issue Nov 30, 2023 · 0 comments

Comments

@pdarragh
Copy link
Contributor

pdarragh commented Nov 30, 2023

Related to #10.

The ziggy bits->value functions recurse without pause. Consider the case for vectors in Hoax:

https://github.com/cmsc430/www/blob/d6fbb58e6062b6723a159a168b48cff128d542cc/ziggy/src/types.rkt#L44-L50

I think bits->value could be reworked to include a map from addresses to reconstituted values so we can reconstruct cyclical heap-allocated data structures.

Depending on how complex the final implementation is, it might give us an opportunity to talk about cyclical data structures explicitly in the course.

@dvanhorn dvanhorn transferred this issue from cmsc430/cmsc430.github.io Oct 29, 2024
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

No branches or pull requests

1 participant