From decbe0d9a954bbff4468ee2da3c826825961793f Mon Sep 17 00:00:00 2001 From: ramdoys Date: Mon, 9 Dec 2024 17:55:10 -0500 Subject: [PATCH 1/2] fix: update applicable .lua files to .luau --- .github/workflows/benchmark.yml | 32 +++---- .github/workflows/build.yml | 12 +-- bench/bench.py | 2 +- .../{bench_support.lua => bench_support.luau} | 0 ...st_BinaryTree.lua => test_BinaryTree.luau} | 0 ...ehm_Trees.lua => test_GC_Boehm_Trees.luau} | 0 ...er.lua => test_GC_Tree_Pruning_Eager.luau} | 0 ..._Gen.lua => test_GC_Tree_Pruning_Gen.luau} | 0 ...azy.lua => test_GC_Tree_Pruning_Lazy.luau} | 0 ...yval.lua => test_GC_hashtable_Keyval.luau} | 0 ...test_LB_mandel.lua => test_LB_mandel.luau} | 0 ...ray.lua => test_LargeTableCtor_array.luau} | 0 ...hash.lua => test_LargeTableCtor_hash.luau} | 0 ..._yield.lua => test_Pcall_pcall_yield.luau} | 0 ...ce.lua => test_SunSpider_3d-raytrace.luau} | 0 ...eate_nil.lua => test_TableCreate_nil.luau} | 0 ...umber.lua => test_TableCreate_number.luau} | 0 ...ill.lua => test_TableCreate_zerofill.luau} | 0 ...lect.lua => test_TableMarshal_select.luau} | 0 ....lua => test_TableMarshal_table_pack.luau} | 0 ...rgs.lua => test_TableMarshal_varargs.luau} | 0 ...st_AbsSum_abs.lua => test_AbsSum_abs.luau} | 0 ...Sum_and_or.lua => test_AbsSum_and_or.luau} | 0 ...math_abs.lua => test_AbsSum_math_abs.luau} | 0 .../{test_Assert.lua => test_Assert.luau} | 0 ...test_Factorial.lua => test_Factorial.luau} | 0 ..._bar.lua => test_Failure_pcall_a_bar.luau} | 0 ...o.lua => test_Failure_pcall_game_Foo.luau} | 0 ...bar.lua => test_Failure_xpcall_a_bar.luau} | 0 ....lua => test_Failure_xpcall_game_Foo.luau} | 0 ...ray.lua => test_LargeTableCtor_array.luau} | 0 ...hash.lua => test_LargeTableCtor_hash.luau} | 0 ...lua => test_LargeTableSum_loop_index.luau} | 0 ...ua => test_LargeTableSum_loop_ipairs.luau} | 0 ....lua => test_LargeTableSum_loop_iter.luau} | 0 ...lua => test_LargeTableSum_loop_pairs.luau} | 0 ..._MethodCalls.lua => test_MethodCalls.luau} | 0 ...structor.lua => test_OOP_constructor.luau} | 0 ...hod_call.lua => test_OOP_method_call.luau} | 0 ....lua => test_OOP_virtual_constructor.luau} | 0 ...return.lua => test_Pcall_call_return.luau} | 0 ...eturn.lua => test_Pcall_pcall_return.luau} | 0 ..._yield.lua => test_Pcall_pcall_yield.luau} | 0 ...turn.lua => test_Pcall_xpcall_return.luau} | 0 ...xponent.lua => test_SqrtSum_exponent.luau} | 0 ...h_sqrt.lua => test_SqrtSum_math_sqrt.luau} | 0 ...qrtSum_sqrt.lua => test_SqrtSum_sqrt.luau} | 0 ...env.lua => test_SqrtSum_sqrt_getfenv.luau} | 0 ....lua => test_SqrtSum_sqrt_roundabout.luau} | 0 ...tringInterp.lua => test_StringInterp.luau} | 0 ...eate_nil.lua => test_TableCreate_nil.luau} | 0 ...umber.lua => test_TableCreate_number.luau} | 0 ...ill.lua => test_TableCreate_zerofill.luau} | 0 ...rs.lua => test_TableFind_loop_ipairs.luau} | 0 ...ind.lua => test_TableFind_table_find.luau} | 0 ... => test_TableInsertion_index_cached.luau} | 0 ...lua => test_TableInsertion_index_len.luau} | 0 ... => test_TableInsertion_table_insert.luau} | 0 ...st_TableInsertion_table_insert_index.luau} | 0 ...Iteration.lua => test_TableIteration.luau} | 0 ...lect.lua => test_TableMarshal_select.luau} | 0 ....lua => test_TableMarshal_table_pack.luau} | 0 ...test_TableMarshal_table_unpack_array.luau} | 0 ...test_TableMarshal_table_unpack_range.luau} | 0 ...rgs.lua => test_TableMarshal_varargs.luau} | 0 ...le.lua => test_TableMove_empty_table.luau} | 0 ...ble.lua => test_TableMove_same_table.luau} | 0 ...e.lua => test_TableMove_table_create.luau} | 0 ...ua => test_TableRemoval_table_remove.luau} | 0 ...test_TableSort.lua => test_TableSort.luau} | 0 ...berString.lua => test_ToNumberString.luau} | 0 ...ueCapture.lua => test_UpvalueCapture.luau} | 0 ...dicSelect.lua => test_VariadicSelect.luau} | 0 ...st_string_lib.lua => test_string_lib.luau} | 0 ...able_concat.lua => test_table_concat.luau} | 0 ...auPolyfillMap.lua => LuauPolyfillMap.luau} | 0 .../{Base64.lua => Base64.luau} | 0 .../{HashLib.spec.lua => HashLib.spec.luau} | 0 .../{init.lua => init.luau} | 0 bench/other/{regex.lua => regex.luau} | 0 bench/tests/{base64.lua => base64.luau} | 0 bench/tests/{chess.lua => chess.luau} | 0 bench/tests/{life.lua => life.luau} | 0 .../tests/{matrixmult.lua => matrixmult.luau} | 0 ...mal-scalar.lua => mesh-normal-scalar.luau} | 0 ...mal-vector.lua => mesh-normal-vector.luau} | 0 bench/tests/{pcmmix.lua => pcmmix.luau} | 0 bench/tests/{qsort.lua => qsort.luau} | 0 bench/tests/{sha256.lua => sha256.luau} | 0 bench/tests/shootout/{ack.lua => ack.luau} | 0 .../{binary-trees.lua => binary-trees.luau} | 0 ...fannkuch-redux.lua => fannkuch-redux.luau} | 0 .../{fixpoint-fact.lua => fixpoint-fact.luau} | 0 .../shootout/{heapsort.lua => heapsort.luau} | 0 .../shootout/{mandel.lua => mandel.luau} | 0 .../shootout/{n-body.lua => n-body.luau} | 0 bench/tests/shootout/{qt.lua => qt.luau} | 0 .../tests/shootout/{queen.lua => queen.luau} | 0 .../shootout/{scimark.lua => scimark.luau} | 0 .../{spectral-norm.lua => spectral-norm.luau} | 0 bench/tests/{sieve.lua => sieve.luau} | 0 .../sunspider/{3d-cube.lua => 3d-cube.luau} | 0 .../sunspider/{3d-morph.lua => 3d-morph.luau} | 0 .../{3d-raytrace.lua => 3d-raytrace.luau} | 0 ...cursive.lua => controlflow-recursive.luau} | 0 .../{crypto-aes.lua => crypto-aes.luau} | 0 .../sunspider/{fannkuch.lua => fannkuch.luau} | 0 .../{math-cordic.lua => math-cordic.luau} | 0 ...artial-sums.lua => math-partial-sums.luau} | 0 .../{n-body-oop.lua => n-body-oop.luau} | 0 bench/tests/{tictactoe.lua => tictactoe.luau} | 0 bench/tests/{trig.lua => trig.luau} | 0 .../{vector-math.lua => vector-math.luau} | 0 bench/tests/{voxelgen.lua => voxelgen.luau} | 0 tests/Conformance.test.cpp | 94 +++++++++---------- .../{apicalls.lua => apicalls.luau} | 0 tests/conformance/{assert.lua => assert.luau} | 0 tests/conformance/{attrib.lua => attrib.luau} | 0 tests/conformance/{basic.lua => basic.luau} | 2 +- .../conformance/{bitwise.lua => bitwise.luau} | 0 .../conformance/{buffers.lua => buffers.luau} | 0 tests/conformance/{calls.lua => calls.luau} | 0 tests/conformance/{clear.lua => clear.luau} | 0 .../conformance/{closure.lua => closure.luau} | 2 +- .../{constructs.lua => constructs.luau} | 0 .../{coroutine.lua => coroutine.luau} | 0 .../{coverage.lua => coverage.luau} | 0 .../{datetime.lua => datetime.luau} | 0 tests/conformance/{debug.lua => debug.luau} | 6 +- .../{debugger.lua => debugger.luau} | 0 tests/conformance/{errors.lua => errors.luau} | 0 tests/conformance/{events.lua => events.luau} | 0 .../{exceptions.lua => exceptions.luau} | 0 tests/conformance/{gc.lua => gc.luau} | 0 .../{ifelseexpr.lua => ifelseexpr.luau} | 0 .../{interrupt.lua => interrupt.luau} | 0 tests/conformance/{iter.lua => iter.luau} | 0 .../{literals.lua => literals.luau} | 0 tests/conformance/{locals.lua => locals.luau} | 0 tests/conformance/{math.lua => math.luau} | 0 tests/conformance/{move.lua => move.luau} | 0 tests/conformance/{native.lua => native.luau} | 0 .../{native_types.lua => native_types.luau} | 0 ...tive_userdata.lua => native_userdata.luau} | 0 ...ebug_upvalues.lua => ndebug_upvalues.luau} | 0 tests/conformance/{pcall.lua => pcall.luau} | 16 ++-- tests/conformance/{pm.lua => pm.luau} | 0 .../conformance/{safeenv.lua => safeenv.luau} | 0 tests/conformance/{sort.lua => sort.luau} | 0 .../conformance/{strconv.lua => strconv.luau} | 0 .../{stringinterp.lua => stringinterp.luau} | 0 .../conformance/{strings.lua => strings.luau} | 0 tests/conformance/{tables.lua => tables.luau} | 0 .../conformance/{tmerror.lua => tmerror.luau} | 0 tests/conformance/{tpack.lua => tpack.luau} | 0 tests/conformance/{types.lua => types.luau} | 0 .../{userdata.lua => userdata.luau} | 0 tests/conformance/{utf8.lua => utf8.luau} | 0 tests/conformance/{vararg.lua => vararg.luau} | 0 tests/conformance/{vector.lua => vector.luau} | 0 ...vector_library.lua => vector_library.luau} | 0 161 files changed, 82 insertions(+), 84 deletions(-) rename bench/{bench_support.lua => bench_support.luau} (100%) rename bench/gc/{test_BinaryTree.lua => test_BinaryTree.luau} (100%) rename bench/gc/{test_GC_Boehm_Trees.lua => test_GC_Boehm_Trees.luau} (100%) rename bench/gc/{test_GC_Tree_Pruning_Eager.lua => test_GC_Tree_Pruning_Eager.luau} (100%) rename bench/gc/{test_GC_Tree_Pruning_Gen.lua => test_GC_Tree_Pruning_Gen.luau} (100%) rename bench/gc/{test_GC_Tree_Pruning_Lazy.lua => test_GC_Tree_Pruning_Lazy.luau} (100%) rename bench/gc/{test_GC_hashtable_Keyval.lua => test_GC_hashtable_Keyval.luau} (100%) rename bench/gc/{test_LB_mandel.lua => test_LB_mandel.luau} (100%) rename bench/gc/{test_LargeTableCtor_array.lua => test_LargeTableCtor_array.luau} (100%) rename bench/gc/{test_LargeTableCtor_hash.lua => test_LargeTableCtor_hash.luau} (100%) rename bench/gc/{test_Pcall_pcall_yield.lua => test_Pcall_pcall_yield.luau} (100%) rename bench/gc/{test_SunSpider_3d-raytrace.lua => test_SunSpider_3d-raytrace.luau} (100%) rename bench/gc/{test_TableCreate_nil.lua => test_TableCreate_nil.luau} (100%) rename bench/gc/{test_TableCreate_number.lua => test_TableCreate_number.luau} (100%) rename bench/gc/{test_TableCreate_zerofill.lua => test_TableCreate_zerofill.luau} (100%) rename bench/gc/{test_TableMarshal_select.lua => test_TableMarshal_select.luau} (100%) rename bench/gc/{test_TableMarshal_table_pack.lua => test_TableMarshal_table_pack.luau} (100%) rename bench/gc/{test_TableMarshal_varargs.lua => test_TableMarshal_varargs.luau} (100%) rename bench/micro_tests/{test_AbsSum_abs.lua => test_AbsSum_abs.luau} (100%) rename bench/micro_tests/{test_AbsSum_and_or.lua => test_AbsSum_and_or.luau} (100%) rename bench/micro_tests/{test_AbsSum_math_abs.lua => test_AbsSum_math_abs.luau} (100%) rename bench/micro_tests/{test_Assert.lua => test_Assert.luau} (100%) rename bench/micro_tests/{test_Factorial.lua => test_Factorial.luau} (100%) rename bench/micro_tests/{test_Failure_pcall_a_bar.lua => test_Failure_pcall_a_bar.luau} (100%) rename bench/micro_tests/{test_Failure_pcall_game_Foo.lua => test_Failure_pcall_game_Foo.luau} (100%) rename bench/micro_tests/{test_Failure_xpcall_a_bar.lua => test_Failure_xpcall_a_bar.luau} (100%) rename bench/micro_tests/{test_Failure_xpcall_game_Foo.lua => test_Failure_xpcall_game_Foo.luau} (100%) rename bench/micro_tests/{test_LargeTableCtor_array.lua => test_LargeTableCtor_array.luau} (100%) rename bench/micro_tests/{test_LargeTableCtor_hash.lua => test_LargeTableCtor_hash.luau} (100%) rename bench/micro_tests/{test_LargeTableSum_loop_index.lua => test_LargeTableSum_loop_index.luau} (100%) rename bench/micro_tests/{test_LargeTableSum_loop_ipairs.lua => test_LargeTableSum_loop_ipairs.luau} (100%) rename bench/micro_tests/{test_LargeTableSum_loop_iter.lua => test_LargeTableSum_loop_iter.luau} (100%) rename bench/micro_tests/{test_LargeTableSum_loop_pairs.lua => test_LargeTableSum_loop_pairs.luau} (100%) rename bench/micro_tests/{test_MethodCalls.lua => test_MethodCalls.luau} (100%) rename bench/micro_tests/{test_OOP_constructor.lua => test_OOP_constructor.luau} (100%) rename bench/micro_tests/{test_OOP_method_call.lua => test_OOP_method_call.luau} (100%) rename bench/micro_tests/{test_OOP_virtual_constructor.lua => test_OOP_virtual_constructor.luau} (100%) rename bench/micro_tests/{test_Pcall_call_return.lua => test_Pcall_call_return.luau} (100%) rename bench/micro_tests/{test_Pcall_pcall_return.lua => test_Pcall_pcall_return.luau} (100%) rename bench/micro_tests/{test_Pcall_pcall_yield.lua => test_Pcall_pcall_yield.luau} (100%) rename bench/micro_tests/{test_Pcall_xpcall_return.lua => test_Pcall_xpcall_return.luau} (100%) rename bench/micro_tests/{test_SqrtSum_exponent.lua => test_SqrtSum_exponent.luau} (100%) rename bench/micro_tests/{test_SqrtSum_math_sqrt.lua => test_SqrtSum_math_sqrt.luau} (100%) rename bench/micro_tests/{test_SqrtSum_sqrt.lua => test_SqrtSum_sqrt.luau} (100%) rename bench/micro_tests/{test_SqrtSum_sqrt_getfenv.lua => test_SqrtSum_sqrt_getfenv.luau} (100%) rename bench/micro_tests/{test_SqrtSum_sqrt_roundabout.lua => test_SqrtSum_sqrt_roundabout.luau} (100%) rename bench/micro_tests/{test_StringInterp.lua => test_StringInterp.luau} (100%) rename bench/micro_tests/{test_TableCreate_nil.lua => test_TableCreate_nil.luau} (100%) rename bench/micro_tests/{test_TableCreate_number.lua => test_TableCreate_number.luau} (100%) rename bench/micro_tests/{test_TableCreate_zerofill.lua => test_TableCreate_zerofill.luau} (100%) rename bench/micro_tests/{test_TableFind_loop_ipairs.lua => test_TableFind_loop_ipairs.luau} (100%) rename bench/micro_tests/{test_TableFind_table_find.lua => test_TableFind_table_find.luau} (100%) rename bench/micro_tests/{test_TableInsertion_index_cached.lua => test_TableInsertion_index_cached.luau} (100%) rename bench/micro_tests/{test_TableInsertion_index_len.lua => test_TableInsertion_index_len.luau} (100%) rename bench/micro_tests/{test_TableInsertion_table_insert.lua => test_TableInsertion_table_insert.luau} (100%) rename bench/micro_tests/{test_TableInsertion_table_insert_index.lua => test_TableInsertion_table_insert_index.luau} (100%) rename bench/micro_tests/{test_TableIteration.lua => test_TableIteration.luau} (100%) rename bench/micro_tests/{test_TableMarshal_select.lua => test_TableMarshal_select.luau} (100%) rename bench/micro_tests/{test_TableMarshal_table_pack.lua => test_TableMarshal_table_pack.luau} (100%) rename bench/micro_tests/{test_TableMarshal_table_unpack_array.lua => test_TableMarshal_table_unpack_array.luau} (100%) rename bench/micro_tests/{test_TableMarshal_table_unpack_range.lua => test_TableMarshal_table_unpack_range.luau} (100%) rename bench/micro_tests/{test_TableMarshal_varargs.lua => test_TableMarshal_varargs.luau} (100%) rename bench/micro_tests/{test_TableMove_empty_table.lua => test_TableMove_empty_table.luau} (100%) rename bench/micro_tests/{test_TableMove_same_table.lua => test_TableMove_same_table.luau} (100%) rename bench/micro_tests/{test_TableMove_table_create.lua => test_TableMove_table_create.luau} (100%) rename bench/micro_tests/{test_TableRemoval_table_remove.lua => test_TableRemoval_table_remove.luau} (100%) rename bench/micro_tests/{test_TableSort.lua => test_TableSort.luau} (100%) rename bench/micro_tests/{test_ToNumberString.lua => test_ToNumberString.luau} (100%) rename bench/micro_tests/{test_UpvalueCapture.lua => test_UpvalueCapture.luau} (100%) rename bench/micro_tests/{test_VariadicSelect.lua => test_VariadicSelect.luau} (100%) rename bench/micro_tests/{test_string_lib.lua => test_string_lib.luau} (100%) rename bench/micro_tests/{test_table_concat.lua => test_table_concat.luau} (100%) rename bench/other/{LuauPolyfillMap.lua => LuauPolyfillMap.luau} (100%) rename bench/other/boatbomber-HashLib/{Base64.lua => Base64.luau} (100%) rename bench/other/boatbomber-HashLib/{HashLib.spec.lua => HashLib.spec.luau} (100%) rename bench/other/boatbomber-HashLib/{init.lua => init.luau} (100%) rename bench/other/{regex.lua => regex.luau} (100%) rename bench/tests/{base64.lua => base64.luau} (100%) rename bench/tests/{chess.lua => chess.luau} (100%) rename bench/tests/{life.lua => life.luau} (100%) rename bench/tests/{matrixmult.lua => matrixmult.luau} (100%) rename bench/tests/{mesh-normal-scalar.lua => mesh-normal-scalar.luau} (100%) rename bench/tests/{mesh-normal-vector.lua => mesh-normal-vector.luau} (100%) rename bench/tests/{pcmmix.lua => pcmmix.luau} (100%) rename bench/tests/{qsort.lua => qsort.luau} (100%) rename bench/tests/{sha256.lua => sha256.luau} (100%) rename bench/tests/shootout/{ack.lua => ack.luau} (100%) rename bench/tests/shootout/{binary-trees.lua => binary-trees.luau} (100%) rename bench/tests/shootout/{fannkuch-redux.lua => fannkuch-redux.luau} (100%) rename bench/tests/shootout/{fixpoint-fact.lua => fixpoint-fact.luau} (100%) rename bench/tests/shootout/{heapsort.lua => heapsort.luau} (100%) rename bench/tests/shootout/{mandel.lua => mandel.luau} (100%) rename bench/tests/shootout/{n-body.lua => n-body.luau} (100%) rename bench/tests/shootout/{qt.lua => qt.luau} (100%) rename bench/tests/shootout/{queen.lua => queen.luau} (100%) rename bench/tests/shootout/{scimark.lua => scimark.luau} (100%) rename bench/tests/shootout/{spectral-norm.lua => spectral-norm.luau} (100%) rename bench/tests/{sieve.lua => sieve.luau} (100%) rename bench/tests/sunspider/{3d-cube.lua => 3d-cube.luau} (100%) rename bench/tests/sunspider/{3d-morph.lua => 3d-morph.luau} (100%) rename bench/tests/sunspider/{3d-raytrace.lua => 3d-raytrace.luau} (100%) rename bench/tests/sunspider/{controlflow-recursive.lua => controlflow-recursive.luau} (100%) rename bench/tests/sunspider/{crypto-aes.lua => crypto-aes.luau} (100%) rename bench/tests/sunspider/{fannkuch.lua => fannkuch.luau} (100%) rename bench/tests/sunspider/{math-cordic.lua => math-cordic.luau} (100%) rename bench/tests/sunspider/{math-partial-sums.lua => math-partial-sums.luau} (100%) rename bench/tests/sunspider/{n-body-oop.lua => n-body-oop.luau} (100%) rename bench/tests/{tictactoe.lua => tictactoe.luau} (100%) rename bench/tests/{trig.lua => trig.luau} (100%) rename bench/tests/{vector-math.lua => vector-math.luau} (100%) rename bench/tests/{voxelgen.lua => voxelgen.luau} (100%) rename tests/conformance/{apicalls.lua => apicalls.luau} (100%) rename tests/conformance/{assert.lua => assert.luau} (100%) rename tests/conformance/{attrib.lua => attrib.luau} (100%) rename tests/conformance/{basic.lua => basic.luau} (99%) rename tests/conformance/{bitwise.lua => bitwise.luau} (100%) rename tests/conformance/{buffers.lua => buffers.luau} (100%) rename tests/conformance/{calls.lua => calls.luau} (100%) rename tests/conformance/{clear.lua => clear.luau} (100%) rename tests/conformance/{closure.lua => closure.luau} (99%) rename tests/conformance/{constructs.lua => constructs.luau} (100%) rename tests/conformance/{coroutine.lua => coroutine.luau} (100%) rename tests/conformance/{coverage.lua => coverage.luau} (100%) rename tests/conformance/{datetime.lua => datetime.luau} (100%) rename tests/conformance/{debug.lua => debug.luau} (96%) rename tests/conformance/{debugger.lua => debugger.luau} (100%) rename tests/conformance/{errors.lua => errors.luau} (100%) rename tests/conformance/{events.lua => events.luau} (100%) rename tests/conformance/{exceptions.lua => exceptions.luau} (100%) rename tests/conformance/{gc.lua => gc.luau} (100%) rename tests/conformance/{ifelseexpr.lua => ifelseexpr.luau} (100%) rename tests/conformance/{interrupt.lua => interrupt.luau} (100%) rename tests/conformance/{iter.lua => iter.luau} (100%) rename tests/conformance/{literals.lua => literals.luau} (100%) rename tests/conformance/{locals.lua => locals.luau} (100%) rename tests/conformance/{math.lua => math.luau} (100%) rename tests/conformance/{move.lua => move.luau} (100%) rename tests/conformance/{native.lua => native.luau} (100%) rename tests/conformance/{native_types.lua => native_types.luau} (100%) rename tests/conformance/{native_userdata.lua => native_userdata.luau} (100%) rename tests/conformance/{ndebug_upvalues.lua => ndebug_upvalues.luau} (100%) rename tests/conformance/{pcall.lua => pcall.luau} (88%) rename tests/conformance/{pm.lua => pm.luau} (100%) rename tests/conformance/{safeenv.lua => safeenv.luau} (100%) rename tests/conformance/{sort.lua => sort.luau} (100%) rename tests/conformance/{strconv.lua => strconv.luau} (100%) rename tests/conformance/{stringinterp.lua => stringinterp.luau} (100%) rename tests/conformance/{strings.lua => strings.luau} (100%) rename tests/conformance/{tables.lua => tables.luau} (100%) rename tests/conformance/{tmerror.lua => tmerror.luau} (100%) rename tests/conformance/{tpack.lua => tpack.luau} (100%) rename tests/conformance/{types.lua => types.luau} (100%) rename tests/conformance/{userdata.lua => userdata.luau} (100%) rename tests/conformance/{utf8.lua => utf8.luau} (100%) rename tests/conformance/{vararg.lua => vararg.luau} (100%) rename tests/conformance/{vector.lua => vector.luau} (100%) rename tests/conformance/{vector_library.lua => vector_library.luau} (100%) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 72a0c9ffe..f997935f5 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -61,28 +61,28 @@ jobs: filter() { awk '/.*I\s+refs:\s+[0-9,]+/ {gsub(",", "", $4); X=$4} END {print "SUCCESS: '$1' : " X/1e7 "ms +/- 0% on luau-analyze"}' } - valgrind --tool=callgrind ./luau-analyze --mode=nonstrict bench/other/LuauPolyfillMap.lua 2>&1 | filter map-nonstrict | tee -a analyze-output.txt - valgrind --tool=callgrind ./luau-analyze --mode=strict bench/other/LuauPolyfillMap.lua 2>&1 | filter map-strict | tee -a analyze-output.txt - valgrind --tool=callgrind ./luau-analyze --mode=strict --fflags=LuauSolverV2 bench/other/LuauPolyfillMap.lua 2>&1 | filter map-dcr | tee -a analyze-output.txt - valgrind --tool=callgrind ./luau-analyze --mode=nonstrict bench/other/regex.lua 2>&1 | filter regex-nonstrict | tee -a analyze-output.txt - valgrind --tool=callgrind ./luau-analyze --mode=strict bench/other/regex.lua 2>&1 | filter regex-strict | tee -a analyze-output.txt - valgrind --tool=callgrind ./luau-analyze --mode=strict --fflags=LuauSolverV2 bench/other/regex.lua 2>&1 | filter regex-dcr | tee -a analyze-output.txt + valgrind --tool=callgrind ./luau-analyze --mode=nonstrict bench/other/LuauPolyfillMap.luau 2>&1 | filter map-nonstrict | tee -a analyze-output.txt + valgrind --tool=callgrind ./luau-analyze --mode=strict bench/other/LuauPolyfillMap.luau 2>&1 | filter map-strict | tee -a analyze-output.txt + valgrind --tool=callgrind ./luau-analyze --mode=strict --fflags=LuauSolverV2 bench/other/LuauPolyfillMap.luau 2>&1 | filter map-dcr | tee -a analyze-output.txt + valgrind --tool=callgrind ./luau-analyze --mode=nonstrict bench/other/regex.luau 2>&1 | filter regex-nonstrict | tee -a analyze-output.txt + valgrind --tool=callgrind ./luau-analyze --mode=strict bench/other/regex.luau 2>&1 | filter regex-strict | tee -a analyze-output.txt + valgrind --tool=callgrind ./luau-analyze --mode=strict --fflags=LuauSolverV2 bench/other/regex.luau 2>&1 | filter regex-dcr | tee -a analyze-output.txt - name: Run benchmark (compile) run: | filter() { awk '/.*I\s+refs:\s+[0-9,]+/ {gsub(",", "", $4); X=$4} END {print "SUCCESS: '$1' : " X/1e7 "ms +/- 0% on luau-compile"}' } - valgrind --tool=callgrind ./luau-compile --null -O0 bench/other/LuauPolyfillMap.lua 2>&1 | filter map-O0 | tee -a compile-output.txt - valgrind --tool=callgrind ./luau-compile --null -O1 bench/other/LuauPolyfillMap.lua 2>&1 | filter map-O1 | tee -a compile-output.txt - valgrind --tool=callgrind ./luau-compile --null -O2 bench/other/LuauPolyfillMap.lua 2>&1 | filter map-O2 | tee -a compile-output.txt - valgrind --tool=callgrind ./luau-compile --codegennull -O2 bench/other/LuauPolyfillMap.lua 2>&1 | filter map-O2-codegen | tee -a compile-output.txt - valgrind --tool=callgrind ./luau-compile --codegennull -O2 -t1 bench/other/LuauPolyfillMap.lua 2>&1 | filter map-O2-t1-codegen | tee -a compile-output.txt - valgrind --tool=callgrind ./luau-compile --null -O0 bench/other/regex.lua 2>&1 | filter regex-O0 | tee -a compile-output.txt - valgrind --tool=callgrind ./luau-compile --null -O1 bench/other/regex.lua 2>&1 | filter regex-O1 | tee -a compile-output.txt - valgrind --tool=callgrind ./luau-compile --null -O2 bench/other/regex.lua 2>&1 | filter regex-O2 | tee -a compile-output.txt - valgrind --tool=callgrind ./luau-compile --codegennull -O2 bench/other/regex.lua 2>&1 | filter regex-O2-codegen | tee -a compile-output.txt - valgrind --tool=callgrind ./luau-compile --codegennull -O2 -t1 bench/other/regex.lua 2>&1 | filter regex-O2-t1-codegen | tee -a compile-output.txt + valgrind --tool=callgrind ./luau-compile --null -O0 bench/other/LuauPolyfillMap.luau 2>&1 | filter map-O0 | tee -a compile-output.txt + valgrind --tool=callgrind ./luau-compile --null -O1 bench/other/LuauPolyfillMap.luau 2>&1 | filter map-O1 | tee -a compile-output.txt + valgrind --tool=callgrind ./luau-compile --null -O2 bench/other/LuauPolyfillMap.luau 2>&1 | filter map-O2 | tee -a compile-output.txt + valgrind --tool=callgrind ./luau-compile --codegennull -O2 bench/other/LuauPolyfillMap.luau 2>&1 | filter map-O2-codegen | tee -a compile-output.txt + valgrind --tool=callgrind ./luau-compile --codegennull -O2 -t1 bench/other/LuauPolyfillMap.luau 2>&1 | filter map-O2-t1-codegen | tee -a compile-output.txt + valgrind --tool=callgrind ./luau-compile --null -O0 bench/other/regex.luau 2>&1 | filter regex-O0 | tee -a compile-output.txt + valgrind --tool=callgrind ./luau-compile --null -O1 bench/other/regex.luau 2>&1 | filter regex-O1 | tee -a compile-output.txt + valgrind --tool=callgrind ./luau-compile --null -O2 bench/other/regex.luau 2>&1 | filter regex-O2 | tee -a compile-output.txt + valgrind --tool=callgrind ./luau-compile --codegennull -O2 bench/other/regex.luau 2>&1 | filter regex-O2-codegen | tee -a compile-output.txt + valgrind --tool=callgrind ./luau-compile --codegennull -O2 -t1 bench/other/regex.luau 2>&1 | filter regex-O2-t1-codegen | tee -a compile-output.txt - name: Checkout benchmark results uses: actions/checkout@v3 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7a2b5f105..acc5d58d6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,9 +46,9 @@ jobs: - name: make cli run: | make -j2 config=sanitize werror=1 luau luau-analyze luau-compile # match config with tests to improve build time - ./luau tests/conformance/assert.lua - ./luau-analyze tests/conformance/assert.lua - ./luau-compile tests/conformance/assert.lua + ./luau tests/conformance/assert.luau + ./luau-analyze tests/conformance/assert.luau + ./luau-compile tests/conformance/assert.luau windows: runs-on: windows-latest @@ -81,9 +81,9 @@ jobs: shell: bash # necessary for fail-fast run: | cmake --build . --target Luau.Repl.CLI Luau.Analyze.CLI Luau.Compile.CLI --config Debug # match config with tests to improve build time - Debug/luau tests/conformance/assert.lua - Debug/luau-analyze tests/conformance/assert.lua - Debug/luau-compile tests/conformance/assert.lua + Debug/luau tests/conformance/assert.luau + Debug/luau-analyze tests/conformance/assert.luau + Debug/luau-compile tests/conformance/assert.luau coverage: runs-on: ubuntu-20.04 # needed for clang++-10 to avoid gcov compatibility issues diff --git a/bench/bench.py b/bench/bench.py index 002dfadb5..f609a1d28 100644 --- a/bench/bench.py +++ b/bench/bench.py @@ -889,7 +889,7 @@ def run(args, argsubcb): all_files = [subdir + os.sep + filename for subdir, dirs, files in os.walk(arguments.folder) for filename in files] for filepath in sorted(all_files): subdir, filename = os.path.split(filepath) - if filename.endswith(".lua"): + if filename.endswith(".luau"): if arguments.run_test == None or re.match(arguments.run_test, filename[:-4]): runTest(subdir, filename, filepath) diff --git a/bench/bench_support.lua b/bench/bench_support.luau similarity index 100% rename from bench/bench_support.lua rename to bench/bench_support.luau diff --git a/bench/gc/test_BinaryTree.lua b/bench/gc/test_BinaryTree.luau similarity index 100% rename from bench/gc/test_BinaryTree.lua rename to bench/gc/test_BinaryTree.luau diff --git a/bench/gc/test_GC_Boehm_Trees.lua b/bench/gc/test_GC_Boehm_Trees.luau similarity index 100% rename from bench/gc/test_GC_Boehm_Trees.lua rename to bench/gc/test_GC_Boehm_Trees.luau diff --git a/bench/gc/test_GC_Tree_Pruning_Eager.lua b/bench/gc/test_GC_Tree_Pruning_Eager.luau similarity index 100% rename from bench/gc/test_GC_Tree_Pruning_Eager.lua rename to bench/gc/test_GC_Tree_Pruning_Eager.luau diff --git a/bench/gc/test_GC_Tree_Pruning_Gen.lua b/bench/gc/test_GC_Tree_Pruning_Gen.luau similarity index 100% rename from bench/gc/test_GC_Tree_Pruning_Gen.lua rename to bench/gc/test_GC_Tree_Pruning_Gen.luau diff --git a/bench/gc/test_GC_Tree_Pruning_Lazy.lua b/bench/gc/test_GC_Tree_Pruning_Lazy.luau similarity index 100% rename from bench/gc/test_GC_Tree_Pruning_Lazy.lua rename to bench/gc/test_GC_Tree_Pruning_Lazy.luau diff --git a/bench/gc/test_GC_hashtable_Keyval.lua b/bench/gc/test_GC_hashtable_Keyval.luau similarity index 100% rename from bench/gc/test_GC_hashtable_Keyval.lua rename to bench/gc/test_GC_hashtable_Keyval.luau diff --git a/bench/gc/test_LB_mandel.lua b/bench/gc/test_LB_mandel.luau similarity index 100% rename from bench/gc/test_LB_mandel.lua rename to bench/gc/test_LB_mandel.luau diff --git a/bench/gc/test_LargeTableCtor_array.lua b/bench/gc/test_LargeTableCtor_array.luau similarity index 100% rename from bench/gc/test_LargeTableCtor_array.lua rename to bench/gc/test_LargeTableCtor_array.luau diff --git a/bench/gc/test_LargeTableCtor_hash.lua b/bench/gc/test_LargeTableCtor_hash.luau similarity index 100% rename from bench/gc/test_LargeTableCtor_hash.lua rename to bench/gc/test_LargeTableCtor_hash.luau diff --git a/bench/gc/test_Pcall_pcall_yield.lua b/bench/gc/test_Pcall_pcall_yield.luau similarity index 100% rename from bench/gc/test_Pcall_pcall_yield.lua rename to bench/gc/test_Pcall_pcall_yield.luau diff --git a/bench/gc/test_SunSpider_3d-raytrace.lua b/bench/gc/test_SunSpider_3d-raytrace.luau similarity index 100% rename from bench/gc/test_SunSpider_3d-raytrace.lua rename to bench/gc/test_SunSpider_3d-raytrace.luau diff --git a/bench/gc/test_TableCreate_nil.lua b/bench/gc/test_TableCreate_nil.luau similarity index 100% rename from bench/gc/test_TableCreate_nil.lua rename to bench/gc/test_TableCreate_nil.luau diff --git a/bench/gc/test_TableCreate_number.lua b/bench/gc/test_TableCreate_number.luau similarity index 100% rename from bench/gc/test_TableCreate_number.lua rename to bench/gc/test_TableCreate_number.luau diff --git a/bench/gc/test_TableCreate_zerofill.lua b/bench/gc/test_TableCreate_zerofill.luau similarity index 100% rename from bench/gc/test_TableCreate_zerofill.lua rename to bench/gc/test_TableCreate_zerofill.luau diff --git a/bench/gc/test_TableMarshal_select.lua b/bench/gc/test_TableMarshal_select.luau similarity index 100% rename from bench/gc/test_TableMarshal_select.lua rename to bench/gc/test_TableMarshal_select.luau diff --git a/bench/gc/test_TableMarshal_table_pack.lua b/bench/gc/test_TableMarshal_table_pack.luau similarity index 100% rename from bench/gc/test_TableMarshal_table_pack.lua rename to bench/gc/test_TableMarshal_table_pack.luau diff --git a/bench/gc/test_TableMarshal_varargs.lua b/bench/gc/test_TableMarshal_varargs.luau similarity index 100% rename from bench/gc/test_TableMarshal_varargs.lua rename to bench/gc/test_TableMarshal_varargs.luau diff --git a/bench/micro_tests/test_AbsSum_abs.lua b/bench/micro_tests/test_AbsSum_abs.luau similarity index 100% rename from bench/micro_tests/test_AbsSum_abs.lua rename to bench/micro_tests/test_AbsSum_abs.luau diff --git a/bench/micro_tests/test_AbsSum_and_or.lua b/bench/micro_tests/test_AbsSum_and_or.luau similarity index 100% rename from bench/micro_tests/test_AbsSum_and_or.lua rename to bench/micro_tests/test_AbsSum_and_or.luau diff --git a/bench/micro_tests/test_AbsSum_math_abs.lua b/bench/micro_tests/test_AbsSum_math_abs.luau similarity index 100% rename from bench/micro_tests/test_AbsSum_math_abs.lua rename to bench/micro_tests/test_AbsSum_math_abs.luau diff --git a/bench/micro_tests/test_Assert.lua b/bench/micro_tests/test_Assert.luau similarity index 100% rename from bench/micro_tests/test_Assert.lua rename to bench/micro_tests/test_Assert.luau diff --git a/bench/micro_tests/test_Factorial.lua b/bench/micro_tests/test_Factorial.luau similarity index 100% rename from bench/micro_tests/test_Factorial.lua rename to bench/micro_tests/test_Factorial.luau diff --git a/bench/micro_tests/test_Failure_pcall_a_bar.lua b/bench/micro_tests/test_Failure_pcall_a_bar.luau similarity index 100% rename from bench/micro_tests/test_Failure_pcall_a_bar.lua rename to bench/micro_tests/test_Failure_pcall_a_bar.luau diff --git a/bench/micro_tests/test_Failure_pcall_game_Foo.lua b/bench/micro_tests/test_Failure_pcall_game_Foo.luau similarity index 100% rename from bench/micro_tests/test_Failure_pcall_game_Foo.lua rename to bench/micro_tests/test_Failure_pcall_game_Foo.luau diff --git a/bench/micro_tests/test_Failure_xpcall_a_bar.lua b/bench/micro_tests/test_Failure_xpcall_a_bar.luau similarity index 100% rename from bench/micro_tests/test_Failure_xpcall_a_bar.lua rename to bench/micro_tests/test_Failure_xpcall_a_bar.luau diff --git a/bench/micro_tests/test_Failure_xpcall_game_Foo.lua b/bench/micro_tests/test_Failure_xpcall_game_Foo.luau similarity index 100% rename from bench/micro_tests/test_Failure_xpcall_game_Foo.lua rename to bench/micro_tests/test_Failure_xpcall_game_Foo.luau diff --git a/bench/micro_tests/test_LargeTableCtor_array.lua b/bench/micro_tests/test_LargeTableCtor_array.luau similarity index 100% rename from bench/micro_tests/test_LargeTableCtor_array.lua rename to bench/micro_tests/test_LargeTableCtor_array.luau diff --git a/bench/micro_tests/test_LargeTableCtor_hash.lua b/bench/micro_tests/test_LargeTableCtor_hash.luau similarity index 100% rename from bench/micro_tests/test_LargeTableCtor_hash.lua rename to bench/micro_tests/test_LargeTableCtor_hash.luau diff --git a/bench/micro_tests/test_LargeTableSum_loop_index.lua b/bench/micro_tests/test_LargeTableSum_loop_index.luau similarity index 100% rename from bench/micro_tests/test_LargeTableSum_loop_index.lua rename to bench/micro_tests/test_LargeTableSum_loop_index.luau diff --git a/bench/micro_tests/test_LargeTableSum_loop_ipairs.lua b/bench/micro_tests/test_LargeTableSum_loop_ipairs.luau similarity index 100% rename from bench/micro_tests/test_LargeTableSum_loop_ipairs.lua rename to bench/micro_tests/test_LargeTableSum_loop_ipairs.luau diff --git a/bench/micro_tests/test_LargeTableSum_loop_iter.lua b/bench/micro_tests/test_LargeTableSum_loop_iter.luau similarity index 100% rename from bench/micro_tests/test_LargeTableSum_loop_iter.lua rename to bench/micro_tests/test_LargeTableSum_loop_iter.luau diff --git a/bench/micro_tests/test_LargeTableSum_loop_pairs.lua b/bench/micro_tests/test_LargeTableSum_loop_pairs.luau similarity index 100% rename from bench/micro_tests/test_LargeTableSum_loop_pairs.lua rename to bench/micro_tests/test_LargeTableSum_loop_pairs.luau diff --git a/bench/micro_tests/test_MethodCalls.lua b/bench/micro_tests/test_MethodCalls.luau similarity index 100% rename from bench/micro_tests/test_MethodCalls.lua rename to bench/micro_tests/test_MethodCalls.luau diff --git a/bench/micro_tests/test_OOP_constructor.lua b/bench/micro_tests/test_OOP_constructor.luau similarity index 100% rename from bench/micro_tests/test_OOP_constructor.lua rename to bench/micro_tests/test_OOP_constructor.luau diff --git a/bench/micro_tests/test_OOP_method_call.lua b/bench/micro_tests/test_OOP_method_call.luau similarity index 100% rename from bench/micro_tests/test_OOP_method_call.lua rename to bench/micro_tests/test_OOP_method_call.luau diff --git a/bench/micro_tests/test_OOP_virtual_constructor.lua b/bench/micro_tests/test_OOP_virtual_constructor.luau similarity index 100% rename from bench/micro_tests/test_OOP_virtual_constructor.lua rename to bench/micro_tests/test_OOP_virtual_constructor.luau diff --git a/bench/micro_tests/test_Pcall_call_return.lua b/bench/micro_tests/test_Pcall_call_return.luau similarity index 100% rename from bench/micro_tests/test_Pcall_call_return.lua rename to bench/micro_tests/test_Pcall_call_return.luau diff --git a/bench/micro_tests/test_Pcall_pcall_return.lua b/bench/micro_tests/test_Pcall_pcall_return.luau similarity index 100% rename from bench/micro_tests/test_Pcall_pcall_return.lua rename to bench/micro_tests/test_Pcall_pcall_return.luau diff --git a/bench/micro_tests/test_Pcall_pcall_yield.lua b/bench/micro_tests/test_Pcall_pcall_yield.luau similarity index 100% rename from bench/micro_tests/test_Pcall_pcall_yield.lua rename to bench/micro_tests/test_Pcall_pcall_yield.luau diff --git a/bench/micro_tests/test_Pcall_xpcall_return.lua b/bench/micro_tests/test_Pcall_xpcall_return.luau similarity index 100% rename from bench/micro_tests/test_Pcall_xpcall_return.lua rename to bench/micro_tests/test_Pcall_xpcall_return.luau diff --git a/bench/micro_tests/test_SqrtSum_exponent.lua b/bench/micro_tests/test_SqrtSum_exponent.luau similarity index 100% rename from bench/micro_tests/test_SqrtSum_exponent.lua rename to bench/micro_tests/test_SqrtSum_exponent.luau diff --git a/bench/micro_tests/test_SqrtSum_math_sqrt.lua b/bench/micro_tests/test_SqrtSum_math_sqrt.luau similarity index 100% rename from bench/micro_tests/test_SqrtSum_math_sqrt.lua rename to bench/micro_tests/test_SqrtSum_math_sqrt.luau diff --git a/bench/micro_tests/test_SqrtSum_sqrt.lua b/bench/micro_tests/test_SqrtSum_sqrt.luau similarity index 100% rename from bench/micro_tests/test_SqrtSum_sqrt.lua rename to bench/micro_tests/test_SqrtSum_sqrt.luau diff --git a/bench/micro_tests/test_SqrtSum_sqrt_getfenv.lua b/bench/micro_tests/test_SqrtSum_sqrt_getfenv.luau similarity index 100% rename from bench/micro_tests/test_SqrtSum_sqrt_getfenv.lua rename to bench/micro_tests/test_SqrtSum_sqrt_getfenv.luau diff --git a/bench/micro_tests/test_SqrtSum_sqrt_roundabout.lua b/bench/micro_tests/test_SqrtSum_sqrt_roundabout.luau similarity index 100% rename from bench/micro_tests/test_SqrtSum_sqrt_roundabout.lua rename to bench/micro_tests/test_SqrtSum_sqrt_roundabout.luau diff --git a/bench/micro_tests/test_StringInterp.lua b/bench/micro_tests/test_StringInterp.luau similarity index 100% rename from bench/micro_tests/test_StringInterp.lua rename to bench/micro_tests/test_StringInterp.luau diff --git a/bench/micro_tests/test_TableCreate_nil.lua b/bench/micro_tests/test_TableCreate_nil.luau similarity index 100% rename from bench/micro_tests/test_TableCreate_nil.lua rename to bench/micro_tests/test_TableCreate_nil.luau diff --git a/bench/micro_tests/test_TableCreate_number.lua b/bench/micro_tests/test_TableCreate_number.luau similarity index 100% rename from bench/micro_tests/test_TableCreate_number.lua rename to bench/micro_tests/test_TableCreate_number.luau diff --git a/bench/micro_tests/test_TableCreate_zerofill.lua b/bench/micro_tests/test_TableCreate_zerofill.luau similarity index 100% rename from bench/micro_tests/test_TableCreate_zerofill.lua rename to bench/micro_tests/test_TableCreate_zerofill.luau diff --git a/bench/micro_tests/test_TableFind_loop_ipairs.lua b/bench/micro_tests/test_TableFind_loop_ipairs.luau similarity index 100% rename from bench/micro_tests/test_TableFind_loop_ipairs.lua rename to bench/micro_tests/test_TableFind_loop_ipairs.luau diff --git a/bench/micro_tests/test_TableFind_table_find.lua b/bench/micro_tests/test_TableFind_table_find.luau similarity index 100% rename from bench/micro_tests/test_TableFind_table_find.lua rename to bench/micro_tests/test_TableFind_table_find.luau diff --git a/bench/micro_tests/test_TableInsertion_index_cached.lua b/bench/micro_tests/test_TableInsertion_index_cached.luau similarity index 100% rename from bench/micro_tests/test_TableInsertion_index_cached.lua rename to bench/micro_tests/test_TableInsertion_index_cached.luau diff --git a/bench/micro_tests/test_TableInsertion_index_len.lua b/bench/micro_tests/test_TableInsertion_index_len.luau similarity index 100% rename from bench/micro_tests/test_TableInsertion_index_len.lua rename to bench/micro_tests/test_TableInsertion_index_len.luau diff --git a/bench/micro_tests/test_TableInsertion_table_insert.lua b/bench/micro_tests/test_TableInsertion_table_insert.luau similarity index 100% rename from bench/micro_tests/test_TableInsertion_table_insert.lua rename to bench/micro_tests/test_TableInsertion_table_insert.luau diff --git a/bench/micro_tests/test_TableInsertion_table_insert_index.lua b/bench/micro_tests/test_TableInsertion_table_insert_index.luau similarity index 100% rename from bench/micro_tests/test_TableInsertion_table_insert_index.lua rename to bench/micro_tests/test_TableInsertion_table_insert_index.luau diff --git a/bench/micro_tests/test_TableIteration.lua b/bench/micro_tests/test_TableIteration.luau similarity index 100% rename from bench/micro_tests/test_TableIteration.lua rename to bench/micro_tests/test_TableIteration.luau diff --git a/bench/micro_tests/test_TableMarshal_select.lua b/bench/micro_tests/test_TableMarshal_select.luau similarity index 100% rename from bench/micro_tests/test_TableMarshal_select.lua rename to bench/micro_tests/test_TableMarshal_select.luau diff --git a/bench/micro_tests/test_TableMarshal_table_pack.lua b/bench/micro_tests/test_TableMarshal_table_pack.luau similarity index 100% rename from bench/micro_tests/test_TableMarshal_table_pack.lua rename to bench/micro_tests/test_TableMarshal_table_pack.luau diff --git a/bench/micro_tests/test_TableMarshal_table_unpack_array.lua b/bench/micro_tests/test_TableMarshal_table_unpack_array.luau similarity index 100% rename from bench/micro_tests/test_TableMarshal_table_unpack_array.lua rename to bench/micro_tests/test_TableMarshal_table_unpack_array.luau diff --git a/bench/micro_tests/test_TableMarshal_table_unpack_range.lua b/bench/micro_tests/test_TableMarshal_table_unpack_range.luau similarity index 100% rename from bench/micro_tests/test_TableMarshal_table_unpack_range.lua rename to bench/micro_tests/test_TableMarshal_table_unpack_range.luau diff --git a/bench/micro_tests/test_TableMarshal_varargs.lua b/bench/micro_tests/test_TableMarshal_varargs.luau similarity index 100% rename from bench/micro_tests/test_TableMarshal_varargs.lua rename to bench/micro_tests/test_TableMarshal_varargs.luau diff --git a/bench/micro_tests/test_TableMove_empty_table.lua b/bench/micro_tests/test_TableMove_empty_table.luau similarity index 100% rename from bench/micro_tests/test_TableMove_empty_table.lua rename to bench/micro_tests/test_TableMove_empty_table.luau diff --git a/bench/micro_tests/test_TableMove_same_table.lua b/bench/micro_tests/test_TableMove_same_table.luau similarity index 100% rename from bench/micro_tests/test_TableMove_same_table.lua rename to bench/micro_tests/test_TableMove_same_table.luau diff --git a/bench/micro_tests/test_TableMove_table_create.lua b/bench/micro_tests/test_TableMove_table_create.luau similarity index 100% rename from bench/micro_tests/test_TableMove_table_create.lua rename to bench/micro_tests/test_TableMove_table_create.luau diff --git a/bench/micro_tests/test_TableRemoval_table_remove.lua b/bench/micro_tests/test_TableRemoval_table_remove.luau similarity index 100% rename from bench/micro_tests/test_TableRemoval_table_remove.lua rename to bench/micro_tests/test_TableRemoval_table_remove.luau diff --git a/bench/micro_tests/test_TableSort.lua b/bench/micro_tests/test_TableSort.luau similarity index 100% rename from bench/micro_tests/test_TableSort.lua rename to bench/micro_tests/test_TableSort.luau diff --git a/bench/micro_tests/test_ToNumberString.lua b/bench/micro_tests/test_ToNumberString.luau similarity index 100% rename from bench/micro_tests/test_ToNumberString.lua rename to bench/micro_tests/test_ToNumberString.luau diff --git a/bench/micro_tests/test_UpvalueCapture.lua b/bench/micro_tests/test_UpvalueCapture.luau similarity index 100% rename from bench/micro_tests/test_UpvalueCapture.lua rename to bench/micro_tests/test_UpvalueCapture.luau diff --git a/bench/micro_tests/test_VariadicSelect.lua b/bench/micro_tests/test_VariadicSelect.luau similarity index 100% rename from bench/micro_tests/test_VariadicSelect.lua rename to bench/micro_tests/test_VariadicSelect.luau diff --git a/bench/micro_tests/test_string_lib.lua b/bench/micro_tests/test_string_lib.luau similarity index 100% rename from bench/micro_tests/test_string_lib.lua rename to bench/micro_tests/test_string_lib.luau diff --git a/bench/micro_tests/test_table_concat.lua b/bench/micro_tests/test_table_concat.luau similarity index 100% rename from bench/micro_tests/test_table_concat.lua rename to bench/micro_tests/test_table_concat.luau diff --git a/bench/other/LuauPolyfillMap.lua b/bench/other/LuauPolyfillMap.luau similarity index 100% rename from bench/other/LuauPolyfillMap.lua rename to bench/other/LuauPolyfillMap.luau diff --git a/bench/other/boatbomber-HashLib/Base64.lua b/bench/other/boatbomber-HashLib/Base64.luau similarity index 100% rename from bench/other/boatbomber-HashLib/Base64.lua rename to bench/other/boatbomber-HashLib/Base64.luau diff --git a/bench/other/boatbomber-HashLib/HashLib.spec.lua b/bench/other/boatbomber-HashLib/HashLib.spec.luau similarity index 100% rename from bench/other/boatbomber-HashLib/HashLib.spec.lua rename to bench/other/boatbomber-HashLib/HashLib.spec.luau diff --git a/bench/other/boatbomber-HashLib/init.lua b/bench/other/boatbomber-HashLib/init.luau similarity index 100% rename from bench/other/boatbomber-HashLib/init.lua rename to bench/other/boatbomber-HashLib/init.luau diff --git a/bench/other/regex.lua b/bench/other/regex.luau similarity index 100% rename from bench/other/regex.lua rename to bench/other/regex.luau diff --git a/bench/tests/base64.lua b/bench/tests/base64.luau similarity index 100% rename from bench/tests/base64.lua rename to bench/tests/base64.luau diff --git a/bench/tests/chess.lua b/bench/tests/chess.luau similarity index 100% rename from bench/tests/chess.lua rename to bench/tests/chess.luau diff --git a/bench/tests/life.lua b/bench/tests/life.luau similarity index 100% rename from bench/tests/life.lua rename to bench/tests/life.luau diff --git a/bench/tests/matrixmult.lua b/bench/tests/matrixmult.luau similarity index 100% rename from bench/tests/matrixmult.lua rename to bench/tests/matrixmult.luau diff --git a/bench/tests/mesh-normal-scalar.lua b/bench/tests/mesh-normal-scalar.luau similarity index 100% rename from bench/tests/mesh-normal-scalar.lua rename to bench/tests/mesh-normal-scalar.luau diff --git a/bench/tests/mesh-normal-vector.lua b/bench/tests/mesh-normal-vector.luau similarity index 100% rename from bench/tests/mesh-normal-vector.lua rename to bench/tests/mesh-normal-vector.luau diff --git a/bench/tests/pcmmix.lua b/bench/tests/pcmmix.luau similarity index 100% rename from bench/tests/pcmmix.lua rename to bench/tests/pcmmix.luau diff --git a/bench/tests/qsort.lua b/bench/tests/qsort.luau similarity index 100% rename from bench/tests/qsort.lua rename to bench/tests/qsort.luau diff --git a/bench/tests/sha256.lua b/bench/tests/sha256.luau similarity index 100% rename from bench/tests/sha256.lua rename to bench/tests/sha256.luau diff --git a/bench/tests/shootout/ack.lua b/bench/tests/shootout/ack.luau similarity index 100% rename from bench/tests/shootout/ack.lua rename to bench/tests/shootout/ack.luau diff --git a/bench/tests/shootout/binary-trees.lua b/bench/tests/shootout/binary-trees.luau similarity index 100% rename from bench/tests/shootout/binary-trees.lua rename to bench/tests/shootout/binary-trees.luau diff --git a/bench/tests/shootout/fannkuch-redux.lua b/bench/tests/shootout/fannkuch-redux.luau similarity index 100% rename from bench/tests/shootout/fannkuch-redux.lua rename to bench/tests/shootout/fannkuch-redux.luau diff --git a/bench/tests/shootout/fixpoint-fact.lua b/bench/tests/shootout/fixpoint-fact.luau similarity index 100% rename from bench/tests/shootout/fixpoint-fact.lua rename to bench/tests/shootout/fixpoint-fact.luau diff --git a/bench/tests/shootout/heapsort.lua b/bench/tests/shootout/heapsort.luau similarity index 100% rename from bench/tests/shootout/heapsort.lua rename to bench/tests/shootout/heapsort.luau diff --git a/bench/tests/shootout/mandel.lua b/bench/tests/shootout/mandel.luau similarity index 100% rename from bench/tests/shootout/mandel.lua rename to bench/tests/shootout/mandel.luau diff --git a/bench/tests/shootout/n-body.lua b/bench/tests/shootout/n-body.luau similarity index 100% rename from bench/tests/shootout/n-body.lua rename to bench/tests/shootout/n-body.luau diff --git a/bench/tests/shootout/qt.lua b/bench/tests/shootout/qt.luau similarity index 100% rename from bench/tests/shootout/qt.lua rename to bench/tests/shootout/qt.luau diff --git a/bench/tests/shootout/queen.lua b/bench/tests/shootout/queen.luau similarity index 100% rename from bench/tests/shootout/queen.lua rename to bench/tests/shootout/queen.luau diff --git a/bench/tests/shootout/scimark.lua b/bench/tests/shootout/scimark.luau similarity index 100% rename from bench/tests/shootout/scimark.lua rename to bench/tests/shootout/scimark.luau diff --git a/bench/tests/shootout/spectral-norm.lua b/bench/tests/shootout/spectral-norm.luau similarity index 100% rename from bench/tests/shootout/spectral-norm.lua rename to bench/tests/shootout/spectral-norm.luau diff --git a/bench/tests/sieve.lua b/bench/tests/sieve.luau similarity index 100% rename from bench/tests/sieve.lua rename to bench/tests/sieve.luau diff --git a/bench/tests/sunspider/3d-cube.lua b/bench/tests/sunspider/3d-cube.luau similarity index 100% rename from bench/tests/sunspider/3d-cube.lua rename to bench/tests/sunspider/3d-cube.luau diff --git a/bench/tests/sunspider/3d-morph.lua b/bench/tests/sunspider/3d-morph.luau similarity index 100% rename from bench/tests/sunspider/3d-morph.lua rename to bench/tests/sunspider/3d-morph.luau diff --git a/bench/tests/sunspider/3d-raytrace.lua b/bench/tests/sunspider/3d-raytrace.luau similarity index 100% rename from bench/tests/sunspider/3d-raytrace.lua rename to bench/tests/sunspider/3d-raytrace.luau diff --git a/bench/tests/sunspider/controlflow-recursive.lua b/bench/tests/sunspider/controlflow-recursive.luau similarity index 100% rename from bench/tests/sunspider/controlflow-recursive.lua rename to bench/tests/sunspider/controlflow-recursive.luau diff --git a/bench/tests/sunspider/crypto-aes.lua b/bench/tests/sunspider/crypto-aes.luau similarity index 100% rename from bench/tests/sunspider/crypto-aes.lua rename to bench/tests/sunspider/crypto-aes.luau diff --git a/bench/tests/sunspider/fannkuch.lua b/bench/tests/sunspider/fannkuch.luau similarity index 100% rename from bench/tests/sunspider/fannkuch.lua rename to bench/tests/sunspider/fannkuch.luau diff --git a/bench/tests/sunspider/math-cordic.lua b/bench/tests/sunspider/math-cordic.luau similarity index 100% rename from bench/tests/sunspider/math-cordic.lua rename to bench/tests/sunspider/math-cordic.luau diff --git a/bench/tests/sunspider/math-partial-sums.lua b/bench/tests/sunspider/math-partial-sums.luau similarity index 100% rename from bench/tests/sunspider/math-partial-sums.lua rename to bench/tests/sunspider/math-partial-sums.luau diff --git a/bench/tests/sunspider/n-body-oop.lua b/bench/tests/sunspider/n-body-oop.luau similarity index 100% rename from bench/tests/sunspider/n-body-oop.lua rename to bench/tests/sunspider/n-body-oop.luau diff --git a/bench/tests/tictactoe.lua b/bench/tests/tictactoe.luau similarity index 100% rename from bench/tests/tictactoe.lua rename to bench/tests/tictactoe.luau diff --git a/bench/tests/trig.lua b/bench/tests/trig.luau similarity index 100% rename from bench/tests/trig.lua rename to bench/tests/trig.luau diff --git a/bench/tests/vector-math.lua b/bench/tests/vector-math.luau similarity index 100% rename from bench/tests/vector-math.lua rename to bench/tests/vector-math.luau diff --git a/bench/tests/voxelgen.lua b/bench/tests/voxelgen.luau similarity index 100% rename from bench/tests/voxelgen.lua rename to bench/tests/voxelgen.luau diff --git a/tests/Conformance.test.cpp b/tests/Conformance.test.cpp index c0e81371d..58f2aadf8 100644 --- a/tests/Conformance.test.cpp +++ b/tests/Conformance.test.cpp @@ -644,30 +644,30 @@ TEST_CASE("CodegenSupported") TEST_CASE("Assert") { - runConformance("assert.lua"); + runConformance("assert.luau"); } TEST_CASE("Basic") { - runConformance("basic.lua"); + runConformance("basic.luau"); } TEST_CASE("Buffers") { - runConformance("buffers.lua"); + runConformance("buffers.luau"); } TEST_CASE("Math") { ScopedFastFlag LuauMathMap{FFlag::LuauMathMap, true}; - runConformance("math.lua"); + runConformance("math.luau"); } TEST_CASE("Tables") { runConformance( - "tables.lua", + "tables.luau", [](lua_State* L) { lua_pushcfunction( @@ -696,99 +696,99 @@ TEST_CASE("Tables") TEST_CASE("PatternMatch") { - runConformance("pm.lua"); + runConformance("pm.luau"); } TEST_CASE("Sort") { - runConformance("sort.lua"); + runConformance("sort.luau"); } TEST_CASE("Move") { - runConformance("move.lua"); + runConformance("move.luau"); } TEST_CASE("Clear") { - runConformance("clear.lua"); + runConformance("clear.luau"); } TEST_CASE("Strings") { - runConformance("strings.lua"); + runConformance("strings.luau"); } TEST_CASE("StringInterp") { - runConformance("stringinterp.lua"); + runConformance("stringinterp.luau"); } TEST_CASE("VarArg") { - runConformance("vararg.lua"); + runConformance("vararg.luau"); } TEST_CASE("Locals") { - runConformance("locals.lua"); + runConformance("locals.luau"); } TEST_CASE("Literals") { - runConformance("literals.lua"); + runConformance("literals.luau"); } TEST_CASE("Errors") { - runConformance("errors.lua"); + runConformance("errors.luau"); } TEST_CASE("Events") { - runConformance("events.lua"); + runConformance("events.luau"); } TEST_CASE("Constructs") { - runConformance("constructs.lua"); + runConformance("constructs.luau"); } TEST_CASE("Closure") { - runConformance("closure.lua"); + runConformance("closure.luau"); } TEST_CASE("Calls") { ScopedFastFlag LuauStackLimit{DFFlag::LuauStackLimit, true}; - runConformance("calls.lua"); + runConformance("calls.luau"); } TEST_CASE("Attrib") { - runConformance("attrib.lua"); + runConformance("attrib.luau"); } TEST_CASE("GC") { - runConformance("gc.lua"); + runConformance("gc.luau"); } TEST_CASE("Bitwise") { - runConformance("bitwise.lua"); + runConformance("bitwise.luau"); } TEST_CASE("UTF8") { - runConformance("utf8.lua"); + runConformance("utf8.luau"); } TEST_CASE("Coroutine") { - runConformance("coroutine.lua"); + runConformance("coroutine.luau"); } static int cxxthrow(lua_State* L) @@ -805,7 +805,7 @@ TEST_CASE("PCall") ScopedFastFlag LuauStackLimit{DFFlag::LuauStackLimit, true}; runConformance( - "pcall.lua", + "pcall.luau", [](lua_State* L) { lua_pushcfunction(L, cxxthrow, "cxxthrow"); @@ -831,7 +831,7 @@ TEST_CASE("PCall") TEST_CASE("Pack") { - runConformance("tpack.lua"); + runConformance("tpack.luau"); } TEST_CASE("Vector") @@ -876,7 +876,7 @@ TEST_CASE("Vector") } runConformance( - "vector.lua", + "vector.luau", [](lua_State* L) { setupVectorHelpers(L); @@ -911,9 +911,7 @@ TEST_CASE("VectorLibrary") copts.optimizationLevel = 2; } - runConformance( - "vector_library.lua", [](lua_State* L) {}, nullptr, nullptr, &copts - ); + runConformance("vector_library.luau", [](lua_State* L) {}, nullptr, nullptr, &copts); } static void populateRTTI(lua_State* L, Luau::TypeId type) @@ -990,7 +988,7 @@ TEST_CASE("Types") ScopedFastFlag luauVectorDefinitions{FFlag::LuauVectorDefinitions, true}; runConformance( - "types.lua", + "types.luau", [](lua_State* L) { Luau::NullModuleResolver moduleResolver; @@ -1015,14 +1013,14 @@ TEST_CASE("Types") TEST_CASE("DateTime") { - runConformance("datetime.lua"); + runConformance("datetime.luau"); } TEST_CASE("Debug") { ScopedFastFlag luauDebugInfoInvArgLeftovers{DFFlag::LuauDebugInfoInvArgLeftovers, true}; - runConformance("debug.lua"); + runConformance("debug.luau"); } TEST_CASE("Debugger") @@ -1049,7 +1047,7 @@ TEST_CASE("Debugger") copts.debugLevel = 2; runConformance( - "debugger.lua", + "debugger.luau", [](lua_State* L) { lua_Callbacks* cb = lua_callbacks(L); @@ -1224,7 +1222,7 @@ TEST_CASE("NDebugGetUpValue") copts.optimizationLevel = 0; runConformance( - "ndebug_upvalues.lua", + "ndebug_upvalues.luau", nullptr, [](lua_State* L) { @@ -1436,7 +1434,7 @@ TEST_CASE("ApiIter") TEST_CASE("ApiCalls") { - StateRef globalState = runConformance("apicalls.lua", nullptr, nullptr, lua_newstate(limitedRealloc, nullptr)); + StateRef globalState = runConformance("apicalls.luau", nullptr, nullptr, lua_newstate(limitedRealloc, nullptr)); lua_State* L = globalState.get(); // lua_call @@ -1739,7 +1737,7 @@ TEST_CASE("ExceptionObject") return ExceptionResult{false, ""}; }; - StateRef globalState = runConformance("exceptions.lua", nullptr, nullptr, lua_newstate(limitedRealloc, nullptr)); + StateRef globalState = runConformance("exceptions.luau", nullptr, nullptr, lua_newstate(limitedRealloc, nullptr)); lua_State* L = globalState.get(); { @@ -1778,7 +1776,7 @@ TEST_CASE("ExceptionObject") TEST_CASE("IfElseExpression") { - runConformance("ifelseexpr.lua"); + runConformance("ifelseexpr.luau"); } // Optionally returns debug info for the first Luau stack frame that is encountered on the callstack. @@ -1816,7 +1814,7 @@ TEST_CASE("TagMethodError") auto yieldCallback = [](lua_State* L) {}; runConformance( - "tmerror.lua", + "tmerror.luau", [](lua_State* L) { auto* cb = lua_callbacks(L); @@ -1854,7 +1852,7 @@ TEST_CASE("Coverage") copts.coverageLevel = 2; runConformance( - "coverage.lua", + "coverage.luau", [](lua_State* L) { lua_pushcfunction( @@ -1908,7 +1906,7 @@ TEST_CASE("Coverage") TEST_CASE("StringConversion") { - runConformance("strconv.lua"); + runConformance("strconv.luau"); } TEST_CASE("GCDump") @@ -2021,7 +2019,7 @@ TEST_CASE("Interrupt") static int index; - StateRef globalState = runConformance("interrupt.lua", nullptr, nullptr, nullptr, &copts); + StateRef globalState = runConformance("interrupt.luau", nullptr, nullptr, nullptr, &copts); lua_State* L = globalState.get(); @@ -2322,7 +2320,7 @@ TEST_CASE("DebugApi") TEST_CASE("Iter") { - runConformance("iter.lua"); + runConformance("iter.luau"); } const int kInt64Tag = 1; @@ -2351,7 +2349,7 @@ static void pushInt64(lua_State* L, int64_t value) TEST_CASE("Userdata") { runConformance( - "userdata.lua", + "userdata.luau", [](lua_State* L) { // create metatable with all the metamethods @@ -2573,7 +2571,7 @@ TEST_CASE("Userdata") TEST_CASE("SafeEnv") { - runConformance("safeenv.lua"); + runConformance("safeenv.luau"); } TEST_CASE("Native") @@ -2593,7 +2591,7 @@ TEST_CASE("Native") } runConformance( - "native.lua", + "native.luau", [](lua_State* L) { setupNativeHelpers(L); @@ -2608,7 +2606,7 @@ TEST_CASE("NativeTypeAnnotations") return; runConformance( - "native_types.lua", + "native_types.luau", [](lua_State* L) { setupNativeHelpers(L); @@ -2671,7 +2669,7 @@ TEST_CASE("NativeUserdata") } runConformance( - "native_userdata.lua", + "native_userdata.luau", [](lua_State* L) { Luau::CodeGen::setUserdataRemapper( diff --git a/tests/conformance/apicalls.lua b/tests/conformance/apicalls.luau similarity index 100% rename from tests/conformance/apicalls.lua rename to tests/conformance/apicalls.luau diff --git a/tests/conformance/assert.lua b/tests/conformance/assert.luau similarity index 100% rename from tests/conformance/assert.lua rename to tests/conformance/assert.luau diff --git a/tests/conformance/attrib.lua b/tests/conformance/attrib.luau similarity index 100% rename from tests/conformance/attrib.lua rename to tests/conformance/attrib.luau diff --git a/tests/conformance/basic.lua b/tests/conformance/basic.luau similarity index 99% rename from tests/conformance/basic.lua rename to tests/conformance/basic.luau index 05d851ea9..7f382485d 100644 --- a/tests/conformance/basic.lua +++ b/tests/conformance/basic.luau @@ -36,7 +36,7 @@ assert(foo(1, 2, 3) == 2) assert(concat(pcall(function () end)) == "true") assert(concat(pcall(function () return nil end)) == "true,nil") assert(concat(pcall(function () return 1,2,3 end)) == "true,1,2,3") -assert(concat(pcall(function () error("oops") end)) == "false,basic.lua:39: oops") +assert(concat(pcall(function () error("oops") end)) == "false,basic.luau:39: oops") -- assignments assert((function() local a = 1 a = 2 return a end)() == 2) diff --git a/tests/conformance/bitwise.lua b/tests/conformance/bitwise.luau similarity index 100% rename from tests/conformance/bitwise.lua rename to tests/conformance/bitwise.luau diff --git a/tests/conformance/buffers.lua b/tests/conformance/buffers.luau similarity index 100% rename from tests/conformance/buffers.lua rename to tests/conformance/buffers.luau diff --git a/tests/conformance/calls.lua b/tests/conformance/calls.luau similarity index 100% rename from tests/conformance/calls.lua rename to tests/conformance/calls.luau diff --git a/tests/conformance/clear.lua b/tests/conformance/clear.luau similarity index 100% rename from tests/conformance/clear.lua rename to tests/conformance/clear.luau diff --git a/tests/conformance/closure.lua b/tests/conformance/closure.luau similarity index 99% rename from tests/conformance/closure.lua rename to tests/conformance/closure.luau index 10dc322fb..fba65706e 100644 --- a/tests/conformance/closure.lua +++ b/tests/conformance/closure.luau @@ -284,7 +284,7 @@ function foo () error("foo") end -local fooerr = "closure.lua:284: foo" +local fooerr = "closure.luau:284: foo" function goo() foo() end x = coroutine.wrap(goo) diff --git a/tests/conformance/constructs.lua b/tests/conformance/constructs.luau similarity index 100% rename from tests/conformance/constructs.lua rename to tests/conformance/constructs.luau diff --git a/tests/conformance/coroutine.lua b/tests/conformance/coroutine.luau similarity index 100% rename from tests/conformance/coroutine.lua rename to tests/conformance/coroutine.luau diff --git a/tests/conformance/coverage.lua b/tests/conformance/coverage.luau similarity index 100% rename from tests/conformance/coverage.lua rename to tests/conformance/coverage.luau diff --git a/tests/conformance/datetime.lua b/tests/conformance/datetime.luau similarity index 100% rename from tests/conformance/datetime.lua rename to tests/conformance/datetime.luau diff --git a/tests/conformance/debug.lua b/tests/conformance/debug.luau similarity index 96% rename from tests/conformance/debug.lua rename to tests/conformance/debug.luau index 9fa02e274..89d43480f 100644 --- a/tests/conformance/debug.lua +++ b/tests/conformance/debug.luau @@ -35,7 +35,7 @@ end local co2 = coroutine.create(halp) coroutine.resume(co2, 0 / 0, 42) -assert(debug.traceback(co2) == "debug.lua:31 function halp\n") +assert(debug.traceback(co2) == "debug.luau:31 function halp\n") assert(debug.info(co2, 0, "l") == 31) assert(debug.info(co2, 0, "f") == halp) @@ -64,7 +64,7 @@ assert(baz(1, "n") == "baz") assert(baz(2, "n") == "") -- main/anonymous assert(baz(3, "n") == nil) assert(baz(0, "s") == "[C]") -assert(baz(1, "s") == "debug.lua") +assert(baz(1, "s") == "debug.luau") assert(baz(0, "l") == -1) assert(baz(1, "l") > 42) assert(baz(0, "f") == debug.info) @@ -87,7 +87,7 @@ end assert(#(quux(1, "nlsf")) == 4) assert(quux(1, "nlsf")[1] == "quux") assert(quux(1, "nlsf")[2] > 64) -assert(quux(1, "nlsf")[3] == "debug.lua") +assert(quux(1, "nlsf")[3] == "debug.luau") assert(quux(1, "nlsf")[4] == quux) -- info arity diff --git a/tests/conformance/debugger.lua b/tests/conformance/debugger.luau similarity index 100% rename from tests/conformance/debugger.lua rename to tests/conformance/debugger.luau diff --git a/tests/conformance/errors.lua b/tests/conformance/errors.luau similarity index 100% rename from tests/conformance/errors.lua rename to tests/conformance/errors.luau diff --git a/tests/conformance/events.lua b/tests/conformance/events.luau similarity index 100% rename from tests/conformance/events.lua rename to tests/conformance/events.luau diff --git a/tests/conformance/exceptions.lua b/tests/conformance/exceptions.luau similarity index 100% rename from tests/conformance/exceptions.lua rename to tests/conformance/exceptions.luau diff --git a/tests/conformance/gc.lua b/tests/conformance/gc.luau similarity index 100% rename from tests/conformance/gc.lua rename to tests/conformance/gc.luau diff --git a/tests/conformance/ifelseexpr.lua b/tests/conformance/ifelseexpr.luau similarity index 100% rename from tests/conformance/ifelseexpr.lua rename to tests/conformance/ifelseexpr.luau diff --git a/tests/conformance/interrupt.lua b/tests/conformance/interrupt.luau similarity index 100% rename from tests/conformance/interrupt.lua rename to tests/conformance/interrupt.luau diff --git a/tests/conformance/iter.lua b/tests/conformance/iter.luau similarity index 100% rename from tests/conformance/iter.lua rename to tests/conformance/iter.luau diff --git a/tests/conformance/literals.lua b/tests/conformance/literals.luau similarity index 100% rename from tests/conformance/literals.lua rename to tests/conformance/literals.luau diff --git a/tests/conformance/locals.lua b/tests/conformance/locals.luau similarity index 100% rename from tests/conformance/locals.lua rename to tests/conformance/locals.luau diff --git a/tests/conformance/math.lua b/tests/conformance/math.luau similarity index 100% rename from tests/conformance/math.lua rename to tests/conformance/math.luau diff --git a/tests/conformance/move.lua b/tests/conformance/move.luau similarity index 100% rename from tests/conformance/move.lua rename to tests/conformance/move.luau diff --git a/tests/conformance/native.lua b/tests/conformance/native.luau similarity index 100% rename from tests/conformance/native.lua rename to tests/conformance/native.luau diff --git a/tests/conformance/native_types.lua b/tests/conformance/native_types.luau similarity index 100% rename from tests/conformance/native_types.lua rename to tests/conformance/native_types.luau diff --git a/tests/conformance/native_userdata.lua b/tests/conformance/native_userdata.luau similarity index 100% rename from tests/conformance/native_userdata.lua rename to tests/conformance/native_userdata.luau diff --git a/tests/conformance/ndebug_upvalues.lua b/tests/conformance/ndebug_upvalues.luau similarity index 100% rename from tests/conformance/ndebug_upvalues.lua rename to tests/conformance/ndebug_upvalues.luau diff --git a/tests/conformance/pcall.lua b/tests/conformance/pcall.luau similarity index 88% rename from tests/conformance/pcall.lua rename to tests/conformance/pcall.luau index 265c397bd..abb242d39 100644 --- a/tests/conformance/pcall.lua +++ b/tests/conformance/pcall.luau @@ -77,9 +77,9 @@ checkresults({ "yield", "return", true, 1, 2, 3}, colog(function() return pcall( checkresults({ "yield", 1, "yield", 2, "return", true, true, 3}, colog(function() return pcall(function() coroutine.yield(1) return pcall(function() coroutine.yield(2) return 3 end) end) end)) -- error after yield tests -checkresults({ "yield", "return", false, "pcall.lua:80: foo" }, colog(function() return pcall(function() coroutine.yield() error("foo") end) end)) -checkresults({ "yield", "yield", "return", true, false, "pcall.lua:81: foo" }, colog(function() return pcall(function() coroutine.yield() return pcall(function() coroutine.yield() error("foo") end) end) end)) -checkresults({ "yield", "yield", "return", false, "pcall.lua:82: bar" }, colog(function() return pcall(function() coroutine.yield() pcall(function() coroutine.yield() error("foo") end) error("bar") end) end)) +checkresults({ "yield", "return", false, "pcall.luau:80: foo" }, colog(function() return pcall(function() coroutine.yield() error("foo") end) end)) +checkresults({ "yield", "yield", "return", true, false, "pcall.luau:81: foo" }, colog(function() return pcall(function() coroutine.yield() return pcall(function() coroutine.yield() error("foo") end) end) end)) +checkresults({ "yield", "yield", "return", false, "pcall.luau:82: bar" }, colog(function() return pcall(function() coroutine.yield() pcall(function() coroutine.yield() error("foo") end) error("bar") end) end)) -- returning lots of results (past MINSTACK limits) local res = {pcall(function() return table.unpack(table.create(100, 'a')) end)} @@ -100,15 +100,15 @@ checkresults({ true, 2 }, xpcall(function(...) return select('#', ...) end, erro checkresults({ "yield", "return", true, 42 }, colog(function() return xpcall(function() coroutine.yield() return 42 end, error) end)) -- xpcall immediate error handling -checkresults({ false, "pcall.lua:103: foo" }, xpcall(function() error("foo") end, function(err) return err end)) +checkresults({ false, "pcall.luau:103: foo" }, xpcall(function() error("foo") end, function(err) return err end)) checkresults({ false, "bar" }, xpcall(function() error("foo") end, function(err) return "bar" end)) checkresults({ false, 1 }, xpcall(function() error("foo") end, function(err) return 1, 2 end)) -checkresults({ false, "pcall.lua:106: foo\npcall.lua:106\npcall.lua:106\n" }, xpcall(function() error("foo") end, debug.traceback)) +checkresults({ false, "pcall.luau:106: foo\npcall.luau:106\npcall.luau:106\n" }, xpcall(function() error("foo") end, debug.traceback)) checkresults({ false, "error in error handling" }, xpcall(function() error("foo") end, function(err) error("bar") end)) -- xpcall error handling after yields -checkresults({ "yield", "return", false, "pcall.lua:110: foo" }, colog(function() return xpcall(function() coroutine.yield() error("foo") end, function(err) return err end) end)) -checkresults({ "yield", "return", false, "pcall.lua:111: foo\npcall.lua:111\npcall.lua:111\n" }, colog(function() return xpcall(function() coroutine.yield() error("foo") end, debug.traceback) end)) +checkresults({ "yield", "return", false, "pcall.luau:110: foo" }, colog(function() return xpcall(function() coroutine.yield() error("foo") end, function(err) return err end) end)) +checkresults({ "yield", "return", false, "pcall.luau:111: foo\npcall.luau:111\npcall.luau:111\n" }, colog(function() return xpcall(function() coroutine.yield() error("foo") end, debug.traceback) end)) -- xpcall error handling during error handling inside xpcall after yields checkresults({ "yield", "return", true, false, "error in error handling" }, colog(function() return xpcall(function() return xpcall(function() coroutine.yield() error("foo") end, function(err) error("bar") end) end, error) end)) @@ -126,7 +126,7 @@ coroutine.yield(weird) weird() end -checkresults({ false, "pcall.lua:129: cannot resume dead coroutine" }, pcall(function() for _ in coroutine.wrap(pcall), weird do end end)) +checkresults({ false, "pcall.luau:129: cannot resume dead coroutine" }, pcall(function() for _ in coroutine.wrap(pcall), weird do end end)) -- c++ exception checkresults({ false, "oops" }, pcall(cxxthrow)) diff --git a/tests/conformance/pm.lua b/tests/conformance/pm.luau similarity index 100% rename from tests/conformance/pm.lua rename to tests/conformance/pm.luau diff --git a/tests/conformance/safeenv.lua b/tests/conformance/safeenv.luau similarity index 100% rename from tests/conformance/safeenv.lua rename to tests/conformance/safeenv.luau diff --git a/tests/conformance/sort.lua b/tests/conformance/sort.luau similarity index 100% rename from tests/conformance/sort.lua rename to tests/conformance/sort.luau diff --git a/tests/conformance/strconv.lua b/tests/conformance/strconv.luau similarity index 100% rename from tests/conformance/strconv.lua rename to tests/conformance/strconv.luau diff --git a/tests/conformance/stringinterp.lua b/tests/conformance/stringinterp.luau similarity index 100% rename from tests/conformance/stringinterp.lua rename to tests/conformance/stringinterp.luau diff --git a/tests/conformance/strings.lua b/tests/conformance/strings.luau similarity index 100% rename from tests/conformance/strings.lua rename to tests/conformance/strings.luau diff --git a/tests/conformance/tables.lua b/tests/conformance/tables.luau similarity index 100% rename from tests/conformance/tables.lua rename to tests/conformance/tables.luau diff --git a/tests/conformance/tmerror.lua b/tests/conformance/tmerror.luau similarity index 100% rename from tests/conformance/tmerror.lua rename to tests/conformance/tmerror.luau diff --git a/tests/conformance/tpack.lua b/tests/conformance/tpack.luau similarity index 100% rename from tests/conformance/tpack.lua rename to tests/conformance/tpack.luau diff --git a/tests/conformance/types.lua b/tests/conformance/types.luau similarity index 100% rename from tests/conformance/types.lua rename to tests/conformance/types.luau diff --git a/tests/conformance/userdata.lua b/tests/conformance/userdata.luau similarity index 100% rename from tests/conformance/userdata.lua rename to tests/conformance/userdata.luau diff --git a/tests/conformance/utf8.lua b/tests/conformance/utf8.luau similarity index 100% rename from tests/conformance/utf8.lua rename to tests/conformance/utf8.luau diff --git a/tests/conformance/vararg.lua b/tests/conformance/vararg.luau similarity index 100% rename from tests/conformance/vararg.lua rename to tests/conformance/vararg.luau diff --git a/tests/conformance/vector.lua b/tests/conformance/vector.luau similarity index 100% rename from tests/conformance/vector.lua rename to tests/conformance/vector.luau diff --git a/tests/conformance/vector_library.lua b/tests/conformance/vector_library.luau similarity index 100% rename from tests/conformance/vector_library.lua rename to tests/conformance/vector_library.luau From 91cf840cf595c389889e0eb4c75e03b682c61ce0 Mon Sep 17 00:00:00 2001 From: ramdoys Date: Wed, 11 Dec 2024 10:56:17 -0500 Subject: [PATCH 2/2] fix: remove changes to files under bench --- .github/workflows/benchmark.yml | 32 +++++++++---------- bench/bench.py | 2 +- .../{bench_support.luau => bench_support.lua} | 0 ...st_BinaryTree.luau => test_BinaryTree.lua} | 0 ...ehm_Trees.luau => test_GC_Boehm_Trees.lua} | 0 ...er.luau => test_GC_Tree_Pruning_Eager.lua} | 0 ..._Gen.luau => test_GC_Tree_Pruning_Gen.lua} | 0 ...azy.luau => test_GC_Tree_Pruning_Lazy.lua} | 0 ...yval.luau => test_GC_hashtable_Keyval.lua} | 0 ...test_LB_mandel.luau => test_LB_mandel.lua} | 0 ...ray.luau => test_LargeTableCtor_array.lua} | 0 ...hash.luau => test_LargeTableCtor_hash.lua} | 0 ..._yield.luau => test_Pcall_pcall_yield.lua} | 0 ...ce.luau => test_SunSpider_3d-raytrace.lua} | 0 ...eate_nil.luau => test_TableCreate_nil.lua} | 0 ...umber.luau => test_TableCreate_number.lua} | 0 ...ill.luau => test_TableCreate_zerofill.lua} | 0 ...lect.luau => test_TableMarshal_select.lua} | 0 ....luau => test_TableMarshal_table_pack.lua} | 0 ...rgs.luau => test_TableMarshal_varargs.lua} | 0 ...st_AbsSum_abs.luau => test_AbsSum_abs.lua} | 0 ...Sum_and_or.luau => test_AbsSum_and_or.lua} | 0 ...math_abs.luau => test_AbsSum_math_abs.lua} | 0 .../{test_Assert.luau => test_Assert.lua} | 0 ...test_Factorial.luau => test_Factorial.lua} | 0 ..._bar.luau => test_Failure_pcall_a_bar.lua} | 0 ...o.luau => test_Failure_pcall_game_Foo.lua} | 0 ...bar.luau => test_Failure_xpcall_a_bar.lua} | 0 ....luau => test_Failure_xpcall_game_Foo.lua} | 0 ...ray.luau => test_LargeTableCtor_array.lua} | 0 ...hash.luau => test_LargeTableCtor_hash.lua} | 0 ...luau => test_LargeTableSum_loop_index.lua} | 0 ...uau => test_LargeTableSum_loop_ipairs.lua} | 0 ....luau => test_LargeTableSum_loop_iter.lua} | 0 ...luau => test_LargeTableSum_loop_pairs.lua} | 0 ..._MethodCalls.luau => test_MethodCalls.lua} | 0 ...structor.luau => test_OOP_constructor.lua} | 0 ...hod_call.luau => test_OOP_method_call.lua} | 0 ....luau => test_OOP_virtual_constructor.lua} | 0 ...return.luau => test_Pcall_call_return.lua} | 0 ...eturn.luau => test_Pcall_pcall_return.lua} | 0 ..._yield.luau => test_Pcall_pcall_yield.lua} | 0 ...turn.luau => test_Pcall_xpcall_return.lua} | 0 ...xponent.luau => test_SqrtSum_exponent.lua} | 0 ...h_sqrt.luau => test_SqrtSum_math_sqrt.lua} | 0 ...qrtSum_sqrt.luau => test_SqrtSum_sqrt.lua} | 0 ...env.luau => test_SqrtSum_sqrt_getfenv.lua} | 0 ....luau => test_SqrtSum_sqrt_roundabout.lua} | 0 ...tringInterp.luau => test_StringInterp.lua} | 0 ...eate_nil.luau => test_TableCreate_nil.lua} | 0 ...umber.luau => test_TableCreate_number.lua} | 0 ...ill.luau => test_TableCreate_zerofill.lua} | 0 ...rs.luau => test_TableFind_loop_ipairs.lua} | 0 ...ind.luau => test_TableFind_table_find.lua} | 0 ...u => test_TableInsertion_index_cached.lua} | 0 ...luau => test_TableInsertion_index_len.lua} | 0 ...u => test_TableInsertion_table_insert.lua} | 0 ...est_TableInsertion_table_insert_index.lua} | 0 ...Iteration.luau => test_TableIteration.lua} | 0 ...lect.luau => test_TableMarshal_select.lua} | 0 ....luau => test_TableMarshal_table_pack.lua} | 0 ... test_TableMarshal_table_unpack_array.lua} | 0 ... test_TableMarshal_table_unpack_range.lua} | 0 ...rgs.luau => test_TableMarshal_varargs.lua} | 0 ...le.luau => test_TableMove_empty_table.lua} | 0 ...ble.luau => test_TableMove_same_table.lua} | 0 ...e.luau => test_TableMove_table_create.lua} | 0 ...uau => test_TableRemoval_table_remove.lua} | 0 ...test_TableSort.luau => test_TableSort.lua} | 0 ...berString.luau => test_ToNumberString.lua} | 0 ...ueCapture.luau => test_UpvalueCapture.lua} | 0 ...dicSelect.luau => test_VariadicSelect.lua} | 0 ...st_string_lib.luau => test_string_lib.lua} | 0 ...able_concat.luau => test_table_concat.lua} | 0 ...auPolyfillMap.luau => LuauPolyfillMap.lua} | 0 .../{Base64.luau => Base64.lua} | 0 .../{HashLib.spec.luau => HashLib.spec.lua} | 0 .../{init.luau => init.lua} | 0 bench/other/{regex.luau => regex.lua} | 0 bench/tests/{base64.luau => base64.lua} | 0 bench/tests/{chess.luau => chess.lua} | 0 bench/tests/{life.luau => life.lua} | 0 .../tests/{matrixmult.luau => matrixmult.lua} | 0 ...mal-scalar.luau => mesh-normal-scalar.lua} | 0 ...mal-vector.luau => mesh-normal-vector.lua} | 0 bench/tests/{pcmmix.luau => pcmmix.lua} | 0 bench/tests/{qsort.luau => qsort.lua} | 0 bench/tests/{sha256.luau => sha256.lua} | 0 bench/tests/shootout/{ack.luau => ack.lua} | 0 .../{binary-trees.luau => binary-trees.lua} | 0 ...fannkuch-redux.luau => fannkuch-redux.lua} | 0 .../{fixpoint-fact.luau => fixpoint-fact.lua} | 0 .../shootout/{heapsort.luau => heapsort.lua} | 0 .../shootout/{mandel.luau => mandel.lua} | 0 .../shootout/{n-body.luau => n-body.lua} | 0 bench/tests/shootout/{qt.luau => qt.lua} | 0 .../tests/shootout/{queen.luau => queen.lua} | 0 .../shootout/{scimark.luau => scimark.lua} | 0 .../{spectral-norm.luau => spectral-norm.lua} | 0 bench/tests/{sieve.luau => sieve.lua} | 0 .../sunspider/{3d-cube.luau => 3d-cube.lua} | 0 .../sunspider/{3d-morph.luau => 3d-morph.lua} | 0 .../{3d-raytrace.luau => 3d-raytrace.lua} | 0 ...cursive.luau => controlflow-recursive.lua} | 0 .../{crypto-aes.luau => crypto-aes.lua} | 0 .../sunspider/{fannkuch.luau => fannkuch.lua} | 0 .../{math-cordic.luau => math-cordic.lua} | 0 ...artial-sums.luau => math-partial-sums.lua} | 0 .../{n-body-oop.luau => n-body-oop.lua} | 0 bench/tests/{tictactoe.luau => tictactoe.lua} | 0 bench/tests/{trig.luau => trig.lua} | 0 .../{vector-math.luau => vector-math.lua} | 0 bench/tests/{voxelgen.luau => voxelgen.lua} | 0 fuzz/{basic.lua => basic.luau} | 0 114 files changed, 17 insertions(+), 17 deletions(-) rename bench/{bench_support.luau => bench_support.lua} (100%) rename bench/gc/{test_BinaryTree.luau => test_BinaryTree.lua} (100%) rename bench/gc/{test_GC_Boehm_Trees.luau => test_GC_Boehm_Trees.lua} (100%) rename bench/gc/{test_GC_Tree_Pruning_Eager.luau => test_GC_Tree_Pruning_Eager.lua} (100%) rename bench/gc/{test_GC_Tree_Pruning_Gen.luau => test_GC_Tree_Pruning_Gen.lua} (100%) rename bench/gc/{test_GC_Tree_Pruning_Lazy.luau => test_GC_Tree_Pruning_Lazy.lua} (100%) rename bench/gc/{test_GC_hashtable_Keyval.luau => test_GC_hashtable_Keyval.lua} (100%) rename bench/gc/{test_LB_mandel.luau => test_LB_mandel.lua} (100%) rename bench/gc/{test_LargeTableCtor_array.luau => test_LargeTableCtor_array.lua} (100%) rename bench/gc/{test_LargeTableCtor_hash.luau => test_LargeTableCtor_hash.lua} (100%) rename bench/gc/{test_Pcall_pcall_yield.luau => test_Pcall_pcall_yield.lua} (100%) rename bench/gc/{test_SunSpider_3d-raytrace.luau => test_SunSpider_3d-raytrace.lua} (100%) rename bench/gc/{test_TableCreate_nil.luau => test_TableCreate_nil.lua} (100%) rename bench/gc/{test_TableCreate_number.luau => test_TableCreate_number.lua} (100%) rename bench/gc/{test_TableCreate_zerofill.luau => test_TableCreate_zerofill.lua} (100%) rename bench/gc/{test_TableMarshal_select.luau => test_TableMarshal_select.lua} (100%) rename bench/gc/{test_TableMarshal_table_pack.luau => test_TableMarshal_table_pack.lua} (100%) rename bench/gc/{test_TableMarshal_varargs.luau => test_TableMarshal_varargs.lua} (100%) rename bench/micro_tests/{test_AbsSum_abs.luau => test_AbsSum_abs.lua} (100%) rename bench/micro_tests/{test_AbsSum_and_or.luau => test_AbsSum_and_or.lua} (100%) rename bench/micro_tests/{test_AbsSum_math_abs.luau => test_AbsSum_math_abs.lua} (100%) rename bench/micro_tests/{test_Assert.luau => test_Assert.lua} (100%) rename bench/micro_tests/{test_Factorial.luau => test_Factorial.lua} (100%) rename bench/micro_tests/{test_Failure_pcall_a_bar.luau => test_Failure_pcall_a_bar.lua} (100%) rename bench/micro_tests/{test_Failure_pcall_game_Foo.luau => test_Failure_pcall_game_Foo.lua} (100%) rename bench/micro_tests/{test_Failure_xpcall_a_bar.luau => test_Failure_xpcall_a_bar.lua} (100%) rename bench/micro_tests/{test_Failure_xpcall_game_Foo.luau => test_Failure_xpcall_game_Foo.lua} (100%) rename bench/micro_tests/{test_LargeTableCtor_array.luau => test_LargeTableCtor_array.lua} (100%) rename bench/micro_tests/{test_LargeTableCtor_hash.luau => test_LargeTableCtor_hash.lua} (100%) rename bench/micro_tests/{test_LargeTableSum_loop_index.luau => test_LargeTableSum_loop_index.lua} (100%) rename bench/micro_tests/{test_LargeTableSum_loop_ipairs.luau => test_LargeTableSum_loop_ipairs.lua} (100%) rename bench/micro_tests/{test_LargeTableSum_loop_iter.luau => test_LargeTableSum_loop_iter.lua} (100%) rename bench/micro_tests/{test_LargeTableSum_loop_pairs.luau => test_LargeTableSum_loop_pairs.lua} (100%) rename bench/micro_tests/{test_MethodCalls.luau => test_MethodCalls.lua} (100%) rename bench/micro_tests/{test_OOP_constructor.luau => test_OOP_constructor.lua} (100%) rename bench/micro_tests/{test_OOP_method_call.luau => test_OOP_method_call.lua} (100%) rename bench/micro_tests/{test_OOP_virtual_constructor.luau => test_OOP_virtual_constructor.lua} (100%) rename bench/micro_tests/{test_Pcall_call_return.luau => test_Pcall_call_return.lua} (100%) rename bench/micro_tests/{test_Pcall_pcall_return.luau => test_Pcall_pcall_return.lua} (100%) rename bench/micro_tests/{test_Pcall_pcall_yield.luau => test_Pcall_pcall_yield.lua} (100%) rename bench/micro_tests/{test_Pcall_xpcall_return.luau => test_Pcall_xpcall_return.lua} (100%) rename bench/micro_tests/{test_SqrtSum_exponent.luau => test_SqrtSum_exponent.lua} (100%) rename bench/micro_tests/{test_SqrtSum_math_sqrt.luau => test_SqrtSum_math_sqrt.lua} (100%) rename bench/micro_tests/{test_SqrtSum_sqrt.luau => test_SqrtSum_sqrt.lua} (100%) rename bench/micro_tests/{test_SqrtSum_sqrt_getfenv.luau => test_SqrtSum_sqrt_getfenv.lua} (100%) rename bench/micro_tests/{test_SqrtSum_sqrt_roundabout.luau => test_SqrtSum_sqrt_roundabout.lua} (100%) rename bench/micro_tests/{test_StringInterp.luau => test_StringInterp.lua} (100%) rename bench/micro_tests/{test_TableCreate_nil.luau => test_TableCreate_nil.lua} (100%) rename bench/micro_tests/{test_TableCreate_number.luau => test_TableCreate_number.lua} (100%) rename bench/micro_tests/{test_TableCreate_zerofill.luau => test_TableCreate_zerofill.lua} (100%) rename bench/micro_tests/{test_TableFind_loop_ipairs.luau => test_TableFind_loop_ipairs.lua} (100%) rename bench/micro_tests/{test_TableFind_table_find.luau => test_TableFind_table_find.lua} (100%) rename bench/micro_tests/{test_TableInsertion_index_cached.luau => test_TableInsertion_index_cached.lua} (100%) rename bench/micro_tests/{test_TableInsertion_index_len.luau => test_TableInsertion_index_len.lua} (100%) rename bench/micro_tests/{test_TableInsertion_table_insert.luau => test_TableInsertion_table_insert.lua} (100%) rename bench/micro_tests/{test_TableInsertion_table_insert_index.luau => test_TableInsertion_table_insert_index.lua} (100%) rename bench/micro_tests/{test_TableIteration.luau => test_TableIteration.lua} (100%) rename bench/micro_tests/{test_TableMarshal_select.luau => test_TableMarshal_select.lua} (100%) rename bench/micro_tests/{test_TableMarshal_table_pack.luau => test_TableMarshal_table_pack.lua} (100%) rename bench/micro_tests/{test_TableMarshal_table_unpack_array.luau => test_TableMarshal_table_unpack_array.lua} (100%) rename bench/micro_tests/{test_TableMarshal_table_unpack_range.luau => test_TableMarshal_table_unpack_range.lua} (100%) rename bench/micro_tests/{test_TableMarshal_varargs.luau => test_TableMarshal_varargs.lua} (100%) rename bench/micro_tests/{test_TableMove_empty_table.luau => test_TableMove_empty_table.lua} (100%) rename bench/micro_tests/{test_TableMove_same_table.luau => test_TableMove_same_table.lua} (100%) rename bench/micro_tests/{test_TableMove_table_create.luau => test_TableMove_table_create.lua} (100%) rename bench/micro_tests/{test_TableRemoval_table_remove.luau => test_TableRemoval_table_remove.lua} (100%) rename bench/micro_tests/{test_TableSort.luau => test_TableSort.lua} (100%) rename bench/micro_tests/{test_ToNumberString.luau => test_ToNumberString.lua} (100%) rename bench/micro_tests/{test_UpvalueCapture.luau => test_UpvalueCapture.lua} (100%) rename bench/micro_tests/{test_VariadicSelect.luau => test_VariadicSelect.lua} (100%) rename bench/micro_tests/{test_string_lib.luau => test_string_lib.lua} (100%) rename bench/micro_tests/{test_table_concat.luau => test_table_concat.lua} (100%) rename bench/other/{LuauPolyfillMap.luau => LuauPolyfillMap.lua} (100%) rename bench/other/boatbomber-HashLib/{Base64.luau => Base64.lua} (100%) rename bench/other/boatbomber-HashLib/{HashLib.spec.luau => HashLib.spec.lua} (100%) rename bench/other/boatbomber-HashLib/{init.luau => init.lua} (100%) rename bench/other/{regex.luau => regex.lua} (100%) rename bench/tests/{base64.luau => base64.lua} (100%) rename bench/tests/{chess.luau => chess.lua} (100%) rename bench/tests/{life.luau => life.lua} (100%) rename bench/tests/{matrixmult.luau => matrixmult.lua} (100%) rename bench/tests/{mesh-normal-scalar.luau => mesh-normal-scalar.lua} (100%) rename bench/tests/{mesh-normal-vector.luau => mesh-normal-vector.lua} (100%) rename bench/tests/{pcmmix.luau => pcmmix.lua} (100%) rename bench/tests/{qsort.luau => qsort.lua} (100%) rename bench/tests/{sha256.luau => sha256.lua} (100%) rename bench/tests/shootout/{ack.luau => ack.lua} (100%) rename bench/tests/shootout/{binary-trees.luau => binary-trees.lua} (100%) rename bench/tests/shootout/{fannkuch-redux.luau => fannkuch-redux.lua} (100%) rename bench/tests/shootout/{fixpoint-fact.luau => fixpoint-fact.lua} (100%) rename bench/tests/shootout/{heapsort.luau => heapsort.lua} (100%) rename bench/tests/shootout/{mandel.luau => mandel.lua} (100%) rename bench/tests/shootout/{n-body.luau => n-body.lua} (100%) rename bench/tests/shootout/{qt.luau => qt.lua} (100%) rename bench/tests/shootout/{queen.luau => queen.lua} (100%) rename bench/tests/shootout/{scimark.luau => scimark.lua} (100%) rename bench/tests/shootout/{spectral-norm.luau => spectral-norm.lua} (100%) rename bench/tests/{sieve.luau => sieve.lua} (100%) rename bench/tests/sunspider/{3d-cube.luau => 3d-cube.lua} (100%) rename bench/tests/sunspider/{3d-morph.luau => 3d-morph.lua} (100%) rename bench/tests/sunspider/{3d-raytrace.luau => 3d-raytrace.lua} (100%) rename bench/tests/sunspider/{controlflow-recursive.luau => controlflow-recursive.lua} (100%) rename bench/tests/sunspider/{crypto-aes.luau => crypto-aes.lua} (100%) rename bench/tests/sunspider/{fannkuch.luau => fannkuch.lua} (100%) rename bench/tests/sunspider/{math-cordic.luau => math-cordic.lua} (100%) rename bench/tests/sunspider/{math-partial-sums.luau => math-partial-sums.lua} (100%) rename bench/tests/sunspider/{n-body-oop.luau => n-body-oop.lua} (100%) rename bench/tests/{tictactoe.luau => tictactoe.lua} (100%) rename bench/tests/{trig.luau => trig.lua} (100%) rename bench/tests/{vector-math.luau => vector-math.lua} (100%) rename bench/tests/{voxelgen.luau => voxelgen.lua} (100%) rename fuzz/{basic.lua => basic.luau} (100%) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index f997935f5..72a0c9ffe 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -61,28 +61,28 @@ jobs: filter() { awk '/.*I\s+refs:\s+[0-9,]+/ {gsub(",", "", $4); X=$4} END {print "SUCCESS: '$1' : " X/1e7 "ms +/- 0% on luau-analyze"}' } - valgrind --tool=callgrind ./luau-analyze --mode=nonstrict bench/other/LuauPolyfillMap.luau 2>&1 | filter map-nonstrict | tee -a analyze-output.txt - valgrind --tool=callgrind ./luau-analyze --mode=strict bench/other/LuauPolyfillMap.luau 2>&1 | filter map-strict | tee -a analyze-output.txt - valgrind --tool=callgrind ./luau-analyze --mode=strict --fflags=LuauSolverV2 bench/other/LuauPolyfillMap.luau 2>&1 | filter map-dcr | tee -a analyze-output.txt - valgrind --tool=callgrind ./luau-analyze --mode=nonstrict bench/other/regex.luau 2>&1 | filter regex-nonstrict | tee -a analyze-output.txt - valgrind --tool=callgrind ./luau-analyze --mode=strict bench/other/regex.luau 2>&1 | filter regex-strict | tee -a analyze-output.txt - valgrind --tool=callgrind ./luau-analyze --mode=strict --fflags=LuauSolverV2 bench/other/regex.luau 2>&1 | filter regex-dcr | tee -a analyze-output.txt + valgrind --tool=callgrind ./luau-analyze --mode=nonstrict bench/other/LuauPolyfillMap.lua 2>&1 | filter map-nonstrict | tee -a analyze-output.txt + valgrind --tool=callgrind ./luau-analyze --mode=strict bench/other/LuauPolyfillMap.lua 2>&1 | filter map-strict | tee -a analyze-output.txt + valgrind --tool=callgrind ./luau-analyze --mode=strict --fflags=LuauSolverV2 bench/other/LuauPolyfillMap.lua 2>&1 | filter map-dcr | tee -a analyze-output.txt + valgrind --tool=callgrind ./luau-analyze --mode=nonstrict bench/other/regex.lua 2>&1 | filter regex-nonstrict | tee -a analyze-output.txt + valgrind --tool=callgrind ./luau-analyze --mode=strict bench/other/regex.lua 2>&1 | filter regex-strict | tee -a analyze-output.txt + valgrind --tool=callgrind ./luau-analyze --mode=strict --fflags=LuauSolverV2 bench/other/regex.lua 2>&1 | filter regex-dcr | tee -a analyze-output.txt - name: Run benchmark (compile) run: | filter() { awk '/.*I\s+refs:\s+[0-9,]+/ {gsub(",", "", $4); X=$4} END {print "SUCCESS: '$1' : " X/1e7 "ms +/- 0% on luau-compile"}' } - valgrind --tool=callgrind ./luau-compile --null -O0 bench/other/LuauPolyfillMap.luau 2>&1 | filter map-O0 | tee -a compile-output.txt - valgrind --tool=callgrind ./luau-compile --null -O1 bench/other/LuauPolyfillMap.luau 2>&1 | filter map-O1 | tee -a compile-output.txt - valgrind --tool=callgrind ./luau-compile --null -O2 bench/other/LuauPolyfillMap.luau 2>&1 | filter map-O2 | tee -a compile-output.txt - valgrind --tool=callgrind ./luau-compile --codegennull -O2 bench/other/LuauPolyfillMap.luau 2>&1 | filter map-O2-codegen | tee -a compile-output.txt - valgrind --tool=callgrind ./luau-compile --codegennull -O2 -t1 bench/other/LuauPolyfillMap.luau 2>&1 | filter map-O2-t1-codegen | tee -a compile-output.txt - valgrind --tool=callgrind ./luau-compile --null -O0 bench/other/regex.luau 2>&1 | filter regex-O0 | tee -a compile-output.txt - valgrind --tool=callgrind ./luau-compile --null -O1 bench/other/regex.luau 2>&1 | filter regex-O1 | tee -a compile-output.txt - valgrind --tool=callgrind ./luau-compile --null -O2 bench/other/regex.luau 2>&1 | filter regex-O2 | tee -a compile-output.txt - valgrind --tool=callgrind ./luau-compile --codegennull -O2 bench/other/regex.luau 2>&1 | filter regex-O2-codegen | tee -a compile-output.txt - valgrind --tool=callgrind ./luau-compile --codegennull -O2 -t1 bench/other/regex.luau 2>&1 | filter regex-O2-t1-codegen | tee -a compile-output.txt + valgrind --tool=callgrind ./luau-compile --null -O0 bench/other/LuauPolyfillMap.lua 2>&1 | filter map-O0 | tee -a compile-output.txt + valgrind --tool=callgrind ./luau-compile --null -O1 bench/other/LuauPolyfillMap.lua 2>&1 | filter map-O1 | tee -a compile-output.txt + valgrind --tool=callgrind ./luau-compile --null -O2 bench/other/LuauPolyfillMap.lua 2>&1 | filter map-O2 | tee -a compile-output.txt + valgrind --tool=callgrind ./luau-compile --codegennull -O2 bench/other/LuauPolyfillMap.lua 2>&1 | filter map-O2-codegen | tee -a compile-output.txt + valgrind --tool=callgrind ./luau-compile --codegennull -O2 -t1 bench/other/LuauPolyfillMap.lua 2>&1 | filter map-O2-t1-codegen | tee -a compile-output.txt + valgrind --tool=callgrind ./luau-compile --null -O0 bench/other/regex.lua 2>&1 | filter regex-O0 | tee -a compile-output.txt + valgrind --tool=callgrind ./luau-compile --null -O1 bench/other/regex.lua 2>&1 | filter regex-O1 | tee -a compile-output.txt + valgrind --tool=callgrind ./luau-compile --null -O2 bench/other/regex.lua 2>&1 | filter regex-O2 | tee -a compile-output.txt + valgrind --tool=callgrind ./luau-compile --codegennull -O2 bench/other/regex.lua 2>&1 | filter regex-O2-codegen | tee -a compile-output.txt + valgrind --tool=callgrind ./luau-compile --codegennull -O2 -t1 bench/other/regex.lua 2>&1 | filter regex-O2-t1-codegen | tee -a compile-output.txt - name: Checkout benchmark results uses: actions/checkout@v3 diff --git a/bench/bench.py b/bench/bench.py index f609a1d28..002dfadb5 100644 --- a/bench/bench.py +++ b/bench/bench.py @@ -889,7 +889,7 @@ def run(args, argsubcb): all_files = [subdir + os.sep + filename for subdir, dirs, files in os.walk(arguments.folder) for filename in files] for filepath in sorted(all_files): subdir, filename = os.path.split(filepath) - if filename.endswith(".luau"): + if filename.endswith(".lua"): if arguments.run_test == None or re.match(arguments.run_test, filename[:-4]): runTest(subdir, filename, filepath) diff --git a/bench/bench_support.luau b/bench/bench_support.lua similarity index 100% rename from bench/bench_support.luau rename to bench/bench_support.lua diff --git a/bench/gc/test_BinaryTree.luau b/bench/gc/test_BinaryTree.lua similarity index 100% rename from bench/gc/test_BinaryTree.luau rename to bench/gc/test_BinaryTree.lua diff --git a/bench/gc/test_GC_Boehm_Trees.luau b/bench/gc/test_GC_Boehm_Trees.lua similarity index 100% rename from bench/gc/test_GC_Boehm_Trees.luau rename to bench/gc/test_GC_Boehm_Trees.lua diff --git a/bench/gc/test_GC_Tree_Pruning_Eager.luau b/bench/gc/test_GC_Tree_Pruning_Eager.lua similarity index 100% rename from bench/gc/test_GC_Tree_Pruning_Eager.luau rename to bench/gc/test_GC_Tree_Pruning_Eager.lua diff --git a/bench/gc/test_GC_Tree_Pruning_Gen.luau b/bench/gc/test_GC_Tree_Pruning_Gen.lua similarity index 100% rename from bench/gc/test_GC_Tree_Pruning_Gen.luau rename to bench/gc/test_GC_Tree_Pruning_Gen.lua diff --git a/bench/gc/test_GC_Tree_Pruning_Lazy.luau b/bench/gc/test_GC_Tree_Pruning_Lazy.lua similarity index 100% rename from bench/gc/test_GC_Tree_Pruning_Lazy.luau rename to bench/gc/test_GC_Tree_Pruning_Lazy.lua diff --git a/bench/gc/test_GC_hashtable_Keyval.luau b/bench/gc/test_GC_hashtable_Keyval.lua similarity index 100% rename from bench/gc/test_GC_hashtable_Keyval.luau rename to bench/gc/test_GC_hashtable_Keyval.lua diff --git a/bench/gc/test_LB_mandel.luau b/bench/gc/test_LB_mandel.lua similarity index 100% rename from bench/gc/test_LB_mandel.luau rename to bench/gc/test_LB_mandel.lua diff --git a/bench/gc/test_LargeTableCtor_array.luau b/bench/gc/test_LargeTableCtor_array.lua similarity index 100% rename from bench/gc/test_LargeTableCtor_array.luau rename to bench/gc/test_LargeTableCtor_array.lua diff --git a/bench/gc/test_LargeTableCtor_hash.luau b/bench/gc/test_LargeTableCtor_hash.lua similarity index 100% rename from bench/gc/test_LargeTableCtor_hash.luau rename to bench/gc/test_LargeTableCtor_hash.lua diff --git a/bench/gc/test_Pcall_pcall_yield.luau b/bench/gc/test_Pcall_pcall_yield.lua similarity index 100% rename from bench/gc/test_Pcall_pcall_yield.luau rename to bench/gc/test_Pcall_pcall_yield.lua diff --git a/bench/gc/test_SunSpider_3d-raytrace.luau b/bench/gc/test_SunSpider_3d-raytrace.lua similarity index 100% rename from bench/gc/test_SunSpider_3d-raytrace.luau rename to bench/gc/test_SunSpider_3d-raytrace.lua diff --git a/bench/gc/test_TableCreate_nil.luau b/bench/gc/test_TableCreate_nil.lua similarity index 100% rename from bench/gc/test_TableCreate_nil.luau rename to bench/gc/test_TableCreate_nil.lua diff --git a/bench/gc/test_TableCreate_number.luau b/bench/gc/test_TableCreate_number.lua similarity index 100% rename from bench/gc/test_TableCreate_number.luau rename to bench/gc/test_TableCreate_number.lua diff --git a/bench/gc/test_TableCreate_zerofill.luau b/bench/gc/test_TableCreate_zerofill.lua similarity index 100% rename from bench/gc/test_TableCreate_zerofill.luau rename to bench/gc/test_TableCreate_zerofill.lua diff --git a/bench/gc/test_TableMarshal_select.luau b/bench/gc/test_TableMarshal_select.lua similarity index 100% rename from bench/gc/test_TableMarshal_select.luau rename to bench/gc/test_TableMarshal_select.lua diff --git a/bench/gc/test_TableMarshal_table_pack.luau b/bench/gc/test_TableMarshal_table_pack.lua similarity index 100% rename from bench/gc/test_TableMarshal_table_pack.luau rename to bench/gc/test_TableMarshal_table_pack.lua diff --git a/bench/gc/test_TableMarshal_varargs.luau b/bench/gc/test_TableMarshal_varargs.lua similarity index 100% rename from bench/gc/test_TableMarshal_varargs.luau rename to bench/gc/test_TableMarshal_varargs.lua diff --git a/bench/micro_tests/test_AbsSum_abs.luau b/bench/micro_tests/test_AbsSum_abs.lua similarity index 100% rename from bench/micro_tests/test_AbsSum_abs.luau rename to bench/micro_tests/test_AbsSum_abs.lua diff --git a/bench/micro_tests/test_AbsSum_and_or.luau b/bench/micro_tests/test_AbsSum_and_or.lua similarity index 100% rename from bench/micro_tests/test_AbsSum_and_or.luau rename to bench/micro_tests/test_AbsSum_and_or.lua diff --git a/bench/micro_tests/test_AbsSum_math_abs.luau b/bench/micro_tests/test_AbsSum_math_abs.lua similarity index 100% rename from bench/micro_tests/test_AbsSum_math_abs.luau rename to bench/micro_tests/test_AbsSum_math_abs.lua diff --git a/bench/micro_tests/test_Assert.luau b/bench/micro_tests/test_Assert.lua similarity index 100% rename from bench/micro_tests/test_Assert.luau rename to bench/micro_tests/test_Assert.lua diff --git a/bench/micro_tests/test_Factorial.luau b/bench/micro_tests/test_Factorial.lua similarity index 100% rename from bench/micro_tests/test_Factorial.luau rename to bench/micro_tests/test_Factorial.lua diff --git a/bench/micro_tests/test_Failure_pcall_a_bar.luau b/bench/micro_tests/test_Failure_pcall_a_bar.lua similarity index 100% rename from bench/micro_tests/test_Failure_pcall_a_bar.luau rename to bench/micro_tests/test_Failure_pcall_a_bar.lua diff --git a/bench/micro_tests/test_Failure_pcall_game_Foo.luau b/bench/micro_tests/test_Failure_pcall_game_Foo.lua similarity index 100% rename from bench/micro_tests/test_Failure_pcall_game_Foo.luau rename to bench/micro_tests/test_Failure_pcall_game_Foo.lua diff --git a/bench/micro_tests/test_Failure_xpcall_a_bar.luau b/bench/micro_tests/test_Failure_xpcall_a_bar.lua similarity index 100% rename from bench/micro_tests/test_Failure_xpcall_a_bar.luau rename to bench/micro_tests/test_Failure_xpcall_a_bar.lua diff --git a/bench/micro_tests/test_Failure_xpcall_game_Foo.luau b/bench/micro_tests/test_Failure_xpcall_game_Foo.lua similarity index 100% rename from bench/micro_tests/test_Failure_xpcall_game_Foo.luau rename to bench/micro_tests/test_Failure_xpcall_game_Foo.lua diff --git a/bench/micro_tests/test_LargeTableCtor_array.luau b/bench/micro_tests/test_LargeTableCtor_array.lua similarity index 100% rename from bench/micro_tests/test_LargeTableCtor_array.luau rename to bench/micro_tests/test_LargeTableCtor_array.lua diff --git a/bench/micro_tests/test_LargeTableCtor_hash.luau b/bench/micro_tests/test_LargeTableCtor_hash.lua similarity index 100% rename from bench/micro_tests/test_LargeTableCtor_hash.luau rename to bench/micro_tests/test_LargeTableCtor_hash.lua diff --git a/bench/micro_tests/test_LargeTableSum_loop_index.luau b/bench/micro_tests/test_LargeTableSum_loop_index.lua similarity index 100% rename from bench/micro_tests/test_LargeTableSum_loop_index.luau rename to bench/micro_tests/test_LargeTableSum_loop_index.lua diff --git a/bench/micro_tests/test_LargeTableSum_loop_ipairs.luau b/bench/micro_tests/test_LargeTableSum_loop_ipairs.lua similarity index 100% rename from bench/micro_tests/test_LargeTableSum_loop_ipairs.luau rename to bench/micro_tests/test_LargeTableSum_loop_ipairs.lua diff --git a/bench/micro_tests/test_LargeTableSum_loop_iter.luau b/bench/micro_tests/test_LargeTableSum_loop_iter.lua similarity index 100% rename from bench/micro_tests/test_LargeTableSum_loop_iter.luau rename to bench/micro_tests/test_LargeTableSum_loop_iter.lua diff --git a/bench/micro_tests/test_LargeTableSum_loop_pairs.luau b/bench/micro_tests/test_LargeTableSum_loop_pairs.lua similarity index 100% rename from bench/micro_tests/test_LargeTableSum_loop_pairs.luau rename to bench/micro_tests/test_LargeTableSum_loop_pairs.lua diff --git a/bench/micro_tests/test_MethodCalls.luau b/bench/micro_tests/test_MethodCalls.lua similarity index 100% rename from bench/micro_tests/test_MethodCalls.luau rename to bench/micro_tests/test_MethodCalls.lua diff --git a/bench/micro_tests/test_OOP_constructor.luau b/bench/micro_tests/test_OOP_constructor.lua similarity index 100% rename from bench/micro_tests/test_OOP_constructor.luau rename to bench/micro_tests/test_OOP_constructor.lua diff --git a/bench/micro_tests/test_OOP_method_call.luau b/bench/micro_tests/test_OOP_method_call.lua similarity index 100% rename from bench/micro_tests/test_OOP_method_call.luau rename to bench/micro_tests/test_OOP_method_call.lua diff --git a/bench/micro_tests/test_OOP_virtual_constructor.luau b/bench/micro_tests/test_OOP_virtual_constructor.lua similarity index 100% rename from bench/micro_tests/test_OOP_virtual_constructor.luau rename to bench/micro_tests/test_OOP_virtual_constructor.lua diff --git a/bench/micro_tests/test_Pcall_call_return.luau b/bench/micro_tests/test_Pcall_call_return.lua similarity index 100% rename from bench/micro_tests/test_Pcall_call_return.luau rename to bench/micro_tests/test_Pcall_call_return.lua diff --git a/bench/micro_tests/test_Pcall_pcall_return.luau b/bench/micro_tests/test_Pcall_pcall_return.lua similarity index 100% rename from bench/micro_tests/test_Pcall_pcall_return.luau rename to bench/micro_tests/test_Pcall_pcall_return.lua diff --git a/bench/micro_tests/test_Pcall_pcall_yield.luau b/bench/micro_tests/test_Pcall_pcall_yield.lua similarity index 100% rename from bench/micro_tests/test_Pcall_pcall_yield.luau rename to bench/micro_tests/test_Pcall_pcall_yield.lua diff --git a/bench/micro_tests/test_Pcall_xpcall_return.luau b/bench/micro_tests/test_Pcall_xpcall_return.lua similarity index 100% rename from bench/micro_tests/test_Pcall_xpcall_return.luau rename to bench/micro_tests/test_Pcall_xpcall_return.lua diff --git a/bench/micro_tests/test_SqrtSum_exponent.luau b/bench/micro_tests/test_SqrtSum_exponent.lua similarity index 100% rename from bench/micro_tests/test_SqrtSum_exponent.luau rename to bench/micro_tests/test_SqrtSum_exponent.lua diff --git a/bench/micro_tests/test_SqrtSum_math_sqrt.luau b/bench/micro_tests/test_SqrtSum_math_sqrt.lua similarity index 100% rename from bench/micro_tests/test_SqrtSum_math_sqrt.luau rename to bench/micro_tests/test_SqrtSum_math_sqrt.lua diff --git a/bench/micro_tests/test_SqrtSum_sqrt.luau b/bench/micro_tests/test_SqrtSum_sqrt.lua similarity index 100% rename from bench/micro_tests/test_SqrtSum_sqrt.luau rename to bench/micro_tests/test_SqrtSum_sqrt.lua diff --git a/bench/micro_tests/test_SqrtSum_sqrt_getfenv.luau b/bench/micro_tests/test_SqrtSum_sqrt_getfenv.lua similarity index 100% rename from bench/micro_tests/test_SqrtSum_sqrt_getfenv.luau rename to bench/micro_tests/test_SqrtSum_sqrt_getfenv.lua diff --git a/bench/micro_tests/test_SqrtSum_sqrt_roundabout.luau b/bench/micro_tests/test_SqrtSum_sqrt_roundabout.lua similarity index 100% rename from bench/micro_tests/test_SqrtSum_sqrt_roundabout.luau rename to bench/micro_tests/test_SqrtSum_sqrt_roundabout.lua diff --git a/bench/micro_tests/test_StringInterp.luau b/bench/micro_tests/test_StringInterp.lua similarity index 100% rename from bench/micro_tests/test_StringInterp.luau rename to bench/micro_tests/test_StringInterp.lua diff --git a/bench/micro_tests/test_TableCreate_nil.luau b/bench/micro_tests/test_TableCreate_nil.lua similarity index 100% rename from bench/micro_tests/test_TableCreate_nil.luau rename to bench/micro_tests/test_TableCreate_nil.lua diff --git a/bench/micro_tests/test_TableCreate_number.luau b/bench/micro_tests/test_TableCreate_number.lua similarity index 100% rename from bench/micro_tests/test_TableCreate_number.luau rename to bench/micro_tests/test_TableCreate_number.lua diff --git a/bench/micro_tests/test_TableCreate_zerofill.luau b/bench/micro_tests/test_TableCreate_zerofill.lua similarity index 100% rename from bench/micro_tests/test_TableCreate_zerofill.luau rename to bench/micro_tests/test_TableCreate_zerofill.lua diff --git a/bench/micro_tests/test_TableFind_loop_ipairs.luau b/bench/micro_tests/test_TableFind_loop_ipairs.lua similarity index 100% rename from bench/micro_tests/test_TableFind_loop_ipairs.luau rename to bench/micro_tests/test_TableFind_loop_ipairs.lua diff --git a/bench/micro_tests/test_TableFind_table_find.luau b/bench/micro_tests/test_TableFind_table_find.lua similarity index 100% rename from bench/micro_tests/test_TableFind_table_find.luau rename to bench/micro_tests/test_TableFind_table_find.lua diff --git a/bench/micro_tests/test_TableInsertion_index_cached.luau b/bench/micro_tests/test_TableInsertion_index_cached.lua similarity index 100% rename from bench/micro_tests/test_TableInsertion_index_cached.luau rename to bench/micro_tests/test_TableInsertion_index_cached.lua diff --git a/bench/micro_tests/test_TableInsertion_index_len.luau b/bench/micro_tests/test_TableInsertion_index_len.lua similarity index 100% rename from bench/micro_tests/test_TableInsertion_index_len.luau rename to bench/micro_tests/test_TableInsertion_index_len.lua diff --git a/bench/micro_tests/test_TableInsertion_table_insert.luau b/bench/micro_tests/test_TableInsertion_table_insert.lua similarity index 100% rename from bench/micro_tests/test_TableInsertion_table_insert.luau rename to bench/micro_tests/test_TableInsertion_table_insert.lua diff --git a/bench/micro_tests/test_TableInsertion_table_insert_index.luau b/bench/micro_tests/test_TableInsertion_table_insert_index.lua similarity index 100% rename from bench/micro_tests/test_TableInsertion_table_insert_index.luau rename to bench/micro_tests/test_TableInsertion_table_insert_index.lua diff --git a/bench/micro_tests/test_TableIteration.luau b/bench/micro_tests/test_TableIteration.lua similarity index 100% rename from bench/micro_tests/test_TableIteration.luau rename to bench/micro_tests/test_TableIteration.lua diff --git a/bench/micro_tests/test_TableMarshal_select.luau b/bench/micro_tests/test_TableMarshal_select.lua similarity index 100% rename from bench/micro_tests/test_TableMarshal_select.luau rename to bench/micro_tests/test_TableMarshal_select.lua diff --git a/bench/micro_tests/test_TableMarshal_table_pack.luau b/bench/micro_tests/test_TableMarshal_table_pack.lua similarity index 100% rename from bench/micro_tests/test_TableMarshal_table_pack.luau rename to bench/micro_tests/test_TableMarshal_table_pack.lua diff --git a/bench/micro_tests/test_TableMarshal_table_unpack_array.luau b/bench/micro_tests/test_TableMarshal_table_unpack_array.lua similarity index 100% rename from bench/micro_tests/test_TableMarshal_table_unpack_array.luau rename to bench/micro_tests/test_TableMarshal_table_unpack_array.lua diff --git a/bench/micro_tests/test_TableMarshal_table_unpack_range.luau b/bench/micro_tests/test_TableMarshal_table_unpack_range.lua similarity index 100% rename from bench/micro_tests/test_TableMarshal_table_unpack_range.luau rename to bench/micro_tests/test_TableMarshal_table_unpack_range.lua diff --git a/bench/micro_tests/test_TableMarshal_varargs.luau b/bench/micro_tests/test_TableMarshal_varargs.lua similarity index 100% rename from bench/micro_tests/test_TableMarshal_varargs.luau rename to bench/micro_tests/test_TableMarshal_varargs.lua diff --git a/bench/micro_tests/test_TableMove_empty_table.luau b/bench/micro_tests/test_TableMove_empty_table.lua similarity index 100% rename from bench/micro_tests/test_TableMove_empty_table.luau rename to bench/micro_tests/test_TableMove_empty_table.lua diff --git a/bench/micro_tests/test_TableMove_same_table.luau b/bench/micro_tests/test_TableMove_same_table.lua similarity index 100% rename from bench/micro_tests/test_TableMove_same_table.luau rename to bench/micro_tests/test_TableMove_same_table.lua diff --git a/bench/micro_tests/test_TableMove_table_create.luau b/bench/micro_tests/test_TableMove_table_create.lua similarity index 100% rename from bench/micro_tests/test_TableMove_table_create.luau rename to bench/micro_tests/test_TableMove_table_create.lua diff --git a/bench/micro_tests/test_TableRemoval_table_remove.luau b/bench/micro_tests/test_TableRemoval_table_remove.lua similarity index 100% rename from bench/micro_tests/test_TableRemoval_table_remove.luau rename to bench/micro_tests/test_TableRemoval_table_remove.lua diff --git a/bench/micro_tests/test_TableSort.luau b/bench/micro_tests/test_TableSort.lua similarity index 100% rename from bench/micro_tests/test_TableSort.luau rename to bench/micro_tests/test_TableSort.lua diff --git a/bench/micro_tests/test_ToNumberString.luau b/bench/micro_tests/test_ToNumberString.lua similarity index 100% rename from bench/micro_tests/test_ToNumberString.luau rename to bench/micro_tests/test_ToNumberString.lua diff --git a/bench/micro_tests/test_UpvalueCapture.luau b/bench/micro_tests/test_UpvalueCapture.lua similarity index 100% rename from bench/micro_tests/test_UpvalueCapture.luau rename to bench/micro_tests/test_UpvalueCapture.lua diff --git a/bench/micro_tests/test_VariadicSelect.luau b/bench/micro_tests/test_VariadicSelect.lua similarity index 100% rename from bench/micro_tests/test_VariadicSelect.luau rename to bench/micro_tests/test_VariadicSelect.lua diff --git a/bench/micro_tests/test_string_lib.luau b/bench/micro_tests/test_string_lib.lua similarity index 100% rename from bench/micro_tests/test_string_lib.luau rename to bench/micro_tests/test_string_lib.lua diff --git a/bench/micro_tests/test_table_concat.luau b/bench/micro_tests/test_table_concat.lua similarity index 100% rename from bench/micro_tests/test_table_concat.luau rename to bench/micro_tests/test_table_concat.lua diff --git a/bench/other/LuauPolyfillMap.luau b/bench/other/LuauPolyfillMap.lua similarity index 100% rename from bench/other/LuauPolyfillMap.luau rename to bench/other/LuauPolyfillMap.lua diff --git a/bench/other/boatbomber-HashLib/Base64.luau b/bench/other/boatbomber-HashLib/Base64.lua similarity index 100% rename from bench/other/boatbomber-HashLib/Base64.luau rename to bench/other/boatbomber-HashLib/Base64.lua diff --git a/bench/other/boatbomber-HashLib/HashLib.spec.luau b/bench/other/boatbomber-HashLib/HashLib.spec.lua similarity index 100% rename from bench/other/boatbomber-HashLib/HashLib.spec.luau rename to bench/other/boatbomber-HashLib/HashLib.spec.lua diff --git a/bench/other/boatbomber-HashLib/init.luau b/bench/other/boatbomber-HashLib/init.lua similarity index 100% rename from bench/other/boatbomber-HashLib/init.luau rename to bench/other/boatbomber-HashLib/init.lua diff --git a/bench/other/regex.luau b/bench/other/regex.lua similarity index 100% rename from bench/other/regex.luau rename to bench/other/regex.lua diff --git a/bench/tests/base64.luau b/bench/tests/base64.lua similarity index 100% rename from bench/tests/base64.luau rename to bench/tests/base64.lua diff --git a/bench/tests/chess.luau b/bench/tests/chess.lua similarity index 100% rename from bench/tests/chess.luau rename to bench/tests/chess.lua diff --git a/bench/tests/life.luau b/bench/tests/life.lua similarity index 100% rename from bench/tests/life.luau rename to bench/tests/life.lua diff --git a/bench/tests/matrixmult.luau b/bench/tests/matrixmult.lua similarity index 100% rename from bench/tests/matrixmult.luau rename to bench/tests/matrixmult.lua diff --git a/bench/tests/mesh-normal-scalar.luau b/bench/tests/mesh-normal-scalar.lua similarity index 100% rename from bench/tests/mesh-normal-scalar.luau rename to bench/tests/mesh-normal-scalar.lua diff --git a/bench/tests/mesh-normal-vector.luau b/bench/tests/mesh-normal-vector.lua similarity index 100% rename from bench/tests/mesh-normal-vector.luau rename to bench/tests/mesh-normal-vector.lua diff --git a/bench/tests/pcmmix.luau b/bench/tests/pcmmix.lua similarity index 100% rename from bench/tests/pcmmix.luau rename to bench/tests/pcmmix.lua diff --git a/bench/tests/qsort.luau b/bench/tests/qsort.lua similarity index 100% rename from bench/tests/qsort.luau rename to bench/tests/qsort.lua diff --git a/bench/tests/sha256.luau b/bench/tests/sha256.lua similarity index 100% rename from bench/tests/sha256.luau rename to bench/tests/sha256.lua diff --git a/bench/tests/shootout/ack.luau b/bench/tests/shootout/ack.lua similarity index 100% rename from bench/tests/shootout/ack.luau rename to bench/tests/shootout/ack.lua diff --git a/bench/tests/shootout/binary-trees.luau b/bench/tests/shootout/binary-trees.lua similarity index 100% rename from bench/tests/shootout/binary-trees.luau rename to bench/tests/shootout/binary-trees.lua diff --git a/bench/tests/shootout/fannkuch-redux.luau b/bench/tests/shootout/fannkuch-redux.lua similarity index 100% rename from bench/tests/shootout/fannkuch-redux.luau rename to bench/tests/shootout/fannkuch-redux.lua diff --git a/bench/tests/shootout/fixpoint-fact.luau b/bench/tests/shootout/fixpoint-fact.lua similarity index 100% rename from bench/tests/shootout/fixpoint-fact.luau rename to bench/tests/shootout/fixpoint-fact.lua diff --git a/bench/tests/shootout/heapsort.luau b/bench/tests/shootout/heapsort.lua similarity index 100% rename from bench/tests/shootout/heapsort.luau rename to bench/tests/shootout/heapsort.lua diff --git a/bench/tests/shootout/mandel.luau b/bench/tests/shootout/mandel.lua similarity index 100% rename from bench/tests/shootout/mandel.luau rename to bench/tests/shootout/mandel.lua diff --git a/bench/tests/shootout/n-body.luau b/bench/tests/shootout/n-body.lua similarity index 100% rename from bench/tests/shootout/n-body.luau rename to bench/tests/shootout/n-body.lua diff --git a/bench/tests/shootout/qt.luau b/bench/tests/shootout/qt.lua similarity index 100% rename from bench/tests/shootout/qt.luau rename to bench/tests/shootout/qt.lua diff --git a/bench/tests/shootout/queen.luau b/bench/tests/shootout/queen.lua similarity index 100% rename from bench/tests/shootout/queen.luau rename to bench/tests/shootout/queen.lua diff --git a/bench/tests/shootout/scimark.luau b/bench/tests/shootout/scimark.lua similarity index 100% rename from bench/tests/shootout/scimark.luau rename to bench/tests/shootout/scimark.lua diff --git a/bench/tests/shootout/spectral-norm.luau b/bench/tests/shootout/spectral-norm.lua similarity index 100% rename from bench/tests/shootout/spectral-norm.luau rename to bench/tests/shootout/spectral-norm.lua diff --git a/bench/tests/sieve.luau b/bench/tests/sieve.lua similarity index 100% rename from bench/tests/sieve.luau rename to bench/tests/sieve.lua diff --git a/bench/tests/sunspider/3d-cube.luau b/bench/tests/sunspider/3d-cube.lua similarity index 100% rename from bench/tests/sunspider/3d-cube.luau rename to bench/tests/sunspider/3d-cube.lua diff --git a/bench/tests/sunspider/3d-morph.luau b/bench/tests/sunspider/3d-morph.lua similarity index 100% rename from bench/tests/sunspider/3d-morph.luau rename to bench/tests/sunspider/3d-morph.lua diff --git a/bench/tests/sunspider/3d-raytrace.luau b/bench/tests/sunspider/3d-raytrace.lua similarity index 100% rename from bench/tests/sunspider/3d-raytrace.luau rename to bench/tests/sunspider/3d-raytrace.lua diff --git a/bench/tests/sunspider/controlflow-recursive.luau b/bench/tests/sunspider/controlflow-recursive.lua similarity index 100% rename from bench/tests/sunspider/controlflow-recursive.luau rename to bench/tests/sunspider/controlflow-recursive.lua diff --git a/bench/tests/sunspider/crypto-aes.luau b/bench/tests/sunspider/crypto-aes.lua similarity index 100% rename from bench/tests/sunspider/crypto-aes.luau rename to bench/tests/sunspider/crypto-aes.lua diff --git a/bench/tests/sunspider/fannkuch.luau b/bench/tests/sunspider/fannkuch.lua similarity index 100% rename from bench/tests/sunspider/fannkuch.luau rename to bench/tests/sunspider/fannkuch.lua diff --git a/bench/tests/sunspider/math-cordic.luau b/bench/tests/sunspider/math-cordic.lua similarity index 100% rename from bench/tests/sunspider/math-cordic.luau rename to bench/tests/sunspider/math-cordic.lua diff --git a/bench/tests/sunspider/math-partial-sums.luau b/bench/tests/sunspider/math-partial-sums.lua similarity index 100% rename from bench/tests/sunspider/math-partial-sums.luau rename to bench/tests/sunspider/math-partial-sums.lua diff --git a/bench/tests/sunspider/n-body-oop.luau b/bench/tests/sunspider/n-body-oop.lua similarity index 100% rename from bench/tests/sunspider/n-body-oop.luau rename to bench/tests/sunspider/n-body-oop.lua diff --git a/bench/tests/tictactoe.luau b/bench/tests/tictactoe.lua similarity index 100% rename from bench/tests/tictactoe.luau rename to bench/tests/tictactoe.lua diff --git a/bench/tests/trig.luau b/bench/tests/trig.lua similarity index 100% rename from bench/tests/trig.luau rename to bench/tests/trig.lua diff --git a/bench/tests/vector-math.luau b/bench/tests/vector-math.lua similarity index 100% rename from bench/tests/vector-math.luau rename to bench/tests/vector-math.lua diff --git a/bench/tests/voxelgen.luau b/bench/tests/voxelgen.lua similarity index 100% rename from bench/tests/voxelgen.luau rename to bench/tests/voxelgen.lua diff --git a/fuzz/basic.lua b/fuzz/basic.luau similarity index 100% rename from fuzz/basic.lua rename to fuzz/basic.luau