Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created May 10, 2024 00:18
Show Gist options
  • Save Whateverable/dd216c861acc690dfa73c11c8afd9ef0 to your computer and use it in GitHub Desktop.
Save Whateverable/dd216c861acc690dfa73c11c8afd9ef0 to your computer and use it in GitHub Desktop.
bisectable6
old=2024.02 my $a = "(b)"; my $b = $a.encode; $b.^name.say; use NativeCall; my $ca = CArray[uint8].new($b)
Bisecting: 213 revisions left to test after this (roughly 8 steps)
[65f349a5cbd91169dec48b712fb4cad3d7a90ff2] RakuAST: throw the appropriate error for negative array index literals
»»»»» Testing 65f349a5cbd91169dec48b712fb4cad3d7a90ff2
»»»»» Script output:
utf8
Saw 1 occurrence of deprecated code.
================================================================================
The PERL6LIB environment variable being set, support will be removed with v6.e.
Please use RAKULIB instead.
--------------------------------------------------------------------------------
Please contact the author to have these occurrences of deprecated code
adapted, so that this message will disappear!
»»»»» 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 0eb99b8a9476d1842b9c4716b6a3c2144c7c2f02
»»»»» Script output:
utf8
Saw 1 occurrence of deprecated code.
================================================================================
The PERL6LIB environment variable being set, support will be removed with v6.e.
Please use RAKULIB instead.
--------------------------------------------------------------------------------
Please contact the author to have these occurrences of deprecated code
adapted, so that this message will disappear!
»»»»» 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 4a64b3af2299926e3752d957eb90c400ff1f52e9
»»»»» Script output:
utf8
Saw 1 occurrence of deprecated code.
================================================================================
The PERL6LIB environment variable being set, support will be removed with v6.e.
Please use RAKULIB instead.
--------------------------------------------------------------------------------
Please contact the author to have these occurrences of deprecated code
adapted, so that this message will disappear!
»»»»» 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 3ec47540d9b309ea473a0e64976074f48ff117a2
»»»»» Script output:
utf8
Saw 1 occurrence of deprecated code.
================================================================================
The PERL6LIB environment variable being set, support will be removed with v6.e.
Please use RAKULIB instead.
--------------------------------------------------------------------------------
Please contact the author to have these occurrences of deprecated code
adapted, so that this message will disappear!
»»»»» 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 bd4261627a4820e1d504d8d3d75975d2be2c0fcf
»»»»» Script output:
utf8
This representation (VMArray) does not support attribute storage (for type utf8)
in method new at /tmp/whateverable/rakudo-moar/bd4261627a4820e1d504d8d3d75975d2be2c0fcf/share/perl6/core/sources/F49E6E26370E281704BF5E2DABCBED8F01163EA2 (NativeCall::Types) line 410
in block <unit> at /tmp/qlDmZJZcH_ line 1
Saw 1 occurrence of deprecated code.
================================================================================
The PERL6LIB environment variable being set, support will be removed with v6.e.
Please use RAKULIB instead.
--------------------------------------------------------------------------------
Please contact the author to have these occurrences of deprecated code
adapted, so that this message will disappear!
»»»»» 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 c9a0de80d6f2c19953ce7f48abe4a0b99e9b4f53
»»»»» Script output:
utf8
Saw 1 occurrence of deprecated code.
================================================================================
The PERL6LIB environment variable being set, support will be removed with v6.e.
Please use RAKULIB instead.
--------------------------------------------------------------------------------
Please contact the author to have these occurrences of deprecated code
adapted, so that this message will disappear!
»»»»» 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 0b3d180dc91f57515981d827e0cfb451e3364023
»»»»» Script output:
utf8
Saw 1 occurrence of deprecated code.
================================================================================
The PERL6LIB environment variable being set, support will be removed with v6.e.
Please use RAKULIB instead.
--------------------------------------------------------------------------------
Please contact the author to have these occurrences of deprecated code
adapted, so that this message will disappear!
»»»»» 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 89d4d42bb39b21e4f00c73b9d915daf5334ae461
»»»»» Script output:
utf8
This representation (VMArray) does not support attribute storage (for type utf8)
in method new at /tmp/whateverable/rakudo-moar/89d4d42bb39b21e4f00c73b9d915daf5334ae461/share/perl6/core/sources/E61BAC5FD3B9B6174FC49C17C67C5BA1D3A2802B (NativeCall::Types) line 348
in block <unit> at /tmp/qlDmZJZcH_ line 1
Saw 1 occurrence of deprecated code.
================================================================================
The PERL6LIB environment variable being set, support will be removed with v6.e.
Please use RAKULIB instead.
--------------------------------------------------------------------------------
Please contact the author to have these occurrences of deprecated code
adapted, so that this message will disappear!
»»»»» 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 3861b8f8f27028426f27733d48872fc9ff7a0631
»»»»» Script output:
utf8
This representation (VMArray) does not support attribute storage (for type utf8)
in method new at /tmp/whateverable/rakudo-moar/3861b8f8f27028426f27733d48872fc9ff7a0631/share/perl6/core/sources/B45FE06CB8AB72CB6B51BAF1189F1E78D9AA7AB1 (NativeCall::Types) line 362
in block <unit> at /tmp/qlDmZJZcH_ line 1
Saw 1 occurrence of deprecated code.
================================================================================
The PERL6LIB environment variable being set, support will be removed with v6.e.
Please use RAKULIB instead.
--------------------------------------------------------------------------------
Please contact the author to have these occurrences of deprecated code
adapted, so that this message will disappear!
»»»»» 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”
3861b8f8f27028426f27733d48872fc9ff7a0631 is the first new commit
commit 3861b8f8f27028426f27733d48872fc9ff7a0631
Author: Elizabeth Mattijsen <liz@raku.rocks>
Date: Sat May 4 19:24:06 2024 +0200
Streamline NativeCall::Types (part 1/N)
Basically an almost complete re-imagination:
- add quick lookup for supported REPRs in Pointer / CArray
- abstract parameterization errors into a helper sub
- make sure signatures contain :D if only working on instances
- simplify Pointer.Bool
- simplify Proxies to use blocks instead of nameless methods
- speedup TypedCArray.allocate|list|new methods
- use nqp::istype instead of ~~
- use ternaries instead of if structures
- replace TypedCArray.new allocation hack by something smarter
- more comments
lib/NativeCall/Types.rakumod | 454 ++++++++++++++++++++++++++-----------------
1 file changed, 277 insertions(+), 177 deletions(-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment