Skip to content

Conversation

@Duneus
Copy link

@Duneus Duneus commented Jul 1, 2025

Endpoint added by this PR allows for running a suite of sims that are identical besides the adjusted stats.

Current implementation lets you specify which stats you want to compare, what is the increment by which each sim should change the value of both stats and what are the upper and lower bounds for the comparison. The output can later be put into a neat graphical form.

const { stdout } = await execAsync('go env GOROOT');
const GO_ROOT = stdout.replace('\n', '');
const wasmExecutablePath = path.join(GO_ROOT, '/misc/wasm/wasm_exec.js');
const wasmExecutablePath = path.join(GO_ROOT, '/lib/wasm/wasm_exec.js');
Copy link
Author

Choose a reason for hiding this comment

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

oh yeah, this path was changed at some point in the attributable, had to patch this or it wouldn't work locally, I guess it's irrelevant

Copy link

Choose a reason for hiding this comment

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

this would actually be good to update, since this has been a proper path to wasm-exec.js for a while now.

Copy link

Choose a reason for hiding this comment

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

I just implemented a change that was merged into master supporting the go 1.24 change where they moved this. Don't forget to merge in the latest changes to your fork

@Duneus Duneus force-pushed the add-chart-sim-handler branch from 4313933 to b764917 Compare July 1, 2025 20:00
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.

3 participants