Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created July 17, 2025 07:17
Show Gist options
  • Save Whateverable/bd159682abb90668a1eaff1683e20712 to your computer and use it in GitHub Desktop.
Save Whateverable/bd159682abb90668a1eaff1683e20712 to your computer and use it in GitHub Desktop.
bisectable6
old=2023.02 <a b c 1 2 3>.duckmap({ $_ + 1 }).say
Bisecting: 1969 revisions left to test after this (roughly 11 steps)
[5c195f1241ace672099936b596d786ecb2e1836b] RakuAST: Have Definedness' base type be the actual base type
»»»»» Testing 5c195f1241ace672099936b596d786ecb2e1836b
»»»»» Cannot test this commit. Reason: Broken archive
»»»»» Therefore, skipping this revision
»»»»» -------------------------------------------------------------------------
»»»»» Testing b4f58fe3563bea77ffc5707e204ebb23374e7386
»»»»» Cannot test this commit. Reason: Broken archive
»»»»» Therefore, skipping this revision
»»»»» -------------------------------------------------------------------------
»»»»» Testing 0e9a0ee3e6b1f7a688f8dc00103771810d3a1f2a
»»»»» Script output:
Cannot convert string to number: base-10 number must begin with valid digits or '.' in '⏏a' (indicated by ⏏)
in block <unit> at /tmp/IDW0ShLzd1 line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 4707dc5ab2ac2d388dd54657e717a35615597a9e
»»»»» Cannot test this commit. Reason: Broken archive
»»»»» Therefore, skipping this revision
»»»»» -------------------------------------------------------------------------
»»»»» Testing 610bcfaf0f6dc64e94d359cbc0386a84d30e23f7
»»»»» Script output:
(a b c 2 3 4)
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 3d91a34c70649187ad65f73f7cb984b98bf7faa7
»»»»» Cannot test this commit. Reason: Broken archive
»»»»» Therefore, skipping this revision
»»»»» -------------------------------------------------------------------------
»»»»» Testing 8bc5bdd5a3c563b60b0af60ef947f6ced7bf71c7
»»»»» Cannot test this commit. Reason: Broken archive
»»»»» Therefore, skipping this revision
»»»»» -------------------------------------------------------------------------
»»»»» Testing e3ad75a6915e11e8b693a7e7c08de6ab4d2c32db
»»»»» Script output:
(a b c 2 3 4)
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 1cfdd167e49e70eb1a5a014d8077ef11e428eb0c
»»»»» Script output:
(a b c 2 3 4)
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 6fa7c425cbf6aaab35b082c0733b09b49307506c
»»»»» Cannot test this commit. Reason: Broken archive
»»»»» Therefore, skipping this revision
»»»»» -------------------------------------------------------------------------
»»»»» Testing c3c6e4585f9841d585433b12aa8563b05e9a2459
»»»»» Script output:
(a b c 2 3 4)
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 07c8b1193bfd9162a595b7b58e7feeb48718b89c
»»»»» Script output:
(a b c 2 3 4)
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 194206736f4b6edb5f056168940cf791cf67d9f0
»»»»» Script output:
(a b c 2 3 4)
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 1e0025c3090f51a99a8049aee111f9995fb20625
»»»»» Script output:
Cannot convert string to number: base-10 number must begin with valid digits or '.' in '⏏a' (indicated by ⏏)
in block <unit> at /tmp/IDW0ShLzd1 line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 59631b18da5bed3bd78db1826f6241614ece54f7
»»»»» Script output:
Cannot convert string to number: base-10 number must begin with valid digits or '.' in '⏏a' (indicated by ⏏)
in block <unit> at /tmp/IDW0ShLzd1 line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 0f5d54d2387c712e242910cb04d6312be2504bcc
»»»»» Script output:
Cannot convert string to number: base-10 number must begin with valid digits or '.' in '⏏a' (indicated by ⏏)
in block <unit> at /tmp/IDW0ShLzd1 line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 09c89d1f1d8cc3347290e3b2651f909b860dbaa4
»»»»» Script output:
(a b c 2 3 4)
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 6c6a7da68378c6bcfa2913344367d856caaa5c3e
»»»»» Script output:
(a b c 2 3 4)
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing c1fd67363ca3a6c7b59d1f779fb53a054ffa1320
»»»»» Script output:
(a b c 2 3 4)
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 0
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
0f5d54d2387c712e242910cb04d6312be2504bcc is the first new commit
commit 0f5d54d2387c712e242910cb04d6312be2504bcc
Author: Elizabeth Mattijsen <[email protected]>
Date: Wed Oct 2 15:06:18 2024 +0200
Don't create unnecessary Failures on numeric infix operators
- Add helper methods in Rakudo::Internals that will coerce the given
(non-numeric) values before feeding it to the infix operator given.
If the left side of the op coerces to a Failure, return that. If
the right side of the op coerces to a Failure, return that. Otherwise
apply the op on the coerced values and return that.
- Apply this to these infixes:
+ - * / % %% lcm gcd ** == =~= < <= > >= +& +! +^ +< +>
As mentioned in #1502.
Also streamline / add several zero and 1 argument candidates of infix ops.
This allows:
$ raku -e 'for ^20000 { .say if "foo" == "bar" }'
to be run without having thousands of notes like:
WARNING: unhandled Failure detected in DESTROY. If you meant to ignore
it, you can mark it as handled by calling .Bool, .so, .not, or .defined
methods. The Failure was:
Cannot convert string to number: base-10 number must begin with valid
digits or '.' in '⏏foo' (indicated by ⏏)
src/core.c/Numeric.rakumod | 141 ++++++++++++++++++++++++------------
src/core.c/Rakudo/Internals.rakumod | 36 +++++++++
2 files changed, 131 insertions(+), 46 deletions(-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment