1350 files changed
+197
-941995
No files matched your search
@@ -1,15 +1,15 @@
|
||||
#!/usr/bin/env node
|
||||
/**
|
||||
* Start a Mojo program of our own in the corpus: a probe or a stress program.
|
||||
* (An exercise's program in mojo/local/ is made by `pixi run new-exercise <id>`,
|
||||
* (An exercise's program in library/mojo/local/ is made by `pixi run new-exercise <id>`,
|
||||
* which also writes the exercise that shows it.)
|
||||
*
|
||||
* pixi run new-probe int-floordiv-negative "does // floor toward negative infinity?"
|
||||
* pixi run new-stress ring-buffer "a fixed-size queue with wraparound"
|
||||
*
|
||||
* probe mojo/probes/<name>.mojo one question about the pinned compiler; godbolt's
|
||||
* probe library/mojo/probes/<name>.mojo one question about the pinned compiler; godbolt's
|
||||
* answer is the point (expectation: observe)
|
||||
* stress mojo/stress/<name>.mojo realistic Mojo for the interpreter; its
|
||||
* stress library/mojo/stress/<name>.mojo realistic Mojo for the interpreter; its
|
||||
* `# expect-stdout:` lines are the prediction that
|
||||
* godbolt confirms or refutes (expectation: pass)
|
||||
*
|
||||
@@ -22,8 +22,8 @@ import { fileURLToPath } from 'node:url';
|
||||
|
||||
const ROOT = fileURLToPath(new URL('../..', import.meta.url));
|
||||
const KINDS = {
|
||||
probe: { dir: 'mojo/probes', corpus: 'probes' },
|
||||
stress: { dir: 'mojo/stress', corpus: 'stress' },
|
||||
probe: { dir: 'library/mojo/probes', corpus: 'probes' },
|
||||
stress: { dir: 'library/mojo/stress', corpus: 'stress' },
|
||||
};
|
||||
|
||||
function die(msg) { console.error(`new-program: ${msg}`); process.exit(1); }
|
||||
|
||||
Reference in new issue
Block a user