Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created May 2, 2020 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/9e86fcd8176d6e1ead486e1b3a65e8b2 to your computer and use it in GitHub Desktop.
Save Whateverable/9e86fcd8176d6e1ead486e1b3a65e8b2 to your computer and use it in GitHub Desktop.
bisectable6
my @a = ^5; @a[2]:delete; dd @a.reverse
Bisecting: 5837 revisions left to test after this (roughly 13 steps)
[830084430330cd4c740b10353742a3eada46b7c9] Do not explode in IO::CatHandle.nl-out
»»»»» Testing 830084430330cd4c740b10353742a3eada46b7c9
»»»»» Script output:
(4, 3, Mu, 1, 0).Seq
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
[4, 3, Any, 1, 0]
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing acec1ea6cf2ad8fe001a108bf7007586a329eda5
»»»»» Script output:
[4, 3, Any, 1, 0]
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
[4, 3, Any, 1, 0]
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 25b664a2d6200878a9ed4f4576431627298628a8
»»»»» Script output:
(4, 3, Mu, 1, 0).Seq
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
[4, 3, Any, 1, 0]
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 9d7c0ab8ff97efecc1947d245f31875fd7b60da3
»»»»» Script output:
(4, 3, Mu, 1, 0).Seq
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
[4, 3, Any, 1, 0]
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 7c26985c6c85fd4f2af1e873d67d795de965ba73
»»»»» Script output:
[4, 3, Any, 1, 0]
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
[4, 3, Any, 1, 0]
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing e270a15bebdf4916301f9a4e97d5c88b42b261c1
»»»»» Script output:
[4, 3, Any, 1, 0]
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
[4, 3, Any, 1, 0]
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 9a74cd0e51405ba4e2f1fbf7f525b631bf2d7d37
»»»»» Script output:
[4, 3, Any, 1, 0]
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
[4, 3, Any, 1, 0]
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing dc198924ffe9122d31c28a091f9bed9359289cce
»»»»» Script output:
(4, 3, Mu, 1, 0).Seq
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
[4, 3, Any, 1, 0]
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 4707360a68d28fcaabad5828836f6768757ce0ae
»»»»» Script output:
(4, 3, Mu, 1, 0).Seq
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
[4, 3, Any, 1, 0]
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing a53b84aaed60e74e85829afe4b454c2bc291f0d2
»»»»» Script output:
(4, 3, Mu, 1, 0).Seq
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
[4, 3, Any, 1, 0]
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing dd1dab2e351e4f8f89b752a4fe57c49ae662e617
»»»»» Script output:
(4, 3, Mu, 1, 0).Seq
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
[4, 3, Any, 1, 0]
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing c5ab28fe2f5287640c0021e5794ec84da4d79feb
»»»»» Script output:
(4, 3, Mu, 1, 0).Seq
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
[4, 3, Any, 1, 0]
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing cf935ca58fef85a0f0413a5d7e9fb824fbb13759
»»»»» Script output:
(4, 3, Mu, 1, 0).Seq
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
[4, 3, Any, 1, 0]
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing beda5767ba6934e84122a0c0458a53d919c695d0
»»»»» Script output:
(4, 3, Mu, 1, 0).Seq
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
[4, 3, Any, 1, 0]
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
beda5767ba6934e84122a0c0458a53d919c695d0 is the first new commit
commit beda5767ba6934e84122a0c0458a53d919c695d0
Author: Elizabeth Mattijsen <liz@dijkmat.nl>
Date: Wed Mar 1 13:44:26 2017 +0100
Make List.reverse return a Seq
This appears to have been the intent in the speculation all along.
Reason for doing this is mainly to reduce memory pressure, as the
previous implementation would *always* create a copy of the reified
list. By making it a Seq, it will only create a copy if that is
needed.
On a 10 element list, the gain is about 30%. On a 1000 element list,
it's about even. But in either case, the memory pressure is about
1/3 of the previous implementation.
This breaks some spectests because they were specifically testing for
return type. The 1 dimensional shaped array case must still create
a copy, because otherwise .= reverse would not work correctly.
This also includes cleanup of R:In.ReverseListToList, as that is now
no longer needed/used.
Please revert if this is causing issues with the ecosystem or otherwise.
:040000 040000 8e71d6317efb1bd3f4e0917e3b7bf5b93fce81cc 0fa4931e873d9676ad1ae5189704b5a193f34777 M src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment