Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created September 25, 2024 14:09
Show Gist options
  • Save Whateverable/6801879cda47ce6f911a6a3782ca8e34 to your computer and use it in GitHub Desktop.
Save Whateverable/6801879cda47ce6f911a6a3782ca8e34 to your computer and use it in GitHub Desktop.
bisectable6
my %h = a => 1, b => 2; dd %h{all(<a b>)}:exists
Bisecting: 34 revisions left to test after this (roughly 5 steps)
[a260251b4d0e9a085f2a6ffe8a3cced9121eeab5] RakuAST: prevent unnecessary comment highlighting
»»»»» Testing a260251b4d0e9a085f2a6ffe8a3cced9121eeab5
»»»»» Script output:
all(Bool::True, Bool::True)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
all(Bool::True, Bool::True)
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 50b8614031f8f8921dea17e680656301dd5530bf
»»»»» Script output:
Bool::False
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
all(Bool::True, Bool::True)
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 36e8403dc1e77ee753502b4d8bd11d5d862c447f
»»»»» Script output:
Bool::False
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
all(Bool::True, Bool::True)
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 60dbc2016ecf682850fa5467306f908cb0194500
»»»»» Script output:
all(Bool::True, Bool::True)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
all(Bool::True, Bool::True)
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 83d7a7ffeaf707103edfc3ac157b773cac88b540
»»»»» Script output:
Bool::False
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
all(Bool::True, Bool::True)
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing dd66162a4095ea0afbd02bcff0f603d52b101319
»»»»» Script output:
Bool::False
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
all(Bool::True, Bool::True)
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
dd66162a4095ea0afbd02bcff0f603d52b101319 is the first new commit
commit dd66162a4095ea0afbd02bcff0f603d52b101319
Author: Elizabeth Mattijsen <liz@raku.rocks>
Date: Sun Sep 8 17:52:11 2024 +0200
Micro-opt for %h<a>:exists
Reduces the bytecode size of postcircumfix:<{ }>(:$exists!) from
216 to 92 bytes, allowing for easier inlining
src/core.c/hash_slice.rakumod | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment