Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package nqp for openSUSE:Factory checked in at 2021-03-29 18:21:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/nqp (Old) and /work/SRC/openSUSE:Factory/.nqp.new.2401 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nqp" Mon Mar 29 18:21:57 2021 rev:35 rq:881721 version:2021.03 Changes: -------- --- /work/SRC/openSUSE:Factory/nqp/nqp.changes 2021-02-22 14:41:02.160662613 +0100 +++ /work/SRC/openSUSE:Factory/.nqp.new.2401/nqp.changes 2021-03-29 18:22:00.346276259 +0200 @@ -1,0 +2,8 @@ +Sun Mar 21 21:47:04 CET 2021 - n...@detonation.org + +- update to version 2021.03 + * Support some missing Rakudo command line flags + * Comment out two lines only needed during debugging + * Eliminate the ops sec_n, asec_n and sech_h, which are no longer used. + +------------------------------------------------------------------- Old: ---- nqp-2021.02.tar.gz New: ---- nqp-2021.03.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nqp.spec ++++++ --- /var/tmp/diff_new_pack.TJnEnb/_old 2021-03-29 18:22:00.862276788 +0200 +++ /var/tmp/diff_new_pack.TJnEnb/_new 2021-03-29 18:22:00.862276788 +0200 @@ -17,15 +17,15 @@ Name: nqp -Version: 2021.02 +Version: 2021.03 Release: 1.1 Summary: Not Quite Perl License: Artistic-2.0 Group: Development/Languages/Other URL: http://rakudo.org/ Source: nqp-%{version}.tar.gz -BuildRequires: moarvm-devel >= 2021.02 -Requires: moarvm >= 2021.02 +BuildRequires: moarvm-devel >= 2021.03 +Requires: moarvm >= 2021.03 BuildRoot: %{_tmppath}/%{name}-%{version}-build %description ++++++ nqp-2021.02.tar.gz -> nqp-2021.03.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nqp-2021.02/VERSION new/nqp-2021.03/VERSION --- old/nqp-2021.02/VERSION 2021-02-21 11:43:07.000000000 +0100 +++ new/nqp-2021.03/VERSION 2021-03-20 14:12:08.000000000 +0100 @@ -1 +1 @@ -2021.02 +2021.03 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nqp-2021.02/azure-pipelines.yml new/nqp-2021.03/azure-pipelines.yml --- old/nqp-2021.02/azure-pipelines.yml 2021-02-21 11:41:53.000000000 +0100 +++ new/nqp-2021.03/azure-pipelines.yml 2021-03-20 14:11:43.000000000 +0100 @@ -104,12 +104,12 @@ echo "##vso[task.setvariable variable=JAVA_HOME]$(JAVA_HOME_11_X64)" echo "##vso[task.setvariable variable=PATH]$(JAVA_HOME_11_X64)/bin:$(PATH)" displayName: "Set java version (non-Windows)" - condition: and( eq( variables['BACKEND'], 'JVM'), ne( variables['Agent.OS'], 'Windows_NT' ) ) + condition: and(succeeded(), eq( variables['BACKEND'], 'JVM'), ne( variables['Agent.OS'], 'Windows_NT' ) ) - pwsh: | echo "##vso[task.setvariable variable=JAVA_HOME]$(JAVA_HOME_11_X64)" echo "##vso[task.setvariable variable=PATH]$(JAVA_HOME_11_X64)\bin;$(PATH)" displayName: "Set java version (Windows)" - condition: and( eq( variables['BACKEND'], 'JVM'), eq( variables['Agent.OS'], 'Windows_NT' ) ) + condition: and(succeeded(), eq( variables['BACKEND'], 'JVM'), eq( variables['Agent.OS'], 'Windows_NT' ) ) - checkout: self path: selfrepo @@ -117,11 +117,11 @@ - script: perl selfrepo/tools/build/checkout-repos-for-test.pl $(RAKUDO_CHECKOUT_TYPE) $(NQP_CHECKOUT_TYPE) $(MOAR_CHECKOUT_TYPE) workingDirectory: $(Pipeline.Workspace) - condition: ne( variables['BACKEND'], 'JVM') + condition: and(succeeded(), ne( variables['BACKEND'], 'JVM')) displayName: Checkout repositories (MoarVM) - script: perl selfrepo/tools/build/checkout-repos-for-test.pl $(RAKUDO_CHECKOUT_TYPE) $(NQP_CHECKOUT_TYPE) none workingDirectory: $(Pipeline.Workspace) - condition: eq( variables['BACKEND'], 'JVM') + condition: and(succeeded(), eq( variables['BACKEND'], 'JVM')) displayName: Checkout repositories (JVM) # Build MoarVM @@ -129,7 +129,7 @@ perl Configure.pl --prefix=../install $(MOAR_OPTIONS) make install workingDirectory: '$(Pipeline.Workspace)/MoarVM' - condition: and( ne( variables['Agent.OS'], 'Windows_NT' ), ne( variables['BACKEND'], 'JVM') ) + condition: and(succeeded(), ne( variables['Agent.OS'], 'Windows_NT' ), ne( variables['BACKEND'], 'JVM')) displayName: Build MoarVM - pwsh: | ${{ variables.PWSH_DEV }} @@ -137,7 +137,7 @@ nmake install failOnStderr: false workingDirectory: '$(Pipeline.Workspace)/MoarVM' - condition: and( eq( variables['Agent.OS'], 'Windows_NT' ), ne( variables['BACKEND'], 'JVM') ) + condition: and(succeeded(), eq( variables['Agent.OS'], 'Windows_NT' ), ne( variables['BACKEND'], 'JVM')) displayName: Build MoarVM (Windows) # Build NQP @@ -145,7 +145,7 @@ perl Configure.pl --prefix=../install $(NQP_OPTIONS) make install workingDirectory: '$(Pipeline.Workspace)/nqp' - condition: ne( variables['Agent.OS'], 'Windows_NT' ) + condition: and(succeeded(), ne( variables['Agent.OS'], 'Windows_NT' )) displayName: Build NQP - pwsh: | ${{ variables.PWSH_DEV }} @@ -153,7 +153,7 @@ nmake install failOnStderr: false workingDirectory: '$(Pipeline.Workspace)/nqp' - condition: eq( variables['Agent.OS'], 'Windows_NT' ) + condition: and(succeeded(), eq( variables['Agent.OS'], 'Windows_NT' )) displayName: Build NQP (Windows) # Build Rakudo @@ -161,7 +161,7 @@ perl Configure.pl --prefix=../install $(RAKUDO_OPTIONS) make install workingDirectory: '$(Pipeline.Workspace)/rakudo' - condition: ne( variables['Agent.OS'], 'Windows_NT' ) + condition: and(succeeded(), ne( variables['Agent.OS'], 'Windows_NT' )) displayName: Build Rakudo - pwsh: | ${{ variables.PWSH_DEV }} @@ -169,74 +169,74 @@ nmake install failOnStderr: false workingDirectory: '$(Pipeline.Workspace)/rakudo' - condition: eq( variables['Agent.OS'], 'Windows_NT' ) + condition: and(succeeded(), eq( variables['Agent.OS'], 'Windows_NT' )) displayName: Build Rakudo (Windows) # TODO: Should use "install moved" instead of "install-moved". But `prove` currently fails with an executable path that contains a space. - script: mv install install-moved workingDirectory: $(Pipeline.Workspace) - condition: and( eq( variables['RELOCATABLE'], 'yes' ), ne( variables['Agent.OS'], 'Windows_NT' ) ) + condition: and(succeeded(), eq( variables['RELOCATABLE'], 'yes' ), ne( variables['Agent.OS'], 'Windows_NT' ) ) displayName: Move installation - pwsh: mv install install-moved workingDirectory: $(Pipeline.Workspace) - condition: and( eq( variables['RELOCATABLE'], 'yes' ), eq( variables['Agent.OS'], 'Windows_NT' ) ) + condition: and(succeeded(), eq( variables['RELOCATABLE'], 'yes' ), eq( variables['Agent.OS'], 'Windows_NT' ) ) displayName: Move installation (Windows) # Test NQP - script: prove -j0 -r -e ../install/bin/nqp t/nqp t/hll t/qregex t/p5regex t/qast t/moar t/serialization t/nativecall t/concurrency workingDirectory: '$(Pipeline.Workspace)/nqp' - condition: and( ne( variables['RELOCATABLE'], 'yes' ), ne( variables['BACKEND'], 'JVM'), ne( variables['Agent.OS'], 'Windows_NT' ) ) + condition: and(succeeded(), ne( variables['RELOCATABLE'], 'yes' ), ne( variables['BACKEND'], 'JVM'), ne( variables['Agent.OS'], 'Windows_NT' ) ) displayName: Test NQP - pwsh: | ${{ variables.PWSH_DEV }} prove -j0 -r -e ..\install\bin\nqp t\nqp t\hll t\qregex t\p5regex t\qast t\moar t\serialization t\nativecall t\concurrency workingDirectory: '$(Pipeline.Workspace)/nqp' - condition: and( ne( variables['RELOCATABLE'], 'yes' ), ne( variables['BACKEND'], 'JVM'), eq( variables['Agent.OS'], 'Windows_NT' ) ) + condition: and(succeeded(), ne( variables['RELOCATABLE'], 'yes' ), ne( variables['BACKEND'], 'JVM'), eq( variables['Agent.OS'], 'Windows_NT' ) ) displayName: Test NQP (Windows) - script: prove -j0 -r -e ../install/bin/nqp t/nqp t/hll t/qregex t/p5regex t/qast t/jvm t/serialization t/nativecall workingDirectory: '$(Pipeline.Workspace)/nqp' - condition: and( ne( variables['RELOCATABLE'], 'yes' ), eq( variables['BACKEND'], 'JVM'), ne( variables['Agent.OS'], 'Windows_NT' ) ) + condition: and(succeeded(), ne( variables['RELOCATABLE'], 'yes' ), eq( variables['BACKEND'], 'JVM'), ne( variables['Agent.OS'], 'Windows_NT' ) ) displayName: Test NQP (JVM) - pwsh: | ${{ variables.PWSH_DEV }} prove -j0 -r -e ..\install\bin\nqp t\nqp t\hll t\qregex t\p5regex t\qast t\jvm t\serialization t\nativecall workingDirectory: '$(Pipeline.Workspace)/nqp' - condition: and( False, ne( variables['RELOCATABLE'], 'yes' ), eq( variables['BACKEND'], 'JVM'), eq( variables['Agent.OS'], 'Windows_NT' ) ) + condition: and( False, succeeded(), ne( variables['RELOCATABLE'], 'yes' ), eq( variables['BACKEND'], 'JVM'), eq( variables['Agent.OS'], 'Windows_NT' ) ) displayName: Test NQP (Windows, JVM) - script: prove -j0 -r -e ../install-moved/bin/nqp t/nqp t/hll t/qregex t/p5regex t/qast t/moar t/serialization t/nativecall t/concurrency workingDirectory: '$(Pipeline.Workspace)/nqp' - condition: and( eq( variables['RELOCATABLE'], 'yes' ), ne( variables['BACKEND'], 'JVM'), ne( variables['Agent.OS'], 'Windows_NT' ) ) + condition: and(succeeded(), eq( variables['RELOCATABLE'], 'yes' ), ne( variables['BACKEND'], 'JVM'), ne( variables['Agent.OS'], 'Windows_NT' ) ) displayName: Test NQP (relocated) - pwsh: | ${{ variables.PWSH_DEV }} prove -j0 -r -e ..\install-moved\bin\nqp t\nqp t\hll t\qregex t\p5regex t\qast t\moar t\serialization t\nativecall t\concurrency workingDirectory: '$(Pipeline.Workspace)/nqp' - condition: and( eq( variables['RELOCATABLE'], 'yes' ), ne( variables['BACKEND'], 'JVM'), eq( variables['Agent.OS'], 'Windows_NT' ) ) + condition: and(succeeded(), eq( variables['RELOCATABLE'], 'yes' ), ne( variables['BACKEND'], 'JVM'), eq( variables['Agent.OS'], 'Windows_NT' ) ) displayName: Test NQP (relocated, Windows) # Test Rakudo - script: prove -e ../install/bin/perl6 -vlr t workingDirectory: '$(Pipeline.Workspace)/rakudo' - condition: and( ne( variables['RELOCATABLE'], 'yes' ), ne( variables['BACKEND'], 'JVM'), ne( variables['Agent.OS'], 'Windows_NT' ) ) + condition: and(succeeded(), ne( variables['RELOCATABLE'], 'yes' ), ne( variables['BACKEND'], 'JVM'), ne( variables['Agent.OS'], 'Windows_NT' ) ) displayName: Test Rakudo - pwsh: | ${{ variables.PWSH_DEV }} prove -e ..\install\bin\perl6 -vlr t workingDirectory: '$(Pipeline.Workspace)/rakudo' - condition: and( ne( variables['RELOCATABLE'], 'yes' ), ne( variables['BACKEND'], 'JVM'), eq( variables['Agent.OS'], 'Windows_NT' ) ) + condition: and(succeeded(), ne( variables['RELOCATABLE'], 'yes' ), ne( variables['BACKEND'], 'JVM'), eq( variables['Agent.OS'], 'Windows_NT' ) ) displayName: Test Rakudo (Windows) - script: prove -e ../install-moved/bin/perl6 -vlr t workingDirectory: '$(Pipeline.Workspace)/rakudo' - condition: and( eq( variables['RELOCATABLE'], 'yes' ), ne( variables['BACKEND'], 'JVM'), ne( variables['Agent.OS'], 'Windows_NT' ) ) + condition: and(succeeded(), eq( variables['RELOCATABLE'], 'yes' ), ne( variables['BACKEND'], 'JVM'), ne( variables['Agent.OS'], 'Windows_NT' ) ) displayName: Test Rakudo (relocated) - pwsh: | ${{ variables.PWSH_DEV }} prove -e ..\install-moved\bin\perl6 -vlr t workingDirectory: '$(Pipeline.Workspace)/rakudo' - condition: and( eq( variables['RELOCATABLE'], 'yes' ), ne( variables['BACKEND'], 'JVM'), eq( variables['Agent.OS'], 'Windows_NT' ) ) + condition: and(succeeded(), eq( variables['RELOCATABLE'], 'yes' ), ne( variables['BACKEND'], 'JVM'), eq( variables['Agent.OS'], 'Windows_NT' ) ) displayName: Test Rakudo (relocated, Windows) - publish: $(Pipeline.Workspace)/install-moved - condition: and( eq( variables['RELOCATABLE'], 'yes' ), ne( variables['BACKEND'], 'JVM') ) + condition: and(succeeded(), eq( variables['RELOCATABLE'], 'yes' ), ne( variables['BACKEND'], 'JVM') ) displayName: Publish build artifact diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nqp-2021.02/docs/ops.markdown new/nqp-2021.03/docs/ops.markdown --- old/nqp-2021.02/docs/ops.markdown 2021-02-21 11:41:53.000000000 +0100 +++ new/nqp-2021.03/docs/ops.markdown 2021-03-20 14:11:43.000000000 +0100 @@ -489,14 +489,11 @@ ## [Trigonometric](#trig) [acos](#acos) | -[asec](#asec) | [asin](#asin) | [atan](#atan) | [atan2](#atan2) | [cos](#cos) | [cosh](#cosh) | -[sec](#sec) | -[sech](#sech) | [sin](#sin) | [sinh](#sinh) | [tan](#tan) | @@ -3276,11 +3273,6 @@ Arccosine. -## asec -* `asec_n(num $n --> num)` - -Arcsecant. - ## asin * `asin_n(num $n --> num)` @@ -3306,16 +3298,6 @@ Hyperbolic cosine. -## sec -* `sec_n(num $n --> num))` - -Secant. - -## sech -* `sech_n(num $n --> num))` - -Hyperbolic secant. - ## sin * `sin_n(num $n --> num))` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nqp-2021.02/src/HLL/Compiler.nqp new/nqp-2021.03/src/HLL/Compiler.nqp --- old/nqp-2021.02/src/HLL/Compiler.nqp 2021-02-21 11:41:53.000000000 +0100 +++ new/nqp-2021.03/src/HLL/Compiler.nqp 2021-03-20 14:11:43.000000000 +0100 @@ -22,12 +22,12 @@ @!stages := nqp::split(' ', 'start parse ast ' ~ $!backend.stages()); # Command options and usage. - @!cmdoptions := nqp::split(' ', 'e=s help|h target=s trace|t=s encoding=s output|o=s source-name=s combine version|v show-config verbose-config|V stagestats=s? ll-exception rxtrace nqpevent=s profile=s? profile-compile=s? profile-filename=s profile-kind=s profile-stage=s repl-mode=s' + @!cmdoptions := nqp::split(' ', 'e=s help|h target=s trace|t=s encoding=s output|o=s source-name=s combine version|v show-config verbose-config|V stagestats=s? ll-exception rxtrace nqpevent=s profile=s? profile-compile=s? profile-filename=s profile-kind=s profile-stage=s repl-mode=s rakudo-home' #?if js ~ ' substagestats beautify nqp-runtime=s perl6-runtime=s libpath=s shebang execname=s source-map' #?endif #?if moar - ~ ' confprog=s' + ~ ' confprog=s full-cleanup debug-suspend debug-port=s tracing' #?endif ); } @@ -286,7 +286,7 @@ nqp::getcomp('JavaScript').eval('return (function(paths) {nqp.libpath(paths)})')($*LIBPATH); } - my $*EXECNAME; + my $*EXECNAME := ''; if %adverbs<execname> { $*EXECNAME := %adverbs<execname>; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nqp-2021.02/src/QRegex/NFA.nqp new/nqp-2021.03/src/QRegex/NFA.nqp --- old/nqp-2021.02/src/QRegex/NFA.nqp 2021-02-21 11:41:53.000000000 +0100 +++ new/nqp-2021.03/src/QRegex/NFA.nqp 2021-03-20 14:11:43.000000000 +0100 @@ -870,7 +870,7 @@ my int $e := 2; while $e < $eend { my int $to := @edges[$e]; - my int $was := $to; +# my int $was := $to; if $to && nqp::atpos_i(@remap,$to) { while nqp::atpos_i(@remap,$to) { $to := nqp::atpos_i(@remap,$to); @@ -963,7 +963,7 @@ my int $e := 2; while $e < $eend { my int $to := @edges[$e]; - my int $act := nqp::bitand_i(@edges[$e-2], 0xff); +# my int $act := nqp::bitand_i(@edges[$e-2], 0xff); if $to { my int $to2 := nqp::atpos_i(@remap,$to); # note("In $s -> $newpos remapping " ~ $ACTIONS[$act] ~ " $to -> $to2") if $nfadeb; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nqp-2021.02/src/vm/js/Operations.nqp new/nqp-2021.03/src/vm/js/Operations.nqp --- old/nqp-2021.02/src/vm/js/Operations.nqp 2021-02-21 11:41:53.000000000 +0100 +++ new/nqp-2021.03/src/vm/js/Operations.nqp 2021-03-20 14:11:43.000000000 +0100 @@ -1014,10 +1014,6 @@ add_simple_op('atan2_n', $T_NUM, [$T_NUM, $T_NUM], sub ($y, $x) {"Math.atan2($y, $x)"}); - add_simple_op('sec_n', $T_NUM, [$T_NUM]); - add_simple_op('asec_n', $T_NUM, [$T_NUM]); - add_simple_op('sech_n', $T_NUM, [$T_NUM]); - add_simple_op('abs_i', $T_INT, [$T_INT], sub ($arg) {"Math.abs($arg)"}); add_simple_op('pow_n', $T_NUM, [$T_NUM, $T_NUM]); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nqp-2021.02/src/vm/js/nqp-runtime/core.js new/nqp-2021.03/src/vm/js/nqp-runtime/core.js --- old/nqp-2021.02/src/vm/js/nqp-runtime/core.js 2021-02-21 11:41:53.000000000 +0100 +++ new/nqp-2021.03/src/vm/js/nqp-runtime/core.js 2021-03-20 14:11:43.000000000 +0100 @@ -1470,19 +1470,6 @@ return a - Math.floor(a / b) * b; }; -op.sec_n = function(x) { - return 1 / Math.cos(x); -}; - -op.asec_n = function(x) { - return Math.acos(1 / x); -}; - -op.sech_n = function(x) { - if (x == Infinity || x == -Infinity) return 0; - return (2 * Math.cosh(x)) / (Math.cosh(2 * x) + 1); -}; - op.isnanorinf = function(n) { return (isNaN(n) || n == Infinity || n == -Infinity) ? 1 : 0; }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nqp-2021.02/src/vm/js/nqp-runtime/runtime.js new/nqp-2021.03/src/vm/js/nqp-runtime/runtime.js --- old/nqp-2021.02/src/vm/js/nqp-runtime/runtime.js 2021-02-21 11:41:53.000000000 +0100 +++ new/nqp-2021.03/src/vm/js/nqp-runtime/runtime.js 2021-03-20 14:11:43.000000000 +0100 @@ -494,7 +494,7 @@ return currentHLL.get('bind_error').$$call(ctx, null, capture); }; -let execname; +let execname = ''; exports.execname = function(path) { execname = path; }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nqp-2021.02/src/vm/jvm/QAST/Compiler.nqp new/nqp-2021.03/src/vm/jvm/QAST/Compiler.nqp --- old/nqp-2021.02/src/vm/jvm/QAST/Compiler.nqp 2021-02-21 11:41:53.000000000 +0100 +++ new/nqp-2021.03/src/vm/jvm/QAST/Compiler.nqp 2021-03-20 14:11:43.000000000 +0100 @@ -2275,9 +2275,6 @@ QAST::OperationsJAST.map_classlib_core_op('sinh_n', $TYPE_MATH, 'sinh', [$RT_NUM], $RT_NUM); QAST::OperationsJAST.map_classlib_core_op('cosh_n', $TYPE_MATH, 'cosh', [$RT_NUM], $RT_NUM); QAST::OperationsJAST.map_classlib_core_op('tanh_n', $TYPE_MATH, 'tanh', [$RT_NUM], $RT_NUM); -QAST::OperationsJAST.map_classlib_core_op('sec_n', $TYPE_OPS, 'sec_n', [$RT_NUM], $RT_NUM); -QAST::OperationsJAST.map_classlib_core_op('asec_n', $TYPE_OPS, 'asec_n', [$RT_NUM], $RT_NUM); -QAST::OperationsJAST.map_classlib_core_op('sech_n', $TYPE_OPS, 'sech_n', [$RT_NUM], $RT_NUM); # esoteric math opcodes QAST::OperationsJAST.map_classlib_core_op('gcd_i', $TYPE_OPS, 'gcd_i', [$RT_INT, $RT_INT], $RT_INT); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nqp-2021.02/src/vm/jvm/runtime/org/raku/nqp/runtime/Ops.java new/nqp-2021.03/src/vm/jvm/runtime/org/raku/nqp/runtime/Ops.java --- old/nqp-2021.02/src/vm/jvm/runtime/org/raku/nqp/runtime/Ops.java 2021-02-21 11:41:53.000000000 +0100 +++ new/nqp-2021.03/src/vm/jvm/runtime/org/raku/nqp/runtime/Ops.java 2021-03-20 14:11:43.000000000 +0100 @@ -3723,18 +3723,6 @@ } /* Math operations. */ - public static double sec_n(double val) { - return 1 / Math.cos(val); - } - - public static double asec_n(double val) { - return Math.acos(1 / val); - } - - public static double sech_n(double val) { - return 1 / Math.cosh(val); - } - public static long gcd_i(long valA, long valB) { return BigInteger.valueOf(valA).gcd(BigInteger.valueOf(valB)) .longValue(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nqp-2021.02/src/vm/moar/QAST/QASTOperationsMAST.nqp new/nqp-2021.03/src/vm/moar/QAST/QASTOperationsMAST.nqp --- old/nqp-2021.02/src/vm/moar/QAST/QASTOperationsMAST.nqp 2021-02-21 11:41:53.000000000 +0100 +++ new/nqp-2021.03/src/vm/moar/QAST/QASTOperationsMAST.nqp 2021-03-20 14:11:43.000000000 +0100 @@ -2432,13 +2432,10 @@ QAST::MASTOperations.add_core_moarop_mapping('tan_n', 'tan_n'); QAST::MASTOperations.add_core_moarop_mapping('atan_n', 'atan_n'); QAST::MASTOperations.add_core_moarop_mapping('atan2_n', 'atan2_n'); -QAST::MASTOperations.add_core_moarop_mapping('sec_n', 'sec_n'); -QAST::MASTOperations.add_core_moarop_mapping('asec_n', 'asec_n'); QAST::MASTOperations.add_core_moarop_mapping('asin_n', 'asin_n'); QAST::MASTOperations.add_core_moarop_mapping('sinh_n', 'sinh_n'); QAST::MASTOperations.add_core_moarop_mapping('cosh_n', 'cosh_n'); QAST::MASTOperations.add_core_moarop_mapping('tanh_n', 'tanh_n'); -QAST::MASTOperations.add_core_moarop_mapping('sech_n', 'sech_n'); # esoteric math opcodes QAST::MASTOperations.add_core_moarop_mapping('gcd_i', 'gcd_i'); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nqp-2021.02/t/nqp/083-math.t new/nqp-2021.03/t/nqp/083-math.t --- old/nqp-2021.02/t/nqp/083-math.t 2021-02-21 11:41:53.000000000 +0100 +++ new/nqp-2021.03/t/nqp/083-math.t 2021-03-20 14:11:43.000000000 +0100 @@ -1,4 +1,4 @@ -plan(63); +plan(50); # Basic tests for a bunch of mathematical functions @@ -44,11 +44,6 @@ is_approx(nqp::tan_n(3.0), -0.142546543074278, "nqp::tan_n(3.0)"); is_approx(nqp::tan_n(4.0), 1.15782128234958, "nqp::tan_n(4.0)"); -is_approx(nqp::sec_n(1.0), 1.85081571768093, "nqp::sec_n(1.0)"); -is_approx(nqp::sec_n(2.0), -2.40299796172238, "nqp::sec_n(2.0)"); -is_approx(nqp::sec_n(3.0), -1.01010866590799, "nqp::sec_n(3.0)"); -is_approx(nqp::sec_n(4.0), -1.5298856564664, "nqp::sec_n(4.0)"); - is_approx(nqp::atan_n(-10.0), -1.47112767430373, "nqp::atan_n(-10.0)"); is_approx(nqp::atan_n(-3.0), -1.24904577239825, "nqp::atan_n(-3.0)"); is_approx(nqp::atan_n(0.0), 0.0, "nqp::atan_n(0.0)"); @@ -67,11 +62,6 @@ is_approx(nqp::asin_n(0.5), 0.523598775598299, "nqp::asin_n(0.5)"); is_approx(nqp::asin_n(1.0), 1.5707963267949, "nqp::asin_n(1.0)"); -is_approx(nqp::asec_n(-2.0), 2.0943951023932, "nqp::asec_n(-2.0)"); -is_approx(nqp::asec_n(-1.0), 3.14159265358979, "nqp::asec_n(-1.0)"); -is_approx(nqp::asec_n(1.0), 0.0, "nqp::asec_n(1.0)"); -is_approx(nqp::asec_n(2.0), 1.0471975511966, "nqp::asec_n(2.0)"); - is_approx(nqp::sinh_n(-7.0), -548.316123273246, "nqp::sinh_n(-7.0)"); is_approx(nqp::sinh_n(-1.0), -1.1752011936438, "nqp::sinh_n(-1.0)"); is_approx(nqp::sinh_n(0.0), 0.0, "nqp::sinh_n(0.0)"); @@ -90,11 +80,5 @@ is_approx(nqp::tanh_n(1.0), 0.761594155955765, "nqp::tanh_n(1.0)"); is_approx(nqp::tanh_n(7.0), 0.999998336943945, "nqp::tanh_n(7.0)"); -is_approx(nqp::sech_n(-2.0), 0.26580222883408, "nqp::sech_n(-2.0)"); -is_approx(nqp::sech_n(-1.5), 0.42509603494228, "nqp::sech_n(-1.5)"); -is_approx(nqp::sech_n(0.0), 1.0, "nqp::sech_n(0.0)"); -is_approx(nqp::sech_n(1.5), 0.42509603494228, "nqp::sech_n(1.5)"); -is_approx(nqp::sech_n(2.0), 0.26580222883408, "nqp::sech_n(2.0)"); - is_approx(nqp::atan2_n(90.0, 15.0), 1.4056476493802699, "nqp::atan2_n(90.0, 15.0)"); is_approx(nqp::atan2_n(15.0, 90.0), 0.16514867741462683, "nqp::atan2_n(15.0, 90.0)"); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nqp-2021.02/tools/build/gen-js-makefile.nqp new/nqp-2021.03/tools/build/gen-js-makefile.nqp --- old/nqp-2021.02/tools/build/gen-js-makefile.nqp 2021-02-21 11:41:53.000000000 +0100 +++ new/nqp-2021.03/tools/build/gen-js-makefile.nqp 2021-03-20 14:11:43.000000000 +0100 @@ -66,16 +66,15 @@ out("$target : {nfp(nqp::join(' ',@deps))}"); } +my $nqp-config := nfp('$(JS_STAGE2)/nqp-config.nqp'); + # TODO is the version regenerated as often as it should sub combine(:$sources, :$stage, :$file, :$gen-version = 0) { - my $target := stage_path($stage) ~ $file; - my $version := stage_path($stage) ~ 'nqp-config.nqp'; - + $sources := "$sources $nqp-config" if $gen-version; rule($target, $sources, make_parents($target), - $gen-version ?? "\$(PERL5) \@script(gen-version.pl)@ \$(PREFIX) \$(NQP_HOME) \$(NQP_LIB_DIR) > $version" !! '', - "\$(PERL5) \@script(gen-cat.pl)@ js \@nfp($sources)@ {$gen-version ?? $version !! ''} > \@nfp($target)@" + "\$(PERL5) \@script(gen-cat.pl)@ js $sources > \@nfp($target)@" ); } @@ -191,15 +190,18 @@ '$(PERL5) @script(install-js-runner.pl)@ "$(DESTDIR)" $(PREFIX) $(NQP_LIB_DIR)', ); -constant('JS_NQP_SOURCES', '$(COMMON_NQP_SOURCES)'); +rule($nqp-config, '', + '$(MKPATH) $(JS_STAGE2)', + "\$(PERL5) \@script(gen-version.pl)@ \$(PREFIX) \$(NQP_HOME) \$(NQP_LIB_DIR) > $nqp-config"); +constant('JS_NQP_SOURCES', '$(COMMON_NQP_SOURCES)'); my $nqp-combined := combine(:stage(2), :sources('$(JS_NQP_SOURCES)'), :file('$(NQP_COMBINED)'), :gen-version(1)); constant('JS_HLL_SOURCES', nfp('src/vm/js/HLL/Backend.nqp') ~ ' $(COMMON_HLL_SOURCES)'); -my $hll-combined := combine(:stage(2), :sources('$(JS_HLL_SOURCES)'), :file('$(HLL_COMBINED)')); +my $hll-combined := combine(:stage(2), :sources('$(JS_HLL_SOURCES)'), :file('$(HLL_COMBINED)'), :gen-version(1)); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nqp-2021.02/tools/templates/MOAR_REVISION new/nqp-2021.03/tools/templates/MOAR_REVISION --- old/nqp-2021.02/tools/templates/MOAR_REVISION 2021-02-21 11:43:01.000000000 +0100 +++ new/nqp-2021.03/tools/templates/MOAR_REVISION 2021-03-20 14:12:01.000000000 +0100 @@ -1 +1 @@ -2021.02 +2021.03