luau/fuzz
vegorov-rbx 62483d40f0
Sync to upstream/release/562 (#828)
* Fixed rare use-after-free in analysis during table unification

A lot of work these past months went into two new Luau components:
* A near full rewrite of the typechecker using a new deferred constraint
resolution system
* Native code generation for AoT/JiT compilation of VM bytecode into x64
(avx)/arm64 instructions

Both of these components are far from finished and we don't provide
documentation on building and using them at this point.
However, curious community members expressed interest in learning about
changes that go into these components each week, so we are now listing
them here in the 'sync' pull request descriptions.

---
New typechecker can be enabled by setting
DebugLuauDeferredConstraintResolution flag to 'true'.
It is considered unstable right now, so try it at your own risk.
Even though it already provides better type inference than the current
one in some cases, our main goal right now is to reach feature parity
with current typechecker.
Features which improve over the capabilities of the current typechecker
are marked as '(NEW)'.

Changes to new typechecker:
* Regular for loop index and parameters are now typechecked
* Invalid type annotations on local variables are ignored to improve
autocomplete
* Fixed missing autocomplete type suggestions for function arguments
* Type reduction is now performed to produce simpler types to be
presented to the user (error messages, custom LSPs)
* Internally, complex types like '((number | string) & ~(false?)) |
string' can be produced, which is just 'string | number' when simplified
* Fixed spots where support for unknown and never types was missing
* (NEW) Length operator '#' is now valid to use on top table type, this
type comes up when doing typeof(x) == "table" guards and isn't available
in current typechecker

---
Changes to native code generation:
* Additional math library fast calls are now lowered to x64: math.ldexp,
math.round, math.frexp, math.modf, math.sign and math.clamp
2023-02-03 11:26:13 -08:00
..
basic.lua Sync to upstream/release/501 (#20) 2021-11-01 14:52:34 -07:00
compiler.cpp Sync to upstream/release/501 (#20) 2021-11-01 14:52:34 -07:00
format.cpp Sync to upstream/release/501 (#20) 2021-11-01 14:52:34 -07:00
linter.cpp Sync to upstream/release/547 (#690) 2022-09-29 15:23:10 -07:00
luau.proto Sync to upstream/release/560 (#810) 2023-01-20 12:27:03 -08:00
number.cpp Sync to upstream/release/517 (#408) 2022-03-04 08:36:33 -08:00
parser.cpp Sync to upstream/release/501 (#20) 2021-11-01 14:52:34 -07:00
proto.cpp Sync to upstream/release/562 (#828) 2023-02-03 11:26:13 -08:00
protoprint.cpp Sync to upstream/release/560 (#810) 2023-01-20 12:27:03 -08:00
prototest.cpp Sync to upstream/release/516 (#397) 2022-02-24 15:53:37 -08:00
syntax.dict Sync to upstream/release/501 (#20) 2021-11-01 14:52:34 -07:00
transpiler.cpp Sync to upstream/release/501 (#20) 2021-11-01 14:52:34 -07:00
typeck.cpp Sync to upstream/release/547 (#690) 2022-09-29 15:23:10 -07:00