Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions quest/m3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ generic std gap is planned here even when moq never calls it.
- [A parameter read only where lowering leaves nothing](/quest/m3/ts-unread-params.md) - an instance whose lowering drops every read of a parameter marks it unused, so `tsc` accepts it
- [Zip's next_back in constant time](/quest/m3/ts-zip-back.md) - a reversed zip of random-access iterators skips the longer side's excess at once
- [Unbounded ranges as iterators adaptors take](/quest/m3/ts-range-from-iter.md) - `iter.zip(0..)` and other adaptors taking a `start..` type-check
- [Cloning std's iterators](/quest/m3/ts-iter-clone.md) - `clone` of std's iterators and adaptors translates, each clone reading on independently
- [The TS benchmark's A/B route as documented](/quest/m3/ts-bench-route.md) - the README's A/B bench command runs as written
17 changes: 17 additions & 0 deletions quest/m3/ts-bench-route.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# [XS] The TS benchmark's A/B route as documented

## Goal

The A/B run [the TS README](/ts/README.md#bench) documents times another checkout's
translation as one more route, as written.

## Plan

Found by [#314](https://github.com/moq-dev/rust2/pull/314) on 2026-10-30:
`just ts bench --route main=<dir>` fails, since the recipe takes `checkout` and `route`
as positional parameters and no `--route` flag, and `just` reads a positional
`main=<dir>` as a variable override, failing with "justfile does not contain recipe".
Make the recipe take the route the way the README shows, or the README show a form that
works, and run the documented command once to prove it.

Public API: none.
23 changes: 23 additions & 0 deletions quest/m3/ts-iter-clone.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# [S] Cloning std's iterators

## Goal

[rust2-ts](/ts/README.md) translates `clone` of std's iterators and adaptors, such as a
`zip`, a `map`, a `chars`, and a set operation's iterator, the clone reading on from where
the original was, independently of it, proven by differential tests against native Rust.

## Plan

Found by [#314](https://github.com/moq-dev/rust2/pull/314) writing its zip fixture, and
by [#302](https://github.com/moq-dev/rust2/pull/302), where the set operations'
iterators refuse `clone` as other std iterators do. Planned without a moq consumer, under
the maintainer's 2026-10-27 decision that rust2 aims to support all of std.

- An `rt.Iter` that reads a collection by position clones its position; one that reads
another iterator clones that one too, as std's derived `Clone` does, and a closure an
adaptor holds is cloned as Rust clones the closure's captures.
- A clone must not share state the original advances: test both read after the clone,
in turns, including partially read ones, a zip past its shorter side, and adaptors whose
closures capture values that drop.

Public API: the translator's output.