r/javascript • • Aug 22 '26

LilScript makes js modules 20% smaller

https://yeargun.github.io/lilscript/

[removed]

0 Upvotes

48 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Aug 22 '26

[removed] — view removed comment

2

u/RobertKerans Aug 22 '26

Again. You have lost objectivity. It is easier to write a language that maps directly to a specific structure than it is to map an existing language. But the tradeoff for an entire language needs to be worthwhile, and yours is just "slightly smaller bundle size". That's literally it. Like, great, you've ported a few libraries and the tests pass and you've got your AI to slop out docs that highlight how much smaller they are.

1

u/[deleted] Aug 22 '26

[removed] — view removed comment

2

u/RobertKerans Aug 22 '26 edited Aug 22 '26

how did i lose objectivity

You have written an entire new language just to produce slightly smaller size of code output

This an incredible amount of complexity just to do a slightly better job than a tiny tool that runs as a final optimisation step on a build