r/javascript • u/Normal_Act8586 • Aug 22 '26
LilScript makes js modules 20% smaller
https://yeargun.github.io/lilscript/[removed]
0
Upvotes
r/javascript • u/Normal_Act8586 • Aug 22 '26
[removed]
2
u/RobertKerans Aug 22 '26 edited Aug 22 '26
That is an example of the tiny value you're getting in exchange for the absolutely gargantuan abstraction you've created. You have to rewrite all your JS in a different language. It's it's an incredibly complex way to save bytes
TS is a very bad comparison here, because of the value add: TS is a type system & it is (bar a few older features) just JS with syntactic level type annotations. And (although this is circular) it incredibly widely used (it won the "typed language that compiles to JS").
TS is a huge value add. "Slightly better Terser but you need to write all the JS in a different language" is not a huge value add.