Skip to content
New issue

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

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

Already on GitHub? # to your account

cider: use jq stage #2342

Merged
merged 1 commit into from
Nov 6, 2024
Merged

cider: use jq stage #2342

merged 1 commit into from
Nov 6, 2024

Conversation

ekiwi
Copy link
Contributor

@ekiwi ekiwi commented Nov 6, 2024

Sorry, I overlooked Rachit's comment on the previous PR.

@ekiwi ekiwi enabled auto-merge (squash) November 6, 2024 14:54
@@ -161,7 +161,8 @@ fud2 --from calyx --to dat \
--through cider \
-s sim.data={}.data \
-s calyx.args="--log off" \
{} | jq --sort-keys
-s jq.flags="--sort-keys" \
Copy link
Contributor

Choose a reason for hiding this comment

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

Not related to this PR but: it seems that the only reason cider uses jq is to sort the keys. Can this instead be done within the compiler by using a LinkedHashMap or something right before emitting the data?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It might be feasible to do in the data converter. Depends a little bit on how the Rust JSON library does things, since that is used to generate the JSON. I don't think it is important enough to do anything about it right now though.

@ekiwi ekiwi merged commit 1acc612 into main Nov 6, 2024
18 checks passed
@ekiwi ekiwi deleted the jq-stage branch November 6, 2024 15:04
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants