▲ | parenwielder 3 days ago | ||||||||||||||||
Lua (and to a somewhat lesser extent Luau) are small in terms of the learned surface of the value language, not necessarily in terms of lines of code. That being said, any runtime use of the language needn't depend on Analysis, which is the biggest compilation unit by far. Probably also worth mentioning that Analysis currently contains two full type system implementations because we've spent the better part of the past three years building a new type system to address a lot of the fundamental limitations and architectural issues that we'd run into after years of working on the original one. The new one is not without issues still, but is definitely very usable, and gets better and better every week. At some point in the future, we will clip the old one altogether, and that'll shave off some 30,000 lines of code or something. | |||||||||||||||||
▲ | pizlonator 3 days ago | parent [-] | ||||||||||||||||
Is the primary goal of the type system performance, or dev productivity, or something else? If performance, are you comparing against a baseline that does the classic Self-style optimizations (like what JS engines do)? FWIW I don't consider LuaJIT to be an interesting baseline because of what I've heard about it being overtuned to specific benchmark that the author(s) care about. (Too much of an attitude where if your code doesn't run well then it's your fault.) | |||||||||||||||||
|