Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created December 28, 2016 01:28
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/a42303f40cee7e8b08dab14a8f8788fc to your computer and use it in GitHub Desktop.
Save Whateverable/a42303f40cee7e8b08dab14a8f8788fc to your computer and use it in GitHub Desktop.
bisectable6
my $a = uint32.new(10); say $a.WHAT
Bisecting: 1449 revisions left to test after this (roughly 11 steps)
[eb79d73bfe0a7e88e997e2319dbcc69b2ba90774] Make for @a.kv -> $k, $v { } 4x as fast
»»»»» Testing eb79d73bfe0a7e88e997e2319dbcc69b2ba90774
»»»»» Script output:
(uint32)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(uint32)
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing e4fdc32d6d9062e169165d02a6ac920fc22177da
»»»»» Script output:
(Int)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(uint32)
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 5dba970cadb9e0be42ce112d40b1b0b61f02202d
»»»»» Script output:
(uint32)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(uint32)
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 641ee1e088105b2efd7ebf149f0e674aecb2fea9
»»»»» Script output:
(uint32)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(uint32)
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing b77d2b71db1703fc9acbfacedb934a80d94a6a15
»»»»» Script output:
(uint32)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(uint32)
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 6977b8741386aeb789907d77c0df111d46ded612
»»»»» Script output:
(Int)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(uint32)
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 7a50c308239ff9bb41dcd949af5085515fc5765a
»»»»» Script output:
(uint32)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(uint32)
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 8023dfbc6ff1cb71903fae5fd4d92ed63027719b
»»»»» Script output:
(Int)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(uint32)
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing a48e7a7dd379c8c21502f3bb108b8b3bac4a5720
»»»»» Script output:
(uint32)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(uint32)
»»»»» The output is identical
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 6f7e4bdce8dbd73f478e98ed897fa81f4a76517f
»»»»» Script output:
(Int)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(uint32)
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing ff50cef62d5f71eeb27cf46f4d0ca59ce3f4b8c3
»»»»» Script output:
(Int)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(uint32)
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 798c2e2dca34e5cf93da99d1f401eb161efca854
»»»»» Script output:
(Int)
»»»»» Script exit code: 0
»»»»» Bisecting by output
»»»»» Output on “old” revision is:
(uint32)
»»»»» The output is different
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
798c2e2dca34e5cf93da99d1f401eb161efca854 is the first new commit
commit 798c2e2dca34e5cf93da99d1f401eb161efca854
Author: Zoffix Znet <cpan@zoffix.com>
Date: Wed Oct 5 15:03:20 2016 +0000
Fix Int.new for large values
Currently Int.new in range 2⁶³-2⁶⁴ gives incorrect negative results
and gives unboxing errors for larger values.
Fix it by coercing the value to an .Int, so we can handle a larger range of
possible accepted values, and then cloning the value, so we get a new object,
that is decoupled from any cached numeric constants.
:040000 040000 e40c20bea8e7739900ef03bc09e611fb8ad74ec6 e276267791aa77d5680b12ee1c519f919ffd0472 M src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment