news-2021-04-30-luau-recap-april-2021.md
April 30, 2021
Another busy month in Luau with many performance improvements.
Luau implementation now provides an internal API for type-aware autocomplete suggestions.
Roblox Studio will be the first user of this API and we plan for a new beta feature to come soon in addition to existing Luau-powered beta features like Go To Declaration, Type Hovers and Script Function Filter (you should check those out!)
Performance is a very important part of Luau implementation and we continue bringing in new performance optimizations:
vector value type that will be used by Vector3 type in Roblox. Improvements of up to 10x can be seen for primitive operations and some of our heavy Vector3 benchmarks have seen 2-3x improvement. You can read more about this feature on Roblox Developer forumsstring.lower, string.upper, string.reverse, string.rep, table.concat and string concatenation operator ... Biggest improvements can be seen on large stringstable.insert and table.remove. Operations in the middle of large arrays can be multiple times faster with this changetable.insertWe had to temporarily disable generic function definitions last month after finding critical issues in the implementation.
While they are still not available, we are making steady progress on fixing those issues and making additional typechecking improvements to bring them back in.
Debugging is now supported for parallel Luau Actors in Roblox Studio.
Read more about the feature on Roblox Developer forums and try it out yourself.
Backwards compatibility is important for Luau, but sometimes a change is required to fix corner cases in the language / libraries or to improve performance. Even still, we try to keep impact of these changes to a minimum:
and/not and type guards with more improvements to come