8000 Seperate type functions from normal functions in luau-compile compiler remarks · Issue #1817 · luau-lang/luau · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Seperate type functions from normal functions in luau-compile compiler remarks #1817

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gaymeowing opened this issue May 12, 2025 · 1 comment · Fixed by #1832
Closed
8000

Seperate type functions from normal functions in luau-compile compiler remarks #1817

gaymeowing opened this issue May 12, 2025 · 1 comment · Fixed by #1832
Assignees
Labels
bug Something isn't working

Comments

@gaymeowing
Copy link
Contributor

Currently when getting compiler remarks with luau-compile type functions aren't displayed separately, although its not much of an issue it'd be nice to have type functions prefixed with 'Type Function' instead of 'Function' to diffrentiate type functions from functions that'll be used at runtime.

It would also be nice for a new argument to be added to allow for not including type functions in compiler remarks, as well as vise versa for only including type functions.

@gaymeowing gaymeowing added the enhancement New feature or request label May 12, 2025
@gaymeowing gaymeowing changed the title Seperate Type Function from normal functions in luau-compile compiler remarks Seperate type functions from normal functions in luau-compile compiler remarks May 12, 2025
@vegorov-rbx vegorov-rbx added bug Something isn't working and removed enhancement New feature or request labels May 12, 2025
@vegorov-rbx
Copy link
Collaborator

This is actually an oversight of our type function implementation.
We are going to remove type functions from being present at all.

@vegorov-rbx vegorov-rbx self-assigned this May 12, 2025
hgoldstein added a commit that referenced this issue May 16, 2025
# General

* Expose an optional `get_alias` API as an alternative to `get_config`
in Luau.Require and Luau.RequireNavigator.
* Improve the Luau CLI's virtual filesystem implementation to fix bugs
related to `init.luau`. Fixes
#1816


# New Type Solver

* Avoid double reporting errors when erroneous arguments are provided to
type functions.
* Fix some instances of unresovable cyclic type functions in loops by
only considering the first loop cycles. This results in some type
inference inaccuracies when the type of a variable in loop through
multiple iterations. Fixes
#1413.
* Better generalize free types that have meaningful lower and upper
bounds, especially for table indexers.
* Report more specific errors when assigning or returning table literal
types, instead of citing the *entire* table type.
* Inference for functions with generic type packs is greatly improved.
* Fix some internal compiler exceptions when using type-stating
functions like `table.freeze` in `if _ then _ else _` expressions and
short circuiting binary operations.
* More consistently simplify unions of primitive types, especially in
array-like and dictionary-like tables.
* Fix a crash when type checking an erroneous type alias containing
`typeof` with a type assertion expression, as in:
  ```
  type MyTable = {}
  -- This will error at type checking time as it's a duplicate
  type MyTable = typeof(setmetatable(SomeTable :: {}, SomeMetaTable));
  ```
* Fix a crash when inferring the type of an index expression where the
indexee is invalid (e.g. `nil`).

# Runtime
* Avoid throwing an exception from `luau_load` if we run out of memory.
* Type functions are no longer compiled and included in bytecode. Fixes
#1817.
* Fix some instances of Luau C API functions reading invalid debug
information (generally when the first or last instruction of a block was
being inspected). Fixes #1369.
* Avoid potential signed integer overflow when doing bounds checks on
tables.
* Support 16 byte aligned userdata objects when system allocation
alignment is also 16 bytes.
* Fix memory leaks in `Luau.Require` when using VM build with no
exceptions. Fixes #1827.

---------

Co-authored-by: Andy Friesen <afriesen@roblox.com>
Co-authored-by: Ariel Weiss <aaronweiss@roblox.com>
Co-authored-by: Hunter Goldstein <hgoldstein@roblox.com>
Co-authored-by: James McNellis <jmcnellis@roblox.com>
Co-authored-by: Sora Kanosue <skanosue@roblox.com>
Co-authored-by: Talha Pathan <tpathan@roblox.com>
Co-authored-by: Varun Saini <vsaini@roblox.com>
Co-authored-by: Vyacheslav Egorov <vegorov@roblox.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging a pull request may close this issue.

2 participants
0