Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created May 16, 2017 20:34
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/6628de27aaf7039000387b4a3a059774 to your computer and use it in GitHub Desktop.
Save Whateverable/6628de27aaf7039000387b4a3a059774 to your computer and use it in GitHub Desktop.
bisectable6
my @a = [1,[2,3],4]; dd @a.duckmap({ $_ ~~ Int ?? $_++ !! Any });
Bisecting: 2149 revisions left to test after this (roughly 11 steps)
[e2cd7a3207faaa6464fdf0fe024f2448dce0cb8a] Unzoffix method call to use same style as rest of code
»»»»» Testing e2cd7a3207faaa6464fdf0fe024f2448dce0cb8a
»»»»» Script output:
(1, Any, 4)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(1, (2, 3), 4)
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 65e1b54c9d751b5d85ce650369391a80baf8113a
»»»»» Script output:
(1, (2, 3), 4)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(1, (2, 3), 4)
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 59f040d2b8b6dd207b3b8d7d4e851de40b1bfe63
»»»»» Script output:
(1, (2, 3), 4)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(1, (2, 3), 4)
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing f55e113290a3a931c7960fb404cdb012872e642c
»»»»» Script output:
(1, (2, 3), 4)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(1, (2, 3), 4)
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 76d5854c74da2c44eedccdec8f9714af1ee1737d
»»»»» Script output:
(1, (2, 3), 4)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(1, (2, 3), 4)
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 2dd6230b721c7f4fff69fac10d4f44c0228a1a8f
»»»»» Script output:
(1, Any, 4)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(1, (2, 3), 4)
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 447d592693278186a5fe90e3ed32c4c4806b6d9a
»»»»» Script output:
(1, Any, 4)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(1, (2, 3), 4)
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 448f8263c093b64bc0aed5f829b4fb8595ed011f
»»»»» Script output:
(1, (2, 3), 4)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(1, (2, 3), 4)
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 59e3e0e6e0674b8f059081085ee983595a01ecee
»»»»» Script output:
(1, (2, 3), 4)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(1, (2, 3), 4)
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 74b5d7f64700bff97b1767ad49354613cfcb8780
»»»»» Script output:
(1, (2, 3), 4)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(1, (2, 3), 4)
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 38ec2e28fd392c8454c1860e22c98999bec0404c
»»»»» Script output:
(1, (2, 3), 4)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(1, (2, 3), 4)
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing ca93ac9084d74a4e2e4bf7d247c230e8b1e39330
»»»»» Script output:
(1, Any, 4)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(1, (2, 3), 4)
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
ca93ac9084d74a4e2e4bf7d247c230e8b1e39330 is the first new commit
commit ca93ac9084d74a4e2e4bf7d247c230e8b1e39330
Author: Jan-Olof Hendig <jan-olof.hendig@bredband.net>
Date: Mon Sep 26 22:00:38 2016 +0200
Fix for RT #129321
Under some circumstances duckmap could recurse indefinitely. The problem
was that if the expression returned undef for an argument the code would
gladly take the same argument, which caused the problem, and call
duckmap again leading to a hang or OOM condition. After a discussion with
with TimToady++ in #perl6 he came up with a solution to the problem which
is what this commit contains.
:040000 040000 d5af0d2fff6bd26b434891efe72dd7aef8b8c304 63ad71143a7117adca7cda1f9c91b100ec142e9f M src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment